/* =========================================================================
   心谈科技 · 浅蓝清新控制台 · 工业级视觉体系
   ========================================================================= */

:root {
  --bg: #eef7ff;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.72);
  --panel-soft: #f4faff;
  --line: #d8e9f6;
  --line2: #bcd8ee;
  --tx: #27455b;
  --tx-strong: #16354a;
  --mut: #6286a1;
  --dim: #94b4cb;
  --ac: #3f97cd;
  --ac-2: #5bb4e6;
  --ac-deep: #2f7fb5;
  --ac-soft: rgba(63, 151, 205, 0.10);
  --ok: #3aa981;
  --err: #e2687a;
  --grad: linear-gradient(135deg, #4aa6dd 0%, #3f8fca 55%, #5b7fe0 100%);
  --grad-soft: linear-gradient(135deg, #eaf6ff 0%, #e3f0fd 100%);
  --sh-sm: 0 2px 10px rgba(70, 130, 175, 0.10);
  --sh-md: 0 10px 30px rgba(60, 120, 170, 0.14);
  --sh-lg: 0 22px 55px rgba(45, 100, 150, 0.20);
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Roboto Mono", monospace;
  --radius: 16px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* 保证 HTML hidden 属性不被组件自己的 display 规则覆盖（空状态 / 表格 / 登录退出按钮 / toast） */
[hidden] { display: none !important; }

body {
  color: var(--tx);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  background-color: #eaf4fd;
  background-image:
    radial-gradient(circle at 12% 6%, rgba(120, 190, 240, 0.35), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(130, 170, 245, 0.25), transparent 40%),
    radial-gradient(circle at 82% 96%, rgba(90, 200, 190, 0.18), transparent 46%),
    radial-gradient(rgba(120, 175, 215, 0.22) 1px, transparent 1px),
    linear-gradient(168deg, #f4fbff 0%, #e6f3fd 44%, #d8eaf8 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px, 100% 100%;
  background-position: 0 0, 0 0, 0 0, -13px -13px, 0 0;
  background-attachment: fixed;
}
.bg { display: none; }

/* ---------------- 顶栏（玻璃拟态 + 左对齐下划线 Tab） ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 24px;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(188, 216, 238, 0.8);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 24px rgba(70, 130, 175, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--tx-strong);
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(63, 143, 202, 0.40);
}
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--tx-strong);
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}
.brand-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #5a738e;
  white-space: nowrap;
}

/* 主导航：平铺文字 + 底部渐变下划线 */
.topnav {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  padding: 0 4px;
  margin-left: 2px;
  flex: 0 1 auto;
}
.nav-tab {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: var(--mut);
  font-size: 16px;
  font-weight: 600;
  padding: 0 18px;
  white-space: nowrap;
  transition: color .25s ease;
}
.nav-tab:hover { color: var(--ac-deep); }
.nav-tab.active { color: var(--ac-deep); font-weight: 700; }
.nav-indicator {
  position: absolute;
  z-index: 3;
  left: 0; bottom: -1px;
  height: 3px; width: 0;
  border-radius: 3px 3px 0 0;
  background: var(--grad);
  box-shadow: 0 -2px 10px rgba(63, 143, 202, 0.35);
  transition: transform .38s cubic-bezier(.4,.9,.3,1), width .38s cubic-bezier(.4,.9,.3,1);
  pointer-events: none;
}
.topnav > a:not(.nav-tab) {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ac-deep);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s ease;
}
.topnav > a:not(.nav-tab):hover { background: rgba(255, 255, 255, 0.7); }

.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.auth-user {
  font-size: 12.5px;
  color: var(--mut);
  font-family: var(--mono);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 6px 18px rgba(63, 143, 202, 0.32);
  letter-spacing: .01em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(63, 143, 202, 0.42);
  filter: brightness(1.04);
}
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--tx);
  border: 1px solid var(--line2);
  box-shadow: var(--sh-sm);
}
.btn.ghost:hover {
  background: #fff;
  border-color: var(--ac);
  color: var(--ac-deep);
  box-shadow: var(--sh-md);
}
.btn.small { padding: 8px 16px; font-size: 12.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn-arrow { font-size: 16px; transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------- 主体容器 ---------------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 44px 24px 64px;
  display: flex;
  flex-direction: column;
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  margin-bottom: 54px;
  animation: rise .6s ease both;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ac-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--sh-sm);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--tx-strong);
  margin-bottom: 14px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: 15.5px;
  color: var(--mut);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 190px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--ac-soft);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #eaf6ff, #dceefc);
  border: 1px solid var(--line);
  color: var(--ac-deep);
  margin-bottom: 10px;
}
.stat-ico .ico { display: block; }
.stat-card strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--mono);
}
.stat-card span:last-child { font-size: 12.5px; color: var(--mut); margin-top: 6px; }

/* ---------------- Tab 面板切换 ---------------- */
.section { animation: rise .5s ease both; }
.tabs-js .section { display: none; }
.tabs-js .section.active { display: block; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-title { display: flex; flex-direction: column; gap: 6px; }
.section-eyebrow {
  font: 800 14px var(--mono);
  letter-spacing: .12em;
  color: var(--ac-deep);
}
.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--tx-strong);
  letter-spacing: -.01em;
}
.section-head p { font-size: 15px; color: var(--mut); padding-bottom: 3px; }

/* ---------------- 页面导航卡片 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--ac)), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line2);
  box-shadow: var(--sh-lg);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f0f8ff, #e2f0fc);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(63, 143, 202, .10);
  color: var(--accent, var(--ac));
  margin-bottom: 18px;
}
.card-icon .ico { display: block; }

.card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  color: var(--tx-strong);
}
.card p { color: #50647a; font-size: 14.5px; line-height: 1.7; flex: 1; }
.hero-eyebrow { font-size: 13.5px; padding: 7px 16px; }
.card-go {
  margin-top: 18px; font-size: 15px; color: var(--ac-deep);
  font-weight: 800; font-family: var(--mono);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease;
}
.card:hover .card-go { gap: 11px; }

/* ---------------- 数字商品卡片（重做） ---------------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(8px);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.product:hover {
  transform: translateY(-8px);
  border-color: var(--line2);
  box-shadow: var(--sh-lg);
}
.product-art {
  position: relative;
  height: 168px;
  color: var(--accent, var(--ac));
  background: linear-gradient(150deg, #f6fbff 0%, #e9f4fd 100%);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.product-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 18px 18px; opacity: .09;
}
.product-art .p-art-svg {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  transition: transform .45s cubic-bezier(.2,.8,.3,1);
}
.product:hover .product-art .p-art-svg { transform: scale(1.06) rotate(-1deg); }
.product-art-tag {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  color: #fff;
  background: var(--accent, var(--ac-deep));
  box-shadow: 0 6px 14px rgba(35, 90, 140, .22);
}
.product-art-no {
  position: absolute; z-index: 2; right: 14px; bottom: 8px;
  font: 800 30px var(--mono);
  color: var(--accent, var(--ac)); opacity: .16;
  letter-spacing: -.04em;
}
.product-body { padding: 20px 20px 8px; flex: 1; }
.product-kicker {
  display: block;
  font: 700 10.5px var(--mono);
  letter-spacing: .1em; color: var(--ac);
  margin-bottom: 9px;
}
.product-body h3 {
  font-size: 17.5px; font-weight: 800;
  color: var(--tx-strong); letter-spacing: -.01em; line-height: 1.35;
}
.product-body h3 a { color: inherit; text-decoration: none; transition: color .2s ease; }
.product-body h3 a:hover { color: var(--accent, var(--ac-deep)); }
.product-desc {
  font-size: 14.5px; color: #50647a; line-height: 1.7; margin-top: 8px;
}
.product-foot {
  padding: 16px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.product-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px dashed var(--line); padding-top: 14px;
}
.price-label { font-size: 14px; color: var(--mut); font-weight: 600; }
.price {
  font-size: 28px; font-weight: 800;
  color: var(--accent, var(--ac-deep));
  font-family: var(--mono); letter-spacing: -.02em;
}
.price em { font-size: 17px; font-style: normal; margin-right: 2px; }
.product-actions { display: flex; gap: 10px; }
.product-actions .product-view { flex: 0 0 auto; padding: 11px 18px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.product-actions .buy {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: none; border-radius: 12px; padding: 12px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer; color: #fff;
  white-space: nowrap;
  background: var(--accent, var(--ac-deep));
  box-shadow: 0 8px 20px rgba(40, 100, 150, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.product-actions .buy::after { content: "→"; font-size: 15px; transition: transform .2s ease; }
.product-actions .buy:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(40,100,150,.32); filter: brightness(1.07); }
.product-actions .buy:hover::after { transform: translateX(3px); }
.product-actions .buy:disabled { opacity: .65; cursor: wait; transform: none; }
/* 加载骨架态与空态 */
.product.is-loading { pointer-events: none; }
.product.is-loading .product-art,
.product.is-loading .product-body,
.product.is-loading .product-foot { position: relative; overflow: hidden; }
.product.is-loading .product-art::after,
.product.is-loading .product-body::after,
.product.is-loading .product-foot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.products-empty { grid-column: 1 / -1; }

/* ---------------- 订单列表（工业级表格） ---------------- */
.orders-wrap {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.table-scroll { overflow-x: auto; }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders th {
  background: #f8fbfe;
  color: var(--mut); font-weight: 700; text-align: left;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  white-space: nowrap; font-size: 13px; letter-spacing: .08em;
}
.orders td { padding: 16px 22px; border-bottom: 1px solid #eef5fb; color: var(--tx); vertical-align: middle; }
.orders tbody tr { transition: background .18s ease; }
.orders tbody tr:hover { background: #f7fbff; }
.orders tr:last-child td { border-bottom: none; }
.ord-no { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #27455b; }
.ord-subject { font-weight: 700; color: var(--tx-strong); font-size: 16px; }
.ord-amount { font-family: var(--mono); font-weight: 800; font-size: 17px; color: var(--ac-deep); white-space: nowrap; }
.ord-amount .cur { font-size: 14px; opacity: .85; margin-right: 2px; }
.ord-time { display: inline-flex; flex-direction: column; gap: 3px; white-space: nowrap; line-height: 1.35; }
.ord-time .ord-date { font-size: 15px; color: var(--tx-strong); font-weight: 600; }
.ord-time .ord-clock { font-size: 14px; color: #5a738e; font-family: var(--mono); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag.paid { background: #e5f8ef; color: #218a63; border: 1px solid #b6ecd4; }
.tag.wait { background: #fff6e0; color: #b07d12; border: 1px solid #f7dfa0; }
.tag.other { background: #eef3f8; color: var(--mut); border: 1px solid var(--line); }
.link-btn {
  background: #fff; border: 1px solid var(--line2); color: var(--ac-deep);
  border-radius: 9px; padding: 7px 15px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
}
.link-btn:hover { background: var(--ac); color: #fff; border-color: var(--ac); }
a.link-btn { text-decoration: none; display: inline-block; }
.order-ops { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-ops .link-btn { white-space: nowrap; }

/* ---------------- 订单详情页 ---------------- */
.order-detail-wrap { flex: 1; width: 100%; max-width: 1080px; margin: 40px auto 24px; padding: 0 20px; }
.od-card { position: relative; background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 22px; padding: 36px 40px; box-shadow: var(--sh-lg); backdrop-filter: blur(10px); overflow: hidden; }
.od-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.od-eyebrow { font: 800 13px var(--mono); letter-spacing: .18em; color: var(--ac-deep); text-transform: uppercase; }
.od-head h1 { margin: 8px 0 0; font-size: 22px; font-weight: 800; color: var(--tx-strong); letter-spacing: -.01em; }
.od-amount { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 20px 26px; background: linear-gradient(135deg, #eef7ff, #e2f0fc); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 26px; }
.od-amount-label { font-size: 15px; color: var(--mut); font-weight: 600; }
.od-amount-value { font-size: 40px; font-weight: 800; line-height: 1; font-family: var(--mono); background: linear-gradient(135deg, #3f8fca, #5b7fe0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.od-amount-value em { font-size: 22px; font-style: normal; margin-right: 2px; }
.od-fields { display: flex; flex-direction: column; }
.od-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 4px; border-bottom: 1px dashed var(--line); }
.od-row:last-child { border-bottom: none; }
.od-row dt { font-size: 15px; color: var(--mut); font-weight: 600; flex: 0 0 auto; }
.od-row dd { font-size: 16px; color: var(--tx-strong); font-weight: 600; text-align: right; word-break: break-all; }
.od-row dd.mono, .mono { font-family: var(--mono); font-size: 16px; font-weight: 700; color: #16354a; }
.od-actions { display: flex; gap: 14px; margin-top: 30px; align-items: center; flex-wrap: wrap; }
.od-back { color: var(--mut); text-decoration: none; font-size: 15px; font-weight: 600; }
.od-back:hover { color: var(--ac-deep); }
.order-hint { text-align: center; padding: 60px 24px; color: var(--mut); font-size: 15px; line-height: 1.9; }
.order-hint .hint-ico {
  display: block; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 16px; position: relative;
  background: linear-gradient(135deg, #eef7ff, #dceefc);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.order-hint .hint-ico::after {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 24px; border: 2px solid var(--ac); border-radius: 4px;
  background:
    linear-gradient(var(--ac), var(--ac)) 4px 6px / 12px 2px no-repeat,
    linear-gradient(var(--ac), var(--ac)) 4px 11px / 12px 2px no-repeat,
    linear-gradient(var(--ac), var(--ac)) 4px 16px / 8px 2px no-repeat;
  opacity: .7;
}
.order-hint a.btn { text-decoration: none; }

/* ---------------- 空状态 ---------------- */
.empty {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 82px 24px 58px; text-align: center;
  color: var(--mut); font-size: 14px;
}
.empty::before {
  content: "";
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, #eef7ff, #dceefc);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.empty::after {
  content: ""; position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 24px; border: 2px solid var(--ac); border-radius: 4px;
  background:
    linear-gradient(var(--ac), var(--ac)) 4px 6px / 12px 2px no-repeat,
    linear-gradient(var(--ac), var(--ac)) 4px 11px / 12px 2px no-repeat,
    linear-gradient(var(--ac), var(--ac)) 4px 16px / 8px 2px no-repeat;
  opacity: .7;
}

/* ---------------- 登录/注册弹窗（重做） ---------------- */
.modal:not([hidden]) {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at 50% 28%, rgba(30, 70, 105, .35), rgba(18, 45, 68, .62));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  display: flex !important; align-items: center; justify-content: center; padding: 20px;
  animation: fade .25s ease;
}
.modal[hidden] { display: none !important; }
.modal-card {
  width: 100%; max-width: 440px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(20, 60, 95, .42);
  animation: pop .34s cubic-bezier(.2,.8,.3,1);
}
/* 品牌区：几何背景 + logo + 关闭按钮（独立一行，绝不与下方 tab 重叠） */
.modal-brand {
  position: relative;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, #4aa6dd 0%, #3f8fca 52%, #5b7fe0 100%);
  color: #fff; overflow: hidden;
}
.modal-brand-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.modal-brand-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-logo {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .45);
  font-weight: 800; font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.modal-close {
  width: 34px; height: 34px; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .18);
  color: #fff; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease, transform .25s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, .36); transform: rotate(90deg); }
.modal-brand-copy {
  position: relative; z-index: 2; margin-top: 16px;
  display: flex; flex-direction: column; gap: 5px;
}
.modal-brand-copy strong { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.modal-brand-copy span { font-size: 12.5px; opacity: .88; }
.modal-body { padding: 22px 24px 20px; }
/* 切换 tab：滑动高亮 + 与表单留足间距 */
.tabs {
  position: relative; display: flex;
  background: #eaf4fd; border: 1px solid var(--line);
  border-radius: 12px; padding: 5px; margin-bottom: 22px;
}
.tabs::before {
  content: ""; position: absolute; z-index: 0;
  /* 三等分：与下面 3 个 .tab{flex:1} 严格对齐，不要再写死 50% */
  top: 5px; left: 5px; width: calc((100% - 10px) / 3); height: calc(100% - 10px);
  border-radius: 9px; background: #fff; box-shadow: var(--sh-sm);
  transition: transform .3s cubic-bezier(.4,.9,.3,1);
}
.tabs:has(.tab[data-tab="register"].active)::before { transform: translateX(100%); }
.tabs:has(.tab[data-tab="forgot"].active)::before   { transform: translateX(200%); }
.tab {
  position: relative; z-index: 1; flex: 1;
  border: none; background: transparent; padding: 11px 10px;
  font-size: 14px; font-weight: 700; color: var(--mut);
  cursor: pointer; border-radius: 9px; transition: color .25s ease;
}
.tab.active { color: var(--ac-deep); }
.pane { display: none; }
.pane.active { display: block; animation: rise .35s ease both; }
.pane label { display: block; font-size: 12.5px; font-weight: 700; color: var(--tx); margin-bottom: 15px; }
.field {
  display: flex; align-items: center; gap: 9px;
  margin-top: 8px; padding: 0 12px;
  border: 1.5px solid var(--line2); border-radius: 11px;
  background: #fbfdff; color: var(--dim);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.field:focus-within {
  border-color: var(--ac); background: #fff; color: var(--ac);
  box-shadow: 0 0 0 4px rgba(63, 151, 205, .14);
}
.field .ico { flex: 0 0 auto; }
.pane input {
  flex: 1; min-width: 0; width: 100%;
  margin: 0; padding: 12px 0;
  border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--tx);
}
.pane input::placeholder { color: var(--dim); }
/* 验证码行：所有断点保持横排，不撑高表单、不与 tab 拥挤 */
.inline { display: flex; gap: 10px; align-items: stretch; flex-direction: row; flex-wrap: nowrap; }
.inline .field { flex: 1; min-width: 0; margin-top: 8px; }
.send-code {
  flex: 0 0 auto; white-space: nowrap;
  padding: 0 14px; margin-top: 8px;
  font-size: 12.5px; border-radius: 11px;
}
.btn.wide { width: 100%; padding: 13px; border-radius: 12px; margin-top: 18px; font-size: 15px; }
.msg { margin-top: 12px; font-size: 12.5px; text-align: center; min-height: 16px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.modal-foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--mut);
}
.modal-foot .ico { color: var(--ac); }

/* ---------------- 页脚 / Toast ---------------- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  text-align: center;
  color: var(--dim);
  font: 12.5px var(--mono);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: rgba(22, 53, 74, 0.94); color: #fff;
  padding: 12px 26px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 14px 36px rgba(20, 55, 85, .34);
  z-index: 2000; backdrop-filter: blur(8px);
  border: 1.5px solid rgba(110, 231, 183, .4);
}

/* ---------------- 动效 ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 36px 22px 56px; }
  .topbar { padding: 0 22px; }
  footer { padding: 24px 22px; }
}
@media (max-width: 880px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 12px 18px; gap: 12px; }
  .topnav { order: 3; width: 100%; justify-content: center; align-self: auto; border-left: none; border-top: 1px solid var(--line); height: 46px; }
  .nav-tab { flex: 1; justify-content: center; text-align: center; padding: 9px 10px; font-size: 15px; height: 100%; }
  .auth-area { margin-left: auto; }
  .wrap { padding: 28px 18px 44px; }
  footer { padding: 22px 18px; }
}
@media (max-width: 768px) {
  .wrap { padding: 24px 16px 40px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topnav { padding: 4px; }
  .nav-tab { padding: 9px 8px; font-size: 14px; }
  .hero { margin-bottom: 38px; }
  .hero h1 { font-size: clamp(26px, 7vw, 34px); }
  .hero p.sub { font-size: 14px; }
  .stats { gap: 14px; }
  .stat-card { padding: 16px 18px; }
  .stat-card strong { font-size: 26px; }
  .grid, .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 20px 18px; }
  .product { padding: 20px 18px 18px; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 21px; }
  .orders { min-width: 560px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .orders th, .orders td { padding: 12px 14px; }
  .orders-wrap { overflow: hidden; }
  .order-detail-wrap { margin: 24px auto 16px; padding: 0 16px; }
  .od-card { padding: 26px 22px; }
  .od-head h1 { font-size: 24px; }
  .od-amount-value { font-size: 34px; }
  .modal-card { padding: 30px 24px 24px; }
  footer { padding: 20px 16px; }
}
@media (max-width: 640px) {
  .stats { flex-direction: column; align-items: stretch; }
  .stat-card { min-width: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand-name { font-size: 17px; }
  .auth-user { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 20px 16px 36px; }
  .topbar { padding: 10px 16px; }
  .nav-tab { padding: 8px 6px; font-size: 13.5px; }
  .hero { margin-bottom: 32px; }
  .hero-eyebrow { font-size: 11px; padding: 6px 12px; }
  .hero h1 { font-size: 26px; }
  .grid, .products { grid-template-columns: 1fr; }
  .products { gap: 14px; }
  .price { font-size: 22px; }
  .section-head h2 { font-size: 20px; }
  .od-card { padding: 22px 18px; border-radius: 18px; }
  .od-head h1 { font-size: 22px; }
  .od-amount { padding: 16px 18px; gap: 10px; }
  .od-amount-value { font-size: 30px; }
  .od-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 2px; }
  .od-row dd { text-align: left; }
  .od-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .od-actions .btn { width: 100%; }
  .od-back { text-align: center; }
  .modal-card { padding: 24px 18px 20px; border-radius: 16px; }
  .modal:not([hidden]) { padding: 12px; }
  .inline { flex-direction: column; }
  .inline .btn { width: 100%; }
  .orders th, .orders td { padding: 10px 12px; }
  footer { padding: 18px 16px; font-size: 11.5px; }
}


/* =========================================================================
   商品详情页（重做）：双栏 + 程序化 SVG 主视觉 + 粘性购买卡
   ========================================================================= */
.pd-page { --accent: var(--ac); }
.pd-wrap {
  flex: 1; width: 100%; max-width: 1180px;
  margin: 0 auto; padding: 34px 24px 64px;
}
.pd-crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--mut); margin-bottom: 24px;
  animation: rise .5s ease both;
}
.pd-crumb a { color: var(--mut); text-decoration: none; transition: color .2s ease; }
.pd-crumb a:hover { color: var(--ac-deep); }
.pd-sep { color: var(--dim); }
.pd-cur { color: var(--tx-strong); font-weight: 700; }
.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px; align-items: start;
}
.pd-main-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.detail-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: rise .55s ease both;
}
.pd-hero-card { padding: 0; }
.pd-hero-art {
  position: relative; height: 300px;
  color: var(--accent, var(--ac));
  background: linear-gradient(150deg, #f7fbff 0%, #e7f2fd 100%);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.pd-hero-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px; opacity: .08;
}
.pd-art-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, currentColor, transparent 70%);
  opacity: .10; filter: blur(8px);
}
.pd-hero-art .p-art-svg {
  position: relative; z-index: 1;
  width: min(78%, 460px); height: 86%;
  filter: drop-shadow(0 16px 24px rgba(40, 90, 130, .12));
}
.pd-art-badge {
  position: absolute; z-index: 2; top: 18px; left: 18px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent, var(--ac-deep));
  box-shadow: 0 8px 18px rgba(35, 90, 140, .24);
}
.pd-header { padding: 26px 30px 28px; }
.pd-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px;
  color: var(--accent, var(--ac-deep));
  background: #f2f9ff; border: 1px solid var(--line);
  margin-bottom: 14px;
}
.detail-header h1 {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 800;
  color: var(--tx-strong); letter-spacing: -.02em; line-height: 1.3;
}
.pd-lead { font-size: 15px; color: var(--mut); line-height: 1.8; margin-top: 12px; }
.pd-header-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.pd-header-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--mut); font-weight: 600;
}
.pd-header-meta .ico { color: var(--accent, var(--ac)); }
.pd-block { padding: 24px 30px 26px; }
.pd-block-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.pd-block-ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: var(--accent, var(--ac-deep));
  box-shadow: 0 6px 14px rgba(40, 100, 150, .22);
}
.pd-block-head h2 { font-size: 18px; font-weight: 800; color: var(--tx-strong); }
.features-list.pd-features {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px;
}
.pd-features li {
  position: relative; padding-left: 30px;
  font-size: 13.5px; color: var(--tx); line-height: 1.6;
}
.pd-features li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent, var(--ac-deep));
}
.pd-features li::after {
  content: ""; position: absolute; left: 7px; top: 6px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.delivery-box.pd-delivery {
  padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(135deg, #f2f9ff, #e9f4fd);
  border: 1px solid var(--line); color: var(--tx);
  font-size: 13.5px; line-height: 1.8;
}
.pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.pd-trust-item {
  display: flex; gap: 12px; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}
.pd-trust-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--accent, var(--ac)); background: #eef7ff; border: 1px solid var(--line);
}
.pd-trust-item strong { display: block; font-size: 13.5px; color: var(--tx-strong); margin-bottom: 5px; }
.pd-trust-item p { font-size: 12px; color: var(--mut); line-height: 1.65; }
.pd-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pd-rel {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pd-rel:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line2); }
.pd-rel-art {
  height: 92px; display: grid; place-items: center;
  color: var(--accent, var(--ac));
  background: linear-gradient(150deg, #f7fbff, #e9f4fd);
  border-bottom: 1px solid var(--line);
}
.pd-rel-art .p-art-svg { width: 100%; height: 100%; }
.pd-rel-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.pd-rel-info strong { font-size: 13px; color: var(--tx-strong); }
.pd-rel-info em {
  font-style: normal; font-size: 14px; font-weight: 800;
  color: var(--accent, var(--ac-deep)); font-family: var(--mono);
}
.pd-rel-go { position: absolute; right: 12px; bottom: 12px; color: var(--ac); font-size: 16px; }
.pd-side { position: sticky; top: calc(var(--topbar-h) + 20px); }
.pd-buy-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: var(--sh-lg);
  backdrop-filter: blur(10px);
  animation: rise .6s ease both;
}
.pd-buy-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-buy-label { font-size: 12px; color: var(--mut); font-weight: 600; }
.pd-price {
  display: flex; align-items: baseline; gap: 4px; margin-top: 18px;
  color: var(--accent, var(--ac-deep));
}
.pd-price .symbol { font-size: 22px; font-weight: 800; }
.pd-price .amount {
  font-size: 46px; font-weight: 800;
  font-family: var(--mono); letter-spacing: -.03em; line-height: 1;
}
.pd-price-note { font-size: 12px; color: var(--mut); margin-top: 10px; }
.pd-pay-btn { width: 100%; margin-top: 22px; padding: 14px; font-size: 15px; border-radius: 13px; }
.pd-secure {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: var(--mut); line-height: 1.6; margin-top: 14px;
}
.pd-secure .ico { flex: 0 0 auto; color: var(--ac); margin-top: 1px; }
.pd-buy-list {
  list-style: none; margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 11px;
}
.pd-buy-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--tx); }
.pd-buy-list .ico { color: var(--ok); flex: 0 0 auto; }
.btn-back.pd-back {
  display: block; text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--mut); text-decoration: none; font-weight: 600;
  transition: color .2s ease;
}
.btn-back.pd-back:hover { color: var(--ac-deep); }

/* ---------------- 响应式补充（覆盖重做后的组件） ---------------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
}
@media (max-width: 880px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-side { position: static; }
  .pd-buy-card { max-width: 520px; }
}
@media (max-width: 768px) {
  .products { gap: 18px; }
  .modal-brand { padding: 20px 20px 18px; }
  .modal-body { padding: 20px; }
  .pd-wrap { padding: 26px 18px 48px; }
  .pd-hero-art { height: 250px; }
  .pd-header, .pd-block { padding: 22px 22px 24px; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; }
  .pd-trust { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; gap: 16px; }
  .product-art { height: 156px; }
  /* 关键修复：验证码行保持横排，避免撑高表单、与切换 tab 拥挤 */
  .inline { flex-direction: row; flex-wrap: nowrap; }
  .inline .btn { width: auto; }
  .send-code { padding: 0 12px; font-size: 12px; }
  .modal:not([hidden]) { padding: 12px; }
  .modal-card { border-radius: 18px; }
  .modal-brand { padding: 18px 18px 16px; }
  .modal-body { padding: 18px 16px 16px; }
  .tabs { margin-bottom: 18px; }
  .btn.wide { margin-top: 16px; }
  .pd-wrap { padding: 22px 16px 40px; }
  .pd-hero-art { height: 210px; }
  .pd-header, .pd-block { padding: 20px 18px 20px; }
  .pd-price .amount { font-size: 40px; }
  .pd-trust, .pd-related, .features-list.pd-features { grid-template-columns: 1fr; }
  .pd-header-meta { gap: 12px; }
}

/* ---------------- 订单列表：手机端卡片式（放文件末尾，覆盖前面的表格规则） ---------------- */
@media (max-width: 640px) {
  .orders-wrap { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .table-scroll { overflow: visible; }
  .orders { min-width: 0; display: block; }
  .orders thead { display: none; }
  .orders tbody { display: block; }
  .orders tr {
    display: block;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--sh-sm);
    padding: 6px 2px;
    margin-bottom: 12px;
  }
  .orders tr:last-child { margin-bottom: 0; }
  .orders tbody tr:hover { background: rgba(255, 255, 255, 0.94); }
  .orders td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 9px 16px; border-bottom: none; width: auto;
  }
  .orders td::before {
    content: attr(data-label); flex: 0 0 auto;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--mut);
  }
  .orders td > * { text-align: right; }
  .orders td.order-ops-cell { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; }
}

/* ==================================================================
   2026-11-09 · 首页中段（可购买商品 / 我的订单）与订单详情布局优化
   追加在文件末尾，复用既有变量与媒体查询断点，不覆盖其他页面规则
   ================================================================== */

/* ---- 1. hero 统计卡：双入口大卡 ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
.stat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "ico main arrow"
    "sub sub sub";
  align-items: center;
  gap: 2px 16px;
  min-width: 0;
  padding: 22px 24px 18px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(210, 226, 242, .9);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(120, 190, 255, .16), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(246, 251, 255, .9));
  box-shadow: 0 8px 24px rgba(41, 92, 138, .07), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ac), var(--ac2, #5b7fe0));
  opacity: 0; transition: opacity .28s ease;
}
.stat-card::after {
  content: "";
  position: absolute; right: -34px; top: -34px;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--ac-soft);
  opacity: .75;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--line2);
  box-shadow: 0 18px 40px rgba(41, 92, 138, .16), inset 0 1px 0 #fff;
}
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-ico {
  grid-area: ico;
  width: 46px; height: 46px;
  border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(140deg, #79bbff, var(--ac) 58%, #2f7fd8);
  border: none;
  box-shadow: 0 8px 18px rgba(63, 143, 202, .28);
  margin: 0;
}
.stat-card .stat-main {
  grid-area: main;
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
}
.stat-card strong {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-family: var(--mono);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .stat-label {
  font-size: 14px;
  font-weight: 700;
  color: #34506a;
  white-space: nowrap;
}
.stat-card .stat-arrow {
  grid-area: arrow;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ac-deep);
  font-size: 15px; font-weight: 700;
  transition: transform .28s ease, background .28s ease, color .28s ease;
}
.stat-card:hover .stat-arrow {
  transform: translateX(3px);
  background: var(--ac);
  border-color: var(--ac);
  color: #fff;
}
.stat-card .stat-sub {
  grid-area: sub;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 2. 数字商品卡：信息层级与价格自适应 ---- */
.products { gap: 20px; }
.product { border-radius: 18px; }
.product-body { padding: 18px 20px 10px; }
.product-kicker { font-size: 11.5px; letter-spacing: .08em; }
.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 49px;
}
.product-foot {
  padding: 14px 20px 18px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0), rgba(244, 250, 255, .75));
}
.product-price { padding-top: 12px; }
.price {
  font-size: clamp(21px, 1.85vw, 27px);
  max-width: 62%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-actions .buy { border-radius: 11px; }

/* ---- 3. 我的订单：区块外框与空态更完整 ---- */
.orders-wrap { border-radius: 18px; }
.orders thead th { padding: 15px 22px; }
.orders tbody td { padding: 17px 22px; }

/* ---- 4. 订单详情：桌面两列，减少纵向滚动 ---- */
.order-detail-wrap { max-width: 1180px; }
.od-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr);
  gap: 22px;
  align-items: start;
}
.od-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.od-col-side { position: sticky; top: 86px; }
.od-card { border-radius: 18px; padding: 28px 32px; }
.od-head { margin-bottom: 18px; }
.od-amount { padding: 16px 22px; margin-bottom: 18px; border-radius: 14px; }
.od-amount-value { font-size: 34px; }
.od-row { padding: 12px 4px; }
.od-actions { margin-top: 22px; }
.od-key-card { margin-top: 0; }
.od-key-box { padding: 16px 18px; border-radius: 12px; }
.od-key-head { margin-bottom: 12px; }
.qr-container { margin-top: 16px; padding: 18px 16px; }
.qr-container img { width: 210px; height: 210px; }
.steps-list { margin-top: 14px; gap: 13px; }

@media (max-width: 980px) {
  .od-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .od-col-side { position: static; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stat-card { padding: 18px 18px 15px; }
  .stat-card strong { font-size: 30px; }
  .stat-card .stat-sub { white-space: normal; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .product-desc { min-height: 0; }
  .price { max-width: 58%; }
  .order-detail-wrap { padding: 0 14px; }
  .od-card { padding: 22px 18px; }
  .od-amount-value { font-size: 30px; }
}

/* 收拢 hero 与商品区之间的空白，统计卡不再是最后一块视觉落点 */
.hero { margin-bottom: 40px; }

/* 双统计卡严格等宽 */
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 744px; margin-left: auto; margin-right: auto; }