/**
 * 东方雅集 - 二十四节气主题样式系统
 * 根据当前节气自动切换配色和背景
 */

/* 汉呈天王喜毛笔书法自定义字体 */
@font-face {
  font-family: 'HanChen';
  src: url('../fonts/hanchen.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  /* 基础色板 - 春季使用淡雅裸粉色 */
  --color-spring: rgba(232, 180, 180, 0.9);
  --color-spring-light: rgba(245, 208, 217, 0.8);
  --color-spring-dark: rgba(200, 150, 150, 0.9);
  
  --color-summer: #E74C3C;
  --color-summer-light: #FF6B6B;
  --color-summer-dark: #C0392B;
  
  --color-autumn: #F39C12;
  --color-autumn-light: #F1C40F;
  --color-autumn-dark: #D68910;
  
  --color-winter: #7B8B94;
  --color-winter-light: #B0BEC5;
  --color-winter-dark: #546E7A;
  
  /* 通用色 */
  --color-white: #FFFFFF;
  --color-bg-light: #F8F9FA;
  --color-text-dark: #2C3E50;
  --color-text-light: #7F8C8D;
  --color-border: #E8E8E8;
  --color-gold: #D4AF37;
  
  /* 字体 */
  --font-title: 'Ma Shan Zheng', 'ZCOOL XiaoWei', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 当前季节主题色 - 默认春季（淡雅裸粉色主题） */
[data-season="spring"] {
  --primary: rgba(232, 180, 180, 0.9);
  --primary-light: rgba(245, 208, 217, 0.8);
  --primary-dark: rgba(200, 150, 150, 0.9);
  --bg-gradient: linear-gradient(135deg, rgba(250, 240, 240, 0.9) 0%, rgba(245, 230, 230, 0.85) 50%, rgba(240, 210, 210, 0.8) 100%);
  --hero-overlay: linear-gradient(135deg, rgba(245, 208, 217, 0.35) 0%, rgba(232, 180, 180, 0.25) 100%);
}

/* 春季半透明鲜艳粉导航栏 */
body.season-spring .navbar,
[data-season="spring"] .navbar {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.5) 0%, rgba(255, 182, 193, 0.55) 100%) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

[data-season="summer"] {
  --primary: var(--color-summer);
  --primary-light: var(--color-summer-light);
  --primary-dark: var(--color-summer-dark);
  --bg-gradient: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  --hero-overlay: rgba(192, 57, 43, 0.3);
}

[data-season="autumn"] {
  --primary: var(--color-autumn);
  --primary-light: var(--color-autumn-light);
  --primary-dark: var(--color-autumn-dark);
  --bg-gradient: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  --hero-overlay: rgba(214, 137, 16, 0.3);
}

[data-season="winter"] {
  --primary: var(--color-winter);
  --primary-light: var(--color-winter-light);
  --primary-dark: var(--color-winter-dark);
  --bg-gradient: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #cfd8dc 100%);
  --hero-overlay: rgba(84, 110, 122, 0.35);
}

/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  transition: background-color var(--transition-slow);
}

/* 粒子canvas性能优化 */
#particle-canvas,
#sakura-3d-canvas {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: strict;
}

/* 图片懒加载优化 */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src]) {
  opacity: 1;
}

/* GPU加速优化 */
.product-card,
.feature-card,
.info-card {
  will-change: transform;
  transform: translateZ(0);
}

/* 减少重绘区域 */
.navbar {
  contain: layout style;
}

/* 动画性能优化 */
.animate-fade-in {
  will-change: opacity, transform;
}

/* 书法字体标题 */
.font-calligraphy {
  font-family: var(--font-title);
}

/* 顶部导航栏 - 半透明磨砂风格 */
.navbar {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 28px;
  font-family: var(--font-title);
}

.navbar-brand img {
  height: 45px;
  margin-right: 12px;
}

/* 导航菜单 */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.navbar-menu a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: 15px;
  position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--color-text-dark);
  display: block;
  padding: 10px 20px;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: var(--bg-gradient);
  color: var(--primary-dark);
}

/* 右侧功能区 */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 语言切换 */
.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-switch a:hover,
.lang-switch a.active {
  color: white;
  background: rgba(255,255,255,0.2);
}

/* 搜索框 */
.search-box {
  position: relative;
}

.search-box input {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 8px 35px 8px 15px;
  border-radius: 20px;
  color: white;
  width: 180px;
  transition: all var(--transition-fast);
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-box input:focus {
  background: rgba(255,255,255,0.3);
  outline: none;
  width: 220px;
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
}

/* 用户菜单 */
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-menu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 全屏Hero区域 - 山水背景风格 */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  perspective: 1000px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

/* 春季Hero特殊效果 - 景深背景（匹配WebGL背景） */
[data-season="spring"] .hero {
  background: linear-gradient(135deg, #0a0a14 0%, #1a0a1a 50%, #0a0a1e 100%);
  position: relative;
}

/* 樱花引导页风格的景深光晕 - 粉紫色系 */
[data-season="spring"] .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(255, 182, 193, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(221, 160, 221, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 192, 203, 0.1) 0%, transparent 60%);
  z-index: 0;
}

/* 动态光晕动画 - 樱花粉色 */
[data-season="spring"] .hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.4) 0%, rgba(255, 182, 193, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  animation: depthGlow 6s ease-in-out infinite;
  z-index: 0;
  filter: blur(60px);
}

@keyframes depthGlow {
  0%, 100% { 
    transform: scale(1) translate(0, 0);
    opacity: 0.6;
  }
  33% { 
    transform: scale(1.2) translate(50px, -30px);
    opacity: 0.8;
  }
  66% { 
    transform: scale(0.9) translate(-30px, 50px);
    opacity: 0.5;
  }
}

/* 额外的光晕层 */
[data-season="spring"] .hero .depth-glow {
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 160, 180, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  animation: depthGlow2 8s ease-in-out infinite reverse;
  filter: blur(50px);
  z-index: 0;
}

@keyframes depthGlow2 {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.4;
  }
  50% { 
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* 冬季Hero特殊效果 - 冰蓝色系 */
[data-season="winter"] .hero {
  background-image: url('assets/images/seasons/winter-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 冬季景深光晕 - 冰蓝色系 */
[data-season="winter"] .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(135, 206, 235, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(176, 196, 222, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(200, 220, 240, 0.15) 0%, transparent 60%);
  z-index: 0;
}

/* 冬季动态光晕 - 冰晶白色 */
[data-season="winter"] .hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(200, 220, 240, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  animation: winterGlow 8s ease-in-out infinite;
  z-index: 0;
  filter: blur(60px);
}

@keyframes winterGlow {
  0%, 100% { 
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  33% { 
    transform: scale(1.1) translate(30px, -20px);
    opacity: 0.7;
  }
  66% { 
    transform: scale(0.95) translate(-20px, 30px);
    opacity: 0.4;
  }
}

/* 冬季额外光晕层 */
[data-season="winter"] .hero .depth-glow {
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(176, 196, 222, 0.4) 0%, transparent 60%);
  border-radius: 50%;
  animation: winterGlow2 10s ease-in-out infinite reverse;
  filter: blur(50px);
  z-index: 0;
}

@keyframes winterGlow2 {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 40px;
  background: transparent;
  backdrop-filter: none;
}

.hero-title {
  font-family: 'HanChen', var(--font-title);
  font-size: 96px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 10px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* 春季标题立体效果 */
[data-season="spring"] .hero-title {
  background: linear-gradient(135deg, #fff 0%, #ffe4ec 50%, #ffb6c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.4),
    0 2px 0 rgba(255,255,255,0.3),
    0 3px 0 rgba(255,255,255,0.2),
    0 4px 8px rgba(233, 30, 99, 0.3);
  animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.95;
  font-weight: 300;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-season="spring"] .hero-subtitle {
  color: #fff0f5;
  text-shadow: 
    0 0 10px rgba(255, 192, 203, 0.5),
    0 2px 4px rgba(0,0,0,0.2);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

[data-season="spring"] .hero-desc {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 白色信息卡片 - 图4风格 */
.info-cards {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 3;
  width: 90%;
  max-width: 900px;
  justify-content: center;
}

.info-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 30px;
  flex: 1;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.info-card-title {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.info-card-subtitle {
  font-size: 14px;
  color: var(--color-gold);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.info-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* 内容区域 */
.main-content {
  padding-top: 70px;
}

.section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--color-text-dark);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 16px;
}

.section-title .decoration {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 20px auto;
  border-radius: 2px;
}

/* 24节气网格 - 图3风格 */
.solar-terms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.solar-term-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.solar-term-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.solar-term-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.solar-term-card:hover .solar-term-bg {
  transform: scale(1.1);
}

.solar-term-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
  text-align: center;
}

.solar-term-name {
  font-family: var(--font-title);
  font-size: 36px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.solar-term-date {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.solar-term-desc {
  font-size: 13px;
  opacity: 0.8;
  font-style: italic;
}

/* 商品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.product-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-summer);
}

.product-price .original {
  font-size: 14px;
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.btn-add-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* 商品详情页 - 图2风格 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  position: relative;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-border);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--primary);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-detail h1 {
  font-family: var(--font-title);
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.product-solar-term {
  display: inline-block;
  background: var(--bg-gradient);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-light);
}

.product-description {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 15px;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--bg-gradient);
}

/* 节气知识页 */
.solar-term-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.term-header {
  text-align: center;
  margin-bottom: 50px;
}

.term-header h1 {
  font-family: var(--font-title);
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 10px;
}

.term-header .date {
  color: var(--color-text-light);
  font-size: 16px;
}

.term-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.term-section {
  margin-bottom: 40px;
}

.term-section h3 {
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.term-section h3::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.term-section p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 支付页面 - 简洁风格 */
.checkout-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 40px;
}

.checkout-header h2 {
  font-family: var(--font-title);
  font-size: 36px;
  color: var(--color-text-dark);
}

.checkout-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.order-summary {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-summer);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--color-border);
}

.payment-methods {
  margin-bottom: 30px;
}

.payment-methods h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--primary);
  background: var(--bg-gradient);
}

.payment-option img {
  width: 40px;
  height: 40px;
}

.payment-option span {
  font-size: 16px;
  font-weight: 500;
}

.btn-pay {
  width: 100%;
  background: var(--color-spring);
  color: white;
  border: none;
  padding: 18px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-pay:hover {
  background: var(--color-spring-dark);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
    height: 60px;
  }
  
  .navbar-brand {
    font-size: 22px;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 10px;
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .info-cards {
    flex-direction: column;
    bottom: 40px;
    gap: 15px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .solar-terms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .solar-term-name {
    font-size: 24px;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .payment-options {
    grid-template-columns: 1fr;
  }
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* 悬浮按钮 - 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}
