/* ============================================
   TOPYEP 拓谱易普 - 全局样式系统
   新中式极简草本治愈风
   ============================================ */

/* ===== 设计变量 ===== */
:root {
  --primary: #7BAE7F;
  --primary-dark: #5A8B5E;
  --primary-light: #A8CCA8;
  --primary-bg: #EFF5EF;
  --cream: #F8F6F1;
  --khaki: #D4C5A9;
  --warm-gray: #9B9B97;
  --warm-gray-light: #E8E6E1;
  --orange: #E8956A;
  --orange-dark: #D17A4E;
  --orange-light: #F5C4A8;
  --text: #2C2C2C;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --border: #E8E6E1;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1280px;
  --header-height: 72px;
  --transition: all 0.3s ease;
}

/* ===== 重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* ===== 布局工具 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-title p {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.section-title .divider {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,149,106,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-white:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ===== 头部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.footer .logo-img {
  height: 48px;
  opacity: 0.95;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .en {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo-text .cn {
  font-size: 0.7rem;
  color: var(--warm-gray);
  letter-spacing: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.header-action:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transform: scale(0);
  transition: var(--transition);
}

.cart-badge.show {
  transform: scale(1);
}

/* 搜索框 */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

.search-box input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  border: none;
  border-bottom: 2px solid var(--primary);
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

/* 移动端底部导航 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1000;
}

.mobile-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--warm-gray);
  padding: 8px 12px;
}

.mobile-nav a.active {
  color: var(--primary-dark);
}

.mobile-nav a .icon {
  font-size: 1.3rem;
}

/* ===== 首页 Banner ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #EFF5EF 0%, #F8F6F1 50%, #E8F0E8 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(123,174,127,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,197,169,0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(123,174,127,0.12);
  color: var(--primary-dark);
  font-size: 0.85rem;
  letter-spacing: 3px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 4px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.hero-decoration {
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
  z-index: 0;
}

.hero-decoration.top-left {
  top: 10%;
  left: 5%;
}

.hero-decoration.bottom-right {
  bottom: 10%;
  right: 5%;
}

/* ===== 优势卡片 ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.advantage-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.advantage-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 产品分类入口 ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-overlay h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 0.85rem;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  width: fit-content;
}

/* ===== 产品卡片 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.product-info {
  padding: 16px 20px 20px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
}

.product-price .unit {
  font-size: 0.8rem;
  font-weight: 400;
}

.add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 1.1rem;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--primary);
  color: white;
}

/* ===== 数据统计 ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--cream) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ===== 底部标语 ===== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== 全局 Footer ===== */
.footer {
  background: #2C2C2C;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo .cn {
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== 页面 Banner ===== */
.page-banner {
  margin-top: var(--header-height);
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--cream) 100%);
  text-align: center;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.page-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== 产品筛选 ===== */
.shop-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== 产品详情页 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: var(--header-height);
  padding: 48px 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.product-info-detail h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info-detail .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.product-price-box .current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

.product-price-box .original-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-meta {
  margin-bottom: 24px;
}

.product-meta-item {
  display: flex;
  padding: 10px 0;
  font-size: 0.9rem;
}

.product-meta-item .label {
  width: 80px;
  color: var(--text-muted);
}

.product-meta-item .value {
  color: var(--text);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.quantity-selector label {
  margin-right: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--primary-bg);
}

.qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 1rem;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.product-actions .btn {
  flex: 1;
  padding: 14px;
}

.product-detail-tabs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.tab-headers {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tab-header {
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-header.active {
  color: var(--primary-dark);
}

.tab-header.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.tab-content {
  display: none;
  line-height: 2;
  font-size: 0.95rem;
  color: var(--text-light);
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
}

.tab-content p {
  margin-bottom: 12px;
}

.tab-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.tab-content ul li {
  list-style: disc;
  margin-bottom: 6px;
}

/* ===== 品牌介绍页 ===== */
.about-hero {
  margin-top: var(--header-height);
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--cream) 100%);
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
}

.about-section p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 16px;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.chain-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.chain-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.chain-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.chain-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.advantage-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.advantage-item .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.advantage-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.advantage-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 联系我们页 ===== */
.contact-page {
  margin-top: var(--header-height);
  padding: 60px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item .content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-item .content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== 购物车页 ===== */
.cart-page {
  margin-top: var(--header-height);
  padding: 48px 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.cart-page h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.cart-empty h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-info .price {
  font-size: 0.85rem;
  color: var(--orange);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  background: var(--white);
  font-size: 1rem;
}

.cart-item-qty button:hover {
  background: var(--primary-bg);
}

.cart-item-qty span {
  width: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.cart-item-total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: #FFF0F0;
  color: #E05050;
}

.cart-summary {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.summary-row.total .amount {
  color: var(--orange);
  font-size: 1.3rem;
}

/* ===== 结算步骤 ===== */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--warm-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.step.active {
  color: var(--primary-dark);
}

.step.active .num {
  background: var(--primary);
  color: white;
}

.step.done .num {
  background: var(--primary-light);
  color: white;
}

.step-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

.checkout-form {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 24px;
}

.checkout-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-methods {
  display: flex;
  gap: 16px;
}

.payment-option {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.payment-option .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.payment-option .name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== 用户中心 ===== */
.account-page {
  margin-top: var(--header-height);
  padding: 48px 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.account-user {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.account-user .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
}

.account-user h4 {
  font-size: 1rem;
  font-weight: 600;
}

.account-user p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.account-menu li {
  margin-bottom: 4px;
}

.account-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.account-menu li a:hover,
.account-menu li a.active {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.account-content {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.account-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* 订单卡片 */
.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg);
  font-size: 0.85rem;
}

.order-header .order-no {
  color: var(--text-muted);
}

.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.order-status.pending {
  background: #FFF4E6;
  color: #E8956A;
}

.order-status.paid {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.order-status.shipped {
  background: #E6F0FF;
  color: #4A90D9;
}

.order-status.completed {
  background: #F0F0F0;
  color: var(--text-muted);
}

.order-body {
  padding: 16px 20px;
}

.order-product {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.order-product:last-child {
  margin-bottom: 0;
}

.order-product-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product-info {
  flex: 1;
}

.order-product-info h5 {
  font-size: 0.9rem;
  font-weight: 500;
}

.order-product-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.order-product-price {
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 600;
}

.order-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.order-footer .total {
  font-size: 0.9rem;
}

.order-footer .total strong {
  color: var(--orange);
  font-size: 1.1rem;
}

/* ===== 登录注册 ===== */
.auth-page {
  margin-top: var(--header-height);
  padding: 60px 24px;
  display: flex;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
}

.auth-box h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-box .subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary-dark);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(44,44,44,0.95);
  color: white;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--primary-dark);
}

.toast.error {
  background: #E05050;
}

/* ===== 订单成功页 ===== */
/* ========== 支付二维码页面 ========== */
.payment-qr-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.payment-qr-box {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.payment-qr-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.payment-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.payment-tip {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 16px;
}

.payment-tip-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.payment-polling {
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 16px;
  animation: pulse 1.5s infinite;
}

.payment-expired {
  color: #e74c3c;
  font-size: 0.95rem;
  margin-top: 16px;
}

.payment-actions {
  margin-top: 24px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.order-success {
  margin-top: var(--header-height);
  padding: 80px 24px;
  text-align: center;
}

.order-success .icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.order-success h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.order-success p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.order-success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .advantages-grid,
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .header-actions .header-action:not(.cart-icon):not(.user-icon) {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  body {
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .advantages-grid,
  .categories-grid,
  .products-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-item .number {
    font-size: 1.8rem;
  }
  
  .chain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantage-list {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
  
  .product-gallery {
    position: static;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  
  .cart-item-qty,
  .cart-item-total {
    grid-column: 2 / -1;
  }
  
  .cart-summary {
    position: static;
  }
  
  .checkout-layout,
  .cart-layout {
    grid-template-columns: 1fr !important;
  }
  
  .account-layout {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .page-banner h1,
  .about-hero h1 {
    font-size: 1.6rem;
  }
  
  .checkout-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .step-divider {
    display: none;
  }
  
  .payment-methods {
    flex-direction: column;
  }
  
  .tab-headers {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .advantages-grid,
  .categories-grid,
  .products-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }
  
  .auth-box {
    padding: 32px 24px;
  }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}
