/* ============================================================
   金研策享阁 · H5 全局样式
   暖白纸感 / 沉稳蓝主色 / 香槟金仅用于会员标识

   ── 设计尺度（唯一的取值来源，新增样式必须从这里挑） ──
   字阶   22 数字 / 17 页面标题 / 15 区块标题 / 14 强调 / 13 正文 / 11 辅助
   圆角   16 卡片弹层 / 12 控件按钮 / 8 小标签 / 999 胶囊（>16 一律写 999px）
   间距   4 的倍数：4 / 8 / 12 / 16 / 20 / 24 / 32
   阴影   3 级：--shadow（卡片）/ --shadow-float（浮层）/ --shadow-subtle（细分隔）
   文字色 仅 --text / --text-2 / --text-3 三档；语义色走 --danger-text 等变量
   ============================================================ */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-weak: rgba(37, 99, 235, 0.08);
  --text: #111827;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --line: #eef0f3;
  --line-2: #e5e7eb;
  --gold: #d6b25e;
  --gold-text: #8a6d1f;
  --gold-weak: rgba(214, 178, 94, 0.12);
  --gold-line: rgba(214, 178, 94, 0.42);
  --dark: #151a2e;
  --danger: #e5484d;
  --danger-text: #a4262c;
  --success-text: #0f6e56;
  --info-text: #17427f;
  --warn-bg: #fff7e6;
  --warn-text: #8a6100;
  --icon-line: #cbd0d9;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 3px 14px rgba(20, 30, 50, 0.05);
  --shadow-up: 0 -3px 16px rgba(20, 30, 50, 0.06);
  --shadow-float: 0 10px 32px rgba(20, 30, 50, 0.12);
  --shadow-subtle: 0 1px 2px rgba(20, 30, 50, 0.04);
  --shadow-primary: 0 4px 14px rgba(37, 99, 235, 0.22);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }

/* 桌面预览时收成手机宽度，避免横向拉满很难看 */
.app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(64px + var(--safe-b));
}
.app.no-tab { padding-bottom: calc(16px + var(--safe-b)); }
@media (min-width: 560px) {
  body { background: #eceff4; }
  .app { box-shadow: var(--shadow-float); }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.topbar .back:active { background: var(--bg); }
.topbar h1 { font-size: 17px; font-weight: 600; margin: 0; flex: 1; }
.topbar .right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }

/* ---------------- 品牌区 ---------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
}
.logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
  flex: none;
  box-shadow: var(--shadow-primary);
}
.brand-txt strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.2px;
  font-weight: 650;
}
.brand-txt span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 1.2px;
}

/* ---------------- 卡片 & 区块 ---------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 12px 12px;
}
.card.flush { padding: 0; overflow: hidden; }
.card.gold { box-shadow: var(--shadow), 0 0 0 1px var(--gold-line) inset; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 16px 10px;
}
.section-title h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.2px;
}
.section-title .more { font-size: 13px; color: var(--text-3); }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-blue { color: var(--primary); background: var(--primary-weak); border-color: rgba(37, 99, 235, 0.18); }
.tag-gray { color: var(--text-2); background: #f3f5f9; border-color: var(--line-2); }
.tag-gold { color: var(--gold-text); background: var(--gold-weak); border-color: var(--gold-line); }
.tag-free { color: #0f6e56; background: #e1f5ee; border-color: #9fe1cb; }
.tag-danger { color: var(--danger); background: rgba(229, 72, 77, 0.08); border-color: rgba(229, 72, 77, 0.2); }
/* 会员 / 源码 标签分色 */
.tag-member { color: #8a6100; background: #faeeda; border-color: #f3d9a4; }
.tag-src { color: #534ab7; background: #eeedfe; border-color: #cecbf6; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.06s;
}
.btn:active { background: var(--primary-dark); transform: scale(0.995); }
.btn[disabled] { background: #dfe3ea; color: #9aa1af; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid rgba(37, 99, 235, 0.35); }
.btn-ghost:active { background: var(--primary-weak); }
.btn-gold { background: #fff; color: var(--gold-text); border: 1px solid var(--gold-line); }
.btn-gold:active { background: var(--gold-weak); }
.btn-sm { height: 32px; font-size: 13px; border-radius: 10px; width: auto; padding: 0 14px; }
.btn-link { background: none; border: none; color: var(--primary); font-size: 13px; padding: 0; cursor: pointer; }

/* ---------------- 顶部公告条 ---------------- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 12px 12px;
  background: var(--primary-weak);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--primary-dark);
  cursor: pointer;
}
.notice-bar .ico { flex: none; font-size: 13px; }
.notice-bar .txt {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-bar .arrow { color: rgba(29, 78, 216, 0.5); }

/* ---------------- 入口双卡（实色块：全站唯一高饱和区域） ---------------- */
.gates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 12px; }
.gate {
  position: relative;
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  min-height: 112px;
  box-shadow: var(--shadow);
}
.gate:active { transform: scale(0.99); }
.gate .g-title { font-size: 17px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; letter-spacing: .2px; }
.gate .g-sub { font-size: 11px; color: rgba(255, 255, 255, 0.8); margin-top: 6px; }
.gate .g-count {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #fff;
}
.gate .g-count small { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, 0.72); margin-left: 4px; }
.gate.free { background: var(--primary); }
.gate.member { background: var(--dark); }
.gate.member .g-count { color: var(--gold); }
.gate.member .g-count small { color: rgba(214, 178, 94, 0.7); }
.gate.member .g-title .tag-gold { background: var(--gold); color: #3b2a08; border-color: var(--gold); }
.gate .g-mark {
  position: absolute;
  right: -16px;
  bottom: -20px;
  font-size: 60px;
  font-weight: 800;
  opacity: 0.09;
  letter-spacing: -2px;
  color: #fff;
}
/* 入口卡右下角圆形箭头 */
.gate::after {
  content: '›';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.gate.member::after { color: var(--gold); background: rgba(214, 178, 94, 0.18); }

/* ---------------- EA 列表卡 ---------------- */
.ea-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
}
.ea-item:last-child { border-bottom: none; }
.ea-item:active { background: #fafbfd; }
.ea-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f3f5f9 center/cover no-repeat;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--icon-line);
  font-size: 18px;
  overflow: hidden;
}
.ea-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ea-body { flex: 1; min-width: 0; }
.ea-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.ea-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-3);
}
.ea-price { flex: none; }
/* 列表里的上传时间：靠右、不抢主信息 */
.ea-time { margin-left: auto; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.g-time { font-size: 11px; color: var(--text-3); margin-top: 2px; text-align: center; letter-spacing: -.2px; }
.detail-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ---------------- 搜索 & 筛选 ---------------- */
.search-wrap { padding: 12px 12px 8px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.search input::placeholder { color: var(--text-3); }
.search .ico { color: var(--text-3); font-size: 15px; }

.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 1px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 30px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-primary);
}

/* ---------------- 详情页 ---------------- */
.detail-head { padding: 18px 16px; background: #fff; margin: 0 16px 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-name { font-size: 22px; font-weight: 600; margin: 0 0 10px; line-height: 1.3; letter-spacing: -0.3px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.field-label { font-size: 11px; color: var(--text-3); margin: 0 0 8px; letter-spacing: 0.4px; }
.short-name { font-size: 15px; margin: 0; color: var(--text); }
.shots { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px; }
.shots::-webkit-scrollbar { display: none; }
.shots img {
  width: 168px;
  height: 105px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
  background: #f7f9fc;
  cursor: zoom-in;
}
.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  padding: 0 4px;
}

/* 底部操作条 */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  box-shadow: var(--shadow-up);
  padding: 10px 12px calc(10px + var(--safe-b));
  max-width: 480px;
  margin: 0 auto;
}
.action-bar .quota-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
  padding: 0 2px;
}
.action-bar .quota-line b { color: var(--primary); font-weight: 600; }

/* ---------------- 底部 Tab ---------------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  max-width: 480px;
  margin: 0 auto;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  font-size: 11px;
  color: var(--text-3);
}
.tabbar .tab-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 14px;
  border-radius: var(--radius-xs);
  transition: background .15s;
}
.tabbar a.on { color: var(--primary); font-weight: 500; }
.tabbar a.on .tab-inner { background: var(--primary-weak); }
.tabbar svg { width: 21px; height: 21px; }

/* ---------------- 表单 ---------------- */
.form { padding: 0 12px; }
.field {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
}
.field label { flex: none; width: 52px; font-size: 14px; color: var(--text-2); }
.field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.field input::placeholder { color: var(--icon-line); }
.field .code-btn {
  flex: none;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 0 0 0 8px;
  border-left: 1px solid var(--line-2);
  cursor: pointer;
}
.field .code-btn[disabled] { color: var(--text-3); }
.form-tip { font-size: 13px; color: var(--text-3); padding: 2px 4px 14px; line-height: 1.7; }

/* ---------------- 个人中心 ---------------- */
.me-head {
  background: #fff;
  margin: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.me-mail { font-size: 17px; font-weight: 600; word-break: break-all; }
.me-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.member-box {
  margin: 10px 12px 12px;
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.member-box.gold {
  background: linear-gradient(180deg, #fffdf6 0%, #fff 60%);
  box-shadow: var(--shadow), 0 0 0 1px var(--gold-line) inset;
}
.member-box .m-top { display: flex; align-items: center; justify-content: space-between; }
.member-box .m-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.member-box .m-exp { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.member-box .m-exp b { color: var(--gold-text); font-weight: 600; }

.rows { background: #fff; margin: 0 12px 12px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  background: #fff;
}
.row:last-child { border-bottom: none; }
.row:active { background: #fafbfd; }
.row .r-ico { width: 20px; text-align: center; color: var(--text-3); }
.row .r-label { flex: 1; }
.row .r-val { font-size: 13px; color: var(--text-3); }
.row .r-arrow { color: var(--icon-line); font-size: 14px; }

/* ---------------- 弹层 ---------------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.18s ease;
}
.mask.center { align-items: center; }
@media (min-width: 560px) { .mask { align-items: center; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(16px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

.sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 20px 18px calc(18px + var(--safe-b));
  animation: up 0.22s ease;
  max-height: 88vh;
  overflow: auto;
}
@media (min-width: 560px) { .sheet { border-radius: 14px; max-width: 400px; margin: 0 16px; } }
.sheet h3 { font-size: 17px; margin: 0 0 14px; font-weight: 600; }
.sheet .close-x { float: right; color: var(--text-3); font-size: 18px; cursor: pointer; line-height: 1; }
.sheet-btns { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 18px; }
.sheet-btns.one { grid-template-columns: 1fr; }

.checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.checkbox .box {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--icon-line);
  border-radius: 8px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: #fff;
  transition: all 0.15s;
}
.checkbox.on .box { background: var(--primary); border-color: var(--primary); }
.checkbox .box::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0;
}
.checkbox.on .box::after { opacity: 1; }
.checkbox .cb-text { font-size: 13px; color: var(--text-2); line-height: 1.75; }
.checkbox .cb-text a { color: var(--primary); }

/* 全屏声明（首次访问） */
.declare-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 24, 40, 0.55);
  display: grid;
  place-items: center;
  padding: 24px;
}
.declare {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  animation: up 0.24s ease;
}
.declare h2 { font-size: 17px; margin: 0 0 14px; text-align: center; }
.declare ul { margin: 0 0 16px; padding-left: 18px; }
.declare li { font-size: 13px; color: var(--text-2); line-height: 1.85; margin-bottom: 4px; }
.declare .tip { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 10px; }

/* ---------------- toast ---------------- */
.toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 42%;
  z-index: 300;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.toast {
  max-width: 78%;
  background: rgba(26, 29, 38, 0.9);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 10px;
  animation: fade 0.16s ease;
  text-align: center;
}

/* ---------------- 空态 / 骨架 ---------------- */
.empty { padding: 56px 24px; text-align: center; }
.empty .e-ico { font-size: 34px; opacity: 0.35; }
.empty .e-txt { font-size: 13px; color: var(--text-3); margin-top: 10px; line-height: 1.7; }

.sk-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sk {
  background: linear-gradient(90deg, #f1f3f7 25%, #e9ecf2 37%, #f1f3f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-thumb { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.sk-line { height: 12px; margin-bottom: 8px; }

/* ---------------- 微信提示条 ---------------- */
.wx-tip {
  margin: 10px 12px 0;
  padding: 10px 12px;
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
}

/* ---------------- 公告列表 ---------------- */
.ann-item { padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ann-item:last-child { border-bottom: none; }
.ann-item .a-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ann-item .a-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.ann-item .a-body {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 8px;
  line-height: 1.8;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 协议正文 ---------------- */
.doc { padding: 4px 18px 24px; }
.doc h3 { font-size: 15px; margin: 22px 0 8px; }
.doc p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin: 0 0 8px; }
.doc .doc-title { font-size: 17px; font-weight: 650; margin: 12px 0 8px; }
.doc .doc-sub { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

.legal-note {
  margin: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.8;
  box-shadow: var(--shadow);
}

/* ---------------- 视图切换 / 方格模式 ---------------- */
.search-wrap { display: flex; align-items: center; gap: 8px; }
.search-wrap .search { flex: 1; min-width: 0; }
.s-ico { flex: none; width: 16px; height: 16px; color: var(--text-3); display: inline-flex; }
.s-ico svg { width: 100%; height: 100%; }
.view-btn {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
}
.view-btn:active { background: var(--primary-weak); color: var(--primary); }
.view-btn .ico-svg { width: 18px; height: 18px; color: inherit; }

.grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
}
.g-card {
  display: block;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.06s;
}
.g-card:active { transform: scale(0.985); }
.g-cover-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.g-cover {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f3f7;
}
.g-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 8px 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; min-height: 18px; padding: 0 2px; }
.g-tags .tag { height: 17px; padding: 0 4px; font-size: 11px; border-radius: 8px; }
.sk-g { background: #fff; border-radius: var(--radius); padding: 8px; }

/* 角标：NEW / 热门 */
.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge.sm { height: 15px; padding: 0 5px; font-size: 10px; margin-left: 6px; vertical-align: 1px; }
.badge-new { background: var(--primary); color: #fff; }
.badge-hot { background: var(--gold); color: #3b2a08; }
.g-cover-wrap .badge { position: absolute; top: 8px; left: 8px; }
.g-cover-wrap .badge ~ .badge { left: 62px; }

.tag-src { color: var(--success-text); background: #EAF7F1; border-color: #CDE8DC; }
.ea-size { margin-left: auto; color: var(--text-3); font-size: 11px; }
.list-foot { text-align: center; padding: 16px; font-size: 13px; color: var(--text-3); }

.ico-svg { display: inline-flex; width: var(--ico, 18px); height: var(--ico, 18px); flex: none; color: inherit; }
.ico-svg svg { width: 100%; height: 100%; }
.empty .e-ico .ico-svg { width: 34px; height: 34px; }
.row .r-ico .ico-svg { width: 18px; height: 18px; }

/* ---------------- 详情页极简版 ---------------- */
.detail-size { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.member-note { padding: 14px 16px; border-color: var(--gold-line); }
.member-note .mn-title { font-size: 13px; font-weight: 600; color: var(--gold-text); margin-bottom: 8px; }
.member-note .mn-line { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.member-note .mn-dot { color: var(--text-3); margin: 0 4px; }

.benefit { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; margin-top: 12px; }
.bn-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bn-row:last-child { border-bottom: none; }
.bn-k { flex: none; width: 34px; color: var(--text-3); font-size: 13px; }
.bn-v { flex: 1; color: var(--text-2); line-height: 1.65; }
.qq-box { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 12px; }
.qq-label { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.qq-num { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; }

/* 会员权益列表（个人中心） */
.benefit-list { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bl-row { display: flex; gap: 8px; font-size: 13px; line-height: 1.9; }
.bl-k { flex: none; width: 32px; color: var(--text-3); font-size: 11px; }
.bl-v { flex: 1; color: var(--text-2); }

/* ================= 会员套餐页 ================= */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 0 12px; }
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 8px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .08s;
}
.plan-card:active { transform: scale(.985); }
.plan-card.hot { border-color: var(--gold-line); }
.plan-card.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-weak); }
.plan-badge {
  position: absolute; top: -1px; right: -1px; background: var(--gold); color: #fff;
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 0 10px 0 8px;
}
.plan-name { font-size: 13px; color: var(--text-2); }
.plan-price { font-size: 22px; font-weight: 600; margin-top: 8px; letter-spacing: -.5px; line-height: 1.15; }
.plan-price i { font-style: normal; font-size: 13px; margin-right: 1px; }
.plan-price span { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.plan-tier { font-size: 11px; color: var(--gold-text); margin-top: 4px; }
.plan-day { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.me-line { margin: 12px 12px 0; font-size: 13px; color: var(--text-2); }
.sec-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.long-text { font-size: 13px; line-height: 1.95; color: var(--text-2); }
.risk-fixed { margin: 16px 14px 0; font-size: 11px; line-height: 1.8; color: var(--text-3); }

.guide-card { border-color: var(--gold-line); }
.gd-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.gd-body { font-size: 13px; line-height: 1.9; color: var(--text-2); }
.gd-contacts { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.gd-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.gd-k { flex: none; width: 34px; font-size: 13px; color: var(--text-3); }
.gd-v { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-copy {
  flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff;
  border-radius: 8px; font-size: 13px; color: var(--primary);
}

/* ================= 推广中心 ================= */
.promo-id.gold { border-color: var(--gold-line); }
.pid-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pid-tier { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pid-badge { flex: none; font-size: 11px; padding: 4px 8px; border-radius: 8px; }
.pid-badge.gold { color: var(--gold-text); background: var(--gold-weak); border: 1px solid var(--gold-line); }
.pid-badge.gray { color: var(--text-2); background: #f2f4f8; border: 1px solid var(--line-2); }
.pid-email { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pid-exp { flex: none; font-size: 11px; color: var(--text-3); }
.pid-tip { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.pid-nums { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.pid-nums b { color: var(--text); font-size: 13px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding: 0 12px; }
.stat { background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat.main { border-color: rgba(37, 99, 235, .22); background: linear-gradient(180deg, #f6f9ff, #fff); }
.stat-v { font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.stat.main .stat-v { color: var(--primary); }
.stat-l { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.stat-s { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.link-box { display: flex; gap: 8px; align-items: center; }
.link-input {
  flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 0 12px; font-size: 13px; color: var(--text-2); background: #fafbfd;
}
.link-tip { font-size: 11px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }
.input {
  height: 42px; width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px;
  font-size: 14px; color: var(--text); background: #fff; outline: none; box-sizing: border-box;
  font-family: inherit;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
textarea.input { height: auto; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa1af 50%), linear-gradient(135deg, #9aa1af 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.fold-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-bottom: 0; }
.fold-arrow { color: var(--text-3); font-size: 15px; transition: transform .2s; }
.fold-head.open .fold-arrow { transform: rotate(90deg); }
.fold-body { margin-top: 10px; }

.cm-item, .wd-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-item:last-child, .wd-item:last-child { border-bottom: none; }
.cm-top, .wd-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cm-mail { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-amt { flex: none; font-size: 15px; font-weight: 600; color: var(--primary); }
.cm-amt.void { color: var(--text-3); text-decoration: line-through; }
.cm-meta, .wd-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.cm-status { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.s-frozen, .s-pending { color: #8a6100; background: #fff7e6; }
.s-available, .s-paid { color: var(--success-text); background: #eaf7f1; }
.s-invalid, .s-rejected { color: var(--danger-text); background: #fdecec; }
.cm-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.cm-invalid { font-size: 11px; color: var(--danger-text); margin-top: 4px; line-height: 1.6; }
.empty-mini { font-size: 13px; color: var(--text-3); padding: 16px 0; text-align: center; }

.wd-balance { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.wd-balance b { color: var(--primary); font-size: 15px; }
.ch-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ch-opt {
  flex: 1; border: 1px solid var(--line-2); border-radius: 10px; height: 40px; display: flex;
  align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-2);
  cursor: pointer;
}
.ch-opt input { accent-color: var(--primary); }
.ch-opt.on { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); }
.card .field { display: block; background: none; box-shadow: none; padding: 0; margin: 0 0 12px; border-radius: 0; }
.card .field .fl { display: block; width: auto; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.amt-row { display: flex; gap: 8px; }
.amt-all { flex: none; width: 64px; height: 42px; padding: 0; font-size: 13px; }
.wd-hint { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 10px; }
.wd-no { font-size: 13px; color: var(--text-2); font-family: ui-monospace, Menlo, monospace; }
.wd-amt { font-weight: 600; font-size: 14px; }
.wd-time { margin-left: auto; }

.row .r-extra { font-size: 13px; color: var(--text-3); }

/* ---------------- 学习中心 ---------------- */
.st-search-box {
  display: flex; align-items: center; gap: 8px;
  height: 40px; margin: 0 16px 14px; padding: 0 12px;
  background: var(--card); border: 0.5px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-subtle);
}
.st-search-box svg { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.st-search-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 13px; color: var(--text-1); }
.st-search-box input::placeholder { color: var(--text-3); }

.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.st-cat {
  position: relative; background: var(--card); border: 0.5px solid var(--line);
  border-radius: var(--radius); padding: 14px; min-height: 100px;
  box-shadow: var(--shadow-subtle); cursor: pointer; display: flex; flex-direction: column; gap: 3px;
}
.st-cat:active { transform: scale(0.99); }
.st-cat .sc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 5px; }
.st-cat .sc-name { font-size: 15px; font-weight: 600; }
.st-cat .sc-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.st-cat .sc-count { position: absolute; top: 13px; right: 13px; font-size: 11px; color: var(--text-3); }
.sc-ico.i1 { color: var(--primary); background: #eaf1ff; }
.sc-ico.i2 { color: #0f9d76; background: #e7f6f0; }
.sc-ico.i3 { color: #7c4dff; background: #f1ecff; }
.sc-ico.i4 { color: #e0413f; background: #fdecec; }
.st-foot { padding: 14px 16px 6px; font-size: 11px; color: var(--text-3); text-align: center; }

.st-cat-head { padding: 0 16px 4px; }
.st-cat-head .ch-name { font-size: 17px; font-weight: 700; }
.st-cat-head .ch-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.st-group { padding: 0 16px; }
.st-group-title {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  margin: 14px 0 8px; display: flex; align-items: center; gap: 6px;
}
.st-group-title::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--primary); }

.st-item {
  background: var(--card); border: 0.5px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden; box-shadow: var(--shadow-subtle);
}
.st-q { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.st-q .q-code { flex: none; font-size: 11px; color: var(--primary); background: #eaf1ff; border-radius: 6px; padding: 2px 6px; font-family: ui-monospace, Menlo, monospace; }
.st-q .q-txt { flex: 1; min-width: 0; }
.st-q .st-cat-tag { flex: none; font-size: 10px; color: var(--text-3); background: #f2f4f8; border-radius: 6px; padding: 2px 6px; }
.st-q .q-arrow { flex: none; color: var(--text-3); transition: transform 0.2s; font-size: 13px; }
.st-item.open .q-arrow { transform: rotate(90deg); }
.st-a {
  display: none; padding: 10px 14px 13px; margin: 0;
  border-top: 0.5px dashed var(--line-2);
  font-size: 12.8px; color: var(--text-2); line-height: 1.9; white-space: pre-wrap;
}
.st-item.open .st-a { display: block; }


/* 注册页邀请提示 */
.invite-note {
  display: flex; align-items: center; gap: 8px; margin: 4px 16px 10px; padding: 10px 12px;
  background: var(--primary-weak); border-radius: 10px; font-size: 13px; color: var(--text-2);
}

/* 专属链接行：按钮不要撑满 */
.link-box .btn { width: auto; flex: none; }

/* ---------------- 资料编辑（v3） ---------------- */
.me-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.me-edit {
  flex: none; font-size: 13px; color: var(--primary); text-decoration: none;
  padding: 6px 0 6px 10px;
  white-space: nowrap;
}
.me-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.me-name-row .me-mail { min-width: 0; }

.seg-row { display: flex; gap: 8px; }
.seg-opt {
  flex: 1; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: var(--text-2);
  background: #fff; cursor: pointer; transition: all .15s;
}
.seg-opt.on { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); font-weight: 500; }

.privacy-tip { font-size: 11px; color: var(--text-3); line-height: 1.7; margin-top: 12px; }
.guide-tip { font-size: 13px; color: var(--text-2); line-height: 1.75; background: #f7f9fd; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.guide-tip b { color: var(--text); }

.ro-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ro-row:last-child { border-bottom: none; padding-bottom: 2px; }
.ro-k { flex: none; color: var(--text-3); font-size: 13px; }
.ro-v { color: var(--text-2); text-align: right; word-break: break-all; }
.ro-v.mono-v { font-family: ui-monospace, Menlo, monospace; color: var(--text); letter-spacing: .5px; }

/* 推广中心：可提现卡上的提现入口 */
.stat.main { position: relative; }
.stat-wd {
  position: absolute; right: 10px; top: 10px; font-size: 11px; color: var(--primary);
  background: #fff; border: 1px solid rgba(37, 99, 235, .28); border-radius: 8px;
  padding: 4px 8px; cursor: pointer; line-height: 1.2;
}
.stat-tap { cursor: pointer; }
.stat-tap:active { transform: scale(.985); }

/* 提现弹层 */
.wd-tabs { display: flex; gap: 8px; background: #f2f4f8; border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.wd-tab { flex: 1; text-align: center; font-size: 13px; padding: 8px 0; border-radius: 8px; color: var(--text-2); cursor: pointer; }
.wd-tab.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-subtle); }
.wd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wd-head .sec-title { margin-bottom: 0; }
.wd-rule-link { font-size: 13px; color: var(--primary); cursor: pointer; flex: none; }
.wd-rule { display: none; margin-bottom: 12px; }
.wd-rule.on { display: block; }
.wd-rule .long-text { font-size: 13px; background: #f7f9fd; border-radius: 10px; padding: 10px 12px; }
.sheet .wd-balance { margin-bottom: 12px; }
.gd-owner {
  font-size: 13px; color: var(--gold-text); background: var(--gold-weak);
  border: 1px solid var(--gold-line); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.6;
}
.gd-owner b { font-weight: 600; }
/* 提现弹层内的表单行（弹层不在 .card 内，需单独补齐） */
.wd-form .field { display: block; background: none; box-shadow: none; padding: 0; margin: 0 0 12px; border-radius: 0; }
.wd-form .field .fl { display: block; width: auto; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.wd-form .ch-row { margin-bottom: 12px; }

/* ---------------- 头像（v4） ---------------- */
.av {
  border-radius: 50%; object-fit: cover; flex: none; display: inline-flex;
  align-items: center; justify-content: center; overflow: hidden; background: #eef2f8; line-height: 1;
}
.av-txt { color: #fff; font-weight: 600; letter-spacing: .5px; }
.av-glyph svg { display: block; }

.av-edit { display: flex; align-items: center; gap: 14px; }
.av-actions { display: flex; flex-direction: column; gap: 8px; }
.av-actions .av-tip { font-size: 11px; color: var(--text-3); }
.av-presets { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.av-presets .av { cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); transition: box-shadow .15s; }
.av-presets .av.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary); }

/* 上级名片 */
.inv-row { display: flex; align-items: center; gap: 10px; }
.inv-name { font-size: 13px; color: var(--text-2); }
.inv-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inv-card-name { font-size: 15px; font-weight: 600; }
.inv-card-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* 下级名单 */
.sub-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sub-tab {
  flex: 1; text-align: center; font-size: 13px; padding: 8px 0; border-radius: 10px;
  background: #f2f4f8; color: var(--text-2); cursor: pointer;
}
.sub-tab.on { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.sub-list { max-height: 52vh; overflow-y: auto; }
.sub-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sub-item:last-child { border-bottom: none; }
.sub-main { flex: 1; min-width: 0; }
.sub-name { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sub-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.sub-right { flex: none; text-align: right; font-size: 11px; color: var(--text-3); }
.sub-right b { display: block; font-size: 13px; color: var(--primary); margin-top: 2px; }
.sub-empty { text-align: center; font-size: 13px; color: var(--text-3); padding: 30px 0; }

/* 收款码上传 */
.qr-box {
  border: 1px dashed var(--line-2); border-radius: 10px; background: #fafbfd;
  padding: 14px; text-align: center; cursor: pointer;
}
.qr-box:active { background: #f4f7fc; }
.qr-box img { max-width: 150px; max-height: 150px; border-radius: 8px; display: block; margin: 0 auto 8px; }
.qr-t { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.qr-box.has img { box-shadow: var(--shadow-float); }
.me-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.me-id .me-mail { font-size: 17px; }

/* 弹层里的渠道按钮是 <label>，会被 .field label 的固定宽度压扁，这里提权覆盖 */
.field .ch-row .ch-opt { width: auto; flex: 1 1 0; min-width: 0; white-space: nowrap; }
.field .ch-row .ch-opt span { white-space: nowrap; }
/* 单选按钮会被 .field input{flex:1} 拉宽，导致圆点与文字被撑开 */
.field .ch-row .ch-opt input { flex: none; width: auto; min-width: 0; margin: 0; }

/* ---------------- 续费窗口（v5） ---------------- */
.renew-notice { border-radius: 10px; padding: 12px 14px; margin-top: 12px; line-height: 1.6; }
.renew-notice .rn-t { font-size: 14px; font-weight: 600; }
.renew-notice .rn-t b { font-size: 17px; }
.renew-notice .rn-s { font-size: 13px; margin-top: 4px; opacity: .82; }
.renew-notice.wait { background: #fff7e8; border: 1px solid var(--gold-line); color: var(--warn-text); }
.renew-notice.ok { background: var(--primary-weak); border: 1px solid rgba(37, 99, 235, .22); color: var(--info-text); }

.plan-card { position: relative; }
.plan-card.locked { opacity: .62; }
.plan-card.locked::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; cursor: not-allowed;
}
.plan-lock-tip { margin-top: 8px; font-size: 11px; color: var(--text-3); }
.lock-tip { font-size: 13px; color: var(--text-2); line-height: 1.85; }
.lock-tip b { color: var(--primary); }

/* 当前套餐 / 低于当前档位 / 顺延结果预览 */
.plan-card.cur { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan-card.low { opacity: .55; }
.plan-badge.cur-b { background: var(--gold-text); }
.up-box { margin-top: 10px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.up-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.9; color: var(--text-2); }
.up-row b { color: var(--text); font-weight: 600; }
.up-row b.gold { color: var(--gold-text); }
.m-renew {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--gold-weak); border: 1px solid var(--gold-line);
  font-size: 13px; color: var(--gold-text); cursor: pointer;
}
.m-renew b { font-size: 14px; }
.m-renew-go { flex: none; font-weight: 600; }
.cm-src { font-size: 11px; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 1px 4px; }

/* ---------------- 版本号（页脚） ---------------- */
.ver-line {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.3px;
  min-height: 15px;
}

/* ================= P1 · 首页质感增强 ================= */
.hero { padding: 4px 16px 12px; }
.hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--text);
}
.hero p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }

.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 16px 14px;
  padding: 0 12px;
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  font-size: 13px;
  color: var(--text-3);
}
.home-search .s-ico { flex: none; display: inline-flex; width: 16px; height: 16px; color: var(--text-3); }
.home-search .s-ico svg { width: 100%; height: 100%; }
.home-search .hs-go { margin-left: auto; flex: none; font-size: 11px; color: var(--primary); }

/* 通知铃淡色圆底衬 */
.brand a#notice-entry { border-radius: 50% !important; background: #edeff3 !important; box-shadow: none !important; color: #6b7280 !important; }

/* ================= P2 · 首页轮播 ================= */
.banner { margin: 0 16px 16px; }
.banner-view {
  position: relative;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.25, .8, .25, 1);
  will-change: transform;
}
.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.banner-slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.banner-dots i {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  transition: width .2s, background .2s;
}
.banner-dots i.on { width: 14px; background: #fff; }

/* ================= P3 · 详情页竖排图廊 ================= */
.detail-gallery { display: flex; flex-direction: column; gap: 12px; margin: 0 16px 16px; }
.detail-gallery .dg-item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-gallery .dg-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f1f3f7;
}

/* ===== 会员权益对比（套餐页融合区块） ===== */
.cmp-card { margin-top: 12px; overflow: hidden; }
.cmp-head { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.cmp-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.cmp-head p { margin: 4px 0 0; font-size: 12px; color: var(--text-3); }
.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp-table th, .cmp-table td { font-size: 12px; line-height: 1.6; padding: 9px 8px; text-align: left; vertical-align: top; word-break: break-word; }
.cmp-table thead th { font-size: 11.5px; font-weight: 500; color: var(--text-2); background: #f5f7fa; }
.cmp-table thead th.cmp-vip { background: var(--dark); color: var(--gold); text-align: center; font-weight: 600; }
.cmp-table tbody td { border-top: 1px solid var(--line); color: var(--text-2); }
.cmp-table tbody td.cmp-k { color: var(--text); font-weight: 500; width: 24%; }
.cmp-table tbody td.cmp-vip { background: rgba(214, 178, 94, 0.07); color: #4a3c17; }
.cmp-table col.cmp-col-k { width: 24%; }
.cmp-table col.cmp-col-free { width: 36%; }
.cmp-table col.cmp-col-vip { width: 40%; }
.cmp-notes { padding: 12px 14px 14px; background: #fafbfd; border-top: 1px solid var(--line); }
.cmp-notes h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.cmp-notes ol { margin: 0; padding-left: 18px; }
.cmp-notes li { font-size: 12px; line-height: 1.85; color: var(--text-2); margin-bottom: 4px; }
.cmp-notes li:last-child { margin-bottom: 0; }

/* ===== 编辑资料-头像内联行 ===== */
.av-inline { display: flex; align-items: center; gap: 12px; }
.av-inline > #av-preview { flex: none; }
.av-inline .av-tip { font-size: 11px; color: var(--text-3); }

/* ===== 详情展示图点击放大提示 ===== */
.detail-gallery .dg-zoom { position: relative; cursor: zoom-in; }
.dg-zoom-hint {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px;
  font-size: 11px; color: #fff; background: rgba(21, 26, 46, .6);
  border-radius: 20px; pointer-events: none;
}
/* ===== 图片灯箱 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(8, 10, 18, .985);
  display: flex; align-items: center; justify-content: center;
  animation: lbIn .16s ease-out;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; color: #fff; z-index: 2;
}
.lb-count { font-size: 14px; color: rgba(255,255,255,.85); }
.lb-close {
  width: 36px; height: 36px; border: none; background: rgba(255,255,255,.12);
  color: #fff; font-size: 26px; line-height: 1; border-radius: 50%; cursor: pointer;
}
.lb-stage {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 56px 12px 48px;
}
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 28px;
  line-height: 1; cursor: pointer;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.lb-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.lb-dot.on { background: var(--gold); }

/* ===== 详情页文件明细（只读展示，不可点击） ===== */
.att-list { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fafbfd; overflow: hidden; }
.att-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.att-count { font-size: 11px; font-weight: 400; color: var(--text-3); }
.att-items { padding: 4px 12px; }
.att-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px dashed var(--line); cursor: default; }
.att-item:last-child { border-bottom: none; }
.att-ico { flex: none; min-width: 38px; height: 22px; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 600; line-height: 22px; text-align: center; }
.att-prog { background: #e8f0fe; color: #1e3a8a; }
.att-zip { background: #faeeda; color: #854f0b; }
.att-img { background: #e1f5ee; color: #085041; }
.att-doc { background: #f1efe8; color: #666; }
.att-name { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { flex: none; font-size: 11px; color: var(--text-3); }
.att-tip { padding: 7px 12px; font-size: 11px; color: var(--text-3); background: #f5f7fa; border-top: 1px solid var(--line); }

/* ===== 灯箱：双指缩放 / 拖动 ===== */
.lb-stage { touch-action: none; }               /* 禁用浏览器默认双指缩放，交给自定义手势 */
.lb-stage img { transform-origin: center center; will-change: transform; touch-action: none; }
.lb-stage img.zoomed { cursor: grab; }
.lb-hint {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 20px; white-space: nowrap;
  font-size: 12px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1);
  z-index: 3; pointer-events: none; transition: opacity .4s ease;
}
.lb-hint.hide { opacity: 0; }

/* ===== 站长精选：首页入口横卡 ===== */
.picks-entry {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 12px 14px;
  min-height: 44px; border-radius: var(--radius); box-sizing: border-box;
  background: var(--dark); color: #f4e7c3; text-decoration: none; box-shadow: var(--shadow);
}
.picks-entry:active { transform: scale(0.995); }
.pe-badge {
  flex: none; font-size: 10px; letter-spacing: 1px; color: #3b2a08; background: var(--gold);
  padding: 3px 6px; border-radius: 5px; font-weight: 600;
}
.pe-main { flex: none; font-size: 15px; font-weight: 600; color: #f4e7c3; }
.pe-sub { flex: 1; min-width: 0; font-size: 12px; color: #b9b9c4; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-arrow { flex: none; font-size: 18px; color: var(--gold); }

/* ===== 站长精选：会员名单页 ===== */
.fp-hero {
  margin: 0 12px 12px; padding: 18px 16px 16px; border-radius: var(--radius);
  background: var(--dark); color: #f4e7c3;
}
.fp-kicker { font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.fp-title { font-size: 22px; font-weight: 600; margin-top: 5px; }
.fp-sub { font-size: 12px; color: #b9b9c4; margin-top: 4px; }
.fp-stats { display: flex; gap: 10px; margin-top: 16px; }
.fp-stats > div { flex: 1; background: #20263f; border-radius: var(--radius-sm); padding: 9px 12px; }
.fp-stats b { display: block; font-size: 17px; font-weight: 600; color: var(--gold); }
.fp-stats span { font-size: 11px; color: #b9b9c4; }
.fp-list { padding: 0 12px; }
.fp-card {
  display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 10px; border: 1px solid transparent; text-decoration: none; color: var(--text);
}
.fp-card:active { transform: scale(0.995); }
.fp-card.fp-locked { border: 1px dashed var(--gold-line); background: #fffefb; }
.fp-top { display: flex; align-items: center; justify-content: space-between; }
.fp-rank { font-size: 20px; font-weight: 600; color: var(--gold-text); line-height: 1; }
.fp-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gold-text); }
.fp-lock .ico-svg { --ico: 14px; }
.fp-cover { height: 108px; margin: 10px 0 8px; border-radius: var(--radius-sm); overflow: hidden; background: #f2f4f8; }
.fp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-mask { margin: 12px 0 10px; padding: 14px 12px; background: #f2f4f8; border-radius: var(--radius-sm); }
.fp-mask-line { height: 9px; border-radius: 5px; background: #e0e4eb; margin: 7px 0; }
.fp-name { font-size: 15px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-hint, .fp-note { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.6; }
.fp-note { color: var(--text-2); }
.fp-go { font-size: 13px; color: var(--primary); margin-top: 10px; }
.fp-go-gold { font-size: 12px; color: var(--gold-text); margin-top: 10px; }
.fp-cta-wrap { padding: 4px 12px 24px; }
.fp-cta {
  width: 100%; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--gold);
  background: var(--gold); color: #3b2a08; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fp-cta:active { transform: scale(0.995); }
.fp-legal { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 9px; line-height: 1.6; }
.fp-foot { font-size: 11px; color: var(--text-3); text-align: center; padding: 2px 12px 24px; line-height: 1.7; }

/* ================= 站长精选详情 ================= */
.pd-hero { margin: 12px 12px 0; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #f4e7c3; }
.pd-hero-cover { height: 130px; background: #20263f; }
.pd-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero-body { padding: 14px 16px 16px; }
.pd-kicker { font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.pd-title { font-size: 19px; font-weight: 600; margin-top: 6px; line-height: 1.4; }
.pd-rank { display: inline-block; font-size: 11px; color: #b9b9c4; margin-top: 6px; }
.pd-section { margin: 12px 12px 0; padding: 14px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.pd-section.gold-sec { box-shadow: var(--shadow), 0 0 0 1px var(--gold-line) inset; }
.pd-sec-title { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.pd-sec-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); }
.pd-note { font-size: 13px; color: var(--text-2); line-height: 1.85; margin-top: 10px; white-space: pre-wrap; }
.pd-capital { font-size: 22px; font-weight: 600; color: var(--gold-text); margin-top: 10px; }
.pd-empty { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.pd-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pd-file {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--gold-weak); border: 1px solid var(--gold-line); color: var(--gold-text); text-decoration: none;
}
.pd-file:active { transform: scale(0.995); }
.pd-file-ico { flex: none; font-size: 10px; font-weight: 600; background: var(--gold); color: #3b2a08; padding: 4px 5px; border-radius: 4px; }
.pd-file-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-file-size { font-size: 11px; color: var(--gold-text); opacity: .8; }
.pd-file-go { font-size: 13px; }
.pd-imgs { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.pd-imgs img { width: 100%; border-radius: var(--radius-sm); display: block; background: #f2f4f8; }
.pd-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pd-metric { background: #f7f8fb; border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; }
.pd-metric b { display: block; font-size: 15px; font-weight: 600; color: var(--gold-text); }
.pd-metric span { font-size: 11px; color: var(--text-3); }
.pd-lock { margin: 12px; padding: 18px 16px; border-radius: var(--radius); border: 1px dashed var(--gold-line); background: #fffefb; }
.pd-lock-h { font-size: 15px; font-weight: 600; color: var(--gold-text); }
.pd-lock-l { font-size: 12px; color: var(--text-2); line-height: 1.9; margin-top: 8px; }
.pd-cta-wrap { padding: 4px 12px 28px; }

/* ================= 首页公告跑马灯 ================= */
.home-marquee {
  display: flex; align-items: center; gap: 10px;
  margin: 0 12px 12px; padding: 9px 12px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.hm-ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-weak); color: var(--gold-text);
  display: flex; align-items: center; justify-content: center;
}
.hm-ico svg { width: 14px; height: 14px; }
.hm-view { flex: 1; min-width: 0; overflow: hidden; }
.hm-track { display: flex; width: max-content; animation: hm-scroll linear infinite; }
.hm-track span { font-size: 12px; color: var(--text-2); white-space: nowrap; padding-right: 48px; }
@keyframes hm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* PC 顶部导航：默认隐藏，仅宽屏（见 pc.css @media ≥1024px）显示，手机端零影响 */
.pc-topbar { display: none; }
