/* ============================================================
   LIVORA HOME — 外贸家纺 B2C 独立站样式
   ============================================================ */

:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --ink: #26231f;
  --muted: #7c756c;
  --line: #e9e3da;
  --accent: #98795c;
  --accent-dark: #785c43;
  --soft: #f2ede6;
  --dark: #302b26;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 34px rgba(48, 43, 38, 0.08);
  --radius: 4px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

.container { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.container-narrow { width: min(920px, calc(100% - 64px)); margin: 0 auto; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: all .25s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 11px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 5px; color: var(--accent-dark); }
.text-link:hover { color: var(--ink); }

/* ---------- 顶部公告 & 导航 ---------- */
.announcement {
  background: var(--dark);
  color: #f4eee6;
  text-align: center;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.announcement span { margin: 0 12px; opacity: .55; }

.site-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(10px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main { font-family: var(--serif); font-size: 27px; letter-spacing: .09em; }
.logo-sub { font-size: 9px; letter-spacing: .46em; color: var(--accent); margin-top: 5px; padding-left: 2px; }
/* 手机端把店铺评分/快速发货放 logo 旁，桌面端仍显示在商品页店铺栏 */
.logo-rating { display: none; white-space: nowrap; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .25s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
/* 手机侧栏分类（桌面端隐藏，抽屉内显示） */
.nav-categories { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: 12px; }
.icon-btn {
  border: 0; background: transparent; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; color: var(--ink);
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: -5px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 20px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.hamburger { display: none; }

/* ---------- 首页轮播 ---------- */
.hero { position: relative; height: min(620px, 72vh); min-height: 470px; overflow: hidden; background: #ddd5cb; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,21,18,.62) 0%, rgba(25,21,18,.32) 45%, rgba(25,21,18,0) 78%); }
.hero-content { position: absolute; z-index: 2; top: 50%; left: 0; right: 0; margin: 0 auto; transform: translateY(-50%); color: #fff; max-width: 590px; }
.hero-eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .9; margin-bottom: 20px; }
.hero-title { font-family: var(--serif); font-size: clamp(42px, 5.2vw, 72px); line-height: 1.08; margin-bottom: 22px; }
.hero-text { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.88); margin-bottom: 34px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.hero-arrow {
  pointer-events: auto; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.12);
  color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.hero-arrow:hover { background: #fff; color: var(--ink); }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 9px; }
.hero-dot { width: 26px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.45); transition: .25s; }
.hero-dot.active { background: #fff; width: 42px; }

/* ---------- 服务承诺条 ---------- */
.trust-strip { background: var(--soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; justify-content: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 27px; height: 27px; stroke: var(--accent); stroke-width: 1.3; flex-shrink: 0; }
.trust-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.trust-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- 通用区块标题 ---------- */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 15px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head-row .section-title { margin-top: 10px; }

/* ---------- 分类卡片 ---------- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.category-card { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #e5ded4; display: block; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category-card:hover img { transform: scale(1.07); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%); }
.category-card-body { position: absolute; z-index: 2; left: 26px; bottom: 26px; color: #fff; }
.category-card-body h3 { font-family: var(--serif); font-size: 27px; margin-bottom: 8px; }
.category-card-body span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.8); padding-bottom: 4px; }

/* ---------- 商品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.product-card { position: relative; }
.product-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #eee9e2; }
.product-media > a { display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 2px; }
.badge.sale { background: var(--accent-dark); color: #fff; }
.quick-add {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(255,255,255,.96); border: 0; height: 42px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: .25s;
}
.product-card:hover .quick-add, .quick-add:focus { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--dark); color: #fff; }
/* 商品收藏按钮 */
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,26,22,.12); transition: color .2s, transform .15s;
}
.fav-btn:hover { transform: scale(1.08); color: #c0392b; }
.fav-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.fav-btn.is-fav { color: #c0392b; }
.fav-btn.is-fav svg { fill: #c0392b; }
.fav-count { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 20px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.fav-count[hidden] { display: none; }
/* 收藏夹页 */
.wishlist-toolbar { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 22px; }
.wishlist-empty { grid-column: 1 / -1; }
.wishlist-empty svg { width: 48px; height: 48px; stroke-width: 1.2; margin-bottom: 10px; }
.pd-fav { border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.pd-fav svg { width: 17px; height: 17px; stroke-width: 1.6; }
.pd-fav:hover { border-color: #c0392b; color: #c0392b; }
.pd-fav.is-fav { color: #c0392b; border-color: #e8b3ab; background: #fff7f5; }
.pd-fav.is-fav svg { fill: #c0392b; }
.product-info { padding: 15px 2px 0; }
.product-cat { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.4; }
.product-name:hover { color: var(--accent-dark); }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: 7px; }
.price { font-size: 15px; font-weight: 700; }
.old-price { font-size: 13px; color: #a49b90; text-decoration: line-through; }
.rating { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.stars { color: #b58b4d; letter-spacing: 2px; }
.color-dots { display: flex; gap: 5px; margin-top: 10px; }
.color-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* ---------- 促销横幅 ---------- */
.promo { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--soft); overflow: hidden; }
.promo-media { position: relative; min-height: 460px; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px clamp(34px, 6vw, 92px); }
.promo-content h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); line-height: 1.14; margin: 16px 0; }
.promo-content p { color: var(--muted); font-size: 16px; max-width: 420px; margin-bottom: 28px; }

/* ---------- 特色服务 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { text-align: center; padding: 20px 16px; }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.3; }
.feature h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ---------- 评价 ---------- */
.testimonials { background: var(--soft); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; padding: 36px 32px; border: 1px solid var(--line); }
.testimonial .stars { font-size: 15px; }
.testimonial p { font-family: var(--serif); font-size: 18px; line-height: 1.7; margin: 18px 0 24px; }
.testimonial-author { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.testimonial-loc { font-size: 12px; color: var(--muted); }

/* ---------- 图片墙 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { position: relative; aspect-ratio: 1; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; opacity: 0; transition: .25s; font-size: 13px; letter-spacing: .12em; }
.gallery-grid a:hover span { opacity: 1; }

/* ---------- 邮件订阅 ---------- */
.newsletter { background: var(--dark); color: #fff; text-align: center; padding: 72px 20px; }
.newsletter h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.newsletter p { color: rgba(255,255,255,.7); max-width: 540px; margin: 0 auto 28px; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; padding: 0 18px; height: 48px; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form input:focus { border-color: #fff; }
.form-note { font-size: 12px; margin-top: 12px; min-height: 18px; color: #d8c5a9; }

/* ---------- 页脚 ---------- */
.site-footer { background: #f7f3ed; border-top: 1px solid var(--line); padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr; gap: 40px; }
.footer-brand .logo-main { font-size: 25px; }
.footer-brand p { margin: 20px 0; color: var(--muted); font-size: 13px; max-width: 270px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; }
.socials a:hover { background: var(--dark); color: #fff; }
.socials svg { width: 15px; height: 15px; }
.footer-col h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.payment-row { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-badge { border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 5px 8px; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: #5c5650; }

/* ---------- 购物车抽屉 & 搜索层 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(24,20,17,.45); z-index: 110; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; z-index: 120; transform: translateX(105%); transition: transform .35s ease, visibility .35s;
  visibility: hidden;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { padding: 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-family: var(--serif); font-size: 24px; }
.close-btn { border: 0; background: transparent; font-size: 25px; line-height: 1; color: var(--muted); padding: 4px; }
.close-btn:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.drawer-empty svg { width: 44px; height: 44px; margin: 0 auto 18px; stroke: var(--accent); }
.drawer-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-item img { width: 78px; height: 96px; object-fit: cover; background: var(--soft); flex-shrink: 0; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.drawer-item-meta { font-size: 12px; color: var(--muted); margin: 3px 0; }
.drawer-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.drawer-item-bottom strong { font-size: 14px; }
.remove-link { border: 0; background: transparent; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; }
.remove-link:hover { color: #b34b3f; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.subtotal-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.drawer-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

.search-overlay { position: fixed; inset: 0; z-index: 130; background: #fff; overflow-y: auto; transform: translateY(-105%); transition: transform .35s ease; }
.search-overlay.open { transform: translateY(0); }
.search-panel { width: min(1000px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0 60px; }
.search-top { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); }
.search-top > svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--ink); }
.search-top input { flex: 1; min-width: 0; border: 0; outline: none; font-family: var(--serif); font-size: 30px; padding: 14px 0; background: transparent; }
.search-top input::placeholder { color: #b8b0a6; }
.search-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.search-hint { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- 通用内页 ---------- */
.page-head { padding: 54px 0 40px; border-bottom: 1px solid var(--line); background: var(--soft); }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { margin: 0 8px; opacity: .5; }
.page-title { font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); }
.page-desc { color: var(--muted); margin-top: 10px; max-width: 620px; }

/* ---------- 分类页 ---------- */
.collection-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; padding: 54px 0 90px; }
.filters { position: sticky; top: 100px; }
.filter-group { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-group h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.filter-option input { accent-color: var(--accent); width: 15px; height: 15px; }
.filter-option:hover { color: var(--ink); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; min-width: 0; border: 1px solid var(--line); background: #fff; padding: 9px 10px; outline: none; font-size: 13px; }
.price-inputs input:focus { border-color: var(--accent); }
.price-inputs span { color: var(--muted); }
.clear-filters { border: 0; background: transparent; text-decoration: underline; font-size: 12px; color: var(--accent-dark); padding: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.result-count { font-size: 13px; color: var(--muted); }
.sort-select { border: 1px solid var(--line); background: #fff; padding: 9px 34px 9px 12px; font-size: 13px; outline: none; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
.no-results { grid-column: 1/-1; text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------- 产品详情页 ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; padding: 54px 0 80px; align-items: start; }
.gallery-main { position: relative; background: #eee9e2; aspect-ratio: 4/4.6; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 82px; height: 96px; padding: 0; border: 1px solid transparent; background: #eee9e2; overflow: hidden; }
.gallery-thumb.active { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.detail-title { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.2; margin: 10px 0 12px; }
.detail-rating { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; }
.detail-price .price { font-size: 27px; }
.detail-price .old-price { font-size: 18px; }
.detail-desc { color: var(--muted); line-height: 1.8; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.option-block { margin-top: 24px; }
.option-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 11px; }
.option-label span { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid var(--line); padding: 0; transition: .2s; }
.swatch.active { outline: 2px solid var(--ink); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { border: 1px solid var(--line); background: #fff; padding: 9px 17px; font-size: 13px; }
.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.purchase-row { display: flex; gap: 12px; margin-top: 30px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.qty-control button { width: 40px; height: 48px; border: 0; background: transparent; font-size: 18px; color: var(--muted); }
.qty-control button:hover { color: var(--ink); }
.qty-control input { width: 40px; height: 48px; border: 0; text-align: center; outline: none; background: transparent; }
.purchase-row .btn { flex: 1; }
.detail-meta { margin-top: 26px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.detail-meta strong { color: var(--ink); font-weight: 600; }
.accordion { margin-top: 34px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; text-align: left; border: 0; background: transparent; padding: 19px 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.acc-head::after { content: "+"; font-size: 18px; font-weight: 400; }
.acc-item.open .acc-head::after { content: "−"; }
.acc-body { display: none; padding: 0 0 20px; color: var(--muted); font-size: 14px; }
.acc-item.open .acc-body { display: block; }
.acc-body ul { margin: 0; padding-left: 20px; }

/* ---------- 购物车页 ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 46px; padding: 54px 0 90px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-product { display: flex; gap: 16px; align-items: center; }
.cart-product img { width: 92px; height: 112px; object-fit: cover; background: var(--soft); }
.cart-product-name { font-weight: 600; font-size: 14px; }
.cart-product-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.qty-small { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.qty-small button { width: 30px; height: 34px; border: 0; background: transparent; color: var(--muted); }
.qty-small button:hover { color: var(--ink); }
.qty-small input { width: 34px; height: 34px; text-align: center; border: 0; outline: none; background: transparent; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.cart-remove:hover { color: #b34b3f; }
.summary-card { background: #fff; border: 1px solid var(--line); padding: 28px; position: sticky; top: 100px; }
.summary-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 22px; }
.summary-line { display: flex; justify-content: space-between; padding: 11px 0; font-size: 14px; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; font-size: 17px; font-weight: 700; }
.summary-line#sumAutoRow { color: #2e7d52; }
.checkout-auto-discount { display:flex; justify-content:space-between; align-items:center; background:#eef8f1; border:1px solid #cfe8d7; color:#2e7d52; padding:10px 12px; margin-bottom:12px; font-size:13px; border-radius:4px; }
.checkout-auto-discount strong { font-size:14px; }
.coupon-row { display: flex; border: 1px solid var(--line); margin: 18px 0 6px; }
.coupon-row input { flex: 1; min-width: 0; border: 0; outline: none; padding: 11px 12px; background: transparent; font-size: 13px; }
.coupon-row button { border: 0; background: var(--dark); color: #fff; padding: 0 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cart-empty { text-align: center; padding: 90px 20px; }
.cart-empty svg { width: 52px; height: 52px; stroke: var(--accent); stroke-width: 1.3; margin: 0 auto 24px; }
.cart-empty h2 { font-family: var(--serif); font-size: 32px; margin-bottom: 12px; }
.cart-empty p { color: var(--muted); margin-bottom: 26px; }

/* ---------- 关于 / 联系 ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 80px 0; }
.story-grid img { width: 100%; height: 520px; object-fit: cover; }
.story-copy h2 { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 48px); line-height: 1.2; margin-bottom: 20px; }
.story-copy p { color: var(--muted); margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 26px; }
.stat-num { font-family: var(--serif); font-size: 34px; color: var(--accent-dark); }
.stat-label { font-size: 12px; color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--line); padding: 34px 28px; }
.value-card h3 { font-family: var(--serif); font-size: 22px; margin: 16px 0 10px; }
.value-card p { font-size: 13px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; padding: 60px 0 90px; align-items: start; }
.contact-form { background: #fff; padding: 38px; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fdfbf8; padding: 12px 14px; outline: none; font-size: 14px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.info-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.info-card:first-child { padding-top: 0; }
.info-card h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 14px; }

/* ---------- 结算弹窗 ---------- */
.checkout-overlay { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: .3s; }
.checkout-overlay.open { opacity: 1; visibility: visible; }
.checkout-modal { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; padding: 38px; border-radius: 4px; box-shadow: var(--shadow); }
.checkout-modal .close-btn { position: absolute; top: 14px; right: 18px; }
/* 结算账户区：登录/注册 */
.checkout-account { border: 1px solid var(--line); background: #fdfbf8; padding: 16px 18px; margin-bottom: 20px; }
.checkout-account .ca-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.checkout-account .ca-tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 4px; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--muted); cursor: pointer; }
.checkout-account .ca-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.checkout-account .field { margin-bottom: 12px; }
.checkout-account .field label { font-size: 11px; }
.checkout-account .field input { padding: 10px 12px; font-size: 13px; }
.checkout-account .form-note { margin-top: 6px; min-height: 0; color: #b13b2e; }
.checkout-account .ca-guest { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.checkout-account.signed { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-account .ca-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.checkout-account .ca-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.checkout-account .ca-title { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-account .ca-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.checkout-account .btn-ghost { white-space: nowrap; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--dark); color: #fff; padding: 13px 24px; border-radius: 3px;
  font-size: 13px; z-index: 200; opacity: 0; visibility: hidden; transition: .3s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   参考站最终版式（成品版）
   ============================================================ */
.announcement { display: none; }
.currency-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.cart-inline-total { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* 首页主图：仅保留居中白色按钮 */
.hero-simple .hero-content { max-width: none; text-align: center; }
.hero-simple .hero-cta-box {
  display: inline-block; background: #fff; color: var(--ink);
  padding: 17px 36px; font-size: 12px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.hero-simple .hero-cta-box:hover { background: var(--soft); }
.hero-seo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 分类卡片按钮 */
.category-btn {
  display: inline-block; margin-top: 16px; background: #fff; color: var(--ink);
  padding: 10px 24px; font-size: 11px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
}
.category-btn:hover { background: var(--soft); }
.category-card-body > span:not(.category-btn) { display: none; }

/* 滚动短语条 */
.marquee { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 13px 0; }
.marquee-track { display: inline-flex; gap: 56px; white-space: nowrap; animation: marquee-scroll 32s linear infinite; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 参考站式商品卡：居中、极简 */
.product-info { text-align: center; }
.product-info .product-cat, .product-info .rating { display: none; }
.product-info .price-row { justify-content: center; }
.product-info .color-dots { justify-content: center; }

/* 新品横向展示 */
.arrivals-layout { display: grid; grid-template-columns: 210px 1fr; gap: 34px; align-items: center; }
.arrivals-side h2 { font-family: var(--serif); font-size: 42px; line-height: 1.1; }
.arrivals-side .arrivals-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 22px 0 10px; font-weight: 600; }
.arrivals-layout > * { min-width: 0; }
.arrivals-viewport { overflow: hidden; min-width: 0; width: 100%; }
.arrivals-track { display: flex; gap: 18px; transition: transform .45s ease; }
.arrivals-track > .product-card { flex: 0 0 calc((100% - 54px) / 4); min-width: 0; }
.arrivals-arrow {
  width: 38px; height: 38px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.arrivals-arrow:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.arrivals-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* 服务承诺 */
.service-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; text-align: center; }
.service-item { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.service-item svg { width: 30px; height: 30px; stroke: var(--accent); flex-shrink: 0; stroke-width: 1.1; }
.service-title { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.service-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* 品牌故事大图 */
.story-banner { position: relative; min-height: 430px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background-position: center; background-size: cover; }
.story-banner::after { content: ""; position: absolute; inset: 0; background: rgba(30,26,22,.52); }
.story-banner .story-inner { position: relative; z-index: 2; max-width: 800px; padding: 50px 20px; }
.story-banner h2 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 46px); line-height: 1.34; }
.story-banner p { margin: 16px 0 26px; color: rgba(255,255,255,.9); }

/* 简化页脚 */
.footer-grid.footer-simple { grid-template-columns: repeat(4, 1fr); }
.footer-simple .footer-col h4 { font-family: var(--serif); font-size: 20px; letter-spacing: 0; text-transform: none; margin-bottom: 18px; font-weight: 500; }
.footer-simple .footer-col p, .footer-simple .footer-col li, .footer-simple .footer-col a { font-size: 12px; }

@media (max-width: 900px) {
  .arrivals-layout { grid-template-columns: 1fr; }
  .arrivals-side h2 { font-size: 34px; }
  .arrivals-track > .product-card { flex: 0 0 calc((100% - 18px) / 2); }
  .service-strip { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .footer-grid.footer-simple { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .arrivals-track { gap: 12px; }
  .arrivals-track > .product-card { flex: 0 0 calc((100% - 12px) / 2); }
  .hero-simple .hero-cta-box { padding: 14px 22px; font-size: 10px; }
  .service-strip { grid-template-columns: 1fr; gap: 18px; }
  .story-banner { min-height: 360px; }
  .footer-grid.footer-simple { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .nav-link { font-size: 11px; }
  .header-actions { gap: 12px; }
  .product-grid, .category-grid, .search-results, .gallery-grid { gap: 14px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
  .footer-grid > :last-child { grid-column: 1/-1; }
}

@media (max-width: 900px) {
  .container, .container-narrow { width: min(100% - 36px, 1280px); }
  .hamburger { display: inline-flex; }
  /* 关键：backdrop-filter 会让 fixed 抽屉相对 header 定位而被压扁，手机端必须移除 */
  .site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .main-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 82%);
    background: #fff; z-index: 100; flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 88px 28px 30px; transform: translateX(-105%); transition: transform .3s, visibility .3s;
    box-shadow: 8px 0 30px rgba(0,0,0,.12); overflow-y: auto; visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-link { font-size: 13px; padding: 10px 0; width: 100%; }
  .nav-categories { display: block; width: 100%; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav-cat-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; }
  .nav-cat-link { display: block; font-size: 13px; padding: 9px 0; color: var(--ink); width: 100%; }
  .nav-cat-link:hover, .nav-cat-link.active { color: var(--accent); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .search-results { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .promo-media { min-height: 340px; max-height: 400px; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .collection-layout { grid-template-columns: 1fr; gap: 28px; }
  .filters { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .filter-group { margin-bottom: 0; border-bottom: 0; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-grid img { height: 400px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 62px 0; }
  .announcement { font-size: 9px; letter-spacing: .08em; }
  .announcement span { margin: 0 5px; }
  .header-inner { height: 66px; }
  .logo-main { font-size: 23px; }
  .logo-sub { font-size: 8px; }
  .header-actions { gap: 7px; }
  .hero { min-height: 480px; height: 70vh; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 40px; }
  .hero-text { font-size: 14px; }
  .hero-nav { padding: 0 8px; }
  .hero-arrow { width: 34px; height: 34px; }
  .trust-item { padding: 18px 8px; gap: 10px; }
  .trust-title { font-size: 10px; }
  .trust-desc { font-size: 10px; }
  .trust-item svg { width: 21px; height: 21px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .category-grid { gap: 10px; }
  .category-card-body { left: 14px; bottom: 16px; }
  .category-card-body h3 { font-size: 20px; }
  .product-grid, .search-results, .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .product-name { font-size: 13px; }
  .price { font-size: 14px; }
  .quick-add { opacity: 1; transform: none; font-size: 9px; height: 36px; }
  .promo-content { padding: 48px 26px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filter-group { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .purchase-row { flex-direction: column; }
  .qty-control { align-self: flex-start; }
  .cart-product { gap: 10px; }
  .cart-product img { width: 68px; height: 84px; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .stat-row { gap: 8px; }
  .stat-num { font-size: 26px; }
}

/* ============================================================
   手机 / 平板自适应增强（同一站点，按屏幕自动切换）
   ============================================================ */
html { overflow-x: hidden; }
body { max-width: 100%; overflow-x: clip; }

/* 侧边导航遮罩 */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(24,20,17,.42);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* 小屏触控目标 */
@media (max-width: 600px) {
  .icon-btn { min-width: 36px; min-height: 36px; }
  .currency-label, .cart-inline-total { display: none; }
  .header-actions { gap: 2px; }
  .logo-main { font-size: 21px; }
  .logo-sub { font-size: 7px; letter-spacing: .32em; }

  .hero { min-height: 440px; height: 68vh; }
  .hero-simple .hero-content { padding: 0 22px; }
  .hero-title { font-size: clamp(31px, 9vw, 40px); line-height: 1.14; }
  .hero-text { font-size: 13px; margin-bottom: 24px; line-height: 1.6; }
  .hero-dots { bottom: 18px; }

  .category-card { aspect-ratio: 4 / 5; }
  .category-card-body { left: 12px; right: 12px; bottom: 14px; }
  .category-card-body h3 { font-size: 18px; }
  .category-btn { margin-top: 10px; padding: 8px 14px; font-size: 10px; }

  .product-grid, .search-results, .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info { padding-top: 12px; }
  .product-name { font-size: 12px; line-height: 1.35; min-height: 2.7em; }
  .price-row { margin-top: 5px; }
  .quick-add { left: 8px; right: 8px; bottom: 8px; height: 34px; font-size: 9px; }

  .arrivals-track > .product-card { flex-basis: calc((100% - 12px) / 2); }
  .search-panel { width: calc(100% - 36px); padding-top: 104px; }
  .search-top input { font-size: 22px; }

  .checkout-overlay { padding: 12px; }
  .checkout-modal { padding: 28px 20px; max-height: calc(100vh - 24px); }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }

  /* 购物车在手机上改为卡片式，保留数量控件 */
  .cart-table, .cart-table tbody, .cart-table tr { display: block; width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cart-table td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; border: 0; padding: 5px 0;
  }
  .cart-table td:first-child { display: block; }
  .cart-table td:nth-child(2)::before { content: "单价"; }
  .cart-table td:nth-child(3)::before { content: "数量"; }
  .cart-table td:nth-child(4)::before { content: "小计"; }
  .cart-table td:nth-child(5) { justify-content: flex-end; }
  .cart-table td::before { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
  .cart-product img { width: 64px; height: 80px; }
}

@media (max-width: 380px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-card-body h3 { font-size: 16px; }
  .category-btn { padding: 7px 10px; font-size: 9px; }
  .product-grid, .search-results, .collection-grid { gap: 18px 8px; }
  .header-actions { gap: 0; }
}

/* 手机版：所有长图统一为正方形，消除错位 */
@media (max-width: 600px) {
  .hero { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .hero-simple .hero-content { padding: 0 18px; }
  .hero-title { font-size: clamp(27px, 8vw, 34px); }
  .hero-text { font-size: 12px; margin-bottom: 18px; }
  .hero-simple .hero-cta-box { padding: 12px 18px; font-size: 9px; }

  .category-card,
  .product-media,
  .gallery-main,
  .promo-media,
  .story-grid img,
  .story-banner {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .gallery-thumb { width: 64px; height: 64px; }
  .cart-product img,
  .drawer-item img { width: 64px; height: 64px; object-fit: cover; }

  .story-banner .story-inner { padding: 30px 18px; }
  .story-banner h2 { font-size: 22px; line-height: 1.3; }
  .story-banner p { margin: 10px 0 16px; font-size: 12px; }
}

/* 锁定手机端：禁止缩放/横向拖动，所有图片强制 1:1 */
@media (max-width: 600px) {
  html, body { overscroll-behavior-x: none; }
  body { touch-action: pan-y; -webkit-text-size-adjust: 100%; }
  .hero,
  .category-card,
  .product-media,
  .gallery-main,
  .promo-media,
  .story-grid img,
  .story-banner {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* 图片绝对定位，避免原始比例把 1:1 容器撑高 */
  .product-media img,
  .category-card img,
  .gallery-main img,
  .promo-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-info { min-height: 74px; }
}

/* 手机端页脚：单列堆叠，长地址和文字完整显示 */
@media (max-width: 600px) {
  .footer-grid.footer-simple { grid-template-columns: 1fr; gap: 30px; }
  .footer-simple .footer-col { min-width: 0; }
  .footer-simple .footer-col p,
  .footer-simple .footer-col li,
  .footer-simple .footer-col a {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }
  /* 简化页脚是浅色背景，输入框文字需改为深色 */
  .footer-simple .newsletter-form input {
    color: var(--dark);
    border-color: rgba(30, 26, 22, .3);
    background: rgba(255, 255, 255, .5);
  }
  .footer-simple .newsletter-form input::placeholder { color: #8b8378; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* 多语言切换器 */
.lang-picker { position: relative; }
.lang-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  padding: 6px 8px;
  width: 116px;
  min-height: 30px;
  cursor: pointer;
  outline: none;
}
.lang-switch:focus, .lang-switch[aria-expanded="true"] { border-color: var(--accent); }
.lang-switch:disabled { opacity: .6; cursor: wait; }
.lang-current-text {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.lang-caret { font-size: 10px; line-height: 1; color: var(--muted); flex: none; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 120;
  width: 186px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(30, 26, 22, .16);
  padding: 4px;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 12px;
  padding: 9px 10px; border-radius: 2px; cursor: pointer;
}
.lang-option:hover, .lang-option:focus { background: var(--soft); outline: none; }
.lang-option.active { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .lang-switch { width: 96px; font-size: 10px; padding: 5px 7px; }
}
@media (max-width: 600px) {
  .lang-switch { width: 88px; font-size: 10px; padding: 5px 6px; }
  .lang-menu { width: 170px; }
  .currency-label { display: none; }
}

/* ---------- 在线客服 ---------- */
.chat-launch { position: relative; }
.chat-badge {
  position: absolute; top: 2px; right: 2px; min-width: 8px; height: 8px;
  background: #c0392b; border-radius: 50%; border: 1px solid #fff; padding: 0;
}
.chat-badge[hidden] { display: none; }
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 130;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent, #2f6f5e); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(30,26,22,.28); cursor: pointer;
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .chat-badge { top: 6px; right: 6px; }
.chat-panel {
  position: fixed; right: 22px; bottom: 86px; z-index: 140;
  width: 320px; max-width: calc(100vw - 32px); height: 470px; max-height: calc(100vh - 110px);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(30,26,22,.22);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--accent, #2f6f5e); color: #fff;
}
.chat-head-title { display: flex; align-items: center; gap: 10px; }
.chat-head-title strong { display: block; font-family: var(--serif); font-size: 16px; }
.chat-head-title small { display: block; font-size: 10px; opacity: .85; margin-top: 2px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-head .close-btn { color: #fff; font-size: 22px; background: none; border: 0; cursor: pointer; line-height: 1; }
.chat-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; background: var(--soft, #faf8f4); scrollbar-width: thin; scrollbar-color: rgba(120,105,88,.45) transparent; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(120,105,88,.35); border-radius: 99px; }
.chat-jump {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 6;
  border: 0; border-radius: 99px; padding: 6px 13px; white-space: nowrap;
  background: rgba(47,111,94,.95); color: #fff; font-size: 11px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(30,26,22,.22); font-family: var(--sans);
}
.chat-jump[hidden] { display: none; }
.chat-welcome { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.chat-welcome p { margin: 0 0 10px; }
.chat-identify input {
  display: block; width: 100%; margin: 0 0 8px; padding: 9px 10px;
  border: 1px solid var(--line); background: #fff; font-family: var(--sans); font-size: 12px;
}
.chat-identify-hint { font-size: 10px; margin: 0; }
.chat-messages { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.chat-bubble {
  max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5;
  word-break: break-word; position: relative;
}
.chat-bubble.mine { align-self: flex-end; background: var(--accent, #2f6f5e); color: #fff; border-bottom-right-radius: 3px; }
.chat-bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat-time { display: block; font-size: 9px; opacity: .6; margin-top: 3px; }
.chat-input { display: flex; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font-family: var(--sans); font-size: 13px; outline: none; }
.chat-input button { border: 0; background: var(--accent, #2f6f5e); color: #fff; width: 48px; cursor: pointer; font-size: 16px; }
.chat-input { position: relative; }
.chat-input .chat-emoji-btn { width: 42px; background: #fff; color: inherit; font-size: 19px; border-right: 1px solid var(--line); }
.chat-input .chat-emoji-btn:hover { background: var(--soft, #faf8f4); }
.chat-emoji-panel {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 5;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 8px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(30,26,22,.10);
}
.chat-emoji-panel[hidden] { display: none; }
.chat-emoji-item {
  border: 0 !important; background: transparent !important; color: inherit !important;
  width: auto !important; height: 34px; padding: 0; font-size: 19px; line-height: 34px; border-radius: 6px; cursor: pointer;
}
.chat-emoji-item:hover { background: var(--soft, #faf8f4) !important; }
/* 客服窗口商品推荐：横滑小卡片，不占用消息区高度 */
.chat-reco {
  position: relative; flex: none; border-top: 1px solid var(--line); background: #fff;
  padding: 8px 10px 10px; z-index: 2;
}
.chat-reco[hidden] { display: none; }
.chat-reco.collapsed .chat-reco-list { display: none; }
.chat-reco-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: var(--accent-dark, #7a5f45); margin-bottom: 8px;
}
.chat-reco-head button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  width: 20px; height: 20px; line-height: 16px; font-size: 13px; cursor: pointer; border-radius: 4px; padding: 0;
}
.chat-reco-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chat-reco-item {
  flex: 0 0 120px; width: 120px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--soft, #faf8f4); overflow: hidden; display: flex; flex-direction: column;
}
.chat-reco-thumb { display: block; height: 66px; overflow: hidden; background: #f0ece5; }
.chat-reco-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-reco-info { padding: 6px 7px 7px; }
.chat-reco-name {
  display: block; font-size: 10px; line-height: 1.3; color: var(--ink); text-decoration: none;
  height: 26px; overflow: hidden;
}
.chat-reco-meta { font-size: 11px; font-weight: 700; color: #c1442e; margin: 3px 0 5px; }
.chat-reco-ask {
  border: 1px solid var(--accent); background: #fff; color: var(--accent-dark, #7a5f45);
  font-size: 10px; padding: 3px 6px; border-radius: 99px; cursor: pointer; font-family: var(--sans);
}
.chat-reco-ask:hover { background: var(--accent); color: #fff; }
@media (max-width: 600px) {
  .chat-panel { right: 10px; bottom: 80px; left: 10px; width: auto; height: 66vh; max-height: calc(100vh - 96px); }
  .chat-fab { right: 14px; bottom: 14px; }
}

/* ============================================================
   淘宝 / 拼多多式商品详情页（联系客服带商品咨询链接）
   ============================================================ */
.product-layout { display: block; padding: 18px 0 70px; }
.pd-wrap { max-width: 1240px; margin: 0 auto; }
.pd-storebar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); padding: 12px 16px; margin-bottom: 14px;
}
.pd-store-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pd-store-mark {
  width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px;
}
.pd-store-id strong { display: block; font-size: 13px; }
.pd-store-id small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.pd-store-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.pd-store-actions a { color: var(--muted); font-size: 12px; }
.pd-store-actions button, .pd-aside-card button {
  border: 1px solid var(--accent); background: #fff; color: var(--accent-dark);
  padding: 8px 12px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.pd-store-actions button svg { width: 16px; height: 16px; }
.pd-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px;
  background: #fff; border: 1px solid var(--line); padding: 18px;
}
.pd-gallery { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; min-width: 0; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.pd-thumb {
  width: 74px; height: 74px; flex: none; padding: 0; border: 2px solid transparent;
  background: var(--soft); cursor: pointer; overflow: hidden;
}
.pd-thumb.active { border-color: var(--accent); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-stage { position: relative; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; cursor: zoom-in; }
.pd-stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.pd-stage img.zoomed { transform: scale(1.6); cursor: zoom-out; }
.pd-zoom-hint {
  position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.88);
  color: var(--muted); font-size: 10px; padding: 4px 8px; pointer-events: none;
}
.pd-info { min-width: 0; }
.pd-pricebox { background: linear-gradient(90deg, #fff2e9, #fff); border: 1px solid #f0d7c3; padding: 14px 16px; }
.pd-price-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price { color: #c1442e; font-size: 34px; font-weight: 700; line-height: 1; }
.pd-oldprice { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.pd-sold { margin-left: auto; color: var(--muted); font-size: 12px; }
.pd-price-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--accent-dark); }
.pd-price-tags span { border: 1px solid #e7cdbb; padding: 3px 7px; background: #fff; }
.pd-price-tags .pd-tag-hot { background: #c1442e; color: #fff; border-color: #c1442e; }
.pd-title { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 16px 0 8px; }
.pd-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-review-link { border: 0; background: none; color: var(--accent-dark); text-decoration: underline; cursor: pointer; padding: 0; font-size: 12px; }
.pd-coupon { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff9f4; border: 1px dashed #e0b99c; padding: 9px 12px; margin: 14px 0; font-size: 12px; }
.pd-coupon-label { color: var(--muted); }
.pd-coupon strong { letter-spacing: .08em; color: #c1442e; }
.pd-coupon-off { color: #c1442e; }
.pd-coupon button { margin-left: auto; border: 1px solid #e0b99c; background: #fff; color: var(--accent-dark); font-size: 11px; padding: 4px 10px; cursor: pointer; }
.pd-option { margin-top: 16px; }
.pd-option-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.pd-option-label span:last-child { color: var(--muted); font-weight: 400; }
.pd-qty { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; }
.pd-qty .qty-control button { width: 36px; height: 42px; }
.pd-qty .qty-control input { width: 42px; height: 42px; }
.pd-stock { color: #3e8e5a; font-size: 11px; }
.pd-actions { display: grid; grid-template-columns: 1.05fr 1.2fr 1fr .75fr; gap: 10px; margin-top: 22px; }
.pd-actions button {
  min-height: 48px; border: 1px solid var(--line); font-family: var(--sans);
  font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pd-actions button svg { width: 18px; height: 18px; }
.pd-chat { background: #fff; color: var(--accent-dark); }
.pd-cart { background: #fff3e4; border-color: #e3b77a; color: #9a5a12; }
.pd-buy { background: #e65a2b; color: #fff; border-color: #e65a2b; }
.pd-service { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-service > div { display: flex; gap: 7px; align-items: flex-start; min-width: 0; }
.pd-service svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 2px; }
.pd-service strong { display: block; font-size: 11px; }
.pd-service small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.pd-help { margin-top: 16px; font-size: 12px; color: var(--muted); }
.pd-help button { border: 0; background: none; color: var(--accent-dark); text-decoration: underline; cursor: pointer; padding: 0 2px; font-size: 12px; }
.pd-lower { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; margin-top: 18px; align-items: start; }
.pd-content, .pd-aside-card { background: #fff; border: 1px solid var(--line); }
.pd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.pd-tabs button { white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: none; padding: 14px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pd-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.pd-panel { padding: 20px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.pd-panel[hidden] { display: none; }
.pd-intro { margin: 0 0 10px; }
.pd-detail-list { padding-left: 18px; margin: 0 0 18px; }
.pd-image-note { background: var(--soft); padding: 10px 12px; font-size: 12px; }
.pd-gallery-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  width: 100%; max-width: 100%; min-width: 0; margin-inline: auto; justify-items: center;
}
.pd-gallery-strip img {
  width: 100%; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; margin-inline: auto;
}
/* 商品详情各层容器严格限制在可视宽度内，避免图片组整体右移 */
body[data-page="product"] .container,
body[data-page="product"] .product-layout,
body[data-page="product"] .pd-wrap,
body[data-page="product"] .pd-main,
body[data-page="product"] .pd-lower,
body[data-page="product"] .pd-content,
body[data-page="product"] .pd-panel { min-width: 0; max-width: 100%; }
.pd-review strong { color: #c98a2b; letter-spacing: 2px; }
.pd-review p { margin: 8px 0 4px; }
.pd-aside { display: grid; gap: 14px; }
.pd-aside-card { padding: 16px; }
.pd-aside-card h4 { margin: 0 0 8px; font-size: 13px; }
.pd-aside-card p { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.pd-aside-card button { width: 100%; justify-content: center; border: 0; background: var(--accent); color: #fff; padding: 10px; }
.pd-aside-card a { display: block; padding: 6px 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pd-mobilebar { display: none; }
/* 聊天中的商品咨询卡片 */
.chat-product-slot { padding: 8px 12px 0; background: var(--soft); }
.chat-product-slot[hidden] { display: none; }
.chat-product-chip {
  width: 100%; border: 1px dashed #c9b49c; background: #fff; color: var(--accent-dark);
  font-size: 11px; padding: 8px; cursor: pointer; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-bubble .chat-product-card {
  display: flex; gap: 9px; padding: 8px; margin: 8px 0 4px; max-width: 100%;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.chat-bubble.mine .chat-product-card { background: #fff; }
.chat-product-card img { width: 54px; height: 54px; object-fit: cover; flex: none; }
.chat-product-card-info { min-width: 0; }
.chat-product-card-info > a:first-child {
  display: block; max-width: 180px; font-size: 11px; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-product-card .cp-meta { font-size: 11px; color: #c1442e; margin-top: 3px; }
.chat-product-card .cp-link { display: inline-block; margin-top: 4px; font-size: 10px; color: var(--accent-dark); }
@media (max-width: 900px) {
  /* 手机端去掉商品页店铺信息栏，评分与快速发货移到顶部 logo 旁 */
  .pd-storebar { display: none; }
  .logo-rating { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; padding-left: 2px; }
  .product-layout { padding: 12px 0 96px; }
  .pd-main { grid-template-columns: 1fr; padding: 12px; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { flex-direction: row; overflow-x: auto; max-height: none; }
  .pd-thumb { width: 64px; height: 64px; flex: 0 0 64px; }
  .pd-lower { grid-template-columns: 1fr; }
  .pd-aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body[data-page="product"] { padding-bottom: 66px; }
  .pd-storebar { padding: 10px; }
  .pd-store-actions a { display: none; }
  .pd-store-id strong { font-size: 12px; }
  .pd-store-id small { font-size: 10px; }
  .pd-price { font-size: 28px; }
  .pd-title { font-size: 22px; }
  .pd-actions { display: none; }
  .pd-service { grid-template-columns: 1fr; }
  .pd-aside { grid-template-columns: 1fr; }
  .pd-gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 100%; margin-inline: auto; }
  .pd-gallery-strip img { width: 100%; max-width: 100%; }
  .pd-mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid;
    grid-template-columns: 46px 46px 46px 1fr 1fr; gap: 5px;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .pd-mb-icon {
    border: 0; background: none; padding: 0; color: var(--muted); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px;
  }
  .pd-mb-icon svg { width: 20px; height: 20px; }
  .pd-mb-icon.is-fav { color: #c0392b; }
  .pd-mb-icon.is-fav svg { fill: #c0392b; }
  .pd-mb-cart, .pd-mb-buy { min-height: 42px; border: 1px solid #e3b77a; background: #fff3e4; color: #9a5a12; font-size: 12px; font-weight: 600; cursor: pointer; }
  .pd-mb-buy { background: #e65a2b; color: #fff; border-color: #e65a2b; }
  body[data-page="product"] #chatFab { bottom: 82px; }
  body[data-page="product"] .chat-panel { bottom: 88px; height: 62vh; }
}

/* ============================================================
   亚马逊式店铺展示优化（追加覆盖层，保留原有交互与多语言）
   ============================================================ */

/* ---------- 顶部深色公告条 ---------- */
.amz-topbar { background: #232f3e; color: #fff; font-size: 12px; }
.amz-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.amz-topbar-left { display: flex; align-items: center; gap: 10px; }
.amz-topbar-ship { display: inline-flex; align-items: center; gap: 6px; }
.amz-topbar-ship svg { width: 15px; height: 15px; stroke: #febd69; stroke-width: 1.6; }
.amz-topbar-dot { opacity: .45; }
.amz-topbar-right { display: flex; align-items: center; gap: 18px; }
.amz-topbar-right a { color: #fff; opacity: .9; white-space: nowrap; }
.amz-topbar-right a:hover { opacity: 1; text-decoration: underline; }

/* ---------- 主 header：宽搜索框 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.header-inner { height: auto; min-height: 76px; gap: 18px; padding: 12px 0; }
.logo { min-width: 150px; }
.amz-search {
  flex: 1 1 auto; min-width: 180px; display: flex; align-items: stretch;
  height: 40px; border: 2px solid #febd69; border-radius: 4px; overflow: hidden; background: #fff;
}
.amz-search-all {
  display: flex; align-items: center; gap: 4px; padding: 0 12px; background: #f3f3f3;
  border-right: 1px solid #d5d5d5; font-size: 12px; color: #565959; white-space: nowrap;
}
.amz-search-field {
  flex: 1; min-width: 0; border: 0; background: #fff; text-align: left;
  padding: 0 14px; font-size: 13px; color: #9a9188; font-family: inherit; cursor: text;
}
.amz-search-go {
  flex: 0 0 48px; border: 0; border-radius: 0; background: #febd69; color: #232f3e;
  display: flex; align-items: center; justify-content: center;
}
.amz-search-go:hover { background: #f3a847; color: #232f3e; }
.amz-search-go svg { width: 20px; height: 20px; stroke-width: 2; }
.amz-account { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.amz-account small { font-size: 11px; color: var(--muted); }
.amz-account b { font-size: 12px; font-weight: 700; color: var(--ink); }
.amz-account:hover b { color: #c45500; }
.header-actions { gap: 14px; margin-left: 0; flex: 0 0 auto; }
/* 货币标签并入语言选择区，避免与账户文字挤在一起 */
.currency-label { display: none; }
.amz-account { min-width: 88px; text-align: right; }

/* ---------- 二级分类导航条（桌面） ---------- */
@media (min-width: 901px) {
  .main-nav {
    display: flex; align-items: center; gap: 0; margin-left: 0;
    background: #232f3e; padding: 0; min-height: 40px; overflow: visible;
  }
  .main-nav .nav-link {
    color: #fff; font-size: 12px; letter-spacing: .02em; text-transform: none;
    padding: 0 14px; height: 40px; display: inline-flex; align-items: center;
    white-space: nowrap; font-weight: 500;
  }
  .main-nav .nav-link:hover, .main-nav .nav-link.active { color: #febd69; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .amz-nav-all { font-weight: 700; padding-left: 16px; border-right: 1px solid rgba(255,255,255,.16); }
  .amz-nav-cats { display: flex; align-items: center; margin-left: 4px; }
  .amz-nav-cats a { color: #fff; font-size: 12px; padding: 0 12px; white-space: nowrap; opacity: .92; }
  .amz-nav-cats a:hover { color: #febd69; opacity: 1; }
  .amz-nav-promo { margin-left: auto; display: flex; align-items: center; }
  .amz-nav-promo a { color: #febd69; font-size: 12px; padding: 0 14px; white-space: nowrap; }
  .amz-nav-promo a:hover { text-decoration: underline; }
  .main-nav .nav-categories { display: none; }
}

/* ---------- 亚马逊式商品卡 ---------- */
.product-info { text-align: left; padding: 12px 14px 16px; }
.product-info .price-row { justify-content: flex-start; }
.product-info .color-dots { justify-content: flex-start; }
.amz-card {
  background: #fff; border: 1px solid #e3e0da; border-radius: 3px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.amz-card:hover { border-color: #c9c3ba; box-shadow: 0 6px 20px rgba(30,26,22,.12); transform: translateY(-2px); }
.amz-card .product-media { aspect-ratio: 1 / 1; background: #fff; }
.amz-card .product-media > a { height: 100%; display: flex; align-items: center; justify-content: center; }
.amz-card .product-media img { object-fit: contain; padding: 10px; }
.amz-card:hover .product-media img { transform: scale(1.03); }
.amz-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 2px; }
.amz-badge-best { background: #c45500; color: #fff; }
.amz-badge-new { background: #067d62; color: #fff; }
.amz-brand { font-size: 10px; letter-spacing: .12em; color: #6f6a62; text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
.amz-card .product-name {
  font-size: 14px; line-height: 1.4; color: #0f1111; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px;
}
.amz-card .product-name:hover { color: #c45500; }
.amz-rating { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; }
.amz-stars { display: inline-flex; font-size: 15px; line-height: 1; color: #d5d5d5; }
.amz-stars .on { color: #de7922; }
.amz-stars .half { color: #de7922; opacity: .6; }
.amz-rating-num { color: #007185; font-weight: 600; }
.amz-review-count { color: #007185; }
.amz-price-row { margin-top: 7px; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amz-price { font-size: 24px; font-weight: 500; color: #0f1111; line-height: 1; }
.amz-price-sym { font-size: 12px; vertical-align: super; margin-right: 1px; }
.amz-price-dec { font-size: 12px; vertical-align: super; }
.amz-price-row .old-price { font-size: 12px; }
.amz-save { font-size: 11px; color: #b12704; font-weight: 600; }
.amz-ship { font-size: 11px; color: #565959; margin-top: 6px; line-height: 1.5; }
.amz-free { color: #067d62; font-weight: 600; }
.amz-ship b { color: #0f1111; font-weight: 600; }
.amz-ship-sub { margin-top: 2px; }
.amz-add {
  margin-top: 10px; width: 100%; height: 32px; border: 1px solid #e3b77a; border-radius: 16px;
  background: #ffd814; color: #0f1111; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.amz-add:hover { background: #f7ca00; }

/* ---------- 首页：分类方形卡 / 今日特惠 / 热销榜 ---------- */
.category-grid { gap: 16px; }
.category-card { aspect-ratio: 1 / 1; border: 1px solid #e3e0da; background: #fff; }
.category-card img { object-fit: contain; padding: 16px; }
.category-card::after { background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.94) 100%); }
.category-card-body { left: 16px; right: 16px; bottom: 16px; color: #0f1111; text-align: center; }
.category-card-body h3 { font-family: inherit; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.category-btn { background: #232f3e; color: #fff; padding: 7px 14px; border: 0; margin-top: 0; font-size: 11px; }
.category-btn:hover { background: #c45500; color: #fff; }
.amz-deals-section { background: #f3f3f3; padding: 48px 0 56px; border-top: 1px solid var(--line); }
.amz-best-section { background: #fff; padding: 56px 0 64px; }
.amz-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.amz-section-kicker { font-size: 10px; letter-spacing: .2em; font-weight: 700; color: #c45500; text-transform: uppercase; margin-bottom: 6px; }
.amz-section-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: #0f1111; }
.amz-section-more { font-size: 12px; color: #007185; font-weight: 600; white-space: nowrap; }
.amz-section-more::after { content: " →"; }
.amz-section-more:hover { color: #c45500; text-decoration: underline; }
.amz-deal-track { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.amz-deal-track > .product-card { flex: 0 0 210px; scroll-snap-align: start; }
.amz-deal-track::-webkit-scrollbar { height: 6px; }
.amz-deal-track::-webkit-scrollbar-thumb { background: #c9c3ba; border-radius: 3px; }

/* ---------- 分类页筛选 ---------- */
.amz-rating-filters label { display: flex; align-items: center; gap: 6px; }
.amz-rating-filters input { accent-color: #febd69; }
.collection-grid .amz-card { height: 100%; }

/* ---------- 详情页 Buy Box ---------- */
.pd-main { background: #fff; }
.pd-pricebox { background: #fff; border: 1px solid #d5d5d5; border-radius: 4px; padding: 16px; }
.amz-pd-price { color: #b12704; font-size: 30px; }
.amz-pd-save { font-size: 12px; color: #b12704; font-weight: 600; }
.amz-pd-brand { font-size: 12px; color: #565959; margin-top: 14px; }
.amz-pd-brand a { color: #007185; }
.amz-pd-brand a:hover { color: #c45500; text-decoration: underline; }
.pd-title { font-family: inherit; font-size: 24px; font-weight: 500; line-height: 1.35; color: #0f1111; }
.pd-subline .amz-stars { font-size: 16px; }
.amz-pd-rating-num { color: #007185; font-size: 12px; }
.pd-review-link { color: #007185; }
.pd-actions .pd-cart { background: #ffd814; border-color: #f7ca00; color: #0f1111; border-radius: 20px; }
.pd-actions .pd-buy { background: #ffa41c; border-color: #ff8f00; color: #0f1111; border-radius: 20px; }
.pd-actions .pd-chat, .pd-actions .pd-fav { border-radius: 20px; }
.amz-pd-seller {
  margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; font-size: 11px;
}
.amz-pd-seller div { display: flex; gap: 6px; }
.amz-pd-seller span { color: #565959; min-width: 62px; }
.amz-pd-seller b { color: #0f1111; font-weight: 600; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 900px) {
  .amz-topbar-right { display: none; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .logo { min-width: 0; }
  .amz-search { order: 3; flex: 1 0 100%; height: 38px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .amz-account, .currency-label { display: none; }
  .amz-deal-track > .product-card { flex-basis: 168px; }
  .amz-nav-cats, .amz-nav-promo { display: none; }
}
@media (max-width: 600px) {
  .amz-topbar-inner { min-height: 30px; font-size: 11px; }
  .amz-topbar-left > span:not(.amz-topbar-ship) { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .amz-card .product-info { padding: 10px; }
  .amz-price { font-size: 20px; }
  .amz-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .amz-pd-seller { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .amz-deal-track > .product-card { flex-basis: 156px; }
}
