/* ==========================================================================
   古籍书库 · 全站样式（单文件，无框架依赖）
   桌面站宽度 900px，移动端单列自适应
   ========================================================================== */

:root {
  --ink: #222;
  --muted: #666;
  --line: #e6e8ec;
  --bg: #f6f7f9;
  --card: #fff;
  --brand: #4f46e5;
  --brand-dark: #3f36d8;
  --brand-soft: #eef0ff;
  --price: #d4380d;
  --ok: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .82; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ---------- 页头 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  font-family: "Songti SC", "SimSun", serif;
}
.logo:hover { opacity: 1; color: var(--brand); }
.cart-link {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafbfc;
}
.cart-link:hover { color: var(--brand); border-color: var(--brand); opacity: 1; }
#cart-count { color: var(--brand); font-weight: 600; }

/* ---------- 首页 Hero ---------- */
.search-hero { padding: 48px 0 8px; text-align: center; }
.hero-mark {
  width: 92px;
  height: 102px;
  color: var(--brand);
  opacity: .92;
  margin: 0 auto 18px;
  display: block;
}
.hero-title {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 26px;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.hero-sub { color: var(--muted); font-size: 14px; letter-spacing: .04em; margin-bottom: 26px; }

.search {
  display: flex;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input[type="text"] {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 18px;
  background: transparent;
  font-size: 15px;
  min-width: 0;
}
.search input::placeholder { color: #a8adb8; }
.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 26px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.search button:hover { background: var(--brand-dark); }

/* 统计条 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 28px auto 0;
}
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; }
.stat b { display: block; font-size: 20px; color: var(--brand); font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }

/* 三步说明 */
.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0 8px;
}
.howto-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}
.howto-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 26px;
  color: var(--brand-soft);
  line-height: 1;
}
.howto-ic { color: var(--brand); margin-bottom: 8px; }
.howto-step b { display: block; margin-bottom: 4px; }
.howto-step p { color: var(--muted); font-size: 13px; }

/* ---------- 通用区块 ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 34px 0 14px;
}
.section-title h2 { font-size: 18px; font-weight: 600; }
.section-title .more { font-size: 13px; color: var(--muted); }

/* ---------- 书目卡片列表 ---------- */
.book-list { display: flex; flex-direction: column; gap: 12px; }
.book-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.book-card:hover { border-color: #d6dae3; box-shadow: var(--shadow); transform: translateY(-1px); }
.cover {
  width: 76px;
  height: 104px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex: none;
  box-shadow: inset -6px 0 8px -6px rgba(0, 0, 0, .35), 0 2px 6px rgba(16, 24, 40, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  color: #fff;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .04em;
}
.cover::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .28);
}
.cover span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.book-main { min-width: 0; }
.book-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.book-title a { color: var(--ink); }
.book-title a:hover { color: var(--brand); opacity: 1; }
.book-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 6px;
}
.book-meta em { font-style: normal; color: #8a8f9a; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 1px 7px;
  line-height: 1.7;
}
.tag.grey { color: var(--muted); background: #f1f2f5; }

.book-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price { color: var(--price); font-weight: 700; font-size: 18px; line-height: 1.1; }
.price small { font-size: 12px; font-weight: 400; margin-right: 1px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, opacity .18s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); opacity: 1; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.grey { background: #f1f2f5; border-color: #f1f2f5; color: var(--muted); cursor: default; }
.btn.grey:hover { background: #f1f2f5; border-color: #f1f2f5; }
.btn.wide { width: 100%; padding: 11px 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: 10px; }

/* ---------- 搜索页 ---------- */
.search-page { padding: 26px 0 0; }
.search-bar-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-tip { font-size: 13px; color: var(--muted); margin: 14px 0 14px; }
.search-tip b { color: var(--ink); }
.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty b { display: block; color: var(--ink); margin-bottom: 6px; }
.suggest { margin-top: 14px; font-size: 13px; }
.suggest a { margin: 0 4px; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 6px; margin: 26px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
}
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dot { border: 0; background: transparent; color: var(--muted); }

/* ---------- 详情页 ---------- */
.crumbs { font-size: 12px; color: var(--muted); margin: 18px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs .sep { color: #c3c7cf; }

.detail {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.detail .cover { width: 150px; height: 206px; font-size: 17px; }
.detail h1 { font-family: "Songti SC", "SimSun", serif; font-size: 22px; line-height: 1.4; margin-bottom: 6px; }
.detail .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.detail table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.detail table th {
  width: 74px;
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  padding: 5px 0;
  vertical-align: top;
  white-space: nowrap;
}
.detail table td { padding: 5px 0; color: var(--ink); }
.detail .buy-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.detail .buy-bar .price { font-size: 26px; }
.detail .buy-bar .note { font-size: 12px; color: var(--muted); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}
.panel h2 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.panel p { color: #444; font-size: 14px; }
.panel ol, .panel ul { padding-left: 20px; color: #444; font-size: 14px; }
.panel li { margin: 4px 0; }

/* ---------- 购物车 ---------- */
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cart-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.cart-row .cover { width: 52px; height: 72px; font-size: 11px; }
.cart-row .t { font-weight: 600; font-size: 15px; }
.cart-row .m { font-size: 12px; color: var(--muted); }
.cart-row .del { color: var(--muted); font-size: 12px; background: none; border: 0; cursor: pointer; }
.cart-row .del:hover { color: var(--price); }
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}
.cart-summary .total { font-size: 15px; }
.cart-summary .total b { color: var(--price); font-size: 22px; }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- 表单 / 结算 ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 18px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: 0;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.alert {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert.err { background: #fff1f0; color: #b42318; border: 1px solid #ffd6d0; }
.alert.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---------- 支付页 ---------- */
.pay-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 18px;
  align-items: start;
}
.qr-box { text-align: center; }
.qr-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  display: inline-block;
}
.qr-frame img { width: 200px; height: 200px; display: block; }
.qr-box p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pay-info h2 { font-size: 18px; margin-bottom: 6px; }
.pay-amount { color: var(--price); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.pay-amount small { font-size: 14px; font-weight: 400; }
.kv { font-size: 13px; color: var(--muted); display: flex; gap: 8px; margin: 3px 0; }
.kv b { color: var(--ink); font-weight: 500; }
.pay-status { margin-top: 18px; font-size: 13px; color: var(--muted); }
.pay-status.waiting::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  border: 2px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mock-bar {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.mock-bar p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* ---------- 订单页 ---------- */
.order-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 18px;
}
.order-head .ok-ic { color: var(--ok); }
.order-status-paid { color: var(--ok); font-weight: 600; }
.order-status-pending { color: var(--price); font-weight: 600; }
.order-items { margin-top: 16px; }
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.order-item:last-child { border-bottom: 0; }
.order-item .act { display: flex; gap: 8px; align-items: center; }

/* ---------- 试读阅读器 ---------- */
.reader {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}
.reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.reader-page {
  padding: 40px 56px 56px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  line-height: 2.1;
  color: #2b2b2b;
  max-height: 620px;
  overflow: auto;
}
.reader-page h3 { font-size: 17px; text-align: center; margin-bottom: 22px; letter-spacing: .1em; }
.reader-page p { text-indent: 2em; margin-bottom: 10px; }
.reader-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.reader-mask {
  padding: 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 40%);
  border-top: 1px dashed var(--line);
}
.reader-mask p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  padding: 34px 0 26px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-main { margin-bottom: 8px; color: #555; }
.footer-notice { max-width: 680px; margin: 0 auto 8px; line-height: 1.8; }
.footer-note { color: #9aa0ab; }

/* ---------- 提示浮层 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(24, 26, 32, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 加入购物车飞入动画元素 */
.fly-cover {
  position: fixed;
  z-index: 70;
  border-radius: 3px;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(16, 24, 40, .22);
  opacity: .95;
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .search-hero { padding: 30px 0 4px; }
  .hero-mark { width: 68px; height: 76px; }
  .hero-title { font-size: 22px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: 1fr; }
  .howto-step { padding: 16px; }
  .search { border-radius: 12px; }
  .search input[type="text"] { padding: 12px 14px; }
  .search button { padding: 0 18px; }

  .book-card { grid-template-columns: 62px 1fr; gap: 12px; padding: 12px; }
  .cover { width: 62px; height: 86px; font-size: 12px; }
  .book-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
  }
  .price { font-size: 17px; }

  .detail { grid-template-columns: 1fr; padding: 18px; }
  .detail .cover { width: 110px; height: 150px; margin: 0 auto; }
  .detail h1 { font-size: 19px; text-align: center; }
  .detail .sub { text-align: center; }
  .detail .buy-bar { justify-content: center; }

  .cart-row { grid-template-columns: 44px 1fr; }
  .cart-row .cover { width: 44px; height: 62px; }
  .cart-row .price { grid-column: 2; justify-self: start; }
  .cart-row .del { grid-column: 2; justify-self: end; }

  .pay-wrap { grid-template-columns: 1fr; padding: 20px; }
  .qr-box { margin: 0 auto; }
  .reader-page { padding: 24px 20px 34px; font-size: 15px; line-height: 2; }
  .cart-summary { flex-direction: column; gap: 12px; align-items: stretch; }
  .cart-summary .total { text-align: center; }
}

/* ---------- 联系客服 ---------- */
.cs { position: fixed; right: 24px; bottom: 28px; z-index: 60; font-size: 14px; }
.cs-fab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px 11px 14px; border: 0; border-radius: 999px;
  background: #6b4a2f; color: #fff; font: inherit; cursor: pointer;
  box-shadow: 0 6px 20px rgba(60, 36, 18, .22); transition: transform .15s, box-shadow .15s;
}
.cs-fab:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(60, 36, 18, .28); }
.cs-fab-ico {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.cs-panel {
  position: absolute; right: 0; bottom: 58px; width: 320px;
  background: #fff; border: 1px solid #e6ded2; border-radius: 14px;
  box-shadow: 0 18px 46px rgba(48, 30, 16, .22);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.cs.is-open .cs-panel, .cs-panel[data-open] { opacity: 1; visibility: visible; transform: none; }
.cs-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 16px 12px; background: linear-gradient(180deg, #fbf7f0, #fff);
  border-bottom: 1px solid #f1e9dd;
}
.cs-title { font-size: 15px; font-weight: 700; color: #43301f; letter-spacing: .02em; }
.cs-hours { font-size: 12px; color: #8a7a66; margin-top: 4px; }
.cs-close {
  border: 0; background: transparent; color: #8a7a66; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 2px 4px; border-radius: 6px;
}
.cs-close:hover { color: #43301f; background: #f4ece0; }
.cs-body { padding: 14px 16px 16px; }
.cs-qr-box { text-align: center; margin: 2px 0 14px; }
.cs-qr { display: block; margin: 0 auto; width: 132px; height: 132px; border-radius: 8px; border: 1px solid #eee4d6; background: #fff; }
.cs-qr-cap { font-size: 12px; color: #8a7a66; margin-top: 6px; }
.cs-qr-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 84px; margin: 2px 0 14px; border: 1px dashed #ddd0bf; border-radius: 10px;
  color: #a89583; background: #fdfaf5;
}
.cs-qr-ico { font-size: 22px; line-height: 1; color: #c8b7a3; }
.cs-qr-empty small { font-size: 11px; color: #b9a894; }
.cs-rows { list-style: none; margin: 0; padding: 0; }
.cs-rows li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 9px 0; border-top: 1px solid #f4ede3;
}
.cs-rows li:first-child { border-top: 0; }
.cs-k { color: #8a7a66; font-size: 12px; }
.cs-v { color: #33251a; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-copy {
  border: 1px solid #dccdb8; background: #fff; color: #6b4a2f; font-size: 12px;
  padding: 3px 9px; border-radius: 6px; cursor: pointer; font-family: inherit;
}
.cs-copy:hover { background: #f8f1e6; }
.cs-copy.is-done { border-color: #b9c9b3; color: #4b7a45; background: #f3f8f1; }
.cs-tip { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #f4ede3; font-size: 12px; color: #93826e; line-height: 1.7; }
@media (max-width: 640px) {
  .cs { right: 14px; bottom: 16px; }
  .cs-panel { position: fixed; left: 14px; right: auto; bottom: 70px; width: calc(100vw - 28px); max-width: 362px; max-height: calc(100vh - 92px); overflow-y: auto; box-sizing: border-box; }
  .cs-fab { padding: 10px 15px; font-size: 13px; }
}
.footer-cs { color: #6b4a2f; text-decoration: underline; text-underline-offset: 2px; }
.footer-cs:hover { color: #43301f; }
/* ========== 付款成功下载弹窗 ========== */
.dl-modal {
  position: fixed; inset: 0; z-index: 70; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.dl-modal.open { opacity: 1; visibility: visible; }
.dl-mask { position: absolute; inset: 0; background: rgba(28, 18, 10, .5); }
.dl-card {
  position: relative; box-sizing: border-box; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 22px 20px 18px;
  box-shadow: 0 22px 60px rgba(30, 18, 8, .28);
  transform: translateY(10px) scale(.98); transition: transform .22s ease;
}
.dl-modal.open .dl-card { transform: none; }
.dl-head { display: flex; align-items: flex-start; gap: 10px; }
.dl-ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: #e8f5ec; color: #1a7f3c; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.dl-head h2 { margin: 0; font-size: 17px; color: #2c2016; }
.dl-sub { margin: 4px 0 0; font-size: 12px; color: #7b6c5c; }
.dl-x {
  margin-left: auto; padding: 2px 4px; border: 0; background: none;
  font-size: 20px; line-height: 1; color: #9a8b7a; cursor: pointer;
}
.dl-x:hover { color: #43301f; }
.dl-list { margin: 16px 0 0; border-top: 1px solid #f0e8dc; }
.dl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f0e8dc;
}
.dl-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #33251a; }
.dl-name small { font-size: 11px; color: #8a7866; }
.dl-go { flex: 0 0 auto; }
.dl-tip { margin: 12px 0 14px; font-size: 12px; line-height: 1.6; color: #7b6c5c; }
@media (max-width: 480px) {
  .dl-modal { display: block; padding: 14px; overflow-y: auto; }
  .dl-card { width: auto; max-width: none; margin: 0; padding: 20px 16px 16px; }
  .dl-row { flex-wrap: wrap; }
  .dl-go { width: 100%; text-align: center; }
}
