﻿/* ============================================================
   地理课件 · 前台样式
   浅色蓝调 / 白底留白 / 衬线大标题 / 柔和光影
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --ink: #0a1a33;
  --ink-2: #33445f;
  --muted: #6a7c96;
  --muted-2: #93a3bb;
  --line: #e5ecf8;
  --line-soft: #eff4fc;

  --blue: #2563eb;
  --blue-deep: #1740c0;
  --blue-soft: #eaf1ff;
  --sky: #0ea5e9;
  --amber: #ef8a3c;
  --ok: #12996b;

  /* 兼容旧变量名 */
  --paper: var(--bg);
  --navy: var(--blue);
  --navy-hover: var(--blue-deep);
  --navy-deep: #081a33;
  --gold: var(--amber);
  --gold-soft: #fff4ea;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(16, 42, 92, .05);
  --shadow-md: 0 28px 60px -36px rgba(16, 42, 92, .28);
  --ring: 0 0 0 4px rgba(37, 99, 235, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "Times New Roman", "STSong", SimSun, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* 顶部淡蓝氛围光 + 细网格 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 80% -12%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(900px 600px at 0% 10%, rgba(14, 165, 233, .07), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 46%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(16, 42, 92, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 92, .035) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(110% 70% at 50% 0%, #000 0%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  margin: 0; line-height: 1.34; letter-spacing: .01em;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
}
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: var(--font-mono); font-size: .9em; }
::selection { background: rgba(37, 99, 235, .16); color: #0a1a33; }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 800px; }
.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%; }

/* ===== 头部（悬浮白色玻璃条） ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: 16px 0 10px;
  background: transparent;
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 66px; padding: 9px 14px 9px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 18px 40px -34px rgba(16, 42, 92, .5);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  overflow: hidden; flex: 0 0 auto; display: block;
  background: #eaf1ff;
  border: 1px solid rgba(16, 42, 92, .07);
  box-shadow: 0 10px 22px -16px rgba(16, 42, 92, .55);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.brand-text em {
  font-style: normal; font-size: 9.5px; color: var(--muted-2);
  letter-spacing: .16em; text-transform: uppercase; max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.main-nav { display: flex; gap: 2px; flex: 1 1 auto; font-size: 13px; }
.main-nav a {
  color: var(--ink-2); padding: 9px 15px; border-radius: 10px;
  white-space: nowrap; transition: .18s; letter-spacing: .04em;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.main-nav a.on { color: #fff; background: var(--blue); font-weight: 600; box-shadow: 0 10px 22px -14px rgba(37, 99, 235, .9); }

.search-box { position: relative; flex: 0 0 268px; display: flex; align-items: center; min-width: 0; }
.search-box input {
  width: 100%; height: 40px;
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 11px; padding: 0 42px 0 15px;
  font-size: 13px; outline: none; transition: .18s; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus {
  border-color: #b9d2ff;
  background: #fff;
  box-shadow: var(--ring);
}
.search-box button {
  position: absolute; right: 4px;
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 8px;
  display: grid; place-items: center; transition: .16s;
}
.search-box button:hover { color: var(--blue); background: var(--blue-soft); }

.header-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 13px; position: relative; transition: .16s;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--blue); }
.badge {
  position: absolute; top: 1px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--amber); color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 26px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #3b7bff 0%, #2563eb 55%, #1740c0 100%);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(37, 99, 235, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 36px -16px rgba(37, 99, 235, .8); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #bcd3ff; color: var(--blue); background: #fbfdff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-gold { background: linear-gradient(135deg, #ffa563, #ef8a3c); color: #fff; }
.btn-gold:hover { filter: brightness(1.04); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 14.5px; padding: 0 32px; }
.btn-sm { height: 34px; padding: 0 15px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 62px;
  background:
    radial-gradient(860px 520px at 78% -6%, #e7f0ff 0%, rgba(231, 240, 255, 0) 62%),
    radial-gradient(700px 460px at 2% 96%, #eef8ff 0%, rgba(238, 248, 255, 0) 66%),
    linear-gradient(180deg, #fafcff 0%, #ffffff 78%);
}
.hero::after {
  content: "";
  position: absolute; inset: -12% -8% 0;
  background-image:
    repeating-radial-gradient(circle at 80% 16%, rgba(37, 99, 235, .10) 0 1px, transparent 1px 48px),
    repeating-radial-gradient(circle at 8% 92%, rgba(14, 165, 233, .08) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(88% 74% at 50% 34%, #000 4%, transparent 76%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.06fr .94fr;
  align-items: center; gap: 40px;
}
.hero-copy { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--blue);
  padding: 7px 15px; margin-bottom: 26px;
  border: 1px solid #cddffd;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 20px -16px rgba(37, 99, 235, .6);
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.26; letter-spacing: .015em; font-weight: 600;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(112deg, #2563eb 0%, #3f8bff 44%, #0ea5e9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-copy > p {
  max-width: 500px; color: var(--muted);
  font-size: 14.5px; line-height: 2; letter-spacing: .02em;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 48px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.hero-stats span {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted-2); letter-spacing: .18em; text-transform: uppercase;
}

/* Hero 右侧：旋转地球 */
.hero-art { position: relative; height: 440px; min-width: 0; }
.globe-wrap { position: relative; width: 100%; height: 100%; display: grid; place-items: center; min-width: 0; }
.globe-wrap canvas {
  width: 100%; height: 100%; max-width: 100%; display: block;
  filter: drop-shadow(0 26px 40px rgba(23, 64, 192, .16));
}
.globe-wrap::before {
  content: ""; position: absolute; inset: 6% 4%;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, .10), transparent 64%);
  filter: blur(20px); pointer-events: none;
}
.globe-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  padding: 5px 11px;
  border: 1px solid #d3e2fd;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, .8);
  animation: drift 7s ease-in-out infinite;
}
.globe-chip::before {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue); margin-right: 7px; vertical-align: 1px;
}
.globe-chip-a { left: -3%; top: 20%; }
.globe-chip-b { right: -4%; bottom: 18%; animation-delay: -3.4s; color: #c2701f; border-color: #f4dcc4; }
.globe-chip-b::before { background: var(--amber); }
.globe-note {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap;
}
.globe-note i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ===== 区块 ===== */
.site-main { position: relative; }
.section { padding: 72px 0; }
.section-alt {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 82%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-head h2 { font-size: 30px; letter-spacing: .03em; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 9px; letter-spacing: .02em; }
.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; opacity: .85;
}
.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; transition: .16s;
}
.link-more:hover { color: var(--blue); }
.link-more .ico { width: 15px; height: 15px; }

/* 分类胶囊 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  letter-spacing: .04em; transition: .18s;
}
.chip:hover { color: var(--blue); border-color: #c3d8fd; box-shadow: 0 8px 18px -16px rgba(37, 99, 235, .8); }
.chip.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #3b7bff, #2563eb);
  border-color: transparent;
  box-shadow: 0 12px 24px -14px rgba(37, 99, 235, .8);
}

/* ===== 商品卡 ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 22px; }
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 22px; }
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #c8dcfd;
  box-shadow: 0 30px 60px -40px rgba(16, 42, 92, .45);
}

.cover {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(150deg, #eaf2ff, #dbe9ff);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-radial-gradient(circle at 78% 20%, rgba(37, 99, 235, .10) 0 1px, transparent 1px 26px);
  mask-image: linear-gradient(200deg, #000, transparent 76%);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(214, 230, 255, .55) 100%);
}
.cover img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.cover-tag {
  position: absolute; left: 13px; top: 13px; z-index: 3;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .9); color: var(--blue);
  border: 1px solid #dbe7fb;
  padding: 4px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cover-glyph {
  position: relative; z-index: 2;
  font-size: 74px; line-height: 0;
  color: rgba(37, 99, 235, .3);
}
.cover-glyph svg { width: 1em; height: 1em; display: block; stroke-width: .85; }
.cover-line { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: inherit; pointer-events: none; }
.cov-0 { background: linear-gradient(150deg, #eaf2ff, #d7e7ff); }
.cov-1 { background: linear-gradient(150deg, #e8f6ff, #d3ecfb); }
.cov-2 { background: linear-gradient(150deg, #eef0ff, #dfe3ff); }
.cov-3 { background: linear-gradient(150deg, #f3f8ff, #e2edfb); }
.cov-4 { background: linear-gradient(150deg, #e6f3ff, #cfe4ff); }

.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px; color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase;
}
.card-title {
  font-family: var(--font);
  font-size: 15px; font-weight: 600; line-height: 1.6; 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; line-height: 1.75;
}
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.price {
  font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.price i {
  font-style: normal; font-size: .56em; font-weight: 700;
  color: var(--blue); margin-right: 3px;
  vertical-align: .46em; letter-spacing: 0;
}
.price.free { font-size: 17px; color: var(--blue); }
.price-old { font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; }
.card-sales { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: .1em; }

/* 首屏推荐：第一张卡横跨两列 */
@media (min-width: 981px) {
  .grid-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-feature > .card:first-child { grid-column: span 2; }
  .grid-feature > .card:first-child .cover { aspect-ratio: 21 / 9; }
  .grid-feature > .card:first-child .cover-glyph { font-size: 104px; }
  .grid-feature > .card:first-child .card-title { font-size: 20px; }
  .grid-feature > .card:first-child .card-body { padding: 22px 24px 24px; }
  .grid-feature > .card:first-child .price { font-size: 30px; }
}
@media (min-width: 1200px) {
  .grid-feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== 资料列表：分段 Tab + 横版卡 ===== */
.seg-bar {
  display: flex; align-items: flex-end; gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.seg { display: flex; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-item {
  position: relative; padding: 10px 0 13px; margin-right: 30px;
  font-size: 14.5px; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: .16s; letter-spacing: .02em;
}
.seg-item:hover { color: var(--ink); }
.seg-item.on { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.seg-count {
  padding-bottom: 14px; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted-2); letter-spacing: .1em;
}

.seg-note {
  display: flex; align-items: center; gap: 8px;
  margin: -12px 0 20px; font-size: 12px; color: var(--muted);
}
.seg-note i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex: 0 0 auto;
}

.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prow {
  display: flex; gap: 16px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: .2s;
}
.prow:hover {
  transform: translateY(-3px);
  border-color: #cfe0ff;
  box-shadow: 0 26px 50px -40px rgba(16, 42, 92, .5);
}
.prow-cover { flex: 0 0 178px; min-width: 0; }
.prow .cover-row { aspect-ratio: 4 / 3; border-radius: 12px; }
.prow-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prow-top {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.prow-cat { color: var(--blue); }
.prow-title {
  font-size: 15.5px; font-weight: 600; line-height: 1.55; letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prow-sub {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prow-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prow-tags span {
  font-size: 10.5px; color: #4b6a99;
  background: #f2f7ff; border: 1px solid #e3edfd;
  border-radius: 6px; padding: 2px 7px;
}
.prow-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.prow-price { display: flex; align-items: baseline; gap: 8px; }
.prow .price { font-size: 21px; }
.prow-go {
  font-size: 11.5px; color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.prow-go .ico { width: 14px; height: 14px; }
.prow:hover .prow-go { color: var(--blue); }

.cover-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font-size: 9.5px; font-weight: 600; letter-spacing: .08em;
  color: #fff; padding: 2.5px 8px; border-radius: 5px;
  background: linear-gradient(135deg, #f6a13c, #ef8a3c);
  box-shadow: 0 6px 14px -10px rgba(239, 138, 60, .9);
}

/* ===== 保障条 ===== */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: .2s;
}
.promise-item:hover { border-color: #cbdffd; box-shadow: 0 24px 50px -38px rgba(16, 42, 92, .4); }
.promise-item::after {
  content: ""; position: absolute; right: -34px; top: -34px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .1), transparent 70%);
}
.promise-ico {
  display: block; font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  color: var(--blue); margin-bottom: 16px;
}
.promise-item h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: .03em; }
.promise-item p { font-size: 12.5px; color: var(--muted); line-height: 1.9; }

/* ===== 作者介绍 ===== */
.author {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 36px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 38px 40px;
  position: relative; overflow: hidden;
}
.author::before {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .09), transparent 70%);
}
.author-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: relative; }
.author-avatar {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(145deg, #4f8bff 0%, #2563eb 55%, #1740c0 100%);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 32px; line-height: 1;
  box-shadow: 0 22px 40px -24px rgba(37, 99, 235, .9);
}
.author-name { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; }
.author-loc {
  display: block; margin-top: 6px;
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase;
}
.author-main { position: relative; min-width: 0; }
.author-main .section-index { display: block; margin-bottom: 12px; }
.author-lead { font-size: 14px; line-height: 2; color: var(--ink-2); margin-bottom: 20px; }
.author-list { display: grid; gap: 11px; }
.author-list li {
  display: grid; grid-template-columns: 30px 46px minmax(0, 1fr);
  gap: 10px; align-items: baseline;
  font-size: 12.5px; color: var(--muted); line-height: 1.8;
}
.author-list span {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--blue); letter-spacing: .08em;
}
.author-list b { font-size: 11.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .08em; }
.author-sign {
  position: relative; align-self: center;
  font-family: var(--font-display); font-size: 40px; line-height: 1;
  letter-spacing: .1em; color: rgba(37, 99, 235, .14);
  writing-mode: vertical-rl; text-align: center;
  user-select: none; pointer-events: none;
}

/* ===== 页面头 ===== */
.page-head { padding-top: 40px; padding-bottom: 30px; }
.crumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--muted-2); margin-bottom: 18px;
  letter-spacing: .1em; text-transform: uppercase;
}
.crumb a:hover { color: var(--blue); }
.crumb b { color: var(--ink-2); font-weight: 500; }
.page-head h1 { font-size: 38px; letter-spacing: .03em; margin-bottom: 10px; }
.page-head > p { color: var(--muted); font-size: 13.5px; }
.chips-wrap { margin-bottom: 34px; }

/* ===== 详情 ===== */
.detail {
  display: grid; grid-template-columns: minmax(0, 1fr) 388px;
  gap: 34px; align-items: start; padding-bottom: 48px;
}
.detail-main { display: flex; flex-direction: column; gap: 20px; }
.detail-cover .cover {
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 16 / 9; max-height: 400px;
  background: linear-gradient(150deg, #f2f7ff 0%, #dfebff 100%);
}
.detail-cover .cover::before {
  background-image: repeating-radial-gradient(circle at 78% 18%, rgba(37, 99, 235, .16) 0 1px, transparent 1px 30px);
}
.detail-cover .cover::after {
  background: radial-gradient(560px 300px at 76% 6%, rgba(14, 165, 233, .16), transparent 62%),
    radial-gradient(420px 260px at 90% 88%, rgba(37, 99, 235, .12), transparent 66%),
    linear-gradient(180deg, transparent 58%, rgba(223, 235, 255, .6) 100%);
}
.detail-cover .cover-glyph {
  font-size: clamp(96px, 11vw, 148px);
  color: rgba(37, 99, 235, .24);
  transform: translateY(-2%);
}
.detail-cover .cover-line {
  inset: 14px; border: 1px dashed rgba(37, 99, 235, .22); border-radius: 14px;
}
.detail-cover .cover-line::after {
  content: "GEOGRAPHY · ATLAS";
  position: absolute; left: 18px; bottom: 13px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .28em;
  color: rgba(37, 99, 235, .5);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}

.file-list { display: flex; flex-direction: column; }
.file-list li {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.file-list li:first-child { border-top: 0; padding-top: 0; }
.file-ico { color: var(--muted-2); display: inline-flex; }
.file-ico svg { width: 16px; height: 16px; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-family: var(--font-mono); color: var(--muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.file-lock { font-family: var(--font-mono); color: var(--muted-2); font-size: 10.5px; }
.file-empty { color: var(--muted); font-size: 13px; }
.file-tip { font-size: 12px; color: var(--muted-2); margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); line-height: 1.9; }

.rich { font-size: 14.5px; color: var(--ink-2); line-height: 2; }
.rich p { margin: 0 0 14px; }
.rich p:last-child { margin-bottom: 0; }
.rich h2 { margin: 34px 0 12px; font-size: 19px; letter-spacing: .02em; color: var(--ink); }
.rich h2:first-child { margin-top: 0; }
.rich h3, .rich h4 { margin: 26px 0 12px; font-size: 17px; letter-spacing: .03em; }
.rich strong, .rich b { color: var(--ink); }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 20px; list-style: revert; }
.rich li { margin-bottom: 6px; }
.rich img { border-radius: var(--radius-sm); margin: 14px 0; }
.rich a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* 购买卡 */
.detail-side { position: sticky; top: 100px; }
.buy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.buy-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, .8), rgba(14, 165, 233, 0));
}
.buy-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-family: var(--font-mono);
  font-size: 9.5px; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue);
  border: 1px solid #d6e5ff;
}
.tag-soft { background: #f6f9ff; color: var(--muted); border-color: var(--line); }
.buy-title { font-size: 25px; letter-spacing: .02em; line-height: 1.45; margin-bottom: 10px; }
.buy-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.8; }
.byline {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted);
  margin-bottom: 18px;
}
.byline-mark {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(145deg, #4f8bff, #1740c0);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 10px;
}
.buy-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 20px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.buy-price .price { font-size: 40px; }
.buy-sales { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: .1em; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; }
.buy-points { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.buy-points li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.buy-points .ico { color: var(--blue); width: 14px; height: 14px; }
.buy-contact { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); line-height: 1.9; }

/* ===== 购物车 ===== */
.cart-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 344px;
  gap: 26px; align-items: start; padding-bottom: 68px;
}
.cart-layout > .empty { grid-column: 1 / -1; }
.cart-row { min-width: 0; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: flex; align-items: center; gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px;
}
.cart-cover { flex: 0 0 98px; }
.cover-sm { aspect-ratio: 1 / 1; border-radius: 12px; width: 98px; }
.cover-sm .cover-glyph { font-size: 34px; }
.cover-sm .cover-tag { display: none; }
.cart-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .1em; }
.cart-price { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cart-del { border: 0; background: transparent; color: var(--muted-2); font-size: 12px; cursor: pointer; padding: 6px 4px; transition: .16s; }
.cart-del:hover { color: #e5484d; }

.cart-sum {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 100px;
  box-shadow: var(--shadow-sm);
}
.cart-sum h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); padding: 9px 0; }
.sum-row b { color: var(--ink-2); }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 13px; }
.sum-total b { font-size: 30px; color: var(--ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cart-sum .btn { margin-top: 20px; }
.cart-sum .link-more { margin-top: 14px; width: 100%; justify-content: center; }

/* ===== 结算 ===== */
.checkout-layout {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 384px);
  gap: 24px; align-items: start; padding-bottom: 68px;
}
.co-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12px; color: var(--ink-2); font-weight: 500; letter-spacing: .05em; }
.field > span i { font-style: normal; color: var(--muted-2); font-size: 10.5px; font-weight: 400; }
.field input, .field select, .field textarea {
  height: 48px; border: 1px solid var(--line); border-radius: 11px;
  padding: 0 14px; background: var(--surface-2); outline: none;
  transition: .18s; font-size: 14px; color: var(--ink);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field textarea { height: auto; padding: 12px 14px; line-height: 1.8; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #b9d2ff; background: #fff; box-shadow: var(--ring);
}
.who-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 20px;
}
.who-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(145deg, #4f8bff, #1740c0);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 20px -14px rgba(37, 99, 235, .9);
}
.who-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.who-main b { font-size: 13.5px; }
.who-main em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.who-link { font-size: 11.5px; color: var(--blue); white-space: nowrap; }

.pay-method { display: flex; flex-direction: column; gap: 9px; }
.pay-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: .2em; text-transform: uppercase; }
.pay-option { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pay-option b { font-size: 13.5px; }
.pay-option span { font-size: 11.5px; color: var(--muted); }
.form-tip { font-size: 11.5px; color: var(--muted-2); line-height: 1.9; }

.co-sum h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.co-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.co-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.co-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.co-points { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.co-points li { font-size: 11.5px; color: var(--muted); padding-left: 15px; position: relative; }
.co-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.co-sum .sum-total b { font-size: 28px; }

/* ===== 支付 ===== */
.pay-card { text-align: center; padding: 38px; }
.pay-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-badge {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: #c2701f; background: var(--gold-soft);
  border: 1px solid #f6ddc5;
  padding: 5px 13px; border-radius: 999px;
}
.pay-head h1 { font-size: 26px; }
.pay-head p { font-size: 12.5px; color: var(--muted); }
.pay-head code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.pay-amount {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 26px 0; padding: 26px; background: var(--blue-soft);
  border: 1px solid #dbe8ff;
  border-radius: var(--radius);
}
.pay-amount span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.pay-amount strong { font-size: 48px; color: var(--ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.pay-manual { text-align: left; display: flex; flex-direction: column; gap: 13px; }
.pay-manual h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.pay-manual p { font-size: 13px; color: var(--ink-2); }
.pay-contact { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pay-contact b { font-size: 15px; color: var(--ink); }
.pay-note { background: var(--surface-2); border: 1px solid var(--line); padding: 13px 15px; border-radius: 11px; font-size: 12.5px !important; }
.pay-note b { color: var(--ink); }
.pay-watch {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line);
  padding: 11px 14px; border-radius: 11px;
}
.pay-watch .pay-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--amber); animation: payPulse 1.6s ease-in-out infinite;
}
@keyframes payPulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.pay-watch.is-paid { color: var(--ok); background: #f2fbf7; border-color: rgba(18, 153, 107, .35); }
.pay-watch.is-paid .pay-dot { background: var(--ok); animation: none; }
.pay-watch.is-timeout .pay-dot { background: var(--muted-2); animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pay-watch .pay-dot { animation: none; }
}
.pay-online { text-align: left; }
.pay-online > p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.pay-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.pay-tips { margin-top: 20px; padding: 20px 26px; font-size: 12px; color: var(--muted); }
.pay-tips h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }

/* ===== 订单 ===== */
.order-panel { padding: 0; overflow: hidden; }
.order-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 30px; flex-wrap: wrap;
  background: linear-gradient(120deg, #eef5ff 0%, #fbfdff 62%);
}
.order-status { display: flex; align-items: center; gap: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; box-shadow: 0 0 0 5px rgba(239, 138, 60, .14); }
.order-status.ok .status-dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(18, 153, 107, .13); }
.order-status h1 { font-size: 22px; }
.order-status p { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); margin-top: 4px; letter-spacing: .1em; }
.order-amount { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px 30px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.order-cta { padding: 20px 30px 0; }
.order-items { padding: 6px 30px 0; }
.order-item { padding: 20px 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: 16px; }
.oi-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .08em; }
.order-foot { padding: 18px 30px 28px; font-size: 11.5px; color: var(--muted-2); display: flex; flex-direction: column; gap: 12px; }
.order-foot .alert { margin-bottom: 0; }

.order-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 68px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 17px 22px; transition: .2s;
}
.order-row:hover { border-color: #c3d8fd; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.or-main { min-width: 0; }
.or-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); margin-top: 5px; letter-spacing: .1em; }
.or-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.or-right strong { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 9.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
  letter-spacing: .1em; text-transform: uppercase;
}
.status-pill.ok { background: #eafaf3; color: var(--ok); border-color: #c9f0e0; }
.status-pill.wait { background: var(--gold-soft); color: #c2701f; border-color: #f6ddc5; }

/* ===== 登录 / 查询 ===== */
.auth-card { max-width: 440px; margin: 48px auto 80px; padding: 36px; box-shadow: var(--shadow-md); }

/* 登录页：整屏聚焦式（隐藏页头页脚） */
.page-auth {
  background:
    radial-gradient(760px 460px at 84% 0%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(620px 420px at 2% 100%, rgba(14, 165, 233, .09), transparent 64%),
    #fff;
}
.page-auth .site-header,
.page-auth .site-footer,
.page-auth .tabbar { display: none; }
.page-auth .site-main { padding: 0; }
.auth-shell {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 20px 22px 40px;
}
.auth-back {
  position: absolute; top: 22px; left: 22px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--muted); width: max-content;
  z-index: 2;
}
.auth-back .ico { width: 15px; height: 15px; transform: rotate(180deg); }
.auth-back:hover { color: var(--blue); }
.auth-inner {
  width: 100%; max-width: 388px; margin: auto;
  padding: 22px 0 8px; text-align: center;
}
.auth-logo {
  width: 66px; height: 66px; border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: 0 22px 40px -26px rgba(37, 99, 235, .95);
}
.auth-title {
  font-family: var(--font-display);
  font-size: 25px; line-height: 1.5; letter-spacing: .03em;
}
.auth-title em { font-style: normal; color: var(--blue); }
.auth-sub { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.auth-tabs {
  display: flex; justify-content: center; gap: 30px;
  margin: 26px 0 20px; border-bottom: 1px solid var(--line);
}
.auth-tabs a {
  padding: 0 2px 11px; margin-bottom: -1px;
  font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; transition: .16s;
}
.auth-tabs a.on { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.auth-form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.auth-form .field { margin: 0; }
.auth-agree {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 11.5px; color: var(--muted); line-height: 1.7;
  margin: 2px 0 2px;
}
.auth-agree input { width: 13px; height: 13px; margin: 2px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.auth-agree b { color: var(--ink-2); font-weight: 500; }
.auth-agree a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, .35); }
.auth-agree a:hover { border-bottom-color: var(--blue); }
.auth-shell .auth-tip { margin-top: 18px; border-top: 0; padding-top: 0; font-size: 11px; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 27px; letter-spacing: .03em; margin-bottom: 8px; }
.auth-head p { font-size: 12.5px; color: var(--muted); }
.auth-card form { display: flex; flex-direction: column; gap: 15px; }
.auth-switch { margin-top: 20px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 600; }
.auth-tip { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.9; }
.query-result {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 16px;
  padding: 14px 16px; border: 1px solid #cdeee0;
  background: #f2fbf7; border-radius: 12px; font-size: 13px;
}
.query-result b { color: var(--ok); }
.me-foot { display: flex; justify-content: flex-end; margin: 22px 0 68px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input {
  flex: 1; min-width: 160px; height: 46px;
  border: 1px solid var(--line); border-radius: 11px;
  padding: 0 14px; background: var(--surface-2); color: var(--ink);
}
.inline-form input:focus { outline: none; border-color: #b9d2ff; background: #fff; box-shadow: var(--ring); }

/* ===== 空状态 / 提示 ===== */
.empty {
  text-align: center; padding: 78px 24px;
  background: var(--surface-2);
  border: 1px dashed #d7e3f7; border-radius: var(--radius);
}
.empty-mark {
  width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 13px;
  background: #fff; color: var(--blue);
  border: 1px solid #dbe8ff; box-shadow: 0 10px 22px -18px rgba(37, 99, 235, .7);
  display: grid; place-items: center;
}
.empty-mark svg { width: 20px; height: 20px; }
.empty p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

.alert {
  border-radius: 12px; padding: 12px 15px; font-size: 12.5px; margin-bottom: 16px;
  border: 1px solid transparent; line-height: 1.8;
}
.alert-error { background: #fef3f2; border-color: #fad4d0; color: #c0342b; }
.alert-ok { background: #f1fbf6; border-color: #c9f0e0; color: #0e7a56; }
.alert-warn { background: var(--gold-soft); border-color: #f6ddc5; color: #b4650f; }

.msg-panel { text-align: center; padding: 56px 32px; margin: 56px 0 88px; }
.msg-panel h1 { font-size: 24px; margin-bottom: 12px; }
.msg-panel p { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

/* 加购提示 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 120;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #cfe0ff;
  color: var(--blue);
  font-size: 13px; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 22px 44px -24px rgba(16, 42, 92, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #081a33 0%, #061427 100%);
  color: rgba(206, 222, 245, .66);
  position: relative; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 44px; padding-top: 56px; padding-bottom: 36px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .logo-mark { box-shadow: none; }
.footer-brand p { font-size: 12.5px; margin-bottom: 11px; max-width: 330px; line-height: 1.9; }
.footer-small { font-size: 11px !important; color: rgba(206, 222, 245, .4); line-height: 1.9; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #7fb3ff; margin-bottom: 6px;
}
.footer-col a:hover, .footer-col span:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-mono);
  font-size: 10px; color: rgba(206, 222, 245, .38); letter-spacing: .08em;
}
.footer-notice {
  flex: 1 1 100%;
  font-family: var(--font);
  font-size: 11px; letter-spacing: .02em;
  color: rgba(206, 222, 245, .42);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(56px, 13vw, 168px);
  line-height: .9; letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 197, 255, .16);
  text-align: center;
  user-select: none; pointer-events: none;
  padding-bottom: 18px;
  white-space: nowrap; overflow: hidden;
}

/* ===== 手机端组件（桌面隐藏） ===== */
.tabbar, .mobile-buybar { display: none; }

/* ===== 响应式 ===== */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; gap: 6px; }
  .hero-art { height: 360px; margin-top: 8px; }
  .globe-wrap { max-width: 640px; margin: 0 auto; }
  .hero { padding: 40px 0 36px; }
}
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .main-nav { order: 3; width: 100%; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .search-box { order: 4; flex: 1 1 100%; }
  .brand-text em { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .checkout-layout, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-sum { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .promise { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .author { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px; }
  .author-side { flex-direction: row; align-items: center; gap: 16px; }
  .author-sign { display: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 18px; }
  .site-header { padding: 10px 0 6px; }
  .header-inner { border-radius: 14px; min-height: 56px; padding: 8px 12px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-text strong { font-size: 15px; }
  .main-nav { display: none; }
  .search-box input { height: 38px; }
  .icon-btn { height: 36px; padding: 0 8px; }
  .icon-btn .ico { width: 21px; height: 21px; }
  .icon-btn-text { display: none; }

  .hero { padding: 12px 0 28px; }
  /* 手机端：地球缩成顶部小装饰，不抢标题的阅读空间 */
  .hero-inner { gap: 0; }
  .hero-art { order: -1; height: 172px; margin: 0 auto 10px; }
  .globe-wrap { max-width: 240px; }
  .globe-chip, .globe-note { display: none; }
  .eyebrow { font-size: 9.5px; padding: 6px 12px; margin-bottom: 16px; letter-spacing: .18em; }
  .hero h1 { font-size: 30px; line-height: 1.38; margin-bottom: 16px; }
  .hero-copy > p { font-size: 13px; line-height: 1.85; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 12.5px; height: 46px; }
  .hero-stats { margin-top: 26px; gap: 26px; }
  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 9px; }

  .section { padding: 42px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 12px; }
  .section-index { font-size: 9px; margin-bottom: 10px; }

  .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: 34px; padding: 0 15px; font-size: 12px; }

  .grid, .grid-list { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* 横版资料卡：手机单列 */
  .seg-bar { margin-bottom: 16px; }
  .seg-item { font-size: 13.5px; margin-right: 22px; padding: 8px 0 11px; }
  .seg-count { display: none; }
  .plist { gap: 10px; }
  .prow { padding: 10px; gap: 12px; border-radius: 14px; }
  .prow-cover { flex: 0 0 116px; }
  .prow .cover-row { aspect-ratio: 1 / 1; }
  .prow .cover-row .cover-tag { display: none; }
  .prow .cover-row .cover-glyph { font-size: 40px; }
  .prow-body { gap: 5px; }
  .prow-top { font-size: 9px; letter-spacing: .06em; }
  .prow-title { font-size: 13.5px; line-height: 1.5; }
  .prow-sub { font-size: 11px; }
  .prow-tags span { font-size: 9.5px; padding: 1.5px 6px; }
  .prow .price { font-size: 18px; }
  .prow-go { display: none; }
  .cover-badge { left: 8px; bottom: 8px; font-size: 8.5px; padding: 2px 6px; }

  .cover-row { aspect-ratio: 1 / 1; }
  .cover { aspect-ratio: 1 / 1; }
  .cover-glyph { font-size: 46px; }
  .cover-tag { font-size: 8px; padding: 3px 8px; left: 9px; top: 9px; letter-spacing: .08em; }
  .card { border-radius: 14px; }
  .card-body { padding: 11px 12px 13px; gap: 5px; }
  .card-meta { font-size: 8.5px; letter-spacing: .08em; }
  .card-title { font-size: 13px; line-height: 1.5; min-height: 2.9em; }
  .card-sum { display: none; }
  .price { font-size: 18px; }
  .price i { font-size: .58em; }
  .price-old { font-size: 10px; }
  .card-sales { font-size: 9px; }
  .card-foot { padding-top: 4px; }
  .promise-item { padding: 24px 22px; }
  .promise-item h3 { font-size: 16px; }
  .author { padding: 22px; border-radius: 18px; gap: 18px; }
  .author-avatar { width: 56px; height: 56px; font-size: 24px; }
  .author-name { font-size: 20px; }
  .author-lead { font-size: 13px; line-height: 1.95; margin-bottom: 16px; }
  .author-list { gap: 9px; }
  .author-list li { grid-template-columns: 22px 38px minmax(0, 1fr); font-size: 12px; }

  .page-head { padding-top: 24px; padding-bottom: 18px; }
  .page-head h1 { font-size: 26px; }
  .page-head > p { font-size: 12.5px; }
  .crumb { margin-bottom: 12px; font-size: 9.5px; }

  .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: 16px; }
  .detail-cover .cover-glyph { font-size: 60px; }
  .detail .panel { border-radius: 16px; padding: 20px; }
  .panel-title { font-size: 9px; margin-bottom: 14px; padding-bottom: 11px; }
  .buy-card { padding: 20px; border-radius: 16px; box-shadow: var(--shadow-sm); }
  .buy-tags { margin-bottom: 12px; }
  .tag { font-size: 8.5px; padding: 3px 8px; }
  .buy-title { font-size: 20px; margin-bottom: 7px; }
  .buy-sub { font-size: 12px; margin-bottom: 0; }
  .buy-price { margin-bottom: 0; padding: 14px 0; gap: 10px; }
  .buy-price .price { font-size: 30px; }
  .buy-actions { display: none; }
  .buy-points { margin-top: 16px; gap: 9px; }
  .buy-points li { font-size: 11.5px; }
  .buy-contact { margin-top: 15px; padding-top: 13px; }
  .rich { font-size: 14px; line-height: 1.9; }

  .cart-row { padding: 12px; gap: 12px; }
  .cart-cover { flex: 0 0 72px; }
  .cover-sm { width: 72px; }
  .cart-name { font-size: 13.5px; }
  .cart-meta { font-size: 9.5px; }
  .cart-price { font-size: 15px; }
  .cart-sum { padding: 20px; }
  .cart-sum .btn { height: 48px; font-size: 14px; }

  .checkout-layout { gap: 12px; }
  .co-form { padding: 18px; }
  .co-form.panel, .checkout-layout .panel { border-radius: 16px; }
  .field input, .field select, .field textarea { font-size: 16px; height: 48px; }
  .field textarea { height: auto; }
  .field > span { font-size: 11.5px; }
  .buy-mode { grid-template-columns: 1fr; }
  .co-sum { padding: 18px; }

  .order-top { padding: 22px; }
  .order-meta, .order-items, .order-foot { padding-left: 22px; padding-right: 22px; }
  .order-amount { font-size: 24px; }
  .order-status h1 { font-size: 19px; }
  .auth-card { padding: 24px; margin: 24px auto 50px; }
  .page-auth { padding-bottom: 0; }
  .auth-shell { padding: 16px 18px 30px; }
  .auth-inner { padding-top: 16px; }
  .auth-logo { width: 58px; height: 58px; border-radius: 17px; margin-bottom: 18px; }
  .auth-title { font-size: 22px; }
  .auth-sub { font-size: 12px; }
  .auth-tabs { margin: 22px 0 18px; }
  .auth-form .field input { font-size: 16px; height: 48px; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .footer-bottom { font-size: 9px; }
  .footer-wordmark { font-size: 64px; padding-bottom: 12px; }
  .msg-panel { margin: 32px 0 60px; padding: 44px 24px; }
  .toast { bottom: 88px; font-size: 12px; }

  /* 底部购买条 */
  .mobile-buybar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 9px 11px;
    box-shadow: 0 18px 40px -24px rgba(16, 42, 92, .45);
  }
  .page-detail { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mb-price { margin-right: auto; display: flex; flex-direction: column; line-height: 1.2; }
  .mb-price .price { font-size: 21px; }
  .mb-price .price-old { font-size: 10px; }
  .mb-price em { font-style: normal; font-size: 9px; color: var(--muted-2); }
  .mb-form { display: flex; gap: 8px; }
  .mb-cart, .mb-buy {
    height: 42px; padding: 0 16px; border-radius: 11px;
    font-size: 12.5px; font-weight: 600; font-family: inherit;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
  }
  .mb-buy {
    background: linear-gradient(135deg, #3b7bff, #2563eb); color: #fff; border-color: transparent;
    box-shadow: 0 12px 26px -16px rgba(37, 99, 235, .8);
  }
  .mb-cart:active, .mb-buy:active { transform: scale(.98); }

  /* 底部导航 */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    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: 9px 0 8px; font-size: 9.5px; color: var(--muted-2);
    position: relative; letter-spacing: .06em; transition: .16s;
  }
  .tab .ico { width: 21px; height: 21px; }
  .tab.on { color: var(--blue); }
  .tab.on .ico { transform: translateY(-1px); }
  .tab-badge {
    position: absolute; top: 4px; left: 50%; margin-left: 5px;
    min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 999px; background: var(--amber); color: #fff;
    font-size: 9px; font-weight: 700; display: grid; place-items: center; border: 1.5px solid #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== 列表排序 ===== */
.sort-bar {
  display: flex; align-items: center; gap: 12px;
  margin: -6px 0 18px;
  font-size: 12.5px;
}
.sort-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; }
.sort-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-opt {
  padding: 5px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none;
  border: 1px solid transparent; transition: .18s;
}
.sort-opt:hover { color: var(--blue); background: var(--blue-soft); }
.sort-opt.on { color: var(--blue); background: #fff; border-color: #cfe0ff; box-shadow: var(--shadow-sm); }

/* ===== 详情页信息条 ===== */
.buy-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 10px 0 2px; font-size: 12px; color: var(--muted);
}
.buy-meta span { position: relative; }
.buy-meta span + span::before {
  content: ""; position: absolute; left: -8px; top: 50%;
  width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--line);
}

/* ===== 404 / 提示页 ===== */
.msg-panel .search-box { flex: none; width: 100%; max-width: 380px; margin: 0 auto 20px; }
.msg-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== 交互反馈 ===== */
.btn.is-copied { border-color: rgba(18, 153, 107, .5); color: var(--ok); background: #f2fbf7; }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ===== 键盘可达性 ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== 结算页免注册提示 ===== */
.who-card.who-guest { border-style: dashed; background: var(--surface-2); }
.who-card.who-guest .who-avatar { background: #fff; border: 1px dashed #cfe0ff; color: var(--blue); }

/* ===== 订单查询：本机最近订单 ===== */
.recent-orders { text-align: left; margin: 0 0 20px; }
.recent-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.recent-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1px 10px;
  padding: 10px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  text-decoration: none; color: var(--ink); transition: .18s;
}
.recent-item:hover { border-color: #cfe0ff; box-shadow: var(--shadow-sm); }
.recent-item .ri-no { grid-column: 1; grid-row: 1; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.recent-item .ri-t { grid-column: 1; grid-row: 2; font-size: 13px; }
.recent-item .ri-d { grid-column: 1; grid-row: 3; font-size: 11px; color: var(--muted-2); }
.recent-item .ri-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 12px; color: var(--blue); }
.query-hint { font-size: 12px; color: var(--muted-2); margin-top: 14px; line-height: 1.7; }

/* ===== 课件预览（试看）===== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.preview-thumb {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); overflow: hidden; cursor: zoom-in;
  transition: .2s; aspect-ratio: 4 / 3;
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .3s; }
.preview-thumb:hover { border-color: #cfe0ff; box-shadow: var(--shadow-sm); }
.preview-thumb:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px; background: rgba(8, 18, 36, .82);
  opacity: 0; visibility: hidden; transition: .2s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%); max-height: 100%;
  border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  background: #fff;
}
.lightbox-close {
  position: absolute; top: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 640px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lightbox { padding: 56px 12px 24px; }
}
