/* ==========================================================
   知页文档库 · 样式表
   ========================================================== */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #17211d;
  --ink-soft: #3c4a44;
  --muted: #74807a;
  --line: #e4e2da;
  --line-soft: #eeede7;
  --brand: #16604a;
  --brand-deep: #0d4334;
  --brand-tint: #e8f2ed;
  --accent: #c2571f;
  --accent-tint: #fbeee6;
  --danger: #b4402f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 29, .05);
  --shadow-md: 0 8px 24px -12px rgba(23, 33, 29, .22);
  --shadow-lg: 0 30px 70px -30px rgba(23, 33, 29, .35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

/* hidden 属性要压过 display:flex 之类的声明 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

/* 首页：让页脚始终贴底 */
body.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* flex 子项的 auto 外边距会取消拉伸，这里显式指定宽度以保留居中效果 */
body.site-body > .hero,
body.site-body > .notice,
body.site-body > .vip-banner,
body.site-body > .toolbar,
body.site-body > .results {
  width: 100%;
}

body.site-body .results { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--brand-tint); }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 241, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .5px;
  color: var(--brand-deep);
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
  border: none;
  background: transparent;
}

.nav-link:hover { background: rgba(22, 96, 74, .07); color: var(--brand-deep); }

.nav-link.solid {
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
}

.nav-link.solid:hover { background: var(--brand-deep); }

/* ---------- 首屏 ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 28px 34px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
  opacity: .5;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
  font-weight: 600;
  max-width: 20em;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero-sub {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 34em;
}

/* 搜索框 */

.search-wrap {
  position: relative;
  max-width: 720px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 96, 74, .09), var(--shadow-md);
}

.search-box svg { flex-shrink: 0; color: var(--muted); }

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15.5px;
  padding: 12px 0;
  min-width: 0;
}

.search-box input::placeholder { color: #a8b0ac; }

.search-btn {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background .18s;
  flex-shrink: 0;
}

.search-btn:hover { background: var(--brand-deep); }

.search-clear {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  display: none;
}

.search-box.has-value .search-clear { display: block; }

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  align-items: center;
}

.hot-tags span.label { color: var(--muted); margin-right: 2px; }

.hot-tag {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  transition: all .16s;
}

.hot-tag:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-tint);
}

/* 公告 */

.notice {
  max-width: 1180px;
  margin: 0 auto 8px;
  padding: 0 28px;
}

.notice-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fdf8ec;
  border: 1px solid #f0e2bd;
  color: #7a5a12;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 10px;
}

/* ---------- 工具栏 ---------- */

.toolbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1 1 0;
  min-width: 0;
  scrollbar-width: none;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent 100%);
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .16s, border-color .16s;
  border-radius: 0;
}

.chip:hover { color: var(--ink); }

.chip.active {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
  font-weight: 500;
}

.chip .count {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.sort-select {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  outline: none;
  margin-bottom: 8px;
}

/* ---------- 结果区 ---------- */

.results {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px 90px;
}

.result-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--muted);
  min-height: 22px;
}

.result-head b { color: var(--ink); font-weight: 600; font-size: 15px; }

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

/* ---------- 文档卡片 ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 196px;
  text-align: left;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfd6cf;
}

.card:active { transform: translateY(-1px); }

.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
  opacity: 0;
  transition: opacity .2s;
}

.card:hover::after { opacity: 1; }

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  text-transform: uppercase;
  font-family: var(--mono);
}

.badge.pdf { background: #fdeceb; color: #b03a2e; }
.badge.doc, .badge.docx { background: #e9effc; color: #2b4f9e; }
.badge.xls, .badge.xlsx, .badge.csv { background: #e6f4ec; color: #1c6b41; }
.badge.ppt, .badge.pptx { background: #fdefe6; color: #b1551d; }
.badge.zip, .badge.rar, .badge.\37 z { background: #f2eef9; color: #5b3f9e; }

.card-cat {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}

.card-title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}

.meta-line {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.price .cur { font-size: 13px; margin-right: 1px; }
.price.free { color: var(--brand); font-size: 15px; font-family: var(--sans); font-weight: 600; }

mark {
  background: #fdf0c9;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* 骨架屏 */

.skeleton {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 196px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.75) 40%, transparent 60%);
  animation: shine 1.4s infinite;
}

@keyframes shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.sk-line {
  height: 12px;
  border-radius: 6px;
  background: var(--line-soft);
  margin-bottom: 12px;
}

.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-line.w90 { width: 90%; }
.sk-line.tall { height: 18px; }

/* 空状态 */

.empty {
  text-align: center;
  padding: 80px 20px 100px;
  color: var(--muted);
}

.empty svg { margin-bottom: 18px; opacity: .55; }
.empty h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-weight: 600;
}
.empty p { margin: 0; font-size: 14px; }

/* ---------- 弹窗 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 22, .5);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}

.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn .26s cubic-bezier(.22, 1, .36, 1);
  -webkit-overflow-scrolling: touch;
}

.modal-card.wide { max-width: 620px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 33, 29, .05);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: background .16s;
  z-index: 2;
}

.modal-close:hover { background: rgba(23, 33, 29, .1); }

/* 详情弹窗 */

.detail-body { padding: 30px 30px 26px; }

.detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.38;
  font-weight: 600;
  margin: 0 0 12px;
  padding-right: 30px;
  color: var(--ink);
}

.detail-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 18px;
  white-space: pre-wrap;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.spec {
  background: var(--surface);
  padding: 11px 14px;
  font-size: 12.5px;
}

.spec .k { color: var(--muted); display: block; margin-bottom: 2px; font-size: 11.5px; }
.spec .v { color: var(--ink); font-weight: 500; word-break: break-all; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }

.tag {
  font-size: 12px;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 3px 10px;
  border-radius: 999px;
}

.detail-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

.detail-price { flex-shrink: 0; }
.detail-price .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.1;
}
.detail-price .num small { font-size: 15px; }
.detail-price .hint { font-size: 11.5px; color: var(--muted); }

.btn {
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  flex: 1;
  box-shadow: 0 6px 16px -8px rgba(22, 96, 74, .8);
}

.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }

.btn-block { width: 100%; }

.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* 支付弹窗 */

.pay-body { padding: 28px 30px 26px; text-align: center; }

.pay-eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pay-amount {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 2px;
}

.pay-amount small { font-size: 18px; }

.pay-doc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 20px;
}

.pay-tabs {
  display: inline-flex;
  background: #f2f2ee;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 18px;
  gap: 2px;
}

.pay-tab {
  border: none;
  background: transparent;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: all .18s;
}

.pay-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

/* 收款码：不做 overflow 裁剪、不用固定高宽压缩，避免微信长按识别拿到模糊位图 */
.qr-frame {
  width: min(290px, 78vw);
  margin: 0 auto 10px;
  border-radius: 12px;
  background: #fff;
  position: relative;
  padding: 6px;
}

.qr-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  cursor: zoom-in;
}

.qr-save {
  display: block;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.qr-save:active { background: #f3f6f4; }

.qr-steps {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f8f6;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.qr-steps[hidden] { display: none; }
.qr-steps b { color: var(--brand-deep); }

/* 长按识别提示 */
.qr-hint {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}
.qr-hint b { color: var(--brand-deep); font-weight: 700; }

/* 收款码放大层（微信内长按识别需要足够像素） */
.qr-zoom {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 12, 10, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-zoom-inner {
  text-align: center;
  max-width: 92vw;
}

.qr-zoom img {
  display: block;
  width: min(340px, 88vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}

.qr-zoom-hint {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.7;
}

.qr-zoom-close {
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 9px 26px;
  border-radius: 999px;
  cursor: pointer;
}

.qr-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  padding: 16px;
}

.qr-placeholder b { display: block; color: var(--ink-soft); margin-bottom: 4px; font-size: 13px; }

.qr-expired {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.93);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  backdrop-filter: blur(2px);
}

.order-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #faf9f5;
  border: 1px dashed #d8d5c9;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
}

.order-code-box .lab { font-size: 12px; color: var(--muted); }

.order-code-box .code {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 2.5px;
  color: var(--ink);
  font-weight: 600;
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--muted);
  transition: all .16s;
}

.copy-btn:hover { color: var(--brand-deep); border-color: var(--brand); }

.pay-guide {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
  text-align: left;
  background: #faf9f5;
  border-radius: 10px;
  padding: 11px 14px;
}

.pay-guide b { color: var(--ink-soft); font-weight: 600; }

.pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  min-height: 40px;
  margin-bottom: 4px;
}

.dot-pulse {
  display: inline-flex;
  gap: 3px;
}

.dot-pulse i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: bounce 1.2s infinite ease-in-out;
}

.dot-pulse i:nth-child(2) { animation-delay: .16s; }
.dot-pulse i:nth-child(3) { animation-delay: .32s; }

@keyframes bounce {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.pay-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  animation: popIn .4s cubic-bezier(.22, 1, .36, 1);
}

.pay-actions { display: flex; gap: 10px; margin-top: 8px; }
.pay-actions .btn { flex: 1; }

/* 审核中提示 */
.review-box {
  background: #fdf8ec;
  border: 1px solid #f0e2bd;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  animation: popIn .3s ease;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7a5a12;
  margin-bottom: 7px;
}

.review-head .dot-pulse i { background: #b8860b; }

.review-desc {
  font-size: 12.5px;
  color: #7a6335;
  line-height: 1.75;
}

.review-desc b { color: #6b4e0a; }
.review-desc .mono { font-family: var(--mono); letter-spacing: .5px; color: #6b4e0a; }

/* 联系管理员 */
.pay-help {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}

.pay-help a {
  color: var(--brand-deep);
  border-bottom: 1px solid rgba(22, 96, 74, .3);
  cursor: pointer;
}

.contact-qr {
  width: 236px;
  height: 236px;
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 9px;
}

.contact-qr img { width: 100%; height: 100%; object-fit: contain; }

.contact-qr .ph { font-size: 12px; color: var(--muted); text-align: center; padding: 0 14px; line-height: 1.7; }

.wechat-id {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #faf9f5;
  border: 1px dashed #d8d5c9;
  border-radius: 9px;
  padding: 9px 15px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}

/* Toast */

.toast-host {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: rgba(23, 33, 29, .93);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  animation: toastIn .24s ease;
  max-width: 80vw;
}

.toast.err { background: rgba(160, 50, 34, .95); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 页脚 */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 2;
}

.site-footer a { color: var(--brand-deep); border-bottom: 1px solid rgba(22,96,74,.25); }

/* 找回订单 */

.lookup-grid { display: flex; gap: 10px; margin-bottom: 14px; }
.lookup-grid input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  outline: none;
  font-size: 14px;
  background: #fdfdfb;
}
.lookup-grid input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,96,74,.08); }

/* ---------- 会员 ---------- */

.vip-banner { padding: 0 28px; margin-top: 4px; }

.vip-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(96deg, #1d2b26 0%, #2c4238 52%, #3a5347 100%);
  color: #f4f1e8;
  box-shadow: 0 10px 26px -18px rgba(23, 33, 29, .7);
}

.vip-flame {
  flex: none;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e8c274, #c9902f);
  color: #2b1f08;
}

.vip-copy { display: flex; flex-direction: column; min-width: 0; }
.vip-copy b { font-family: var(--serif); font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
.vip-copy span { font-size: 12.5px; color: rgba(244, 241, 232, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vip-price {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 20px;
  color: #e8c274;
  white-space: nowrap;
}

.vip-banner-btn {
  flex: none;
  border: 1px solid rgba(232, 194, 116, .5);
  background: rgba(232, 194, 116, .12);
  color: #f0dcae;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.vip-banner-btn:hover { background: #e8c274; color: #2b1f08; border-color: #e8c274; }

.vip-link { color: #8a6a1e !important; font-weight: 600; }
.vip-link.is-member { color: var(--brand) !important; }

/* 会员弹窗 */
.vip-hero {
  text-align: center;
  padding: 6px 0 18px;
}
.vip-hero .crown {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f4e3b5, #dcb463);
  color: #4a3308;
}
.vip-hero h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; font-weight: 600; }
.vip-hero p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

.vip-price-big {
  font-family: var(--serif);
  font-size: 40px;
  text-align: center;
  color: var(--accent);
  line-height: 1.1;
  margin: 4px 0 2px;
}
.vip-price-big small { font-size: 20px; margin-right: 2px; }
.vip-price-note { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 18px; }

.vip-perks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
.vip-perks li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.55;
}
.vip-perks svg { flex: none; margin-top: 3px; color: var(--brand); }

.vip-code-box {
  border: 1px dashed rgba(22, 96, 74, .35);
  background: var(--brand-tint);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.vip-code-box .lab { font-size: 11.5px; letter-spacing: .1em; color: var(--brand); text-transform: uppercase; }
.vip-code-box .code {
  display: block;
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--brand-deep);
  margin: 7px 0 10px;
  word-break: break-all;
}

.vip-activate { display: flex; gap: 8px; margin-top: 4px; }
.vip-activate input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--mono);
  outline: none;
  background: #fdfdfb;
  letter-spacing: .04em;
}
.vip-activate input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 96, 74, .08); }

.vip-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px;
  font-size: 12px; color: #a3aca6;
}
.vip-sep::before, .vip-sep::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

.vip-member-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  background: linear-gradient(135deg, #f4e3b5, #e2c07a);
  color: #4a3308;
}

/* 会员状态下的价格位 */
.price.vip-yes { color: var(--brand); font-size: 13px; font-weight: 600; }
.price.vip-yes .tick { font-size: 11px; }

/* 加载更多 */
.load-more-wrap { display: flex; justify-content: center; padding: 28px 0 8px; }
.load-more { padding: 11px 34px; font-size: 14px; }

@media (max-width: 820px) {
  .vip-banner { padding: 0 16px; }
  .vip-banner-inner { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .vip-copy { flex: 1 1 auto; }
  .vip-copy span { white-space: normal; }
  .vip-price { font-size: 18px; margin-left: 0; }
  .vip-banner-btn { padding: 6px 13px; }
  .vip-price-big { font-size: 34px; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 820px) {
  .header-inner { padding: 0 16px; height: 58px; }
  .hero { padding: 40px 16px 26px; }
  .notice { padding: 0 16px; }
  .toolbar { padding: 4px 16px 0; flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .chips { flex: none; width: 100%; height: auto; }
  .sort-select { align-self: flex-end; margin-bottom: 4px; }
  .results { padding: 20px 16px 70px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-sub { font-size: 14.5px; }
  .search-btn { padding: 11px 18px; }
  .detail-body, .pay-body { padding: 24px 20px; }
  .modal { padding: 12px; }
  .detail-specs { grid-template-columns: 1fr; }
  .qr-frame { width: min(270px, 74vw); }
  .logo { font-size: 17px; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  #btnLookup { display: none; }
}
