/* ===== 基础 ===== */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-soft: #40403c;
  --muted: #78736a;
  --line: #e7e3da;
  --line-soft: #f0ece4;
  --brand: #e0552b;
  --brand-dark: #c24520;
  --brand-soft: #fdf0e9;
  --ok: #2f7d5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 26, 23, .04), 0 12px 28px -12px rgba(27, 26, 23, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { justify-content: center; }

.ico { display: inline-flex; width: 18px; height: 18px; vertical-align: -3px; }
.ico svg { width: 100%; height: 100%; }

/* ===== 顶部条 ===== */
.topbar {
  background: var(--ink);
  color: #f2efe8;
  font-size: 12.5px;
  letter-spacing: .01em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(224, 85, 43, .2);
}
.topbar-text { flex: 1; opacity: .88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-link { opacity: .6; flex: 0 0 auto; }
.topbar-link:hover { opacity: 1; }

/* ===== 头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  padding: 7px 6px;
  box-shadow: 0 4px 12px -4px rgba(224, 85, 43, .7);
}
.logo-mark span { display: block; width: 4px; border-radius: 2px; background: #fff; opacity: .95; }
.logo-mark span:nth-child(1) { height: 7px; }
.logo-mark span:nth-child(2) { height: 12px; }
.logo-mark span:nth-child(3) { height: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: -.02em; }
.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-nav { display: flex; gap: 22px; flex: 1 1 auto; font-size: 14.5px; }
.main-nav a { color: var(--ink-soft); padding: 6px 0; position: relative; white-space: nowrap; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.on { color: var(--ink); font-weight: 600; }
.main-nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.search-box {
  position: relative;
  flex: 0 0 250px;
  display: flex;
  align-items: center;
}
.search-box input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: #faf8f4;
  border-radius: 999px;
  padding: 0 42px 0 16px;
  font-size: 13.5px;
  outline: none;
  transition: .18s;
}
.search-box input:focus { border-color: #d8cfc0; background: #fff; box-shadow: 0 0 0 4px rgba(224, 85, 43, .08); }
.search-box button {
  position: absolute; right: 5px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  color: var(--muted); cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
}
.search-box button:hover { color: var(--brand); background: var(--brand-soft); }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13.5px;
  position: relative;
  transition: .16s;
}
.icon-btn:hover { background: #f3f0e9; color: var(--ink); }
.cart-btn { padding: 0 12px; }
.badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(224, 85, 43, .8); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: #d6cec1; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 15.5px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-danger { background: #b42318; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 82% 10%, rgba(224, 85, 43, .28), transparent 60%),
    radial-gradient(700px 400px at 12% 90%, rgba(146, 160, 200, .18), transparent 65%),
    #171614;
  color: #f6f2ea;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding-top: 74px;
  padding-bottom: 78px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #e7c9b8;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-copy > p {
  max-width: 480px;
  color: rgba(246, 242, 234, .72);
  font-size: 15.5px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #f6f2ea; border-color: rgba(255, 255, 255, .22); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 25px; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: rgba(246, 242, 234, .55); }

.hero-art { position: relative; height: 340px; }
.paper {
  position: absolute;
  width: 195px; height: 250px;
  background: #fffdf8;
  border-radius: 10px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55);
  padding: 20px 18px;
  color: #2a2925;
  display: flex; flex-direction: column; gap: 9px;
}
.paper span { font-size: 10.5px; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.paper b { font-size: 17px; letter-spacing: -.02em; }
.paper i { height: 6px; border-radius: 3px; background: #ece7dd; display: block; }
.paper i:nth-of-type(2) { width: 76%; }
.paper i.s { width: 48%; background: #f6ddd1; }
.paper-a { left: 6px; top: 30px; transform: rotate(-7deg); }
.paper-b { left: 118px; top: 8px; transform: rotate(4deg); z-index: 2; }
.paper-c { left: 66px; top: 96px; transform: rotate(-2deg); z-index: 3; }

/* ===== 区块 ===== */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 26px;
}
.section-head h2 { font-size: 24px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--muted); font-weight: 500;
}
.link-more:hover { color: var(--brand); }
.link-more .ico { width: 15px; height: 15px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: .16s;
}
.chip:hover { border-color: #d5cbbd; transform: translateY(-1px); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== 商品卡 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd5c8; }
.cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #efe4d4, #dcc7ab);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-tag {
  position: absolute; left: 12px; top: 12px;
  font-size: 11px; letter-spacing: .04em;
  background: rgba(255, 255, 255, .84);
  color: #4a443b;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.cover-glyph {
  font-size: 54px; font-weight: 800;
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.cover-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, rgba(255, 255, 255, .22), transparent);
}
.cov-0 { background: linear-gradient(135deg, #f4d8c0, #e2a874); }
.cov-1 { background: linear-gradient(135deg, #dbe6f3, #9fb9d8); }
.cov-2 { background: linear-gradient(135deg, #dfe8d6, #a5bf98); }
.cov-3 { background: linear-gradient(135deg, #f0dee3, #d3a5b3); }
.cov-4 { background: linear-gradient(135deg, #e5e1f3, #b1a6d6); }

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); letter-spacing: .02em;
}
.card-title {
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sum {
  font-size: 12.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto; padding-top: 6px;
}
.card-price { display: flex; align-items: baseline; gap: 7px; }
.price { font-size: 21px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.price i { font-style: normal; font-size: 13px; margin-right: 1px; }
.price.free { font-size: 17px; }
.price-old { font-size: 12px; color: #b0a99e; }
.card-sales { font-size: 11.5px; color: var(--muted); }

/* ===== 承诺条 ===== */
.promise {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.promise-item { background: #fff; padding: 30px 28px; }
.promise-ico {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--brand); display: block; margin-bottom: 12px;
}
.promise-item h3 { font-size: 16px; margin-bottom: 8px; }
.promise-item p { font-size: 13px; color: var(--muted); }

/* ===== 通用页面头 ===== */
.page-head { padding-top: 40px; padding-bottom: 26px; }
.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 16px;
}
.crumb a:hover { color: var(--brand); }
.crumb b { color: var(--ink-soft); font-weight: 500; }
.page-head h1 { font-size: 30px; letter-spacing: -.025em; margin-bottom: 8px; }
.page-head > p { color: var(--muted); font-size: 14px; }
.chips-wrap { margin-bottom: 30px; }

/* ===== 详情 ===== */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 34px;
  align-items: start;
  padding-bottom: 40px;
}
.detail-main { display: flex; flex-direction: column; gap: 22px; }
.detail-cover .cover { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 9; max-height: 400px; }
.detail-cover .cover-glyph { font-size: 64px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-title { font-size: 16.5px; margin-bottom: 16px; letter-spacing: -.01em; }
.file-list { display: flex; flex-direction: column; }
.file-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.file-list li:first-child { border-top: 0; }
.file-ico { color: #a99f90; display: inline-flex; }
.file-ico svg { width: 17px; height: 17px; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 12px; }
.file-lock { color: #b3aa9d; font-size: 12px; }
.file-empty { color: var(--muted); font-size: 13px; }
.file-tip { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.rich { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }
.rich p { margin: 0 0 12px; }
.rich p:last-child { margin-bottom: 0; }
.rich h3, .rich h4 { margin: 20px 0 10px; font-size: 15.5px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; list-style: revert; }
.rich img { border-radius: var(--radius-sm); margin: 10px 0; }
.rich a { color: var(--brand); text-decoration: underline; }

.detail-side { position: sticky; top: 92px; }
.buy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.buy-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.tag-soft { background: var(--brand-soft); color: var(--brand-dark); }
.buy-title { font-size: 22px; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 8px; }
.buy-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.buy-price .price { font-size: 34px; }
.buy-sales { font-size: 12px; color: var(--muted); }
.buy-actions { display: flex; flex-direction: column; gap: 10px; }
.buy-points { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 9px; }
.buy-points li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.buy-points .ico { color: var(--ok); width: 15px; height: 15px; }
.buy-contact {
  margin-top: 16px; padding: 10px 12px;
  background: #faf8f3; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--muted);
}

/* ===== 购物车 ===== */
.cart-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px; align-items: start; padding-bottom: 60px;
}
.cart-row { min-width: 0; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.cart-cover { flex: 0 0 96px; }
.cover-sm { aspect-ratio: 1 / 1; border-radius: 10px; width: 96px; }
.cover-sm .cover-glyph { font-size: 26px; }
.cover-sm .cover-tag { font-size: 9px; padding: 2px 7px; left: 6px; top: 6px; }
.cart-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cart-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-meta { font-size: 12px; color: var(--muted); }
.cart-price { font-size: 17px; font-weight: 700; }
.cart-del {
  border: 0; background: transparent; color: #b0a89b;
  font-size: 12.5px; cursor: pointer; padding: 6px 4px;
}
.cart-del:hover { color: #b42318; }
.cart-sum {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; position: sticky; top: 92px;
}
.cart-sum h3 { font-size: 16px; margin-bottom: 16px; }
.sum-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--muted); padding: 7px 0;
}
.sum-row b { color: var(--ink); }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 14px; }
.sum-total b { font-size: 26px; color: var(--brand); letter-spacing: -.02em; }
.cart-sum .btn { margin-top: 18px; }
.cart-sum .link-more { margin-top: 14px; width: 100%; justify-content: center; }

/* ===== 结算 ===== */
.checkout-layout {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 380px);
  gap: 26px; align-items: start; padding-bottom: 60px;
}
.co-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.field > span i { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 400; }
.field input, .field select, .field textarea {
  height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 14px; background: #fdfcfa; outline: none; transition: .16s;
  font-size: 14px;
}
.field textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #d9bfae; background: #fff; box-shadow: 0 0 0 4px rgba(224, 85, 43, .08);
}
.field-static {
  font-size: 13px; color: var(--muted);
  background: #faf7f1; padding: 12px 14px; border-radius: 10px;
}
.pay-method { display: flex; flex-direction: column; gap: 8px; }
.pay-label { font-size: 12.5px; color: var(--ink-soft); }
.pay-option {
  border: 1px solid var(--brand); background: var(--brand-soft);
  border-radius: 12px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 3px;
}
.pay-option b { font-size: 13.5px; }
.pay-option span { font-size: 12px; color: #8a5a41; }
.form-tip { font-size: 12px; color: var(--muted); line-height: 1.7; }
.co-sum h3 { font-size: 16px; margin-bottom: 14px; }
.co-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
}
.co-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.co-price { color: var(--muted); }
.co-points { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.co-points li { font-size: 12px; color: var(--muted); padding-left: 14px; position: relative; }
.co-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: #d8cfc0;
}
.co-sum .sum-total b { font-size: 24px; }

/* ===== 支付页 ===== */
.pay-card { text-align: center; padding: 34px; }
.pay-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-badge {
  font-size: 11.5px; color: var(--brand-dark); background: var(--brand-soft);
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}
.pay-head h1 { font-size: 24px; }
.pay-head p { font-size: 13px; color: var(--muted); }
.pay-head code { background: #f4f1ea; padding: 2px 8px; border-radius: 6px; }
.pay-amount {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 26px 0; padding: 22px; background: #faf8f3; border-radius: var(--radius);
}
.pay-amount span { font-size: 12px; color: var(--muted); }
.pay-amount strong { font-size: 42px; color: var(--brand); letter-spacing: -.03em; }
.pay-manual { text-align: left; display: flex; flex-direction: column; gap: 12px; }
.pay-manual h3 { font-size: 15px; }
.pay-manual p { font-size: 13px; color: var(--muted); }
.pay-contact { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.pay-contact b { font-size: 15px; color: var(--ink); }
.pay-note { background: #faf8f3; padding: 12px 14px; border-radius: 10px; font-size: 12.5px !important; }
.pay-note b { color: var(--ink); }
.pay-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.pay-tips { margin-top: 18px; padding: 18px 24px; font-size: 12.5px; color: var(--muted); }
.pay-tips h4 { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }

/* ===== 订单 ===== */
.order-panel { padding: 0; overflow: hidden; }
.order-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 26px; background: #faf8f3; flex-wrap: wrap;
}
.order-status { display: flex; align-items: center; gap: 14px; }
.status-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #d9a441; box-shadow: 0 0 0 5px rgba(217, 164, 65, .16);
  flex: 0 0 auto;
}
.order-status.ok .status-dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(47, 125, 91, .14); }
.order-status h1 { font-size: 21px; }
.order-status p { font-size: 12.5px; color: var(--muted); }
.order-amount { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.order-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 16px 26px; font-size: 12.5px; color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.order-cta { padding: 18px 26px 0; }
.order-items { padding: 6px 26px 0; }
.order-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.order-item:last-child { border-bottom: 0; }
.oi-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.oi-head h3 { font-size: 15px; }
.oi-meta { font-size: 12px; color: var(--muted); }
.order-foot { padding: 18px 26px 26px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }

.order-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 60px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; transition: .16s;
}
.order-row:hover { border-color: #d9d0c1; box-shadow: var(--shadow); }
.or-main { min-width: 0; }
.or-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.or-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.or-right strong { font-size: 15px; }
.status-pill {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: #f1eee7; color: var(--muted);
}
.status-pill.ok { background: #e8f3ed; color: var(--ok); }
.status-pill.wait { background: #fdf2df; color: #9a6b12; }

/* ===== 登录 / 查询 ===== */
.auth-card { max-width: 440px; margin: 40px auto 70px; padding: 32px; }
.auth-head { margin-bottom: 22px; }
.auth-head h1 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-head p { font-size: 13px; color: var(--muted); }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-switch { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--brand); font-weight: 500; }
.auth-tip {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted); text-align: center;
}
.query-result {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  border: 1px solid #cfe3d7; background: #f2f8f4; border-radius: var(--radius-sm);
  font-size: 13px;
}
.query-result b { color: var(--ok); }
.me-foot { display: flex; justify-content: flex-end; margin: 20px 0 60px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input {
  flex: 1; min-width: 160px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fdfcfa;
}

/* ===== 空状态 / 提示 ===== */
.empty {
  text-align: center; padding: 70px 20px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-mark {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 14px; background: #f5f1e9; color: #b5ab9b;
  display: grid; place-items: center;
}
.empty-mark svg { width: 22px; height: 22px; }
.empty p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.alert {
  border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error { background: #fdf0ef; border-color: #f3d3cf; color: #a52a1d; }
.alert-ok { background: #eff7f2; border-color: #cfe6da; color: #246a4c; }
.alert-warn { background: #fdf7e8; border-color: #f0e2bd; color: #8a6413; }

.msg-panel { text-align: center; padding: 50px 30px; margin: 50px 0 80px; }
.msg-panel h1 { font-size: 22px; margin-bottom: 10px; }
.msg-panel p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.page-msg body { background: var(--bg); }

/* ===== 页脚 ===== */
.site-footer { background: #171614; color: rgba(246, 242, 234, .7); margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px; padding-top: 52px; padding-bottom: 38px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand p { font-size: 13px; margin-bottom: 10px; max-width: 320px; }
.footer-small { font-size: 11.5px !important; color: rgba(246, 242, 234, .4); }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 242, 234, .45); margin-bottom: 4px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding-top: 18px; padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11.5px; color: rgba(246, 242, 234, .35);
}

/* ===== 响应式 ===== */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-inner { padding-top: 58px; padding-bottom: 58px; }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .search-box { order: 3; flex: 1 1 100%; }
  .main-nav { order: 4; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .brand-text em { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .buy-card { box-shadow: none; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-sum { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .topbar-link { display: none; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-title { font-size: 14px; }
  .card-sum { display: none; }
  .card-body { padding: 12px 12px 14px; }
  .price { font-size: 18px; }
  .cover-glyph { font-size: 38px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 26px; }
  .page-head h1 { font-size: 24px; }
  .buy-title { font-size: 19px; }
  .buy-price .price { font-size: 30px; }
  .cart-row { gap: 12px; padding: 12px; }
  .cart-cover { flex: 0 0 72px; }
  .cover-sm { width: 72px; }
  .cart-price { font-size: 15px; }
  .order-top { padding: 20px; }
  .order-meta, .order-items, .order-foot { padding-left: 20px; padding-right: 20px; }
  .order-amount { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .auth-card { padding: 22px; margin: 24px auto 50px; }
  .money { font-size: 15px; }
  .main-nav { font-size: 13.5px; }
  .icon-btn-text { display: none; }
  .footer-bottom { font-size: 11px; }
}

/* ===== 手机端专属：底部导航 / 底部购买栏 ===== */
.tabbar, .mobile-buybar, .toast { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .page-detail { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .page-checkout, .page-pay { padding-bottom: env(safe-area-inset-bottom); }

  /* 顶部：桌面导航让位给底部 tab */
  .header-inner { gap: 8px; padding-top: 9px; padding-bottom: 9px; }
  .main-nav { display: none; }
  .brand { gap: 8px; }
  .logo-mark { width: 27px; height: 27px; border-radius: 8px; padding: 6px 5px; }
  .brand-text strong { font-size: 16px; }
  .search-box { flex: 1 1 100%; }
  .search-box input { height: 38px; }
  .icon-btn { height: 38px; padding: 0 8px; }
  .icon-btn .ico { width: 21px; height: 21px; }
  .topbar { font-size: 11.5px; }
  .topbar-inner { min-height: 32px; }

  /* Hero */
  .hero-inner { padding-top: 30px; padding-bottom: 28px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
  .hero h1 { font-size: 29px; margin-bottom: 14px; }
  .hero-copy > p { font-size: 13.5px; line-height: 1.7; }
  .hero-actions { margin-top: 20px; gap: 9px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 13.5px; }
  .hero-stats { margin-top: 26px; gap: 24px; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 11.5px; }

  /* 分类横向滑动 */
  .chips { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; height: 33px; padding: 0 14px; font-size: 12.5px; }

  /* 课件卡片：两列正方形封面 */
  .grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .cover { aspect-ratio: 1 / 1; }
  .cover-glyph { font-size: 42px; }
  .cover-tag { font-size: 10px; padding: 3px 8px; left: 8px; top: 8px; }
  .card { border-radius: 13px; }
  .card-body { padding: 9px 10px 11px; gap: 4px; }
  .card-meta { font-size: 10.5px; }
  .card-title { font-size: 13px; line-height: 1.42; min-height: 2.84em; }
  .price { font-size: 17px; }
  .price i { font-size: 11px; }
  .price-old { font-size: 10.5px; }
  .card-sales { font-size: 10px; }
  .card-foot { padding-top: 3px; }
  .promise-item { padding: 20px; }
  .promise-item h3 { font-size: 15px; }

  /* 详情页顺序：封面 → 购买卡 → 文件 → 详情 */
  .detail { display: flex; flex-direction: column; gap: 12px; align-items: stretch; padding-bottom: 12px; }
  .detail-main { display: contents; }
  .detail-cover { order: 1; }
  .detail-side { order: 2; }
  .panel-files { order: 3; }
  .panel-desc { order: 4; }
  .detail-cover .cover { aspect-ratio: 16 / 10; max-height: none; border-radius: 13px; }
  .detail-cover .cover-glyph { font-size: 54px; }
  .detail .panel { border-radius: 13px; }
  .buy-card { padding: 16px; border-radius: 13px; }
  .buy-tags { margin-bottom: 10px; }
  .tag { font-size: 10.5px; padding: 3px 9px; }
  .buy-title { font-size: 18px; margin-bottom: 6px; }
  .buy-sub { font-size: 12px; margin-bottom: 12px; }
  .buy-price { margin-bottom: 0; gap: 10px; }
  .buy-price .price { font-size: 26px; }
  .buy-actions { display: none; }
  .buy-points { margin-top: 14px; padding-top: 12px; gap: 7px; }
  .buy-points li { font-size: 11.5px; }
  .crumb { margin-bottom: 12px; font-size: 11.5px; }

  /* 底部购买条 */
  .mobile-buybar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .28);
  }
  .mb-price { margin-right: auto; display: flex; flex-direction: column; line-height: 1.15; }
  .mb-price .price { font-size: 21px; }
  .mb-price .price-old { font-size: 10.5px; }
  .mb-price em { font-style: normal; font-size: 10px; color: var(--muted); }
  .mb-form { display: flex; }
  .mb-cart, .mb-buy {
    height: 42px; padding: 0 15px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; font-family: inherit;
    border: 1px solid var(--brand); background: #fff; color: var(--brand);
  }
  .mb-buy { background: var(--brand); color: #fff; margin-left: 8px; }
  .mb-cart:active, .mb-buy:active { transform: scale(.97); }

  /* 底部 tabbar */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .page-detail .tabbar, .page-checkout .tabbar, .page-pay .tabbar { display: none; }
  .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 0 6px; font-size: 10.5px; color: var(--muted); position: relative;
  }
  .tab .ico { width: 22px; height: 22px; }
  .tab.on { color: var(--brand); }
  .tab-badge {
    position: absolute; top: 3px; left: 50%; margin-left: 4px;
    min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 999px; background: var(--brand); color: #fff;
    font-size: 9.5px; display: grid; place-items: center;
    border: 1.5px solid #fff;
  }

  /* 购物车 */
  .cart-row { padding: 11px; gap: 11px; }
  .cart-cover { flex: 0 0 66px; }
  .cover-sm { width: 66px; }
  .cart-name { font-size: 13.5px; }
  .cart-meta { font-size: 11px; }
  .cart-price { font-size: 15px; }
  .cart-sum { padding: 18px; }
  .cart-sum h3 { font-size: 15px; }
  .cart-sum .btn { height: 48px; font-size: 15px; }

  /* 结算 */
  .checkout-layout { gap: 12px; }
  .co-form { padding: 16px; gap: 14px; }
  .co-form.panel, .checkout-layout .panel { border-radius: 13px; }
  .field input, .field select, .field textarea { font-size: 16px; height: 46px; }
  .field textarea { height: auto; }
  .field > span { font-size: 12px; }
  .co-sum { padding: 16px; }

  /* 支付 */
  .pay-card { padding: 22px 16px; border-radius: 13px; }
  .pay-head h1 { font-size: 19px; }
  .pay-amount strong { font-size: 34px; }
  .pay-manual h3 { font-size: 14px; }
  .pay-actions .btn { height: 48px; font-size: 15px; }

  /* 订单 */
  .order-panel { border-radius: 13px; }
  .order-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .order-status h1 { font-size: 18px; }
  .order-meta { flex-direction: column; gap: 4px; }
  .order-cta { padding: 14px 16px 0; }
  .order-cta .btn { height: 46px; }
  .oi-head { flex-direction: column; gap: 6px; }
  .oi-head h3 { font-size: 14px; }
  .order-row { padding: 13px 14px; border-radius: 11px; flex-direction: column; align-items: stretch; gap: 8px; }
  .or-title { font-size: 13px; }
  .or-meta { font-size: 10.5px; }
  .or-right { justify-content: space-between; }
  .or-right strong { font-size: 14px; }

  /* 个人中心表单竖排 */
  .page-me .inline-form { flex-direction: column; align-items: stretch; }
  .page-me .inline-form input { width: 100%; height: 44px; }
  .page-me .inline-form .btn { width: 100%; height: 44px; }

  /* 登录 / 查询 */
  .auth-card { border-radius: 13px; }
  .auth-card form .btn { height: 48px; }
  .auth-head h1 { font-size: 21px; }

  /* 页脚精简 */
  .footer-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 32px; padding-bottom: 20px; }
  .footer-nav-col { display: none; }
  .footer-bottom { gap: 4px; font-size: 10.5px; padding-bottom: 14px; }
  .site-footer { margin-top: 24px; }

  /* 加购提示 */
  .toast {
    display: block; position: fixed; left: 50%; transform: translateX(-50%);
    top: 42%; z-index: 120;
    background: rgba(23, 22, 20, .92); color: #fff;
    font-size: 13.5px; padding: 10px 20px; border-radius: 999px;
    animation: toastIn .22s ease;
  }
  @keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
}
