/* ============================================================
   AURA · 设计系统（eos3chat 小程序版 — 暗夜奢品）
   纯深色 + exSat 橙 #FF9900，手机竖屏优先，与宿主视觉统一。
   ============================================================ */

:root {
  --bg: #0b0b0d;            /* 近黑背景，对齐宿主 */
  --bg-2: #131318;         /* 次级深色块 */
  --surface: #17171c;      /* 卡片 */
  --surface-2: #20202734;  /* 浮层/悬浮（半透明叠加用） */
  --surface-solid: #202027;
  --ink: #f5f4f1;          /* 主文字 */
  --ink-2: #b6b2aa;        /* 次级文字 */
  --muted: #817d75;        /* 弱化 */
  --line: #27272e;         /* 发丝线 */
  --line-2: #34343d;

  --brand: #ff9900;        /* exSat 橙 = 主操作色 */
  --brand-2: #ffb547;
  --brand-press: #e88800;
  --brand-ink: #1c1206;    /* 橙底上的深色字 */
  --brand-wash: rgba(255,153,0,.12);

  --gold: #d8b46a;         /* AURA 奢品金 = 次级点缀 */
  --gold-2: #e7cd95;
  --danger: #e8675b;
  --success: #5fb56c;

  --radius-s: 10px;
  --radius: 16px;          /* 宿主大圆角 */
  --radius-l: 24px;

  --shadow-sm: 0 4px 18px rgba(0,0,0,.35);
  --shadow-md: 0 16px 46px rgba(0,0,0,.5);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.6);
  --glow: 0 10px 36px rgba(255,153,0,.32);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', -apple-system, 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;

  --container: 1180px;
  --header-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--ink);
  line-height: 1.6; font-size: 15px; letter-spacing: .01em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;            /* 移动端去点击高亮 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-touch-callout: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea { font-family: inherit; font-size: 16px; }   /* ≥16px 防 iOS 聚焦缩放 */
ul { list-style: none; }
::selection { background: var(--brand); color: var(--brand-ink); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.display { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.overline { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 99px; font-size: 14px; font-weight: 600;
  letter-spacing: .02em; transition: all .35s var(--ease); white-space: nowrap; min-height: 44px;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: var(--glow); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #2a2008; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(216,180,106,.3); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 15px; min-height: 52px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 公告条 ---------- */
.announce {
  background: var(--bg-2); color: var(--ink-2); text-align: center;
  font-size: 12px; letter-spacing: .08em; padding: 8px 16px; padding-top: calc(8px + var(--safe-top));
  border-bottom: 1px solid var(--line); position: relative; z-index: 60;
}
.announce b { color: var(--brand); font-weight: 600; }

/* ---------- 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .4s var(--ease), box-shadow .4s var(--ease);
  background: transparent;
}
.header.scrolled {
  background: rgba(11,11,13,.72); backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .12em; line-height: 1; }
.logo b { color: var(--brand); font-weight: 700; }
.logo small { display: block; font-family: var(--sans); font-size: 8px; letter-spacing: .4em; color: var(--muted); margin-top: 3px; text-transform: uppercase; font-weight: 500; }

.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 14px; border-radius: 99px; position: relative; transition: color .3s; color: var(--ink-2); }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 1.5px; background: var(--brand); transition: width .4s var(--ease), left .4s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 20px; left: calc(50% - 10px); }

.actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .3s, transform .2s; position: relative; color: var(--ink); }
.icon-btn:hover { background: rgba(255,255,255,.07); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.6; }
.cart-badge {
  position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; border-radius: 99px;
  display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); border: 2px solid var(--bg);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* 身份区 */
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; transition: background .3s; min-height: 44px; }
.user-chip:hover { background: rgba(255,255,255,.07); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.user-chip .uname { font-size: 13px; font-weight: 500; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 99px; background: var(--brand-wash); color: var(--brand); font-size: 13px; font-weight: 600; border: 1px solid rgba(255,153,0,.3); min-height: 40px; }
.connect-btn:hover { background: rgba(255,153,0,.18); }
.connect-btn svg { width: 17px; height: 17px; }
.preview-pill { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 252px; background: var(--surface-solid);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease); z-index: 70;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-head { padding: 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head .n { font-weight: 600; font-size: 14px; }
.dropdown-head .e { font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-all; font-family: ui-monospace, monospace; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: var(--radius-s); font-size: 14px; transition: background .2s; color: var(--ink-2); min-height: 44px; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-2); color: var(--ink); }
.dropdown-menu svg { width: 18px; height: 18px; stroke-width: 1.6; }
.dropdown-menu .logout { color: var(--danger); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 80% 10%, #2a1c08 0%, #15110d 45%, var(--bg) 100%); }
.hero-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease), transform 8s var(--ease); transform: scale(1.06); filter: brightness(.6) saturate(1.05); }
.hero-img.loaded { opacity: .5; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,13,.92) 0%, rgba(11,11,13,.55) 50%, rgba(11,11,13,.15) 100%); }
.hero-inner { max-width: 600px; padding: 50px 0; }
.hero .overline { opacity: 0; animation: rise .9s var(--ease) .1s forwards; }
.hero h1 { font-size: clamp(42px, 12vw, 86px); margin: 16px 0 20px; opacity: 0; animation: rise 1s var(--ease) .25s forwards; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 16px; color: var(--ink-2); max-width: 440px; margin-bottom: 32px; opacity: 0; animation: rise 1s var(--ease) .42s forwards; }
.hero .hero-cta { display: flex; gap: 12px; opacity: 0; animation: rise 1s var(--ease) .58s forwards; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; letter-spacing: .2em; opacity: 0; animation: rise 1s var(--ease) .9s forwards; }
.scroll-hint .line { width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-hint .line::after { content: ''; position: absolute; top: -36px; left: 0; width: 1px; height: 36px; background: linear-gradient(transparent, var(--brand)); animation: drop 2s var(--ease) infinite; }
@keyframes drop { to { top: 36px; } }

/* ---------- 信任条 ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 22px 10px; justify-content: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: none; }
.trust-item svg { width: 25px; height: 25px; stroke-width: 1.3; color: var(--gold); flex-shrink: 0; }
.trust-item .t { font-size: 13.5px; font-weight: 600; }
.trust-item .s { font-size: 11.5px; color: var(--muted); }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(30px, 8vw, 48px); margin: 12px 0; }
.section-head p { color: var(--ink-2); font-size: 15px; }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { position: relative; aspect-ratio: 3/3.4; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: brightness(.82); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.15) 50%, transparent 75%); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-info { position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #fff; }
.cat-card .cat-info .en { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .85; color: var(--brand-2); }
.cat-card .cat-info .cn { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 2px; }
.cat-card .go { position: absolute; right: 18px; bottom: 24px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; transform: translateX(8px); opacity: 0; transition: all .4s var(--ease); }
.cat-card:hover .go { transform: translateX(0); opacity: 1; }
.cat-card.tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- 商品网格 ---------- */
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.chip { padding: 9px 18px; border-radius: 99px; font-size: 13px; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .3s var(--ease); min-height: 40px; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; position: relative; cursor: pointer; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; opacity: 0; }
.card-media img.loaded { opacity: 1; }
.card:hover .card-media img { transform: scale(1.07); }
.card-tags { position: absolute; top: 11px; left: 11px; display: flex; gap: 6px; z-index: 2; }
.tag { font-size: 10px; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; font-weight: 700; backdrop-filter: blur(4px); }
.tag.hot { background: rgba(232,103,91,.95); color: #fff; }
.tag.new { background: rgba(95,181,108,.95); color: #08220c; }
.tag.ltd { background: rgba(255,153,0,.95); color: var(--brand-ink); }
.tag.classic { background: rgba(255,255,255,.92); color: #1a1a1a; }
.wish { position: absolute; top: 9px; right: 9px; width: 38px; height: 38px; border-radius: 50%; z-index: 2; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: all .35s var(--ease); color: #fff; }
.card:hover .wish { opacity: 1; transform: translateY(0); }
.wish svg { width: 18px; height: 18px; stroke-width: 1.6; }
.wish:hover { background: rgba(0,0,0,.7); }
.wish.active { color: var(--danger); }
.wish.active svg { fill: var(--danger); stroke: var(--danger); animation: pop .4s var(--ease); }
@keyframes pop { 0%{transform:scale(1)} 45%{transform:scale(1.35)} 100%{transform:scale(1)} }
.quick-add { position: absolute; left: 11px; right: 11px; bottom: 11px; z-index: 2; background: rgba(255,153,0,.95); color: var(--brand-ink); border-radius: 99px; padding: 12px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transform: translateY(calc(100% + 14px)); opacity: 0; transition: all .45s var(--ease); }
.card:hover .quick-add { transform: translateY(0); opacity: 1; }
.quick-add:hover { background: var(--brand-2); }
.quick-add svg { width: 17px; height: 17px; }
.card-body { padding: 16px 16px 20px; }
.card-cat { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 15px; font-weight: 600; margin: 6px 0 3px; line-height: 1.35; }
.card-en { font-size: 11.5px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.card-meta { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1px; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); }
.price::before { content: '¥'; font-size: 13px; margin-right: 1px; color: var(--brand); }
.price-orig { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price-orig::before { content: '¥'; }
.discount { font-size: 10.5px; color: var(--danger); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; }

/* ---------- 品牌故事 ---------- */
.editorial { background: var(--bg-2); }
.editorial .container { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 480px; }
.editorial-img { position: relative; align-self: stretch; overflow: hidden; }
.editorial-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); }
.editorial-txt { padding: 60px 60px 60px 70px; }
.editorial-txt h2 { font-size: clamp(28px, 7vw, 44px); margin: 14px 0 18px; }
.editorial-txt p { color: var(--ink-2); margin-bottom: 16px; font-size: 15px; }
.editorial-stats { display: flex; gap: 40px; margin: 28px 0; }
.editorial-stats .n { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--brand); }
.editorial-stats .l { font-size: 11.5px; color: var(--muted); }

/* ---------- 订阅 ---------- */
.newsletter { background: radial-gradient(120% 120% at 50% 0%, #1d1408 0%, var(--bg-2) 60%); text-align: center; border-top: 1px solid var(--line); }
.newsletter h2 { font-family: var(--serif); font-size: clamp(28px,7vw,44px); font-weight: 600; margin-bottom: 12px; }
.newsletter p { color: var(--ink-2); margin-bottom: 28px; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.news-form input { flex: 1; padding: 15px 20px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); transition: border .3s; }
.news-form input::placeholder { color: var(--muted); }
.news-form input:focus { outline: none; border-color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { background: #08080a; color: var(--ink-2); padding: 60px 0 calc(28px + var(--safe-bottom)); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer .logo { color: var(--ink); margin-bottom: 16px; }
.footer-brand p { font-size: 13px; max-width: 280px; line-height: 1.8; }
.footer-col h4 { color: var(--ink); font-size: 12.5px; letter-spacing: .08em; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; padding: 6px 0; transition: color .3s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; flex-wrap: wrap; gap: 12px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }

/* ============================================================
   抽屉 / 弹窗 / 覆盖层
   ============================================================ */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; z-index: 100; }
.overlay.open { opacity: 1; visibility: visible; }

.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 94vw; z-index: 110; background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; overscroll-behavior: contain; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; padding-top: calc(22px + var(--safe-top)); border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.drawer-head .count { font-size: 12.5px; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 24px; -webkit-overflow-scrolling: touch; }
.drawer-foot { padding: 18px 24px calc(24px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.cart-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: fadeIn .4s var(--ease); }
.cart-line img { width: 82px; height: 100px; object-fit: cover; border-radius: var(--radius-s); background: var(--bg-2); }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-line .cl-cat { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.cart-line .cl-price { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.cart-line .cl-price::before { content: '¥'; font-size: 12px; color: var(--brand); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; transition: background .2s; color: var(--ink-2); }
.qty button:hover { background: var(--bg-2); color: var(--ink); }
.qty span { width: 34px; text-align: center; font-size: 14px; font-weight: 600; }
.cl-top { display: flex; justify-content: space-between; gap: 8px; }
.cl-remove { color: var(--muted); transition: color .2s; width: 32px; height: 32px; display: grid; place-items: center; }
.cl-remove:hover { color: var(--danger); }
.cl-remove svg { width: 16px; height: 16px; }
.cl-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.cart-empty { text-align: center; padding: 70px 24px; color: var(--muted); }
.cart-empty svg { width: 56px; height: 56px; stroke-width: 1; margin-bottom: 16px; color: var(--line-2); }
.cart-empty h4 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 8px; }
.cart-summary { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; color: var(--ink-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 16px; }
.cart-total .lbl { font-size: 14px; }
.cart-total .val { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.cart-total .val::before { content: '¥'; font-size: 15px; color: var(--brand); }
.free-ship { font-size: 12px; color: var(--success); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

.modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 120; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-lg); width: 100%; transform: translateY(20px) scale(.98); transition: transform .45s var(--ease); max-height: 92vh; overflow: hidden; position: relative; }
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .3s, transform .3s; color: #fff; }
.modal-close:hover { background: rgba(0,0,0,.7); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

/* 商品详情 */
.pd-card { max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { background: var(--bg-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pd-main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs button { width: 62px; height: 74px; border-radius: var(--radius-s); overflow: hidden; border: 2px solid transparent; transition: border .3s; opacity: .6; }
.pd-thumbs button.active { border-color: var(--brand); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 40px 40px 32px; overflow-y: auto; }
.pd-info .card-cat { margin-bottom: 8px; }
.pd-info h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.15; }
.pd-info .en { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 4px 0 14px; }
.pd-rating { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.pd-price .price { font-size: 36px; }
.pd-desc { color: var(--ink-2); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.pd-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; margin-bottom: 24px; }
.pd-highlights li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.pd-highlights svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.pd-buy { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.pd-buy .qty { height: 50px; }
.pd-buy .qty button { width: 44px; height: 100%; }
.pd-buy .qty span { width: 40px; font-size: 15px; }
.pd-specs { border-top: 1px solid var(--line); padding-top: 18px; }
.pd-specs h4 { font-size: 12.5px; letter-spacing: .08em; margin-bottom: 12px; color: var(--ink); }
.spec-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--ink-2); font-weight: 500; text-align: right; }

/* ---------- 吐司 ---------- */
.toasts { position: fixed; bottom: calc(24px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: 90vw; }
.toast { background: var(--surface-solid); color: var(--ink); padding: 13px 20px; border-radius: 99px; font-size: 13.5px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; transform: translateY(20px); opacity: 0; transition: all .4s var(--ease); pointer-events: auto; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--danger); }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 浏览 / 搜索 ---------- */
.view { display: none; }
.view.active { display: block; animation: fadeIn .5s var(--ease); }
.subhero { padding: 40px 0 24px; }
.subhero h1 { font-family: var(--serif); font-size: clamp(32px,9vw,52px); font-weight: 600; }
.subhero .crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.subhero .crumbs a { color: var(--brand); }
.search-box-lg { position: relative; max-width: 560px; margin-top: 20px; }
.search-box-lg input { width: 100%; padding: 15px 20px 15px 50px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; }
.search-box-lg input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.search-box-lg svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--muted); }
.empty-results { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-results .display { font-size: 26px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 移动端分类条（顶栏 nav 在手机隐藏，用它代替）---------- */
.mobile-cats { display: none; gap: 8px; padding: 10px 22px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mobile-cats::-webkit-scrollbar { display: none; }
.mobile-cats button { flex: 0 0 auto; padding: 8px 16px; border-radius: 99px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.mobile-cats button:active { background: var(--brand-wash); color: var(--brand); }

/* ============================================================
   响应式 — 手机竖屏优先
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial .container { grid-template-columns: 1fr; }
  .editorial-img { min-height: 300px; }
  .editorial-txt { padding: 44px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .mobile-cats { display: flex; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid var(--line); padding: 18px 8px; }
  .trust-item:nth-child(-n+2) { border-top: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card.tall { grid-row: auto; aspect-ratio: 3/3.4; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 52px 0; }
  .pd-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .pd-gallery { padding: 18px; }
  .pd-info { padding: 26px 22px; }
  .pd-highlights { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .card-body { padding: 13px 13px 17px; }
  .price { font-size: 21px; }
  .hero { min-height: 78vh; }
  .news-form { flex-direction: column; }
}
@media (max-width: 380px) {
  .product-grid, .product-grid.cols-3 { gap: 11px; }
  .logo { font-size: 23px; }
}

/* ============================================================
   RWA 返币提示 + 代币仪表盘
   ============================================================ */
.up { color: var(--success); } .down { color: var(--danger); }

.card-reward { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--brand); font-weight: 600; }
.card-reward svg { width: 13px; height: 13px; }
.pd-reward { display: flex; align-items: center; gap: 8px; background: var(--brand-wash); border: 1px solid rgba(255,153,0,.25); color: var(--ink); border-radius: var(--radius-s); padding: 11px 14px; font-size: 13px; margin-bottom: 20px; }
.pd-reward svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }
.pd-reward b { color: var(--brand); }
.cart-reward-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); background: var(--brand-wash); border-radius: var(--radius-s); padding: 10px 12px; margin: 12px 0 14px; }
.cart-reward-row svg { width: 15px; height: 15px; color: var(--brand); }
.cart-reward-row b { color: var(--brand); }

/* 代币页 */
.tk-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.tk-price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tk-sym { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tk-price { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1.1; margin: 4px 0 6px; }
.tk-chg { display: flex; gap: 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.tk-chart { width: 100%; display: block; }
.tk-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; padding-right: 54px; }
.tk-side { display: flex; flex-direction: column; gap: 16px; }
.tk-hold, .tk-how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tk-h-big { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 8px 0 14px; }
.tk-h-big small { font-size: 15px; color: var(--muted); font-family: var(--sans); }
.tk-h-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); border-top: 1px dashed var(--line); }
.tk-h-row:first-of-type { border-top: none; }
.tk-how p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-top: 8px; }
.tk-how b, .tk-h-row b { color: var(--ink); }
.tk-rewards { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.tk-rw { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tk-rw:last-child { border-bottom: none; }
.r-id { font-size: 13.5px; font-weight: 600; }
.r-at { font-size: 11.5px; margin-top: 2px; }
.r-tok { text-align: right; font-size: 14.5px; font-weight: 600; color: var(--success); }
.r-tok .muted { font-size: 11px; font-weight: 400; margin-top: 2px; }
@media (max-width: 768px) {
  .tk-grid { grid-template-columns: 1fr; }
  .tk-price { font-size: 42px; }
  .tk-price-card { padding: 18px; }
}
