/* Traditional ecommerce layout for review-friendly multi-page browsing. */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d7e0ec;
  --brand: #0b6b4f;
  --brand-dark: #064734;
  --brand-soft: #e8f5ef;
  --accent: #d9363e;
  --gold: #b7791f;
  --shadow: 0 8px 24px rgba(16, 24, 40, .08);
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.topbar { background: #f8fafc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.link-btn { border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; }
.link-btn:hover, .topbar a:hover { color: var(--brand); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-main { min-height: 92px; display: grid; grid-template-columns: 360px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.logo { display: flex; align-items: center; gap: 13px; min-width: 0; }
.logo-mark { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #16a085); border-radius: 10px; font-weight: 900; }
.logo strong { display: block; font-size: 22px; line-height: 1.2; white-space: nowrap; }
.logo span:last-child span { color: var(--muted); font-size: 13px; }
.search { display: grid; grid-template-columns: 1fr 98px; border: 2px solid var(--brand); border-radius: 4px; overflow: hidden; background: #fff; }
.search input { height: 44px; border: 0; outline: 0; padding: 0 14px; }
.search button { border: 0; color: #fff; background: var(--brand); cursor: pointer; font-weight: 700; }
.user-actions { display: flex; gap: 10px; }
.outline-btn, .primary-btn { min-height: 40px; padding: 0 14px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.outline-btn { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.primary-btn { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.nav { background: var(--brand); color: #fff; }
.nav-inner { display: flex; align-items: center; overflow-x: auto; }
.nav a { padding: 13px 24px; font-weight: 700; white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--brand-dark); }

.breadcrumb { padding: 16px 0 0; color: var(--muted); font-size: 13px; }
.hero { padding: 22px 0; background: linear-gradient(135deg, #083b2d, #0b6b4f 62%, #15a37d); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 16px; align-items: stretch; }
.category-panel, .hero-main, .notice-panel { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; }
.category-panel { padding: 15px; }
.category-panel h3, .notice-panel h3 { margin: 0 0 10px; font-size: 18px; }
.category-panel a { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.92); }
.hero-main { padding: 34px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.hero-main h1 { margin: 0 0 15px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.15; }
.hero-main p { margin: 0; max-width: 760px; color: rgba(255,255,255,.86); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 4px; background: #fff; color: var(--brand-dark); font-weight: 800; }
.hero-actions a.secondary { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
.notice-panel { padding: 15px; }
.notice-panel li { margin-bottom: 9px; color: rgba(255,255,255,.86); font-size: 14px; }

.section { padding: 28px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; border-bottom: 2px solid var(--brand); }
.section-head h2 { margin: 0; padding: 0 0 10px; font-size: 24px; }
.section-head p { margin: 0 0 10px; color: var(--muted); }
.more { margin-bottom: 10px; color: var(--brand); font-weight: 700; }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.side-panel, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.side-panel { padding: 14px; }
.side-panel h3 { margin: 0 0 12px; font-size: 18px; }
.side-panel a, .side-panel button { width: 100%; display: block; padding: 10px 0; border: 0; border-top: 1px solid #eef2f7; color: #344054; background: transparent; text-align: left; cursor: pointer; }
.side-panel a:hover, .side-panel button:hover { color: var(--brand); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.product-img { height: 172px; display: block; background: linear-gradient(145deg, #eaf3ef, #f7fafc); color: var(--brand); position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-img span { position: absolute; left: 12px; bottom: 12px; padding: 3px 8px; border-radius: 999px; color: var(--brand-dark); background: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.product-info { padding: 13px; }
.product-info h3 { margin: 0 0 8px; min-height: 45px; font-size: 16px; line-height: 1.4; }
.product-info p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.price { color: var(--accent); font-size: 20px; font-weight: 900; }
.meta { color: var(--muted); font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.small-btn { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-weight: 700; }
.small-btn.primary { border-color: var(--brand); color: #fff; background: var(--brand); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pagination a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #344054; font-weight: 700; }
.pagination a.active, .pagination a:hover { border-color: var(--brand); color: #fff; background: var(--brand); }

.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.store-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.store-card h3 { margin: 0 0 9px; font-size: 18px; }
.store-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 8px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 700; }

.info-list { display: grid; gap: 12px; }
.info-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.info-date { color: var(--brand); font-weight: 900; }
.info-row h3 { margin: 0 0 6px; font-size: 18px; }
.info-row p { margin: 0; color: var(--muted); font-size: 14px; }
.info-price { color: var(--accent); font-weight: 900; }

.detail-wrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 22px; }
.detail-img { min-height: 360px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(145deg, #eaf3ef, #fff); display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow); overflow: hidden; }
.detail-img img { width: 100%; height: 100%; min-height: 360px; display: block; object-fit: cover; }
.detail-main { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.detail-main h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; }
.detail-price { margin: 12px 0; padding: 14px; background: #fff2f0; border: 1px solid #ffd8d6; color: var(--accent); font-size: 28px; font-weight: 900; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table th, .spec-table td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 150px; background: #f8fafc; color: #344054; }
.tab-panel { margin-top: 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.tab-panel h2 { margin: 0 0 12px; font-size: 22px; }

.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(15, 23, 42, .58); }
.modal.active { display: flex; }
.modal-panel { width: min(430px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.modal-panel.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-body { display: grid; gap: 12px; padding: 18px; }
.field { display: grid; gap: 6px; }
.field label { color: #344054; font-size: 13px; font-weight: 700; }
.field input, .field select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; outline: 0; }
.cart-row, .order-row, .checkout-box, .empty-state, .user-summary { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.qty-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.icon-btn { min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 900; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-option { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.payment-code { justify-items: center; text-align: center; }
.payment-code img { width: min(280px, 86vw); padding: 12px; border: 1px solid var(--line); background: #fff; }
.floating-cart { position: fixed; right: 22px; bottom: 22px; z-index: 60; min-height: 48px; padding: 0 16px; border: 0; border-radius: 24px; color: #fff; background: var(--accent); box-shadow: 0 12px 36px rgba(217,54,62,.28); cursor: pointer; font-weight: 900; }
.floating-cart span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 7px; place-items: center; border-radius: 999px; color: var(--accent); background: #fff; }
.toast { position: fixed; right: 18px; bottom: 82px; z-index: 90; display: none; padding: 12px 14px; color: #fff; background: #101828; border-radius: 6px; box-shadow: var(--shadow); }
.toast.active { display: block; }

.footer { margin-top: 46px; padding: 30px 0; color: #cbd5e1; background: #101828; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer strong { display: block; margin-bottom: 6px; color: #fff; font-size: 16px; }
.icp { color: #fff; }

@media (max-width: 980px) {
  .header-main, .hero-grid, .layout, .detail-wrap, .footer-grid { grid-template-columns: 1fr; }
  .product-grid, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1200px); }
  .header-main { gap: 14px; padding: 14px 0; }
  .logo strong { font-size: 18px; }
  .search { grid-template-columns: 1fr 72px; }
  .product-grid, .store-grid, .payment-options { grid-template-columns: 1fr; }
  .hero-main { padding: 22px; }
  .hero-main h1 { font-size: 32px; }
}
