/* ==========================================================================
   医护资料付费店 · 前台样式（移动端优先，微信小程序风格）
   ========================================================================== */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #17181c;
  --ink-2: #5b6270;
  --ink-3: #98a0ad;
  --line: #eceef3;
  --line-2: #e3e6ec;
  --red: #e8453c;
  --red-2: #ff6a5b;
  --red-soft: #fff1f0;
  --orange: #ff8a1f;
  --orange-soft: #fff6ec;
  --green: #12b76a;
  --green-soft: #eafaf2;
  --blue: #1677ff;
  --blue-soft: #eef5ff;
  --gold: #b8863b;
  --gold-soft: #fdf6e9;
  --radius: 16px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 30px -20px rgba(16, 24, 40, .35);
  --shadow-hover: 0 8px 24px -12px rgba(16, 24, 40, .35);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: #e8eaee;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: 14px; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.ic { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}
body.has-tabbar .app { padding-bottom: calc(60px + var(--safe-b)); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 238, 243, .9);
}
.nav-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s;
}
.nav-btn:active { background: rgba(0, 0, 0, .05); }
.nav-btn-ghost { opacity: 0; pointer-events: none; }
.nav-right { display: flex; align-items: center; gap: 2px; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.section-title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red-2), var(--red));
}
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .12s, filter .2s, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7a5f, var(--red) 70%);
  box-shadow: 0 10px 20px -10px rgba(232, 69, 60, .75);
}
.btn-primary:disabled { opacity: .55; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-soft { background: var(--red-soft); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.badge-auto { color: #fff; background: linear-gradient(135deg, #ffab3d, #ff7a15); }
.badge-vip { color: #8a5a12; background: linear-gradient(135deg, #ffe6ac, #ffd27e); }
.badge-bought { color: #fff; background: rgba(18, 183, 106, .95); }
.badge-soft { color: var(--ink-2); background: #f2f4f7; }

.price {
  color: var(--red);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.3px;
  line-height: 1;
}
.price .cur { font-size: 12px; font-weight: 700; margin-right: 1px; }
.price-old {
  color: var(--ink-3);
  font-size: 11.5px;
  text-decoration: line-through;
}

.divider { height: 1px; background: var(--line); margin: 12px 0; }
.hr-8 { height: 8px; background: var(--bg); }

/* ---------- 首页头部 ---------- */
.home-head {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 62%, rgba(244, 245, 247, 0) 100%);
  padding: 12px 14px 0;
}
.home-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-bottom: 10px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
}
.home-brand img { width: 24px; height: 24px; border-radius: 7px; }
.home-top-right { margin-left: auto; display: flex; gap: 2px; }
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-2);
}
.icon-btn:active { background: rgba(0, 0, 0, .05); }

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 10px -6px rgba(16, 24, 40, .2);
  color: var(--ink-3);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0 4px 8px;
}

/* 公告条 */
.notice-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(232, 69, 60, .12);
  color: #a2453c;
  font-size: 12px;
  line-height: 1.4;
}
.notice-line > span {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-line .ic { color: var(--red); flex: 0 0 auto; }
.notice-line .notice-arrow { color: #c98a76; }

/* 店铺卡片 */
.store-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "logo info side"
    "rating rating rating";
  gap: 10px 11px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 13px 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.store-logo {
  grid-area: logo;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 10px 20px -12px rgba(16, 24, 40, .55);
}
.store-info { grid-area: info; min-width: 0; }
.store-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
}
.store-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-name .badge { flex: 0 0 auto; height: 18px; padding: 0 5px; font-size: 10px; }
.store-slogan {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-rating {
  grid-area: rating;
  display: flex;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-3);
}
.store-rating span { flex: 1; text-align: center; position: relative; }
.store-rating span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.store-rating b { color: #f09819; font-weight: 700; margin-left: 2px; }
.store-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 16px -10px rgba(232, 69, 60, .8);
}
.btn-vip-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

/* 会员横幅 */
.vip-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(100deg, #fff3ec 0%, #ffe9e1 55%, #ffdfd6 100%);
  border: 1px solid #ffd9cc;
}
.vip-chip {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff9552, var(--red));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 6px 12px -8px rgba(232, 69, 60, .9);
}
.vip-banner-text { flex: 1; min-width: 0; font-size: 12.5px; color: #7a3a2c; line-height: 1.45; }
.vip-banner-text .vip-main { display: block; }
.vip-banner-text .vip-sub { display: block; margin-top: 1px; font-size: 11px; color: #b06655; }
.vip-banner-text b { color: var(--red); font-weight: 700; }
.vip-banner-arrow { margin-left: auto; color: #c98a76; display: flex; align-items: center; }

/* 分类 + 排序 */
.chips-head {
  display: flex;
  align-items: center;
  padding: 14px 16px 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.chips-title { font-weight: 600; color: var(--ink-2); }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 14px 2px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  transition: all .18s;
}
.chip-count {
  margin-left: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.chip.active .chip-count { color: rgba(255, 255, 255, .62); }

/* ---------- 瘤种书架布局（左分类 + 右封面网格） ---------- */
.shelf {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 0 10px;
}
.shelf-rail {
  flex: 0 0 74px;
  width: 74px;
  background: #eef0f3;
  border-radius: 16px;
  padding: 7px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: 12px;
}
.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 9px 3px;
  margin: 0 6px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.25;
  text-align: center;
  position: relative;
  transition: background .18s, color .18s;
}
.rail-item em {
  font-style: normal;
  font-size: 9px;
  color: var(--ink-3);
  font-weight: 500;
}
.rail-item.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 6px 14px -12px rgba(16, 24, 40, .5);
}
.rail-item.is-active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--red);
}
.rail-item.is-active em { color: var(--red); font-weight: 600; }

.shelf-main { flex: 1; min-width: 0; }
.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1px 2px 6px;
}
.shelf-title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.shelf-count { font-size: 10.5px; color: var(--ink-3); }
.shelf-sort {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 0 2px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 9px;
}
.shelf-sort a.active { color: var(--red); font-weight: 700; }
.shelf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shelf-grid .pcard { border-radius: 12px; }
.shelf-grid .pcard-body { padding: 8px 8px 9px; }
.shelf-grid .pcard-title { font-size: 12.2px; line-height: 1.38; height: 34px; }
.shelf-grid .pcard-meta { margin-top: 6px; gap: 3px; }
.shelf-grid .pcard-meta .price { font-size: 15px; }
.shelf-grid .pcard-meta .price-old { font-size: 9.5px; }
.shelf-grid .pcard-sales { display: none; }
.shelf-grid .cover .badge { top: 6px; left: 6px; height: 18px; font-size: 9.5px; padding: 0 5px; }
.shelf-grid .cover .badge-vip { left: auto; right: 6px; }
.shelf-grid .cover .badge-bought { left: 6px; bottom: 6px; top: auto; font-size: 9px; }
.shelf-grid .price-old { display: none; }
.shelf-grid .pcard { border-radius: 12px; overflow: hidden; }
.shelf-grid .pcard-shelf .cover { background: #f7f8fa; }
.mini-vip {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: #8a5a12;
  background: linear-gradient(135deg, #ffe6ac, #ffd27e);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.2;
}

/* 滚动后出现的迷你店招条 */
.mini-store {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -110%);
  width: 100%;
  max-width: 480px;
  height: 52px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px -18px rgba(16, 24, 40, .55);
  transition: transform .25s ease;
}
.mini-store.show { transform: translate(-50%, 0); }
.mini-store img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.mini-store .ms-info { flex: 1; min-width: 0; }
.mini-store .ms-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-store .ms-slogan {
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-store .ms-act {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  flex: 0 0 auto;
}
.mini-store .ms-act:active { background: rgba(0, 0, 0, .05); }

/* 首页头部紧凑化：让封面更早出现 */.home-head { padding-top: 10px; }
.home-top { margin-bottom: 8px; }
.store-card {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 9px 10px;
  padding: 11px 12px 8px;
  margin-top: 10px;
}
.store-logo { width: 50px; height: 50px; border-radius: 13px; }
.store-name { font-size: 14.5px; }
.store-slogan { font-size: 11px; margin-top: 2px; }
.store-rating { font-size: 10px; padding-top: 7px; margin-top: 2px; }
.btn-contact { height: 30px; font-size: 11.5px; padding: 0 10px; }
.btn-vip-mini { font-size: 10.5px; }
.vip-banner { margin-top: 10px; padding: 9px 12px; }
.notice-line { margin-top: 8px; padding: 7px 11px; font-size: 11.5px; }
.shelf { padding-top: 10px; }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .6);
}
.sortbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px 2px;
  font-size: 13px;
  color: var(--ink-2);
}
.sortbar a { display: inline-flex; align-items: center; gap: 3px; }
.sortbar a.active { color: var(--ink); font-weight: 700; }
.sortbar .result-count { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* 商品网格 */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px 4px;
}
.pcard {
  position: relative;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform .18s, box-shadow .18s;
}
.pcard:active { transform: scale(.985); }
.pcard .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f2f4f7;
  overflow: hidden;
}
.pcard .cover img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pcard .cover .badge { position: absolute; top: 8px; left: 8px; }
.pcard .cover .badge-vip { left: auto; right: 8px; }
.pcard .cover .sold-out {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 28, .45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.pcard-body { padding: 9px 10px 11px; }
.pcard-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.42;
  height: 38px;
  color: #1c1e23;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
}
.pcard-meta .price { font-size: 17px; }
.pcard-meta .price-old { font-size: 10.5px; }
.pcard-sales {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
}
.footer-note {
  padding: 20px 24px calc(28px + var(--safe-b));
  text-align: center;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.8;
}
.footer-note a { color: var(--ink-3); text-decoration: underline; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 50;
  display: flex;
  padding: 7px 0 calc(5px + var(--safe-b));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.tabbar a.active { color: var(--red); font-weight: 600; }

/* ---------- 商品详情 ---------- */
.gallery {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 24, 28, .5);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(4px);
}
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.gallery-dots i {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(23, 24, 28, .18);
  transition: all .2s;
}
.gallery-dots i.on { width: 14px; background: var(--ink); }

.detail-main { padding: 12px 14px; }
.detail-title { font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: .1px; }
.detail-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.price-row .price { font-size: 30px; }
.price-row .price-old { margin-bottom: 4px; }
.price-row .sales { margin-left: auto; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.detail-stats {
  display: flex;
  gap: 0;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.detail-stats div { flex: 1; text-align: center; position: relative; }
.detail-stats div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.detail-stats b { display: block; font-size: 15px; }
.detail-stats span { font-size: 11px; color: var(--ink-3); }

.vip-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 14px 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(100deg, #fff8e8, #fff1d6);
  border: 1px solid #f6e3b8;
}
.vip-inline .crown { color: var(--gold); display: flex; }
.vip-inline-text { flex: 1; font-size: 12.5px; color: #7a5a20; line-height: 1.45; }
.vip-inline-text b { color: #a06a12; }
.vip-inline .btn { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 999px; background: linear-gradient(135deg, #e2b458, #b8863b); box-shadow: none; }

.block { margin: 12px 14px 0; padding: 14px; }
.block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.block-head h3 { font-size: 15px; font-weight: 700; }
.block-head .more { margin-left: auto; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 2px; }
.outline-list { display: flex; flex-direction: column; gap: 2px; counter-reset: ol; }
.outline-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  list-style: none;
}
.outline-list li:last-child { border-bottom: 0; }
.outline-list li::before {
  counter-increment: ol;
  content: counter(ol, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.rich-text { font-size: 13.5px; color: #3d424c; line-height: 1.85; }
.rich-text h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rich-text h3:first-child { margin-top: 0; }
.rich-text h3::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--red);
}
.rich-text p { margin: 6px 0; }
.rich-text ul, .rich-text ol { margin: 6px 0; padding-left: 20px; }
.rich-text li { margin: 4px 0; }
.rich-text strong { color: var(--ink); }

.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-row { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.service-row .ic { color: var(--green); margin-top: 2px; }
.service-row b { color: var(--ink); font-weight: 600; }

.download-list { display: flex; flex-direction: column; gap: 8px; }
.download-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid var(--line);
}
.download-row .file-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.download-row .file-meta { min-width: 0; flex: 1; }
.download-row .file-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-row .file-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.download-row .btn { flex: 0 0 auto; }

/* 详情底部操作条 */
.buybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px calc(8px + var(--safe-b));
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -16px rgba(16, 24, 40, .6);
}
.buybar-icon {
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  color: var(--ink-2);
}
.buybar-icon:active { color: var(--red); }
.buybar .btn { flex: 1; }
.buybar .btn + .btn { flex: 0 0 auto; padding: 0 14px; }
body.has-buybar .app { padding-bottom: calc(66px + var(--safe-b)); }

/* ---------- 收银台 ---------- */
.pay-hero {
  margin: 12px 14px 0;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #23252c, #3a3d47);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pay-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.pay-hero .label { font-size: 12px; color: rgba(255, 255, 255, .65); }
.pay-hero .amount { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; }
.pay-hero .amount small { font-size: 18px; font-weight: 600; margin-right: 2px; }
.pay-hero .title {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-hero .order-no { margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .45); }

.channel-tabs { display: flex; gap: 10px; margin: 14px 14px 0; }
.channel-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .18s;
}
.channel-tab .ic { color: var(--ink-3); }
.channel-tab.active {
  border-color: var(--red);
  color: var(--ink);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 8px 18px -14px rgba(232, 69, 60, .9);
}
.channel-tab.active .ic { color: var(--red); }
.channel-tab.active .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}
.channel-tab.active .check .ic { stroke: #fff; }

.qr-card { margin: 12px 14px 0; padding: 18px; text-align: center; }
.qr-frame {
  width: 208px;
  height: 208px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.qr-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.qr-brand .ic { color: var(--green); }
.qr-brand.alipay .ic { color: var(--blue); }
.qr-amount { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.qr-amount b { color: var(--red); font-size: 18px; font-weight: 800; margin-left: 2px; }
.qr-payee { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.qr-tip { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.scan-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: #a35b12;
  font-size: 11.5px;
}
.countdown-line { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.countdown-line b { color: var(--red); font-variant-numeric: tabular-nums; }

.steps { display: flex; margin: 14px 14px 0; padding: 13px 6px; }
.step { flex: 1; text-align: center; position: relative; }
.step .num {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step span { font-size: 11px; color: var(--ink-2); }
.step + .step::before {
  content: "";
  position: absolute;
  left: -34%;
  top: 12px;
  width: 68%;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 69, 60, .25), rgba(232, 69, 60, .05));
}

.paid-form { margin: 12px 14px 0; padding: 14px; }
.field-row { margin-bottom: 12px; }
.field-row label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fafbfc;
  padding: 11px 12px;
  outline: 0;
  font-size: 14px;
  transition: border-color .18s, background .18s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--red); background: #fff; }
.textarea { min-height: 72px; resize: vertical; }
.upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 11px;
  color: var(--ink-3);
  font-size: 12.5px;
  background: #fafbfc;
}
.upload-box input { display: none; }
.upload-box .ic { color: var(--ink-3); }

.tip-box {
  margin: 12px 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #2b5aa8;
  font-size: 12px;
  line-height: 1.7;
}
.tip-box.warn { background: var(--orange-soft); color: #a35b12; }

.waiting-card { margin: 12px 14px 0; padding: 26px 18px; text-align: center; }
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid var(--red-soft);
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-card h3 { font-size: 16px; font-weight: 700; }
.waiting-card p { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.waiting-actions { display: flex; gap: 10px; margin-top: 16px; }
.waiting-actions .btn { flex: 1; }

/* ---------- 订单 ---------- */
.tabs {
  position: sticky;
  top: 48px;
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(244, 245, 247, .96);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 13px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 999px;
}
.tab.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 4px 12px -8px rgba(16, 24, 40, .5); }
.tab .dot { color: var(--red); font-size: 10px; margin-left: 2px; }

.order-card { display: block; margin: 10px 14px 0; padding: 13px 14px; }
.order-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.order-head .status-tag { margin-left: auto; }
.status-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.status-pending { color: #a35b12; background: var(--orange-soft); }
.status-pending_delivery { color: #2b5aa8; background: var(--blue-soft); }
.status-delivered { color: #0b7a48; background: var(--green-soft); }
.status-closed { color: var(--ink-3); background: #f2f4f7; }
.status-refunded { color: #8a4b8a; background: #f8eef8; }
.order-body { display: flex; gap: 10px; margin-top: 11px; }
.order-body .thumb {
  width: 62px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
  background: #f2f4f7;
  flex: 0 0 auto;
}
.order-body .info { min-width: 0; flex: 1; }
.order-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-meta { margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.order-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.order-foot .amount { font-size: 12px; color: var(--ink-2); }
.order-foot .amount b { font-size: 16px; color: var(--ink); font-weight: 800; margin-left: 2px; }
.order-actions { margin-left: auto; display: flex; gap: 8px; }
.order-actions .btn-sm { height: 30px; border-radius: 8px; }

/* 订单详情 */
.order-status-hero {
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, #fff, #fff 70%, rgba(244, 245, 247, 0));
  text-align: center;
}
.status-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
}
.status-icon.pending { background: var(--orange-soft); color: var(--orange); }
.status-icon.pending_delivery { background: var(--blue-soft); color: var(--blue); }
.status-icon.closed, .status-icon.refunded { background: #f2f4f7; color: var(--ink-3); }
.order-status-hero h2 { font-size: 18px; font-weight: 700; }
.order-status-hero p { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
.info-card { margin: 12px 14px 0; padding: 4px 14px; }
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row .k { flex: 0 0 76px; color: var(--ink-3); }
.info-row .v { flex: 1; color: var(--ink); word-break: break-all; text-align: right; }
.info-row .v.copyable { color: var(--ink-2); }
.netdisk-box {
  margin: 12px 14px 0;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(100deg, #f3f8ff, #eaf2ff);
  border: 1px solid #d9e6fb;
}
.netdisk-box .nd-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #24518f; }
.nd-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.nd-link {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #24518f;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nd-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: #24518f; }

/* ---------- 我的 ---------- */
.profile-hero {
  padding: 20px 18px 46px;
  background: linear-gradient(135deg, #2b2f3a 0%, #454b5c 60%, #5a6274 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-hero::before, .profile-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.profile-hero::before { width: 180px; height: 180px; right: -50px; top: -80px; }
.profile-hero::after { width: 100px; height: 100px; right: 60px; top: 40px; }
.profile-row { display: flex; align-items: center; gap: 13px; position: relative; }
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb26b, #ff6a5b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .8);
}
.profile-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.profile-name .badge-vip { color: #6b4a10; }
.profile-phone { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .3px; }
.profile-meta { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.profile-edit { margin-left: auto; color: rgba(255, 255, 255, .7); }
.profile-cards {
  position: relative;
  margin: -30px 14px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 15px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.profile-cards a { text-align: center; position: relative; }
.profile-cards a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.profile-cards b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.profile-cards span { font-size: 11px; color: var(--ink-3); }

.vip-status-card {
  margin: 12px 14px 0;
  padding: 14px;
  border-radius: 15px;
  background: linear-gradient(105deg, #2f2a22, #4a3d28 70%, #56452c);
  color: #f6e7c8;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.vip-status-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 215, 140, .12);
}
.vip-status-card .crown { color: #f3ce86; }
.vip-status-card .txt { flex: 1; }
.vip-status-card .txt b { font-size: 14px; display: block; color: #fff; }
.vip-status-card .txt span { font-size: 11.5px; color: rgba(246, 231, 200, .75); }
.vip-status-card .btn {
  height: 32px;
  font-size: 12.5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d08b, #cfa050);
  color: #47320f;
  box-shadow: none;
}

.menu { margin: 12px 14px 0; padding: 4px 0; }
.menu-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row .ic { color: var(--ink-3); }
.menu-row .label { flex: 1; }
.menu-row .val { font-size: 12.5px; color: var(--ink-3); }
.menu-row .chev { color: var(--ink-3); }
.logout-btn {
  margin: 18px 14px calc(20px + var(--safe-b));
  height: 46px;
  border-radius: 13px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  width: calc(100% - 28px);
  font-size: 14px;
}

/* ---------- 会员 ---------- */
.vip-hero {
  padding: 26px 20px 54px;
  background: linear-gradient(140deg, #23262f 0%, #3b3325 55%, #6b5430 100%);
  color: #f7e9cb;
  position: relative;
  overflow: hidden;
}
.vip-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 140, .22), transparent 70%);
}
.vip-hero .crown-big { color: #f3ce86; }
.vip-hero h1 { margin-top: 12px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.vip-hero p { margin-top: 7px; font-size: 12.5px; color: rgba(247, 233, 203, .7); line-height: 1.7; }
.vip-benefits {
  position: relative;
  margin: -34px 14px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 16px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.vip-benefit { text-align: center; }
.vip-benefit .ic { color: var(--gold); }
.vip-benefit span { display: block; margin-top: 5px; font-size: 11px; color: var(--ink-2); }
.plans { margin: 14px; display: flex; flex-direction: column; gap: 10px; }
.plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 15px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.plan.recommend { border-color: #e8c98d; background: linear-gradient(105deg, #fffdf8, #fff8ea); }
.plan .plan-name { font-size: 15px; font-weight: 700; }
.plan .plan-days { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.plan .plan-price { margin-left: auto; text-align: right; }
.plan .plan-price .price { font-size: 22px; color: #a06a12; }
.plan .plan-price .avg { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.plan .btn { flex: 0 0 auto; height: 38px; border-radius: 10px; font-size: 13.5px; background: linear-gradient(135deg, #f0cd8f, #c99a45); box-shadow: none; color: #3f2c0c; }
.plan .flag {
  position: absolute;
  top: -9px;
  left: 14px;
  height: 19px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f3d08b, #cfa050);
  color: #47320f;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.vip-note { margin: 6px 16px 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { min-height: 100vh; padding: 0 22px calc(30px + var(--safe-b)); }
.auth-nav { height: 52px; display: flex; align-items: center; }
.auth-logo { text-align: center; padding: 18px 0 26px; }
.auth-logo img { width: 68px; height: 68px; border-radius: 19px; margin: 0 auto; box-shadow: 0 14px 30px -16px rgba(16, 24, 40, .6); }
.auth-logo h1 { margin-top: 12px; font-size: 20px; font-weight: 800; letter-spacing: .4px; }
.auth-logo p { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.auth-form { padding: 4px 2px; }
.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  margin-bottom: 12px;
  transition: border-color .18s;
}
.auth-field:focus-within { border-color: var(--red); }
.auth-field .ic { color: var(--ink-3); }
.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
}
.auth-field input::placeholder { color: var(--ink-3); }
.auth-submit { margin-top: 6px; height: 50px; width: 100%; border-radius: 13px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-2); }
.auth-switch a { color: var(--red); font-weight: 600; }
.auth-agree { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.7; }
.auth-tips { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: #eef1f5; color: var(--ink-2); font-size: 11.5px; line-height: 1.8; }

/* ---------- 关于 / 空状态 / 错误 ---------- */
.about-block { margin: 12px 14px 0; padding: 16px; }
.about-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.about-block h3 .ic { color: var(--red); }
.about-block p, .about-block li { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.about-block ul { margin: 0; padding-left: 18px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink-3);
  font-size: 17px;
  font-weight: 300;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap; }

.empty { padding: 60px 20px; text-align: center; color: var(--ink-3); }
.empty .ic { opacity: .5; }
.empty p { margin-top: 10px; font-size: 13px; }

.error-page { min-height: 86vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.error-code { font-size: 56px; font-weight: 800; color: #d9dde4; letter-spacing: 2px; }
.error-page h2 { margin-top: 8px; font-size: 17px; font-weight: 700; }
.error-page p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.error-page .btn { margin-top: 22px; }

/* ---------- Toast / 弹层 / 复制 ---------- */
.toast-wrap {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(88vw, 380px);
  pointer-events: none;
}
.toast {
  padding: 11px 15px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: rgba(35, 37, 44, .93);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  animation: toastIn .25s ease;
  text-align: center;
}
.toast-success { background: rgba(18, 155, 96, .95); }
.toast-error { background: rgba(219, 58, 55, .95); }
.toast-warning { background: rgba(214, 132, 15, .95); }
.toast-info { background: rgba(45, 90, 168, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast.hide { opacity: 0; transform: translateY(-8px); transition: all .3s; }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 18, 24, .55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(22px + var(--safe-b));
  transform: translateY(24px);
  transition: transform .24s;
  max-height: 86vh;
  overflow-y: auto;
}
.modal-mask.show .modal-sheet { transform: none; }
.modal-title { font-size: 16px; font-weight: 700; text-align: center; }
.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f4f7;
  border: 0;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-qr { width: 216px; height: 216px; object-fit: contain; margin: 16px auto 6px; border-radius: 12px; }
.modal-wechat { text-align: center; font-size: 13px; color: var(--ink-2); }
.modal-wechat b { color: var(--ink); }
.modal-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--ink-3); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 11, 14, .94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-count {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

/* ---------- 搜索页头 ---------- */
.search-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 2px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.search-result-head b { color: var(--red); }
.back-link { display: inline-flex; align-items: center; gap: 2px; color: var(--red); font-size: 12.5px; }

/* ---------- 桌面端适配 ---------- */
@media (min-width: 560px) {
  body { padding: 20px 0; background: #dfe3e9; }
  .app { border-radius: 22px; box-shadow: 0 24px 60px -30px rgba(16, 24, 40, .45); min-height: calc(100vh - 40px); }
  .tabbar { bottom: 20px; border-radius: 0 0 22px 22px; }
  .buybar { bottom: 20px; border-radius: 0 0 22px 22px; }
  body.has-tabbar .app { padding-bottom: calc(60px + var(--safe-b)); }
}

/* ---------- 逐页在线预览 ---------- */
.preview-head { background: #fff; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.ph-title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.ph-meta { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.ph-meta .sep { margin: 0 4px; color: #d5d9e0; }
.preview-note {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 10px 14px 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff7e8;
  color: #8a5a12;
  font-size: 11.5px;
  line-height: 1.6;
}
.preview-note .ic { flex: 0 0 auto; color: #c98a1c; }
.preview-list { padding: 12px 14px 18px; }
.preview-page {
  position: relative;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px -14px rgba(16, 24, 40, .6);
}
.preview-page img { width: 100%; display: block; }
.preview-page .pno {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(23, 24, 28, .55);
  color: #fff;
  font-size: 10px;
  backdrop-filter: blur(4px);
}
.preview-back { display: block; margin: 14px auto 6px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.gallery-all {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 24, 28, .62);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .7);
}
.paid-hint {
  margin: 2px 0 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.paid-help {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
}
.paid-help a { color: var(--red); }
.mock-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff3d6;
  color: #8a5a12;
  font-size: 9px;
  font-weight: 700;
}
.online-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
}