/* ================= 基础 ================= */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e7e9ee;
  --line-strong: #d6dae2;
  --brand: #16181d;
  --accent: #2f6bff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-lift: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 36px -16px rgba(16, 24, 40, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app { display: flex; flex-direction: column; flex: 1 0 auto; }

main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
s { color: var(--muted); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer { flex: 1; }

/* ================= 顶栏 ================= */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand .mark { font-size: 20px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px;
  color: var(--muted); transition: .16s; display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { color: var(--ink); background: #f1f3f6; }
.nav a.on { background: #eef1f6; color: var(--ink); font-weight: 600; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; transition: .16s; position: relative; color: var(--ink);
}
.icon-btn:hover { background: #f1f3f6; }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
.lang-select {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 10px; font-size: 12.5px; color: var(--muted); outline: none;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--brand); color: #fff; transition: .16s; white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: #f7f8fa; }
.btn.subtle { background: #f1f3f6; color: var(--ink); }
.btn.danger { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.btn.link { background: none; color: var(--muted); height: auto; padding: 0; }
.btn.link:hover { color: var(--ink); }

/* ================= 表单 ================= */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-strong); outline: none; transition: .16s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 29, .06); }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background-image: none; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

/* ================= 卡片 ================= */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.page { padding: 44px 0 80px; }
.narrow { max-width: 620px; margin: 0 auto; }

/* ================= Hero ================= */
.hero { padding: 56px 0 12px; }
.hero h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.hero p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ================= 商品网格 ================= */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 26px; letter-spacing: -.01em; font-weight: 750; }
.section-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.pcover {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 54px;
  position: relative; overflow: hidden;
}
.pcover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .28), transparent 60%);
}
.pbody { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pcat { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; margin-bottom: 6px; }
.pname { font-size: 15.5px; font-weight: 650; line-height: 1.45; min-height: 45px; }
.pdesc {
  font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 24px; }
.ptag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: #f2f4f7; color: #5b6472; border: 1px solid #e9ecf1;
}
.ptag.guest { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.ptag.auto { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.ptag.stock { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }
.pfoot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; gap: 10px; }
.price { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price s { font-size: 12px; font-weight: 400; margin-left: 8px; }
.cart-mini {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-size: 15px; transition: .16s; background: #fff;
}
.cart-mini:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ================= 商品中心 ================= */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; padding: 34px 0 60px; }
.side h3 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side a {
  display: block; padding: 9px 14px; border-radius: 10px; font-size: 13.5px;
  color: #4b5563; margin-bottom: 2px; transition: .14s;
}
.side a:hover { background: #eef1f6; color: var(--ink); }
.side a.on { background: var(--ink); color: #fff; font-weight: 600; }
.shop-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar .input { max-width: 280px; height: 40px; }
.result-count { font-size: 13px; color: var(--muted); margin-left: auto; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 13px; color: #4b5563;
}
.pagination button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ================= 商品详情 ================= */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 34px 0 60px; align-items: start; }
.detail-cover {
  aspect-ratio: 1 / 1; border-radius: 20px; display: grid; place-items: center;
  font-size: 96px; border: 1px solid var(--line);
}
.detail h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.015em; font-weight: 780; }
.detail .sub { color: var(--muted); margin-top: 10px; font-size: 14px; }
.big-price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; }
.big-price b { font-size: 34px; font-weight: 780; letter-spacing: -.02em; }
.big-price s { font-size: 14px; }
.big-price em { font-size: 11.5px; color: var(--muted); font-style: normal; }

.sku-block { margin: 24px 0 6px; }
.sku-block .label { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.skus { display: flex; flex-wrap: wrap; gap: 9px; }
.sku {
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 13.5px; transition: .14s;
}
.sku:hover { border-color: #9aa3b2; }
.sku.on { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.sku:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; height: 44px; }
.qty button { width: 42px; height: 100%; font-size: 17px; color: var(--muted); }
.qty button:hover { background: #f3f4f7; color: var(--ink); }
.qty span { width: 46px; text-align: center; font-weight: 650; }

.buy-row { display: flex; gap: 12px; margin-top: 22px; }
.hl-list { list-style: none; margin-top: 26px; display: grid; gap: 11px; }
.hl-list li { display: flex; gap: 10px; font-size: 13.5px; color: #3f4753; }
.hl-list li::before {
  content: "✓"; flex: 0 0 20px; height: 20px; border-radius: 50%;
  background: #ecfdf5; color: var(--ok); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.desc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: #4b5563; white-space: pre-wrap; line-height: 1.85; }

/* ================= 购物车 ================= */
.cart-page { padding: 34px 0 70px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: none; }
.cart-thumb {
  width: 74px; height: 74px; border-radius: 14px; flex: 0 0 74px;
  display: grid; place-items: center; font-size: 30px; border: 1px solid var(--line);
}
.cart-info { flex: 1; min-width: 0; }
.cart-info h4 { font-size: 14px; font-weight: 620; }
.cart-info .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.summary h3 { font-size: 16px; margin-bottom: 18px; }
.sumrow { display: flex; justify-content: space-between; font-size: 13.5px; color: #4b5563; margin-bottom: 12px; }
.sumrow.total { font-size: 16px; color: var(--ink); font-weight: 700; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }

/* ================= 结算步骤 ================= */
.steps { display: flex; gap: 10px; margin: 30px 0 34px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.step .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #eef1f6; font-size: 11.5px; font-weight: 700; color: #8b93a1;
}
.step.on { color: var(--ink); font-weight: 600; }
.step.on .n { background: var(--ink); color: #fff; }
.step.done .n { background: #ecfdf5; color: var(--ok); }
.step-sep { color: var(--line-strong); }

/* ================= 订单 / 状态 ================= */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.status.pending { background: #fff7ed; color: var(--warn); }
.status.paid { background: #eff6ff; color: #1d4ed8; }
.status.delivered { background: #f0fdf4; color: var(--ok); }
.status.refunded { background: #fef2f2; color: var(--danger); }
.status.closed { background: #f3f4f7; color: var(--muted); }

.rows { margin-top: 4px; }
.row { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.row:last-child { border-bottom: none; }
.row span { color: var(--muted); }
.row b { font-weight: 600; text-align: right; word-break: break-all; }

.keybox { margin-top: 20px; padding: 18px; border-radius: 14px; background: #f0fdf4; border: 1px dashed #86efac; }
.keybox .label { font-size: 12px; color: var(--ok); font-weight: 600; margin-bottom: 9px; }
.keybox code {
  display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px;
  letter-spacing: .6px; word-break: break-all; color: #14532d; padding: 5px 0;
}
.pendingbox { margin-top: 18px; padding: 15px; border-radius: 12px; font-size: 13px; background: #fffbeb; border: 1px dashed #fcd34d; color: #92400e; }

/* ================= 支付页 ================= */
.paybox { text-align: center; padding: 8px 0 4px; }
.paybox .amount { font-size: 42px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.qr {
  width: 176px; height: 176px; margin: 24px auto; border-radius: 16px;
  border: 1px solid var(--line);
  background: repeating-conic-gradient(#eceff4 0 25%, #fff 0 50%) 0 0 / 18px 18px;
  display: grid; place-items: center; font-size: 12px; color: var(--muted);
}
.sandbox-note {
  font-size: 12.5px; color: #92400e; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 12px; padding: 11px 15px; margin: 18px 0;
}

/* ================= 博客 ================= */
.blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-cover { height: 130px; display: grid; place-items: center; font-size: 40px; }
.post-body { padding: 18px; }
.post-body h3 { font-size: 15.5px; font-weight: 650; line-height: 1.5; }
.post-body p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.post-meta { font-size: 12px; color: #9aa3b2; margin-top: 14px; }
.article { max-width: 720px; margin: 0 auto; padding: 40px 0 80px; }
.article h1 { font-size: 32px; line-height: 1.3; letter-spacing: -.02em; }
.article .content { margin-top: 28px; font-size: 15px; line-height: 1.95; color: #374151; white-space: pre-wrap; }

/* ================= 认证 ================= */
.auth-page { max-width: 420px; margin: 0 auto; padding: 56px 0 90px; }
.auth-page h1 { font-size: 26px; letter-spacing: -.01em; }
.auth-page .lead { color: var(--muted); margin: 8px 0 28px; font-size: 13.5px; }

/* ================= 后台 ================= */
.admin { padding: 30px 0 80px; }
.admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tabs button {
  padding: 9px 16px; border-radius: 10px; font-size: 13.5px; color: var(--muted);
  border: 1px solid transparent;
}
.admin-tabs button.on { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi b { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.kpi span { font-size: 12px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
td { padding: 12px; border-bottom: 1px solid #f1f3f6; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ================= 支付方式 ================= */
.payopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payopt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; transition: .16s; font-size: 13.5px;
}
.payopt:hover { border-color: #9aa3b2; }
.payopt.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,24,29,.06); }
.payopt .pi { font-size: 20px; line-height: 1; }
.payopt b { display: block; font-size: 14px; margin-bottom: 2px; }
.payopt .small { font-size: 11px; line-height: 1.45; white-space: nowrap; }

.qrimg {
  display: block; width: 200px; height: 200px; margin: 20px auto;
  border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px;
}

.qrimg.poster { width: 260px; height: auto; padding: 0; border: none; background: transparent; }

.addrbox {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 6px;
}
.addrbox code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  background: #f4f6f9; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; word-break: break-all; max-width: 100%;
}

/* ================= 商品详情（新版） ================= */
.pd { display: grid; grid-template-columns: 1fr 420px; gap: 26px; padding: 28px 0 10px; align-items: start; }
.pd-left { min-width: 0; }

.shopbar {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 16px;
}
.avatar { width: 42px; height: 42px; border-radius: 12px; background: #f2f4f7; display: grid; place-items: center; font-size: 20px; }
.sb-info b { font-size: 14px; }

.pd-cover {
  aspect-ratio: 1 / 1; border-radius: 16px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 110px; overflow: hidden;
}

.pd-tabs { display: flex; gap: 6px; margin: 16px 0 12px; }
.pd-tabs button { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.pd-tabs button.on { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; }

.param-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; }
.prow { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.prow:last-child { border-bottom: none; }
.prow span { color: var(--muted); }

.buycard {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; position: sticky; top: 92px;
}
.buycard h1 { font-size: 21px; line-height: 1.4; font-weight: 750; letter-spacing: -.01em; }
.buycard .ptags { margin-top: 12px; }

.pdprice { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.pdprice b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.pdprice s { font-size: 14px; color: var(--muted); }
.stock { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

.pd-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; margin-top: 4px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.pd-total b { font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.guarantee { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

.pd-desc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 24px 24px; margin-top: 26px; }
.desc-head { display: flex; gap: 22px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.desc-head b { font-weight: 700; }
.desc-body { margin-top: 18px; font-size: 13.5px; color: #4b5563; line-height: 1.95; }
.dline { margin: 5px 0; white-space: pre-wrap; }
.dl-gap { height: 11px; }
.dl-blue { color: #2563eb; }
.dl-red { color: #dc2626; }
.dl-big { color: #dc2626; font-size: 15.5px; font-weight: 650; margin: 8px 0; }

.warn { margin-top: 8px; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 10px; }

.pd-rec { margin-top: 24px; }
.rec-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.rec-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .18s; }
.rec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rec-cover { height: 96px; display: grid; place-items: center; font-size: 34px; }
.rec-name { padding: 10px 12px 4px; font-size: 12.5px; line-height: 1.5; height: 52px; overflow: hidden; }
.rec-price { padding: 0 12px 12px; font-weight: 700; font-size: 14px; }

/* ================= 空状态 ================= */
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.empty h3 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px);
  background: #16181d; color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: .24s; z-index: 999;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b91c1c; }

/* ================= 页脚 ================= */
.footer { border-top: 1px solid var(--line); margin-top: 70px; background: #fff; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 34px 24px 44px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.footer-inner a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ================= 骨架 ================= */
.skeleton {
  height: 300px; border-radius: var(--radius);
  background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 50%, #eef0f4 75%);
  background-size: 200% 100%; animation: sh 1.3s infinite;
}
@keyframes sh { to { background-position: -200% 0; } }

/* ================= 响应式 ================= */
@media (max-width: 980px) {
  .pd { grid-template-columns: 1fr; }
  .buycard { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .side { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .side h3 { display: none; }
  .side a { white-space: nowrap; margin-bottom: 0; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  .nav a { padding: 7px 10px; font-size: 13px; }
  .nav a .lbl { display: none; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 21px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .pcover { font-size: 40px; }
  .pname { font-size: 14px; min-height: auto; }
  .pdesc { display: none; }
  .detail h1 { font-size: 24px; }
  .detail-cover { font-size: 64px; }
  .article h1 { font-size: 25px; }
  .header-inner { height: 60px; gap: 12px; }
}
