/* ===== 基础变量 ===== */
:root {
  --primary: #8a5a2b;
  --primary-dark: #6f4722;
  --accent: #2e7d32;
  --text: #33291c;
  --text-muted: #857a6b;
  --bg: #ffffff;
  --bg-soft: #f7f2ea;
  --border: #e8dfd2;
  --shadow: 0 4px 24px rgba(43, 33, 24, 0.08);
  --radius: 12px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  background: var(--bg-soft);
}

.main-image img,
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 280px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: var(--border);
}

.btn-login {
  padding: 8px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(138, 90, 43, 0.35);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(138, 90, 43, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f4ece0 0%, #e6d5bd 50%, #f6ead4 100%);
  padding: 80px 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-card img {
  border-radius: 16px;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-icon {
  width: 44px;
  height: 44px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ===== 区块标题 ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 分类 ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
  border: 2px solid transparent;
}

.category-card:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== 商品卡片 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-soft);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-badge.sale {
  background: #ef4444;
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-rating {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
}

/* ===== 特色服务 ===== */
.features {
  background: var(--bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
.footer {
  background: #2b2118;
  color: #a89a8a;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #3d3226;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* 首页底部居中布局（版权 + ICP 备案链接，两行居中） */
.footer-bottom-center {
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.footer-bottom-center p {
  margin: 0;
}

.footer-bottom a {
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 20px 0;
  background: var(--bg-soft);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ===== 商品列表页 ===== */
.page-header {
  padding: 48px 0 32px;
  background: var(--bg-soft);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
}

.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 48px 0 80px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.filter-group {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-list {
  list-style: none;
}

.filter-list li {
  margin-bottom: 10px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-muted);
}

.filter-list label:hover {
  color: var(--text);
}

.filter-list input {
  accent-color: var(--primary);
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.products-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
}

.products-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== 商品详情页 ===== */
.product-detail {
  padding: 48px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 96px;
}

.main-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 16px;
  aspect-ratio: 1;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 12px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: var(--primary);
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-meta .rating {
  color: var(--accent);
  font-weight: 600;
}

.product-meta .reviews {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.product-meta .sku {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-price .current {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-price .original {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-price .discount {
  background: #fef2f2;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.option-group {
  margin-bottom: 24px;
}

.option-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.color-options,
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  outline: 2px solid var(--border);
  outline-offset: 2px;
}

.color-btn.active,
.color-btn:hover {
  outline-color: var(--primary);
  transform: scale(1.1);
}

.size-btn {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn.active,
.size-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f4ece0;
}

.quantity-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-soft);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.quantity-control button:hover {
  background: var(--border);
}

.quantity-control input {
  width: 56px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-actions .btn {
  flex: 1;
  padding: 16px 32px;
}

.product-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.product-features-list li {
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features-list li::before {
  content: "✓";
  color: #22c55e;
  font-weight: 700;
}

/* ===== 详情 Tab ===== */
.product-tabs {
  margin-top: 64px;
}

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 16px 32px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: 14px 0;
  font-size: 0.9rem;
}

.spec-table td:first-child {
  color: var(--text-muted);
  width: 160px;
}

/* ===== 关于 / 联系页 ===== */
.about-hero {
  background: linear-gradient(135deg, #f4ece0, #f6ead4);
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-content {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-grid h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-grid p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 64px 0;
  background: var(--bg-soft);
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: #f4ece0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== 登录弹框 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(43, 33, 24, 0.2);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.login-remember input {
  accent-color: var(--primary);
}

.login-forgot {
  color: var(--primary);
  font-weight: 500;
}

.login-forgot:hover {
  text-decoration: underline;
}

.login-register-tip {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-register-tip a {
  color: var(--primary);
  font-weight: 600;
}

.login-register-tip a:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-inner,
  .product-detail-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .categories,
  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .products-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .categories,
  .products-grid,
  .features-grid,
  .products-list-grid,
  .footer-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 90, 43, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(138, 90, 43, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 页面加载动画 */
.header {
  animation: slideDown 0.6s ease forwards;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-visual {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-tag {
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero h1 {
  animation: fadeInUp 0.7s ease 0.25s forwards;
  opacity: 0;
}

.hero p {
  animation: fadeInUp 0.7s ease 0.4s forwards;
  opacity: 0;
}

.hero-actions {
  animation: fadeInUp 0.7s ease 0.55s forwards;
  opacity: 0;
}

.hero-card {
  animation: float 4s ease-in-out infinite;
}

.hero-float {
  animation: floatBadge 3s ease-in-out infinite;
}

/* 滚动入场 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

.products-list-grid .product-card:nth-child(1) { transition-delay: 0.05s; }
.products-list-grid .product-card:nth-child(2) { transition-delay: 0.1s; }
.products-list-grid .product-card:nth-child(3) { transition-delay: 0.15s; }
.products-list-grid .product-card:nth-child(4) { transition-delay: 0.2s; }
.products-list-grid .product-card:nth-child(5) { transition-delay: 0.25s; }
.products-list-grid .product-card:nth-child(6) { transition-delay: 0.3s; }
.products-list-grid .product-card:nth-child(7) { transition-delay: 0.35s; }
.products-list-grid .product-card:nth-child(8) { transition-delay: 0.4s; }
.products-list-grid .product-card:nth-child(9) { transition-delay: 0.45s; }

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 分类卡片图标弹跳 */
.category-card:hover .category-icon {
  animation: iconBounce 0.5s ease;
}

.category-icon {
  transition: transform 0.3s ease;
}

/* 按钮交互 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary:hover {
  animation: pulseGlow 2s ease infinite;
}

/* 购物车角标弹出 */
.cart-badge.pop {
  animation: cartPop 0.4s ease;
}

/* 图片加载 */
.product-image img,
.main-image img,
.hero-card img,
.about-grid img {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.product-image img:not(.loaded),
.main-image img:not(.loaded),
.hero-card img:not(.loaded),
.about-grid img:not(.loaded) {
  opacity: 0;
}

.img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1f5f9 25%, #e8dfd2 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.product-image,
.main-image,
.hero-card {
  position: relative;
}

/* Tab 面板切换 */
.tab-panel {
  animation: none;
}

.tab-panel.active {
  animation: fadeIn 0.35s ease;
}

/* 特色图标悬停 */
.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.feature-icon {
  transition: transform 0.3s ease;
}

/* 统计数字 */
.stat-item h3 {
  transition: color 0.3s ease;
}

.stat-item:hover h3 {
  color: var(--accent);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* 导航链接下划线 */
.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* 滚动时导航栏阴影 */
.header.scrolled {
  box-shadow: 0 4px 20px rgba(43, 33, 24, 0.08);
}

/* 缩略图变体色调 */
.thumbnail img.variant-2 { filter: hue-rotate(60deg); }
.thumbnail img.variant-3 { filter: hue-rotate(120deg); }
.thumbnail img.variant-4 { filter: hue-rotate(200deg); }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ===== 顶部运营公告条 ===== */
.topbar {
  background: linear-gradient(90deg, #2b2118, #6f4722 55%, #b45309);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
}

.topbar-viewport {
  flex: 1;
  height: 38px;
  overflow: hidden;
  position: relative;
}

.topbar-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.topbar-item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.topbar-item strong {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.topbar-link {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
}

.topbar-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== 限时秒杀 ===== */
.flash {
  background: radial-gradient(120% 120% at 10% 0%, #3d3226 0%, #2b2118 60%);
  color: #fff;
  padding: 64px 0;
}

.flash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.flash-head h2 {
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-head p {
  color: #a89a8a;
  font-size: 0.9rem;
  margin-top: 6px;
}

.flash-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #d6cab9;
}

.flash-timer b {
  min-width: 44px;
  padding: 8px 6px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8b04b, #d97706);
  color: #2b2118;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flash-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.25s;
}

.flash-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.flash-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 14px;
}

.flash-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flash-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.flash-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.flash-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.flash-price em {
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.flash-price s {
  color: #857a6b;
  font-size: 0.8rem;
}

.flash-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 6px;
}

.flash-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 1.2s ease;
}

.flash-stock {
  font-size: 0.75rem;
  color: #a89a8a;
  margin-bottom: 14px;
}

.flash-card .btn {
  width: 100%;
  background: linear-gradient(90deg, #d97706, #b45309);
  color: #fff;
}

/* ===== 生活提案（场景套装） ===== */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bundle-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.bundle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.bundle-scene {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.bundle-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.bundle-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.bundle-thumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.bundle-thumbs span {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}

.bundle-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.bundle-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.bundle-foot {
  margin-top: auto;
}

.bundle-save {
  display: inline-block;
  background: #f6ead4;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.bundle-price strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.bundle-price s {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 优品实验室 ===== */
.lab {
  background: var(--bg-soft);
}

.lab-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.lab-switch button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lab-switch button.active,
.lab-switch button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lab-report {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.lab-no {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.lab-report h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.lab-verdict {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lab-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.lab-meta div {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px;
}

.lab-meta span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.lab-meta b {
  font-size: 0.9rem;
}

.lab-total {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.lab-total em {
  font-style: normal;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.lab-total small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.score-row {
  margin-bottom: 14px;
}

.score-row header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.score-row header b {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.score-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.score-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b08350, #8a5a2b);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: #faf5eb;
  border-radius: 0 12px 12px 0;
  font-size: 0.85rem;
  color: #92400e;
}

/* ===== 选品罗盘 ===== */
.compass {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

.compass-panel {
  background: linear-gradient(160deg, #6f4722, #2b2118);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
}

.compass-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.compass-panel > p {
  font-size: 0.83rem;
  color: #d9c3a5;
  margin-bottom: 22px;
}

.compass-step {
  margin-bottom: 18px;
}

.compass-step span {
  display: block;
  font-size: 0.75rem;
  color: #c09a6a;
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #e8dfd2;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: #fff;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #2b2118;
  font-weight: 700;
}

.compass-panel .btn {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  color: var(--primary);
}

.compass-result {
  min-height: 260px;
}

.compass-empty {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.compass-empty div {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.compass-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.compass-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  animation: scaleIn 0.4s ease both;
}

.compass-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-soft);
}

.compass-card .cc-body {
  padding: 16px;
}

.compass-match {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.compass-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.compass-reason {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 34px;
}

.compass-card .price-current {
  font-size: 1.05rem;
}

/* ===== 口碑墙 ===== */
.wall {
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wall-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: wallScroll 42s linear infinite;
}

.wall:hover .wall-track {
  animation-play-state: paused;
}

@keyframes wallScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  flex-shrink: 0;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b08350, #8a5a2b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.review-head b {
  display: block;
  font-size: 0.9rem;
}

.review-head span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.review-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--primary);
  background: #f4ece0;
  padding: 3px 9px;
  border-radius: 999px;
}

/* ===== 会员俱乐部 ===== */
.club-hero {
  background: radial-gradient(100% 140% at 0% 0%, #6f4722 0%, #2b2118 65%);
  color: #fff;
  padding: 72px 0;
}

.club-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.club-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 12px 0 14px;
}

.club-hero p {
  color: #d6cab9;
  max-width: 520px;
}

.club-card {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.club-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-weight: 700;
}

.club-card-no {
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.growth-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.growth-bar i {
  display: block;
  height: 100%;
  width: 62%;
  background: #fff;
  border-radius: 999px;
}

.club-card small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  background: #fff;
  transition: all 0.25s;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tier-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.tier-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.tier-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.tier-need {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.tier-list {
  list-style: none;
  font-size: 0.86rem;
}

.tier-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.tier-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.tier-list li.off {
  opacity: 0.45;
}

.tier-list li.off::before {
  content: '—';
  color: var(--text-muted);
}

/* 签到 */
.signin {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.signin-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.day {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  background: var(--bg-soft);
}

.day span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.day b {
  font-size: 0.85rem;
  color: var(--accent);
}

.day.done {
  background: #f4ece0;
  border-color: var(--primary);
}

.day.done b::after {
  content: ' ✓';
  color: var(--primary);
}

.day.bonus {
  background: #faf5eb;
  border-color: var(--accent);
}

.signin-side {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.signin-side em {
  font-style: normal;
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.signin-side p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* 优惠券 */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.coupon {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  position: relative;
}

.coupon::before,
.coupon::after {
  content: '';
  position: absolute;
  left: 108px;
  width: 12px;
  height: 12px;
  background: var(--bg-soft);
  border-radius: 50%;
}

.coupon::before { top: -6px; }
.coupon::after { bottom: -6px; }

.coupon-left {
  width: 108px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #8a5a2b, #5d3c1e);
  color: #fff;
  padding: 18px 10px;
  text-align: center;
  border-right: 1px dashed rgba(255, 255, 255, 0.5);
}

.coupon-left em {
  font-style: normal;
  font-size: 1.7rem;
  font-weight: 800;
}

.coupon-left em i {
  font-style: normal;
  font-size: 0.9rem;
}

.coupon-left span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}

.coupon-body {
  padding: 16px;
  flex: 1;
}

.coupon-body b {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.coupon-body span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.coupon-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.coupon-btn:hover {
  background: #1e6b24;
}

.coupon.claimed {
  opacity: 0.6;
}

.coupon.claimed .coupon-left {
  background: #857a6b;
}

.coupon.claimed .coupon-btn {
  background: var(--border);
  color: var(--text-muted);
  cursor: default;
}

/* 积分兑换 */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gift-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  transition: all 0.25s;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gift-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.gift-card b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.gift-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.gift-cost {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ===== 列表页活动条 ===== */
.promo-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #f4ece0, #faf5eb);
  border: 1px dashed var(--primary);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 24px 0 8px;
}

.promo-strip > b {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-step {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.promo-step em {
  font-style: normal;
  font-weight: 800;
  color: #b45309;
}

.promo-strip a {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== 详情页实验室摘要 ===== */
.detail-lab {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}

.detail-lab em {
  font-style: normal;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.detail-lab p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-lab b {
  font-size: 0.9rem;
}

.detail-lab a {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* 浅色底上的 chip 变体 */
.chips-light .chip {
  border-color: var(--border);
  background: #fff;
  color: var(--text-muted);
}

.chips-light .chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chips-light .chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* ===== 商品卡上的实验室分 ===== */
.card-lab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6f4722;
  background: #f4ece0;
  border: 1px solid #d9c3a5;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.card-lab i {
  font-style: normal;
  opacity: 0.7;
  font-weight: 600;
}

.card-notfor {
  font-size: 0.72rem;
  color: #92400e;
  background: #faf5eb;
  border-radius: 8px;
  padding: 6px 9px;
  margin: 8px 0 10px;
  line-height: 1.55;
}

/* ===== 列表页筛选交互 ===== */
.filter-list label {
  cursor: pointer;
  user-select: none;
}

.filter-list li.is-on > label {
  color: var(--primary);
  font-weight: 700;
}

.filter-reset {
  width: 100%;
  border: 1px dashed var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.products-empty {
  border: 2px dashed var(--border);
  border-radius: 18px;
  padding: 70px 24px;
  text-align: center;
  color: var(--text-muted);
}

.products-empty strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

/* ===== 淘汰名单 ===== */
.reject {
  background: #2b2118;
  color: #fff;
  padding: 66px 0;
}

.reject .section-header h2 {
  color: #fff;
}

.reject .section-header p {
  color: #a89a8a;
}

.reject-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.reject-filter button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #d6cab9;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.reject-filter button.active,
.reject-filter button:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.reject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reject-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #ef4444;
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
  animation: fadeInUp 0.4s ease both;
}

.reject-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #a89a8a;
  margin-bottom: 10px;
}

.reject-top b {
  color: #fca5a5;
  letter-spacing: 1px;
}

.reject-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.reject-card p {
  font-size: 0.83rem;
  color: #d6cab9;
  line-height: 1.75;
  margin-bottom: 14px;
}

.reject-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.reject-metric {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.reject-foot span {
  color: #857a6b;
}

.reject-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.8rem;
  color: #857a6b;
}

/* ===== 选品六道关 ===== */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gate {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: all 0.25s;
}

.gate:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.gate-no {
  font-size: 2.1rem;
  font-weight: 800;
  color: #e6d5bd;
  line-height: 1;
  margin-bottom: 6px;
}

.gate h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.gate p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.gate-out {
  font-size: 0.74rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ===== 运营日历 ===== */
.calendar {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.cal-row {
  display: grid;
  grid-template-columns: 130px 150px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.cal-row:last-child {
  border-bottom: none;
}

.cal-row:hover {
  background: var(--bg-soft);
}

.cal-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  justify-self: start;
}

.cal-when {
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.cal-body b {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.cal-body span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cal-row > a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== 不卖清单 ===== */
.never-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.never-card {
  border: 1px dashed #fca5a5;
  background: #fff7f7;
  border-radius: 16px;
  padding: 22px;
}

.never-card b {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 8px;
  padding-left: 26px;
  position: relative;
}

.never-card b::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 0.7rem;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
}

.never-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== FAQ 手风琴 ===== */
.faq-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: start;
}

.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 90px;
}

.faq-nav button {
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-nav button.active,
.faq-nav button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.faq-list {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  padding: 18px 22px;
  cursor: pointer;
}

.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 320px;
}

.faq-a p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0 22px 18px;
}

/* ===== 线下体验店 ===== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.store-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
  transition: all 0.25s;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.store-city {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #8a5a2b, #6f4722);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.store-card b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.store-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.store-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #b45309;
  background: #faf5eb;
  border-radius: 8px;
  padding: 7px 10px;
}

/* ===== 品牌送检通道 ===== */
.submit-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(150deg, #2b2118, #6f4722);
  color: #fff;
  border-radius: 22px;
  padding: 40px;
}

.submit-lab h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.submit-lab > div > p {
  color: #d6cab9;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.submit-rules {
  list-style: none;
  font-size: 0.85rem;
}

.submit-rules li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: #e8dfd2;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.submit-rules li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #fbbf24;
  font-weight: 700;
}

.submit-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 26px;
}

.submit-form .form-group label {
  color: #d6cab9;
}

.submit-form input,
.submit-form select,
.submit-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.submit-form input::placeholder,
.submit-form textarea::placeholder {
  color: #a89a8a;
}

.submit-form option {
  color: #2b2118;
}

/* ===== 详情页：不建议购买 / 场景搭配 / 问答 ===== */
.detail-notfor {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #faf5eb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

.detail-notfor em {
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.2;
}

.detail-notfor b {
  display: block;
  font-size: 0.88rem;
  color: #92400e;
  margin-bottom: 3px;
}

.detail-notfor p {
  font-size: 0.82rem;
  color: #a16207;
  line-height: 1.65;
}

.qa-list {
  display: grid;
  gap: 14px;
}

.qa-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  background: #fff;
}

.qa-item b {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.qa-item b::before {
  content: 'Q';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.qa-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
}

.qa-item p::before {
  content: 'A';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.qa-by {
  display: inline-block;
  margin-top: 10px;
  margin-left: 24px;
  font-size: 0.7rem;
  color: var(--primary);
  background: #f4ece0;
  padding: 3px 9px;
  border-radius: 999px;
}

/* 无 Q/A 前缀的变体：用于试用官报告摘录 */
.qa-list.qa-plain .qa-item b,
.qa-list.qa-plain .qa-item p {
  padding-left: 0;
}

.qa-list.qa-plain .qa-item b::before,
.qa-list.qa-plain .qa-item p::before {
  content: none;
}

.qa-list.qa-plain .qa-by {
  margin-left: 0;
}

/* ===== 价格诚信档案 ===== */
.price-history {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  background: var(--bg-soft);
}

.price-history > b {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}

.ph-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 80px;
}

.ph-bars div {
  flex: 1;
  background: linear-gradient(180deg, #c09a6a, #8a5a2b);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 12px;
}

.ph-bars div span {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ph-bars div i {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-style: normal;
  font-size: 0.66rem;
  color: var(--text-muted);
}

.ph-foot {
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== 新板块响应式 ===== */
@media (max-width: 1024px) {
  .reject-grid,
  .pipeline,
  .never-grid,
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-wrap,
  .submit-lab {
    grid-template-columns: 1fr;
  }

  .faq-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cal-row {
    grid-template-columns: 90px 1fr;
    row-gap: 8px;
  }

  .cal-body,
  .cal-row > a {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .reject-grid,
  .pipeline,
  .never-grid,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .submit-lab {
    padding: 26px 20px;
  }
}

@media (max-width: 1024px) {
  .flash-grid,
  .bundle-grid,
  .coupon-grid,
  .gift-grid,
  .tier-grid,
  .compass-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-report,
  .compass,
  .signin,
  .club-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .flash-grid,
  .bundle-grid,
  .coupon-grid,
  .gift-grid,
  .tier-grid,
  .compass-cards,
  .lab-meta {
    grid-template-columns: 1fr;
  }

  .signin-days {
    grid-template-columns: repeat(4, 1fr);
  }

  .topbar-close { display: none; }
}
