:root {
  /* 色彩系统 */
  --color-cream: #FFFBF7;
  --color-cream-dark: #FFF5ED;
  --color-oat: #F5E6D3;
  --color-oat-dark: #EBD5BC;
  --color-pink: #E8B4B8;
  --color-pink-soft: #FCE4EC;
  --color-blue: #B8D4E3;
  --color-blue-soft: #E3F2FD;
  --color-coral: #FF8C69;
  --color-coral-dark: #F56A4D;
  --color-mint: #98D8C8;
  --color-mint-soft: #E0F2F1;
  --color-text: #4A403A;
  --color-text-light: #7A6F68;
  --color-text-muted: #A99F98;
  --color-footer: #3E3632;
  --color-white: #FFFFFF;

  /* 字体 */
  --font-base: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(74, 64, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(74, 64, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(74, 64, 58, 0.12);

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-coral), var(--color-coral-dark));
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(245, 106, 77, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 106, 77, 0.35);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-coral-dark);
  border: 2px solid rgba(245, 106, 77, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-coral);
  background: #FFF5F2;
}

.btn-light {
  background: var(--color-white);
  color: var(--color-coral-dark);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-coral-dark);
  border: 2px solid var(--color-coral);
}

.btn-outline:hover {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-cart {
  padding: 8px 14px;
  font-size: 13px;
  background: var(--color-mint-soft);
  color: #2E7D72;
  border-radius: 999px;
}

.btn-cart:hover {
  background: var(--color-mint);
  color: var(--color-white);
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 247, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 230, 211, 0.6);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 251, 247, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-zh {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.logo-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
}

.logo-en {
  font-size: 12px;
  color: var(--color-coral-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-coral);
  border-radius: 3px;
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-oat);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.12);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 170px;
  font-size: 14px;
  color: var(--color-text);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

.search-box button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-coral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--color-coral);
  color: var(--color-white);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--color-cream-dark);
  color: var(--color-coral-dark);
}

.login-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 999px;
  transition: var(--transition);
}

.login-link:hover {
  background: var(--color-cream-dark);
  color: var(--color-coral-dark);
}

/* 用户已登录状态 */
.user-logged {
  display: flex; align-items: center; gap: 8px;
}
.user-logged.hidden { display: none; }

.user-greeting {
  font-size: 13px; font-weight: 500; color: var(--color-coral-dark);
  white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: var(--radius-sm); transition: var(--transition);
}
.user-greeting:hover {
  color: var(--color-coral);
  background: var(--color-cream-dark);
}
.user-greeting::before {
  content: '';
  display: inline-block; width: 28px; height: 28px;
  background: var(--color-cream-dark); border-radius: 50%;
  vertical-align: middle; margin-right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF8C69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.logout-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--color-text-muted);
  background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 5px 10px;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.logout-btn:hover {
  color: var(--color-coral-dark); border-color: var(--color-coral);
}

/* 移动端已登录 */
.mobile-logged { text-align: center; padding: 8px 0; }
.mobile-logged.hidden { display: none; }
.mobile-logged .mobile-user-name {
  font-size: 14px; font-weight: 500; color: var(--color-coral-dark);
  margin-bottom: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  display: block;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
}

.mobile-menu a:hover {
  background: var(--color-cream-dark);
}

.mobile-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-oat);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 140, 105, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(184, 212, 227, 0.2) 0%, transparent 35%),
    linear-gradient(135deg, #FFF5ED 0%, #FDF2E9 50%, #F5E6D3 100%);
  z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero-bg::before {
  width: 500px;
  height: 500px;
  background: var(--color-pink-soft);
  top: 10%;
  right: -100px;
}

.hero-bg::after {
  width: 400px;
  height: 400px;
  background: var(--color-mint-soft);
  bottom: 5%;
  left: -80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,251,247,0) 0%, rgba(255,251,247,0.85) 90%, var(--color-cream) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 80px 24px 140px;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-white);
  color: var(--color-coral-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-desc {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* 信任背书 */
.trust-bar {
  background: var(--color-white);
  padding: 40px 0;
  margin-top: -10px;
  position: relative;
  z-index: 3;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  transition: var(--transition);
}

.trust-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-mint-soft);
  color: #2E7D72;
  flex-shrink: 0;
}

.trust-list li:nth-child(2) .trust-icon {
  background: var(--color-pink-soft);
  color: #C2185B;
}

.trust-list li:nth-child(3) .trust-icon {
  background: var(--color-blue-soft);
  color: #1565C0;
}

.trust-list li:nth-child(4) .trust-icon {
  background: #FFF3E0;
  color: #E65100;
}

.trust-list span:last-child {
  font-size: 15px;
  font-weight: 500;
}

/* 通用 section */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header.light {
  color: var(--color-text);
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-pink-soft);
  color: #C2185B;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 16px;
}

/* 品类入口 */
.categories {
  background: var(--color-cream);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 64, 58, 0.35), transparent);
}

.card-img.pregnancy {
  background: linear-gradient(135deg, #F8BBD0 0%, #F48FB1 100%);
}

.card-img.newborn {
  background: linear-gradient(135deg, #B2DFDB 0%, #80CBC4 100%);
}

.card-img.food {
  background: linear-gradient(135deg, #FFCCBC 0%, #FFAB91 100%);
}

.card-img.mom {
  background: linear-gradient(135deg, #C5CAE9 0%, #9FA8DA 100%);
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* 产品推荐 */
.products {
  background: var(--color-white);
}

.product-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-oat) transparent;
}

.product-scroll::-webkit-scrollbar {
  height: 6px;
}

.product-scroll::-webkit-scrollbar-thumb {
  background: var(--color-oat);
  border-radius: 3px;
}

.product-card {
  flex: 0 0 260px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.badge-hot {
  background: var(--color-coral);
  color: var(--color-white);
}

.badge-rec {
  background: var(--color-mint);
  color: var(--color-white);
}

.badge-new {
  background: var(--color-blue);
  color: #0D47A1;
}

.product-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.product-img.product-1 { background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%); }
.product-img.product-2 { background: linear-gradient(135deg, #E1BEE7 0%, #CE93D8 100%); }
.product-img.product-3 { background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%); }
.product-img.product-4 { background: linear-gradient(135deg, #B3E5FC 0%, #81D4FA 100%); }
.product-img.product-5 { background: linear-gradient(135deg, #FFCDD2 0%, #EF9A9A 100%); }

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-tag {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-coral-dark);
}

/* 社区 */
.community {
  background: linear-gradient(135deg, #FFF5F7 0%, #F3F8FB 100%);
}

.community-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.community-main h3,
.community-side h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--color-coral);
}

.article-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
}

.article-card.featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  margin-bottom: 20px;
}

.article-img {
  min-height: 160px;
  background-size: cover;
  background-position: center;
}

.article-img.art-1 { background: linear-gradient(135deg, #FFECB3 0%, #FFE082 100%); }
.article-img.art-2 { background: linear-gradient(135deg, #D1C4E9 0%, #B39DDB 100%); }
.article-img.art-3 { background: linear-gradient(135deg, #B2DFDB 0%, #80CBC4 100%); }

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-cat {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  background: var(--color-cream-dark);
  color: var(--color-coral-dark);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 10px;
}

.article-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-coral-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-arrow::after {
  content: '→';
  transition: var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-list .article-card {
  display: flex;
  flex-direction: column;
}

.article-list .article-img {
  height: 130px;
}

.article-list .article-body {
  padding: 18px;
}

.community-side {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.topic-list {
  list-style: none;
  margin-bottom: 20px;
}

.topic-list li {
  border-bottom: 1px solid var(--color-cream-dark);
}

.topic-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  transition: var(--transition);
}

.topic-list a:hover {
  padding-left: 8px;
  color: var(--color-coral-dark);
}

.topic-tag {
  font-size: 15px;
  font-weight: 500;
}

.topic-count {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* 评价 */
.reviews {
  background: var(--color-cream);
}

.review-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: #FFB300;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card blockquote {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--color-mint);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-white);
  font-size: 18px;
}

.avatar-1 { background: linear-gradient(135deg, #F48FB1, #EC407A); }
.avatar-2 { background: linear-gradient(135deg, #81D4FA, #29B6F6); }
.avatar-3 { background: linear-gradient(135deg, #A5D6A7, #66BB6A); }

.author-name {
  font-weight: 600;
  font-size: 15px;
}

.author-info {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--color-coral), var(--color-coral-dark));
  padding: 64px 0;
}

.cta-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--color-white);
}

.cta-content h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 16px;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #3E3632 0%, #352E2A 55%, #2C2622 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
}
/* 顶部品牌色渐变装饰线，呼应全站暖色调 */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-coral) 0%, var(--color-pink) 45%, var(--color-mint) 100%);
  opacity: 0.75;
}
/* 顶部柔和光晕过渡 */
.site-footer::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 120px;
  background: radial-gradient(ellipse at center top, rgba(255, 140, 105, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand .logo-zh,
.footer-brand .logo-en,
.footer-brand .logo-sub {
  color: var(--color-white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 140, 105, 0.35);
}

/* 栏目标题：白色 + 珊瑚色小装饰条 */
.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-pink));
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-coral);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}
/* 客服热线突出显示 */
.footer-contact p:first-of-type {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.42);
}
/* 版权与备案分两行居中展示 */
.footer-bottom p {
  margin: 0 0 6px;
}
.footer-bottom p:last-child {
  margin-bottom: 0;
}
.footer-bottom .footer-icp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
/* 品牌名黄橙色，与深色背景明显区分 */
.footer-bottom .logo-zh {
  color: #FFB74D;
  font-weight: 600;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-coral-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-coral);
  color: var(--color-white);
  transform: translateY(-4px);
}
/* Back to top offset on mobile for bottom nav */
@media (max-width: 640px) {
  .back-to-top {
    bottom: 80px;
  }
}

/* 跳过导航 */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--color-coral);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* Toast 通知 */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 260px;
  max-width: 380px;
}
.toast.toast-out {
  animation: toastOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast.success {
  border-left: 4px solid var(--color-mint);
  color: #2E7D72;
}
.toast.success .toast-icon { color: #2E7D72; }
.toast.error {
  border-left: 4px solid #E57373;
  color: #C62828;
}
.toast.error .toast-icon { color: #C62828; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* 购物车角标 */
.cart-btn {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-coral);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.bump {
  animation: badgeBump 0.4s ease;
}
@keyframes badgeBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* 移动端搜索切换按钮 */
.search-toggle {
  display: none;
}
@media (max-width: 900px) {
  .search-toggle {
    display: flex;
  }
}

/* 移动端搜索覆盖层 */
.mobile-search-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  z-index: 1001;
}
.mobile-search-overlay.open {
  display: block;
}
.mobile-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-search-box input {
  flex: 1;
  border: 1px solid var(--color-oat);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}
.mobile-search-box input:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.12);
}
.mobile-search-box button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-coral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-close {
  background: transparent !important;
  color: var(--color-text-light) !important;
}

/* 促销横幅 + 倒计时 */
.promo-banner {
  background: linear-gradient(135deg, #FFF3E0, #FCE4EC);
  padding: 14px 0;
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--color-oat);
}
.promo-banner .container {
  position: relative;
}
.promo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}
.promo-icon {
  font-size: 20px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.promo-text {
  white-space: nowrap;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: var(--color-coral-dark);
}
.countdown-item {
  background: var(--color-coral-dark);
  color: var(--color-white);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.countdown-num {
  min-width: 22px;
  text-align: center;
  display: inline-block;
}
.countdown-sep {
  color: var(--color-coral-dark);
  margin: 0 1px;
  font-weight: 700;
}
.promo-cta {
  color: var(--color-coral-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.promo-cta:hover {
  background: var(--color-coral-dark);
  color: var(--color-white);
  transform: translateX(4px);
}
.promo-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.promo-close:hover {
  background: rgba(0,0,0,0.12);
}
.promo-banner.hidden {
  display: none;
}
@media (max-width: 640px) {
  .promo-content {
    font-size: 13px;
    gap: 8px;
    padding: 0 36px 0 0;
  }
  .promo-text {
    white-space: normal;
    text-align: center;
  }
  .countdown-item {
    padding: 2px 6px;
    font-size: 13px;
  }
}

/* FAQ 手风琴 */
.faq {
  background: var(--color-cream);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  display: none;
  content: '';
}
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-coral-dark);
  display: flex;
  align-items: center;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}
.faq-answer p {
  margin: 0;
}

/* 底部移动导航 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-oat);
  z-index: 998;
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--color-text-muted);
  transition: color 0.2s;
  min-width: 56px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--color-coral-dark);
}
.bottom-nav-item svg {
  transition: var(--transition);
}
.bottom-nav-item.active svg {
  color: var(--color-coral);
}
@media (max-width: 640px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  /* 为移动底部导航留出空间 */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* 邮件订阅 */
.cta-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 15px;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}
.newsletter-form input:focus {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.25);
}
.newsletter-form .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 焦点状态优化 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 主导航 active 状态 */
.main-nav a.active::after {
  width: 100%;
}

/* 产品卡片触摸优化 */
@media (hover: none) and (pointer: coarse) {
  .btn-cart {
    padding: 10px 18px;
    font-size: 14px;
  }
  .topic-list a {
    padding: 16px 0;
  }
  .faq-question {
    padding: 22px 24px;
  }
  .menu-toggle {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
}

/* 响应式 */
@media (max-width: 1024px) {
  .category-grid,
  .review-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav,
  .search-box,
  .login-link {
    display: none;
  }
  .user-logged { display: none; }

  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 10px;
  }

  .header-inner {
    height: 64px;
  }

  .logo-zh {
    font-size: 15px;
  }

  .logo-sub {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card.featured {
    grid-template-columns: 1fr;
  }
  .article-card.featured .article-img {
    height: 180px;
    min-height: auto;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex: 0 0 240px;
  }

  .section {
    padding: 72px 0;
  }

  .cta-content {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }
  .section-header p {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 16px 100px;
  }

  .hero h1 {
    font-size: 26px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-tag {
    font-size: 13px;
    padding: 6px 16px;
  }

  .trust-bar {
    padding: 24px 0;
  }
  .trust-list li {
    padding: 12px;
  }
  .trust-icon {
    width: 40px;
    height: 40px;
  }
  .trust-list span:last-child {
    font-size: 13px;
  }

  .category-grid,
  .review-carousel,
  .trust-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card .card-img {
    height: 140px;
  }
  .card-body {
    padding: 16px;
  }
  .card-body h3 {
    font-size: 16px;
  }

  .product-card {
    flex: 0 0 200px;
  }
  .product-img {
    height: 160px;
  }
  .product-info h3 {
    font-size: 14px;
  }
  .price {
    font-size: 17px;
  }

  .review-card {
    padding: 24px;
  }
  .review-card blockquote {
    font-size: 14px;
  }

  .cta-banner {
    padding: 48px 0;
  }
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-content h2 {
    font-size: 22px;
  }
  .cta-content p {
    font-size: 14px;
  }
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }

  .site-footer {
    padding: 32px 0 100px;
  }
  /* 移动端 footer：品牌区居中置顶，购物指南/关于我们/客户服务三列并排 */
  .site-footer::after {
    width: 100%;
    height: 80px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 10px;
    padding-bottom: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand .logo {
    margin-bottom: 12px;
    justify-content: center;
  }
  .footer-brand p {
    max-width: 320px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
  }
  .social-links {
    justify-content: center;
  }
  .social-links a {
    width: 40px;
    height: 40px;
  }
  .footer-links h4,
  .footer-contact h4 {
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }
  /* 居中布局下装饰条也居中 */
  .footer-links h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links ul {
    gap: 8px;
    align-items: center;
  }
  .footer-links a {
    font-size: 12px;
  }
  /* 三列布局：客户服务占一列，与其他两栏对齐 */
  .footer-contact {
    text-align: center;
  }
  .footer-contact p {
    font-size: 12px;
    margin-bottom: 6px;
    word-break: break-all;
  }
  /* 客服热线适度突出 */
  .footer-contact p:first-of-type {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
  }
  .footer-bottom {
    padding: 16px 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 18px 16px;
    font-size: 14px;
  }

  .community-side {
    padding: 20px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
    top: 80px;
  }
  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* ========== 子页面通用 ========== */
.page-banner {
  background: linear-gradient(135deg, #FFEDE0, #FCE4EC);
  padding: calc(76px + 48px) 0 40px;
  text-align: center;
  margin-top: 0;
}

.page-banner h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-coral-dark); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-coral); text-decoration: underline; }
.breadcrumb span { color: var(--color-text-muted); }

.page-section {
  padding: 60px 0;
}

/* ========== 购物车页 ========== */
.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  display: flex;
  gap: 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  align-items: center;
  transition: var(--transition);
}

.cart-item:hover { box-shadow: var(--shadow-md); }

.cart-item-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.cart-item-info .tag { font-size: 12px; color: var(--color-text-muted); display: block; margin-bottom: 8px; }

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-oat);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-qty button {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-text);
  transition: background 0.2s;
}

.cart-qty button:hover { background: var(--color-cream-dark); }
.cart-qty input {
  width: 44px; height: 34px;
  text-align: center; font-size: 15px; font-weight: 600;
  border: none; border-left: 1px solid var(--color-oat);
  border-right: 1px solid var(--color-oat);
  font-family: inherit; outline: none;
}

.cart-item-price { font-size: 18px; font-weight: 700; color: var(--color-coral-dark); white-space: nowrap; }

.cart-item-remove {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); transition: var(--transition); font-size: 18px;
}

.cart-item-remove:hover { background: #FEE2E2; color: #EF4444; }

.cart-summary {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-oat);
}

.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 15px;
}

.summary-row.total {
  font-size: 18px; font-weight: 700;
  margin-top: 12px; padding-top: 16px;
  border-top: 1px solid var(--color-oat);
}

.summary-row.total span:last-child {
  color: var(--color-coral-dark); font-size: 24px;
}

.cart-summary .btn { width: 100%; margin-top: 20px; text-align: center; padding: 14px 0; font-size: 16px; }
.cart-summary .coupon { margin-top: 16px; display: flex; gap: 8px; }
.cart-summary .coupon input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--color-oat);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; outline: none;
}
.cart-summary .coupon input:focus { border-color: var(--color-coral); }
.cart-summary .coupon button {
  padding: 10px 16px; background: var(--color-cream-dark);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--color-text);
  font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.cart-summary .coupon button:hover { background: var(--color-coral); color: var(--color-white); }

.cart-empty {
  text-align: center; padding: 80px 20px;
}

.cart-empty svg { width: 80px; height: 80px; color: var(--color-oat); margin-bottom: 20px; }
.cart-empty h2 { font-size: 22px; margin-bottom: 10px; }
.cart-empty p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ========== 登录/注册页 ========== */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fce3d7, #f8e5ee, #e3eefa);
  padding: calc(76px + 40px) 16px 40px;
}

.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
  position: relative;
}

.auth-header {
  padding: 36px 36px 0; text-align: center;
}

.auth-header img { width: 48px; height: 48px; margin-bottom: 12px; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--color-cream-dark); margin-top: 24px;
}

.auth-tab {
  padding: 14px 0; font-size: 16px; font-weight: 600;
  color: var(--color-text-muted); text-align: center;
  cursor: pointer; transition: var(--transition);
  position: relative; border: none; background: none; font-family: inherit;
}

.auth-tab::after {
  content: ''; position: absolute; bottom: -2px; left: 20%; right: 20%;
  height: 2px; background: var(--color-coral); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.3s ease;
}

.auth-tab.active { color: var(--color-coral-dark); }
.auth-tab.active::after { transform: scaleX(1); }

.auth-body { padding: 32px 36px; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--color-text); }

.form-group input {
  padding: 12px 16px; border: 1px solid var(--color-oat); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; outline: none; transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.12);
}

.captcha-slider { margin-top: 2px; }
.captcha-slider .captcha-track {
  position: relative;
  height: 46px;
  background: #f0f0f0;
  border-radius: 23px;
  overflow: hidden;
  user-select: none;
  border: 1px solid #e0e0e0;
  transition: border-color 0.3s;
}
.captcha-slider .captcha-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(135deg, #66BB6A, #43A047);
  border-radius: 23px 0 0 23px;
}
.captcha-slider .captcha-text {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #aaa; pointer-events: none;
  transition: color 0.3s; z-index: 1;
}
.captcha-slider .captcha-thumb {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 44px; background: #fff;
  border-radius: 23px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: grab; z-index: 2;
  transition: box-shadow 0.2s;
  color: #bbb;
}
.captcha-slider .captcha-thumb:active { cursor: grabbing; box-shadow: 0 2px 14px rgba(0,0,0,0.2); }

.captcha-slider.verified .captcha-track { border-color: #66BB6A; }
.captcha-slider.verified .captcha-fill {
  width: 100% !important; border-radius: 23px;
  background: linear-gradient(135deg, #66BB6A, #43A047);
}
.captcha-slider.verified .captcha-text { color: #fff; font-weight: 500; }
.captcha-slider.verified .captcha-thumb { left: auto; right: 0; cursor: default; color: #66BB6A; }

.captcha-slider.failed .captcha-track { border-color: #EF5350; }
.captcha-slider.failed .captcha-fill { background: linear-gradient(135deg, #EF5350, #E53935); }
.captcha-slider.failed .captcha-thumb { left: 0 !important; color: #EF5350; }

/* 注册成功弹窗 */
.reg-success-overlay {
  display: none;
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 100;
  align-items: center; justify-content: center;
  border-radius: var(--radius-xl);
  animation: overlayFadeIn 0.35s ease;
}
.reg-success-overlay.show { display: flex; }
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }

.reg-success-card {
  text-align: center;
  padding: 40px 32px;
  max-width: 340px;
  animation: cardScaleIn 0.45s ease;
}
@keyframes cardScaleIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.reg-success-icon { margin-bottom: 16px; }
.reg-success-icon svg circle:first-child { animation: circlePulse 0.6s ease-out; }
.reg-success-icon svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: checkDraw 0.5s 0.3s ease forwards; }
@keyframes circlePulse {
  0% { r: 0; } 60% { r: 32; } 100% { r: 30; }
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.reg-success-title {
  font-size: 22px; font-weight: 700; color: var(--color-text);
  margin-bottom: 10px;
}
.reg-success-desc {
  font-size: 14px; color: var(--color-text-muted); line-height: 1.7;
  margin-bottom: 28px;
}
.reg-success-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.reg-success-actions .btn {
  padding: 12px 0; font-size: 15px; width: 100%; text-align: center;
  border-radius: var(--radius-md);
}
.reg-success-actions .btn-outline {
  background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text);
}
.reg-success-actions .btn-outline:hover {
  border-color: var(--color-coral); color: var(--color-coral);
}

.form-options {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

.form-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--color-text-muted); }
.form-options a { color: var(--color-coral-dark); font-size: 13px; }

.forgot-link { text-align: right; }
.forgot-link a { color: var(--color-coral-dark); font-size: 13px; }

.auth-form .btn { padding: 14px 0; font-size: 16px; text-align: center; width: 100%; }

.auth-switch {
  text-align: center; font-size: 14px; color: var(--color-text-muted); margin-top: 4px;
}

.auth-switch button {
  color: var(--color-coral-dark); font-weight: 700; cursor: pointer;
  border: none; background: none; font-family: inherit; font-size: 14px;
}

.auth-switch button:hover { text-decoration: underline; }

/* ========== 商品列表页 ========== */
.products-page { padding: 40px 0 80px; }

.filter-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--color-white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.filter-tag {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  background: var(--color-cream); color: var(--color-text);
  border: none; font-family: inherit;
}

.filter-tag.active { background: var(--color-coral); color: var(--color-white); }
.filter-tag:hover:not(.active) { background: var(--color-cream-dark); }

.sort-select {
  margin-left: auto; padding: 8px 14px;
  border: 1px solid var(--color-oat); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; outline: none; cursor: pointer;
}

.product-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* 产品卡片链接（跳转详情页） */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-link:hover .product-img { transform: scale(1.03); }
.card-link:hover .product-info h3 { color: var(--color-coral-dark); }
.product-actions {
  padding: 0 18px 18px;
  position: relative;
  z-index: 2;
}
.product-actions .btn-cart { width: 100%; }

.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 40px;
}

.page-btn {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  background: var(--color-white); border: 1px solid var(--color-oat);
  color: var(--color-text); transition: var(--transition);
  cursor: pointer; font-family: inherit;
}

.page-btn:hover { border-color: var(--color-coral); color: var(--color-coral); }
.page-btn.active { background: var(--color-coral); color: var(--color-white); border-color: var(--color-coral); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 关于我们 ========== */
.about-hero {
  text-align: center; padding: 40px 0;
}

.about-hero h1 { font-size: 36px; margin-bottom: 12px; }

.story-section { padding: 60px 0; }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.story-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.story-content h2 span { color: var(--color-coral); }
.story-content p { font-size: 15px; line-height: 2; color: var(--color-text-light); margin-bottom: 16px; }

.story-img {
  height: 380px; border-radius: var(--radius-xl);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 40px;
}

.value-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #FFE0D0, #FFD4C4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--color-coral-dark);
}

.value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

.team-section { background: var(--color-cream); }

/* ========== 联系我们 ========== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 40px; align-items: start;
}

.contact-form-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
}

.contact-form-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-form-card .form-group { margin-bottom: 16px; }
.contact-form-card textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--color-oat);
  border-radius: var(--radius-md); font-size: 15px; font-family: inherit;
  outline: none; resize: vertical; min-height: 120px;
  transition: var(--transition); box-sizing: border-box;
}
.contact-form-card textarea:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.12);
}
.contact-form-card .btn { padding: 14px 32px; font-size: 16px; }

.contact-info-card {
  background: linear-gradient(135deg, #FFEDE0, #FCE4EC);
  border-radius: var(--radius-lg); padding: 36px;
  position: sticky; top: 100px;
}

.contact-info-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }

.contact-info-item {
  display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-white); display: flex;
  align-items: center; justify-content: center;
  color: var(--color-coral-dark); flex-shrink: 0;
}

.contact-info-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

.contact-qr { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px dashed rgba(0,0,0,0.1); }
.contact-qr .qr-placeholder {
  width: 120px; height: 120px; margin: 0 auto 12px;
  background: var(--color-white); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--color-text-muted);
}
.contact-qr p { font-size: 13px; color: var(--color-text-muted); }

/* ========== FAQ 独立页面 ========== */
.faq-page { background: var(--color-white); }

.faq-categories {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 36px;
}

.faq-cat-btn {
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--color-cream); color: var(--color-text);
  cursor: pointer; transition: var(--transition);
  border: none; font-family: inherit;
}

.faq-cat-btn.active { background: var(--color-coral); color: var(--color-white); }
.faq-cat-btn:hover:not(.active) { background: var(--color-cream-dark); }

/* ========== 博客/文章 ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card-img {
  height: 200px; background-size: cover; background-position: center;
}

.blog-card-body { padding: 20px; }

.blog-card-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(255, 140, 105, 0.12); color: var(--color-coral-dark);
  font-size: 12px; font-weight: 600; border-radius: 999px;
  margin-bottom: 12px;
}

.blog-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }

.blog-card-body p {
  font-size: 14px; color: var(--color-text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 14px;
}

.blog-card-meta {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--color-text-muted);
}

/* ========== 子页面响应式 ========== */
@media (max-width: 900px) {
  .page-banner { padding-top: calc(64px + 40px); }
  .auth-page { padding-top: calc(64px + 40px); }

  .cart-wrapper { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-price { margin-left: auto; }

  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-img { height: 240px; order: -1; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }

  .product-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  /* 移动端H5优化：防止iOS输入框自动缩放 */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }

  /* 全局防止水平溢出 */
  .container,
  .section,
  .page-banner,
  .main-content,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 640px) {
  .page-banner { padding: calc(64px + 36px) 0 28px; }
  .page-banner h1 { font-size: 24px; }

  .auth-card { border-radius: var(--radius-lg); }
  .auth-header { padding: 28px 24px 0; }
  .auth-body { padding: 24px; }

  .values-grid { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img { height: 180px; }

  .filter-bar { gap: 10px; padding: 12px 14px; }
  .filter-tag { padding: 6px 14px; font-size: 13px; }
  .sort-select { width: 100%; margin-left: 0; }

  .cart-summary { position: static; }
  .cart-item-img { width: 72px; height: 72px; }
  .cart-item-info h3 { font-size: 14px; }

  .product-grid-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .contact-form-card,
  .contact-info-card { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; margin-bottom: 24px; }
}

/* ========== 手机端超小屏优化 (≤375px) ========== */
@media (max-width: 375px) {
  .container { padding: 0 12px; }

  .hero-content { padding: 40px 12px 80px; }
  .hero h1 { font-size: 22px; }
  .hero-desc { font-size: 14px; }

  .product-grid-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-card { flex: 0 0 155px; }
  .product-img { height: 130px; }
  .product-info { padding: 10px; }

  .cart-item { gap: 10px; padding: 12px; }
  .cart-item-img { width: 56px; height: 56px; }
  .cart-item-info h3 { font-size: 13px; }
  .cart-item-price { font-size: 14px; }

  .cart-qty button { width: 28px; height: 28px; }
  .cart-qty input { width: 34px; height: 28px; font-size: 13px; }

  .blog-grid { gap: 16px; }
  .blog-card-img { height: 160px; }

  .auth-card { margin: 0; }
  .auth-header { padding: 24px 16px 0; }
  .auth-body { padding: 20px 16px; }

  .footer-brand p { font-size: 13px; }
}

/* ========== 平板端增强 ========== */
@media (min-width: 641px) and (max-width: 1024px) {
  .product-grid-full {
    grid-template-columns: repeat(3, 1fr);
  }
  .cart-wrapper { gap: 24px; }
}

/* ========== 全设备触控优化 ========== */
@media (hover: none) and (pointer: coarse) {
  /* 确保所有按钮最小44x44px触控区 */
  .btn { min-height: 44px; min-width: 44px; }
  .btn-cart { padding: 10px 16px; }
  .topic-list a { padding: 14px 0; }
  .faq-question { padding: 20px 22px; }
  .menu-toggle { padding: 8px; }

  /* 增大表单输入区 */
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    font-size: 16px;
  }

  /* 增大可点击链接间距 */
  .mobile-bottom-nav a {
    padding: 10px 4px;
    min-height: 50px;
  }

  /* 增大面包屑间距 */
  .breadcrumb a { padding: 8px 4px; }

  /* 增大FAQ分类按钮 */
  .faq-cat-btn {
    padding: 12px 20px;
    min-height: 44px;
  }

  /* 增大产品缩略图可点击区 */
  .product-thumb { min-width: 56px; min-height: 56px; }

  /* 增大搜索输入框 */
  .search-box input,
  .search-hero input {
    min-height: 48px;
    font-size: 16px;
  }
}

/* ========== 安全区域适配 (iPhone X+ 刘海屏) ========== */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(64px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ========== 防止移动端横向溢出 ========== */
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  
  img { max-width: 100%; height: auto; }

  /* 确保表格不溢出 */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 确保iframe不溢出 */
  iframe {
    max-width: 100% !important;
  }

  /* wiki/文章内容区溢出保护 */
  .article-content img,
  .blog-content img {
    max-width: 100%;
    height: auto;
  }

  /* FAQ 响应式修复 */
  .faq-categories { gap: 8px; }
  .faq-cat-btn { font-size: 13px; padding: 8px 16px; }
}

/* ========== 子页面完整响应式增强 ========== */

/* 产品详情页移动端 */
@media (max-width: 900px) {
  .product-main {
    flex-direction: column;
  }
  .product-gallery {
    width: 100%;
  }
  .product-gallery .main-img {
    height: 280px;
  }
  .product-info-side {
    width: 100%;
  }
  .product-tabs { gap: 12px; }
}

@media (max-width: 640px) {
  .product-gallery .main-img { height: 240px; }
  .product-gallery .thumb-list { gap: 8px; }
  .product-thumb { width: 56px; height: 56px; }
  .product-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding-bottom: 8px; }
  .product-tab { font-size: 13px; padding: 8px 14px; white-space: nowrap; flex-shrink: 0; }
}

/* 关于我们页响应式 */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .story-img { height: 220px; order: -1; }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .value-card { padding: 20px; }
}

/* 博客/文章页移动端 */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-card-body { padding: 16px; }
  .blog-card-body h3 { font-size: 16px; }
}

/* 管理后台移动端适配 */
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    z-index: 1000;
    width: 280px;
    transition: left 0.3s ease;
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-main {
    margin-left: 0;
    width: 100%;
  }
  .admin-header {
    padding: 12px 16px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 24px; }
  
  /* 管理后台表格横向滚动 */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  /* 模态框移动端 */
  .modal-content {
    width: 95%;
    max-width: 95vw;
    padding: 20px;
    margin: 10px;
  }
}

/* ========== 打印样式 ========== */
@media print {
  .mobile-bottom-nav,
  .back-to-top,
  .menu-toggle,
  .social-links,
  .newsletter-section,
  .cta-banner {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
