/* ==========================================================================
   app.css — 组件与页面
   ========================================================================== */

/* ---------- 0. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--store-bg);
  color: var(--store-text);
  font-family: var(--site-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  transition: background-color var(--motion-control) var(--ease-out),
              color var(--motion-control) var(--ease-out);
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-10); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--store-border-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.store-shell {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

.app-viewport { position: relative; flex: 1 1 auto; isolation: isolate; }

/* ---------- 1. 首屏壳 / 加载指示 ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--store-bg);
  transition: opacity var(--motion-control) var(--ease-out);
}
.boot[hidden] { display: none; }
.boot.is-gone { opacity: 0; pointer-events: none; }
.boot-mark {
  animation: boot-breathe 2.4s var(--ease-out) infinite;
  filter: drop-shadow(0 10px 26px rgba(47, 107, 255, 0.32));
}
.boot-text {
  font-size: 13px;
  color: var(--store-secondary);
  letter-spacing: 0.01em;
}
.boot-track {
  width: 132px;
  height: 3px;
  border-radius: 999px;
  background: var(--store-surface-sunken);
  overflow: hidden;
}
.boot-track > i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4aa3ff, #6f48ff);
  animation: boot-sweep 1.3s var(--ease-out) infinite;
}
@keyframes boot-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.86; }
}
@keyframes boot-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(300%); }
}

/* ---------- 2. 页面切换动效 ---------- */
.page {
  min-height: 100%;
  padding-bottom: calc(var(--tabbar-h) + 46px + var(--safe-b));
}
.page--push { padding-bottom: calc(78px + var(--safe-b)); }

.page-fade-enter { opacity: 0; transform: translateY(10px) scale(0.995); }
.page-fade-enter-active {
  opacity: 1; transform: none;
  transition: opacity var(--motion-page) var(--ease-ios), transform var(--motion-page) var(--ease-ios);
}
.page-fade-exit {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--motion-control) var(--ease-out), transform var(--motion-control) var(--ease-out);
  pointer-events: none;
}
.page-push-enter { opacity: 1; transform: translateX(100%); }
.page-push-enter-active {
  opacity: 1; transform: none;
  transition: transform var(--motion-page) var(--ease-ios);
}
.page-push-exit {
  position: absolute; inset: 0; z-index: 1;
  transform: translateX(100%);
  transition: transform var(--motion-page) var(--ease-ios);
  pointer-events: none;
}
.page-dragging { transition: none !important; }

/* ---------- 3. 通用件：玻璃卡 / 区块标题 ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.card {
  background: var(--store-surface);
  border-radius: var(--r-16);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--store-border-soft);
}

.card--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.sec { margin-top: 20px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
}
.sec-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--store-text-strong);
}
.sec-note { font-size: 12px; color: var(--store-secondary); }
.sec-more {
  font-size: 13px;
  color: var(--store-blue);
  font-weight: 500;
  transition: opacity var(--motion-fast) var(--ease-out);
}
.sec-more:active { opacity: 0.55; }

/* 按压反馈：统一的 iOS 弹簧味 */
.pressable { transition: transform 0.18s var(--ease-press), box-shadow var(--motion-control) var(--ease-out); }
.pressable:active { transform: scale(0.982); }
@media (hover: hover) {
  .pressable:hover { box-shadow: var(--card-shadow-hover); }
}

/* 标签胶囊 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: var(--store-surface-sunken);
  color: var(--store-subtle);
}
.tag--blue { background: var(--store-blue-soft); color: var(--store-blue); }
.tag--green { background: var(--store-green-soft); color: var(--store-green); }
.tag--violet { background: var(--store-violet-soft); color: var(--store-violet); }
.tag--gold { background: var(--store-gold-soft); color: var(--store-gold); }
.tag--red { background: var(--store-red-soft); color: var(--store-red); }

/* 价格 */
.price {
  font-family: var(--num-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--store-red);
  font-variant-numeric: tabular-nums;
}
.price .cur { font-size: 0.66em; margin-right: 1px; font-weight: 600; }
.price-origin {
  font-family: var(--num-font);
  font-size: 12px;
  color: var(--store-secondary);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---------- 4. 顶部栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-t);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-control) var(--ease-out);
}
.topbar.is-stuck { border-bottom-color: var(--store-border); }
.topbar-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: var(--r-11);
  background: linear-gradient(135deg, #4aa3ff, #2f6bff 55%, #6f48ff);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.28);
  flex: 0 0 auto;
}
.brand-text { min-width: 0; }
.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--store-text-strong);
  white-space: nowrap;
}
.brand-sub {
  font-size: 11px;
  color: var(--store-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--store-surface-3);
  color: var(--store-subtle);
  border: 1px solid var(--store-border-soft);
  transition: transform 0.18s var(--ease-press), background-color var(--motion-fast) var(--ease-out);
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 18px; height: 18px; }

/* 详情页导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-t);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--store-border-soft);
}
.navbar-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--store-blue);
  font-weight: 500;
  transition: transform 0.18s var(--ease-press), background-color var(--motion-fast) var(--ease-out);
}
.nav-back:active { transform: scale(0.94); background: var(--store-blue-soft); }
.nav-back svg { width: 20px; height: 20px; }
.nav-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 5. 底部胶囊玻璃导航 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + var(--safe-b));
  width: min(var(--tabbar-w), calc(100vw - 32px));
  height: var(--tabbar-h);
  border-radius: var(--r-tabbar);
  z-index: 60;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-inner);
  transition: opacity var(--motion-control) var(--ease-out), transform var(--motion-control) var(--ease-ios);
}
.tabbar[hidden] { display: none; }
.tabbar.is-hidden { opacity: 0; transform: translateX(-50%) translateY(120%); pointer-events: none; }

/* 玻璃栈：底色薄层 → 焦散高光 → 选中滑块 → 滑块扫光 */
.tabbar-glass-surface {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
html[data-store-theme="dark"] .tabbar-glass-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 62%);
}
.tabbar-glass-caustic {
  position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: 0;
  background:
    radial-gradient(60% 40% at 26% 12%, rgba(74, 163, 255, 0.3), transparent 70%),
    radial-gradient(52% 38% at 78% 6%, rgba(111, 72, 255, 0.24), transparent 72%);
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
  animation: caustic-drift 9s var(--ease-out) infinite alternate;
}
@keyframes caustic-drift {
  0% { transform: translate3d(-6%, 0, 0) scale(1); }
  100% { transform: translate3d(6%, 3%, 0) scale(1.06); }
}
.tabbar-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc((100% - 10px) / var(--tab-count));
  z-index: 1;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--store-surface), var(--store-surface-3));
  box-shadow: 0 4px 14px rgba(15, 20, 40, 0.13), 0 0 0 1px rgba(15, 20, 40, 0.045);
  transform: translateX(0);
  transition: transform var(--motion-page) var(--ease-ios), background-color var(--motion-control) var(--ease-out);
  overflow: hidden;
  pointer-events: none;
}
html[data-store-theme="dark"] .tabbar-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.tabbar-pill-glint {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: pill-glint 3.6s var(--ease-out) infinite;
}
html[data-store-theme="dark"] .tabbar-pill-glint {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
}
@keyframes pill-glint {
  0%, 62% { transform: translateX(-120%); }
  86%, 100% { transform: translateX(130%); }
}
.tabbar-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--tab-count), 1fr);
  padding: 5px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--r-pill);
  color: var(--store-secondary);
  transition: color var(--motion-control) var(--ease-out), transform 0.18s var(--ease-press);
}
.tab:active { transform: scale(0.94); }
.tab svg { width: 20px; height: 20px; }
.tab-label { font-size: 10px; letter-spacing: 0.01em; font-weight: 500; }
.tab.is-active { color: var(--store-blue); }
.tab.is-active .tab-label { font-weight: 600; }

/* ---------- 6. 首页 ---------- */
.home-hero { padding-top: 16px; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-18);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s var(--ease-press), box-shadow var(--motion-control) var(--ease-out);
}
.hero-card:active { transform: scale(0.99); }
@media (hover: hover) { .hero-card:hover { box-shadow: var(--card-shadow-hover); } }
.hero-media { position: relative; aspect-ratio: 16 / 9; background: var(--store-surface-sunken); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}
.hero-media-tags {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hero-media-tags .tag {
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-flag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  height: 24px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff6a3d, #e45666);
  box-shadow: 0 6px 16px rgba(228, 86, 102, 0.4);
}
.hero-body { padding: 14px 15px 15px; }
.hero-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.34;
  color: var(--store-text-strong);
}
.hero-sub { margin-top: 5px; font-size: 12.5px; color: var(--store-secondary); }
.hero-foot {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--store-border-soft);
  display: flex; align-items: center; gap: 10px;
}
.hero-foot .price { font-size: 24px; }
.hero-cta {
  margin-left: auto;
  height: 38px; padding: 0 18px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #2f9dff, #087cff);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(8, 124, 255, 0.32);
  transition: transform 0.18s var(--ease-press), box-shadow var(--motion-control) var(--ease-out);
}
.hero-cta:active { transform: scale(0.95); }
.hero-cta svg { width: 16px; height: 16px; }

/* 交易战报 */
.stats-card { padding: 16px 15px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
.stat-value {
  font-family: var(--num-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--store-text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-value .unit { font-size: 12px; font-weight: 600; color: var(--store-secondary); margin-left: 2px; }
.stat-label { margin-top: 4px; font-size: 11.5px; color: var(--store-secondary); }

/* 服务保障 */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 13px;
  border-radius: var(--r-14);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
}
.svc-ico {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: var(--r-10);
  display: grid; place-items: center;
  background: var(--store-blue-soft); color: var(--store-blue);
}
.svc-ico svg { width: 16px; height: 16px; }
.svc-t { font-size: 13px; font-weight: 600; color: var(--store-text-strong); }
.svc-d { margin-top: 2px; font-size: 11px; color: var(--store-secondary); line-height: 1.45; }

/* 联系方式 */
.contact-card { padding: 16px 15px; display: flex; align-items: center; gap: 13px; }
.contact-avatar {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: var(--r-14);
  display: grid; place-items: center;
  background: linear-gradient(135deg, #34d18a, #23ad78);
  color: #fff;
  box-shadow: 0 8px 20px rgba(35, 173, 120, 0.32);
}
.contact-avatar svg { width: 24px; height: 24px; }
.contact-main { min-width: 0; flex: 1 1 auto; }
.contact-label { font-size: 11.5px; color: var(--store-secondary); }
.contact-id {
  margin-top: 3px;
  font-family: var(--num-font);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--store-text-strong);
  user-select: all;
  word-break: break-all;
}
.contact-tip { margin-top: 4px; font-size: 11px; color: var(--store-secondary); }
.btn-copy {
  flex: 0 0 auto;
  height: 36px; padding: 0 15px;
  border-radius: var(--r-pill);
  background: var(--store-blue-soft);
  color: var(--store-blue);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  transition: transform 0.18s var(--ease-press), background-color var(--motion-fast) var(--ease-out);
}
.btn-copy:active { transform: scale(0.94); }
.btn-copy svg { width: 15px; height: 15px; }
.btn-copy.is-done { background: var(--store-green-soft); color: var(--store-green); }

/* 入口行 */
.entry-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px;
  border-radius: var(--r-14);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s var(--ease-press), box-shadow var(--motion-control) var(--ease-out);
}
.entry-row:active { transform: scale(0.985); }
@media (hover: hover) { .entry-row:hover { box-shadow: var(--card-shadow-hover); } }
.entry-ico {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: var(--r-11);
  display: grid; place-items: center;
  background: var(--store-violet-soft); color: var(--store-violet);
}
.entry-ico svg { width: 18px; height: 18px; }
.entry-t { font-size: 14px; font-weight: 600; color: var(--store-text-strong); }
.entry-d { margin-top: 2px; font-size: 11.5px; color: var(--store-secondary); }
.entry-arrow { margin-left: auto; color: var(--store-secondary); display: grid; place-items: center; }
.entry-arrow svg { width: 18px; height: 18px; }

/* 页脚 */
.foot {
  margin-top: 26px;
  text-align: center;
  font-size: 11px;
  color: var(--store-secondary);
  line-height: 1.7;
}

/* ---------- 7. 全部账号 ---------- */
.list-head { padding-top: 14px; }
.list-title-row { display: flex; align-items: baseline; gap: 8px; }
.list-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--store-text-strong);
}
.list-count { font-size: 12.5px; color: var(--store-secondary); }

.searchbar {
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--motion-control) var(--ease-out);
}
.searchbar:focus-within { box-shadow: var(--card-shadow), var(--focus-ring); }
.searchbar svg { width: 16px; height: 16px; color: var(--store-secondary); flex: 0 0 auto; }
.searchbar input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: none; outline: none;
  font-size: 14px;
}
.searchbar input::placeholder { color: var(--store-secondary); }
.search-clear {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--store-surface-sunken); color: var(--store-secondary);
}
.search-clear svg { width: 11px; height: 11px; }

/* 筛选条：横向可滚，两端渐隐 */
.chipbar {
  margin-top: 12px;
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scroll-behavior: smooth;
}
.chipbar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--store-subtle);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s var(--ease-press), background-color var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}
.chip:active { transform: scale(0.94); }
.chip.is-active {
  background: var(--store-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--select-ring), 0 6px 16px rgba(8, 124, 255, 0.28);
}
.chip--sort {
  margin-left: auto; align-self: center;
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 12px; font-size: 12.5px;
}
.chip--sort svg { width: 13px; height: 13px; }

/* 商品卡网格 */
.catalog {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.item-card {
  overflow: hidden;
  border-radius: var(--r-16);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s var(--ease-press), box-shadow var(--motion-control) var(--ease-out);
  opacity: 0;
  animation: card-arrive 0.46s var(--ease-ios) forwards;
}
.item-card:active { transform: scale(0.985); }
@media (hover: hover) { .item-card:hover { box-shadow: var(--card-shadow-hover); } }
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.item-media { position: relative; aspect-ratio: 16 / 10; background: var(--store-surface-sunken); overflow: hidden; }
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) { .item-card:hover .item-media img { transform: scale(1.045); } }
.item-status {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  height: 22px; padding: 0 9px;
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--store-green);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.item-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: status-pulse 1.9s var(--ease-out) infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}
.item-media-tags {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: flex; gap: 5px; flex-wrap: wrap; max-width: calc(100% - 20px);
}
.item-media-tags .tag { background: rgba(255, 255, 255, 0.9); color: #1d1d1f; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.item-body { padding: 13px 14px 14px; }
.item-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--store-text-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-sub { margin-top: 5px; font-size: 12px; color: var(--store-secondary); }
.item-foot {
  margin-top: 12px;
  display: flex; align-items: flex-end; gap: 8px;
}
.item-foot .price { font-size: 21px; }
.item-installment {
  margin-left: auto;
  font-size: 11px;
  color: var(--store-gold);
  background: var(--store-gold-soft);
  padding: 4px 8px;
  border-radius: var(--r-8);
  white-space: nowrap;
}

/* 空状态 */
.empty {
  padding: 54px 20px;
  text-align: center;
}
.empty-ico {
  width: 62px; height: 62px; margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--store-surface-3);
  color: var(--store-secondary);
  border: 1px solid var(--store-border-soft);
}
.empty-ico svg { width: 27px; height: 27px; }
.empty-t { font-size: 15px; font-weight: 600; color: var(--store-text-strong); }
.empty-d { margin-top: 6px; font-size: 12.5px; color: var(--store-secondary); }
.empty-btn {
  margin-top: 16px;
  height: 36px; padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--store-blue);
  color: #fff; font-size: 13px; font-weight: 600;
  transition: transform 0.18s var(--ease-press);
}
.empty-btn:active { transform: scale(0.94); }

/* ---------- 8. 骨架屏 ---------- */
.sk {
  background: linear-gradient(90deg, var(--store-surface-sunken) 25%, var(--store-surface-3) 37%, var(--store-surface-sunken) 63%);
  background-size: 400% 100%;
  animation: sk-sweep 1.4s var(--ease-out) infinite;
  border-radius: var(--r-8);
}
@keyframes sk-sweep {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.sk-card {
  border-radius: var(--r-16);
  overflow: hidden;
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
}
.sk-media { aspect-ratio: 16 / 10; border-radius: 0; }
.sk-body { padding: 13px 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.sk-line { height: 12px; }
.sk-w70 { width: 70%; }
.sk-w45 { width: 45%; }
.sk-w85 { width: 85%; }
.sk-line-lg { height: 20px; width: 34%; }

/* ---------- 9. 商品详情 ---------- */
.detail-gallery { position: relative; background: var(--store-surface-sunken); }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 16 / 10;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-counter {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  height: 22px; padding: 0 10px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-pill);
  font-family: var(--num-font);
  font-size: 11px; font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gallery-dots {
  display: flex; justify-content: center; gap: 5px;
  padding: 10px 0 2px;
}
.gallery-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--store-border-strong);
  transition: width var(--motion-control) var(--ease-ios), background-color var(--motion-control) var(--ease-out);
}
.gallery-dot.is-active { width: 18px; border-radius: 999px; background: var(--store-blue); }

.detail-block {
  margin-top: 14px;
  padding: 16px 15px;
  border-radius: var(--r-16);
  background: var(--store-surface);
  border: 1px solid var(--store-border-soft);
  box-shadow: var(--card-shadow);
}
.detail-price-row { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; }
.detail-price-row .price { font-size: 30px; }
.detail-title {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.36;
  color: var(--store-text-strong);
}
.detail-sub { margin-top: 6px; font-size: 12.5px; color: var(--store-secondary); }
.detail-tags { margin-top: 11px; display: flex; gap: 6px; flex-wrap: wrap; }

.inst-bar {
  margin-top: 13px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-12);
  background: var(--store-gold-soft);
  color: var(--store-gold);
  font-size: 12.5px;
  font-weight: 500;
}
.inst-bar svg { width: 15px; height: 15px; flex: 0 0 auto; }

.meta-grid {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--store-border-soft);
  border-radius: var(--r-12);
  overflow: hidden;
}
.meta-cell { background: var(--store-surface); padding: 11px 12px; }
.meta-k { font-size: 11px; color: var(--store-secondary); }
.meta-v {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--store-text-strong);
  word-break: break-all;
}

.hero-honor {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border-radius: var(--r-12);
  background: var(--store-surface-3);
  border: 1px solid var(--store-border-soft);
}
.hero-honor + .hero-honor { margin-top: 8px; }
.honor-badge {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: var(--r-11);
  display: grid; place-items: center;
  font-family: var(--num-font);
  font-size: 12px; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ffb03a, #e45666);
  box-shadow: 0 6px 16px rgba(228, 86, 102, 0.28);
}
.honor-name { font-size: 13.5px; font-weight: 600; color: var(--store-text-strong); }
.honor-desc { margin-top: 2px; font-size: 11.5px; color: var(--store-secondary); }
.honor-score {
  margin-left: auto;
  font-family: var(--num-font);
  font-size: 15px; font-weight: 700;
  color: var(--store-gold);
  font-variant-numeric: tabular-nums;
}

.skin-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.skin-chip {
  padding: 7px 11px;
  border-radius: var(--r-10);
  background: var(--store-surface-3);
  border: 1px solid var(--store-border-soft);
  font-size: 12px;
  color: var(--store-subtle);
}
.skin-chip b { color: var(--store-violet); font-weight: 600; }

.desc-list { margin-top: 2px; display: flex; flex-direction: column; gap: 9px; }
.desc-item { display: flex; gap: 9px; font-size: 13px; color: var(--store-text); line-height: 1.6; }
.desc-item::before {
  content: ""; flex: 0 0 auto;
  width: 5px; height: 5px; margin-top: 8px;
  border-radius: 50%; background: var(--store-blue);
}

.warn-box {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: var(--r-12);
  background: var(--store-red-soft);
  color: var(--store-red);
  font-size: 12px;
  line-height: 1.65;
}

/* 底部操作栏 */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--store-border-soft);
  animation: actionbar-in var(--motion-control) var(--ease-ios);
}
@keyframes actionbar-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.actionbar-inner {
  width: 100%; max-width: var(--page-max);
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
}
.actionbar-id { min-width: 0; flex: 1 1 auto; }
.actionbar-k { font-size: 10.5px; color: var(--store-secondary); }
.actionbar-v {
  font-family: var(--num-font);
  font-size: 15px; font-weight: 700;
  color: var(--store-text-strong);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-primary {
  flex: 0 0 auto;
  height: 44px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #2f9dff, #087cff);
  color: #fff; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 10px 24px rgba(8, 124, 255, 0.34);
  transition: transform 0.18s var(--ease-press);
}
.btn-primary:active { transform: scale(0.95); }
.btn-primary svg { width: 17px; height: 17px; }

/* ---------- 10. 遮罩 / 底部弹层 ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; }
.overlay[hidden] { display: none; }
.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 14, 24, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--motion-control) var(--ease-out);
}
.overlay.is-open .overlay-backdrop { opacity: 1; }
.overlay-host {
  position: absolute; left: 0; right: 0; bottom: 0;
  transform: translateY(100%);
  transition: transform var(--motion-page) var(--ease-ios);
}
.overlay.is-open .overlay-host { transform: none; }
.overlay-host--mid {
  left: 50%; right: auto; bottom: auto;
  top: 50%;
  width: min(420px, calc(100vw - 40px));
  transform: translate(-50%, -46%) scale(0.94);
  opacity: 0;
  transition: transform var(--motion-control) var(--ease-ios), opacity var(--motion-control) var(--ease-out);
}
.overlay.is-open .overlay-host--mid { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.overlay-host--full { top: 0; }

.sheet {
  background: var(--store-surface);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--sheet-shadow);
  padding-bottom: var(--safe-b);
  max-height: 82vh;
  overflow-y: auto;
}
.sheet-grip {
  width: 38px; height: 5px;
  border-radius: 999px;
  background: var(--store-border-strong);
  margin: 9px auto 4px;
}
.sheet-head {
  padding: 8px 18px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--store-text-strong);
}
.sheet-body { padding: 0 18px 18px; }
.sheet-pad { padding: 4px 18px calc(16px + var(--safe-b)); }

.opt {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px;
  font-size: 15px;
  color: var(--store-text);
  border-bottom: 1px solid var(--store-border-soft);
  transition: background-color var(--motion-fast) var(--ease-out);
}
.opt:last-child { border-bottom: 0; }
.opt:active { background: var(--store-surface-3); }
.opt-check { margin-left: auto; color: var(--store-blue); display: grid; place-items: center; }
.opt-check svg { width: 18px; height: 18px; }
.opt.is-active { color: var(--store-blue); font-weight: 600; }

.copy-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 15px;
  border-radius: var(--r-14);
  background: var(--store-surface-3);
  border: 1px solid var(--store-border-soft);
}
.copy-row-main { min-width: 0; flex: 1 1 auto; }
.copy-row-k { font-size: 11px; color: var(--store-secondary); }
.copy-row-v {
  margin-top: 3px;
  font-family: var(--num-font);
  font-size: 18px; font-weight: 700;
  color: var(--store-text-strong);
  user-select: all; word-break: break-all;
}
.sheet-tip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--store-secondary);
  line-height: 1.7;
}
.sheet-actions { margin-top: 16px; display: flex; gap: 10px; }
.btn-ghost {
  flex: 1 1 0;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--store-surface-sunken);
  color: var(--store-text);
  font-size: 15px; font-weight: 600;
  transition: transform 0.18s var(--ease-press);
}
.btn-ghost:active { transform: scale(0.96); }

/* 大图查看 */
.viewer {
  background: #0b0b0f;
  height: 100dvh;
  display: flex; flex-direction: column;
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
}
.viewer-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--num-font);
  font-size: 13px; font-weight: 600;
}
.viewer-close {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.viewer-close svg { width: 16px; height: 16px; }
.viewer-track {
  flex: 1 1 auto;
  display: flex; align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 10px; }
.viewer-slide img { width: 100%; max-height: 76dvh; object-fit: contain; border-radius: var(--r-12); }

/* ---------- 11. Toast ---------- */
.status-toast {
  position: fixed;
  left: 50%;
  top: calc(18px + var(--safe-t));
  transform: translate(-50%, -14px) scale(0.96);
  z-index: 95;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 30, 0.9);
  color: #fff;
  font-size: 13px; font-weight: 500;
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-control) var(--ease-ios);
  pointer-events: none;
}
.status-toast[hidden] { display: none; }
.status-toast.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 380px) {
  :root { --gutter: 13px; }
  .stat-value { font-size: 20px; }
  .hero-title { font-size: 16px; }
  .detail-price-row .price { font-size: 26px; }
  .btn-primary { padding: 0 17px; }
}
@media (min-width: 560px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root { --gutter: 20px; }
}
@media (min-width: 860px) {
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { padding-bottom: calc(var(--tabbar-h) + 56px + var(--safe-b)); }
}
@media (min-width: 1140px) {
  :root { --page-max: 1120px; }
}

/* 触屏才允许 hover 反馈，鼠标才启用 hover */
@media (hover: none) {
  .pressable:hover, .item-card:hover, .entry-row:hover, .hero-card:hover { box-shadow: var(--card-shadow); }
  .item-card:hover .item-media img { transform: none; }
}

/* ---------- 13. 无障碍：尊重减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .item-card { opacity: 1; }
}
