/*
Theme Name: 奶茶设备商城
Theme URI: https://shebei.com
Author: 小龙虾
Author URI: https://shebei.com
Description: 专为奶茶设备电商定制的 WordPress 主题，支持 WooCommerce，专业工业风 + 简约现代风设计
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shebei
Template: storefront
Tags: e-commerce, woocommerce, custom-theme, responsive

奶茶设备商城主题 - 基于 Storefront 子主题
*/

/* ========================================
   全局样式
======================================== */
:root {
  --primary-color: #1a3a5c;        /* 深蓝 - 专业感 */
  --secondary-color: #ff6b35;      /* 橙色 - 活力点缀 */
  --accent-color: #28a745;         /* 绿色 - 成功/购买 */
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --border-color: #dddddd;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 极简头部（已移除） */
.site-header {
  display: none;
}

/* 移除页面顶部默认 padding */
body {
  padding-top: 0 !important;
}

/* ========================================
   轮播广告
======================================== */
.hero-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  max-width: 600px;
}

.slide-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #e55a2b;
  color: var(--white);
}

/* ========================================
   核心优势展示
======================================== */
.core-advantages {
  padding: 60px 0;
  background: var(--light-gray);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.advantage-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.advantage-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.advantage-item p {
  font-size: 14px;
  color: #666;
}

/* ========================================
   产品分类
======================================== */
.categories-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 16px;
  color: var(--text-color);
}

/* ========================================
   产品卡片
======================================== */
.products-section {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--white);
}

.product-card:hover {
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f0f0f0;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-color);
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}

.product-sales {
  color: #999;
}

/* ========================================
   创业套餐
======================================== */
.packages-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a5a7c 100%);
}

.packages-section .section-title {
  color: var(--white);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.package-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.package-card.popular {
  border: 3px solid var(--secondary-color);
}

.package-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--white);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.package-name {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.package-price {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.package-features {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.package-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
}

.package-features li:before {
  content: "✓ ";
  color: var(--accent-color);
  font-weight: bold;
}

/* ========================================
   客户案例
======================================== */
.cases-section {
  padding: 60px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.case-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
}

.case-content {
  padding: 25px;
}

.case-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.case-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.case-store {
  font-size: 13px;
  color: #999;
}

/* ========================================
   页脚
======================================== */
.site-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-links h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* ========================================
   悬浮客服
======================================== */
.float-service {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  display: none;
  min-width: 200px;
}

.float-panel.active {
  display: block;
}

.float-panel h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.float-panel p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================================
   限时福利横幅
======================================== */
.promo-banner {
  background: linear-gradient(90deg, #ff6b35 0%, #ff8c5a 100%);
  color: var(--white);
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
}

.promo-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.countdown {
  font-weight: bold;
  font-size: 18px;
}

.countdown span {
  display: inline-block;
  background: rgba(0,0,0,0.2);
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0 3px;
}

/* ========================================
   响应式
======================================== */
@media (max-width: 992px) {
  .advantages-grid,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-main .container {
    flex-direction: column;
    gap: 20px;
  }
  
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
}
