:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --blue: #0071e3;
  --blue-dark: #0058b0;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --radius: 18px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.14);
  --nav-h: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(0, 113, 227, 0.18); }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1d1d1f, #4a4a4f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 13.5px; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: scale(0.975); }
.btn.ghost { background: rgba(0, 0, 0, 0.05); color: var(--text); }
.btn.ghost:hover { background: rgba(0, 0, 0, 0.09); }
.btn.sm { height: 30px; padding: 0 14px; font-size: 12.5px; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #d93025; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 76px 24px 54px;
  text-align: center;
  background: radial-gradient(1200px 420px at 50% -120px, rgba(0, 113, 227, 0.10), transparent 70%),
              linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #0071e3, #34aadc 55%, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0 auto 30px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px;
  height: 48px;
  background: #fff;
  border-radius: 980px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.searchbar:focus-within { border-color: rgba(0, 113, 227, 0.5); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.10); }
.searchbar input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; }
.searchbar svg { flex: none; opacity: 0.4; }

.stats {
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 12.5px; }

/* ---------------- 公告 ---------------- */
.notice {
  max-width: 1100px;
  margin: 0 auto 8px;
  padding: 12px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(0, 113, 227, 0.07);
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 14px;
  color: #08457e;
  font-size: 13px;
}
.notice.hidden { display: none; }

/* ---------------- 应用区 ---------------- */
.section { max-width: 1100px; margin: 0 auto; padding: 34px 24px 70px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.section-head .sub { color: var(--muted); font-size: 13px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  height: 32px;
  padding: 0 15px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s;
}
.chip:hover { border-color: #c9c9ce; color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.chip .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.chip .pin {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
  opacity: 0.55;
  margin-right: 6px;
  vertical-align: 2px;
}

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

.grid-more {
  padding: 22px 0 6px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.app-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10); }

.app-icon {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.14);
}
/* 图标是图片时铺满整个圆角方块，别让原图按 512px 撑破卡片 */
.app-icon-img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.app-body { flex: 1; min-width: 0; }
.app-title { display: flex; align-items: center; gap: 8px; }
.app-title h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-title h3.is-bold { font-weight: 800; -webkit-text-stroke: 0.35px currentColor; }
.app-meta { color: var(--muted); font-size: 12px; margin: 3px 0 7px; }
.app-summary {
  font-size: 13px;
  color: #4b4b50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.app-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}
.badge.blue { background: rgba(0, 113, 227, 0.10); color: var(--blue); }
.get-btn {
  margin-left: auto;
  height: 28px;
  padding: 0 16px;
  border-radius: 980px;
  border: none;
  background: rgba(0, 113, 227, 0.10);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s;
}
.get-btn:hover { background: var(--blue); color: #fff; }

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal.wide { max-width: 620px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 16px;
  flex: 0 0 auto;
}
.modal-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.modal-head .close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-head .close:hover { background: rgba(0, 0, 0, 0.1); }
.modal-body { padding: 0 24px 24px; flex: 1 1 auto; overflow-y: auto; }
/* 弹窗内没包在 .field 里的 textarea 也要撑满宽度（如批量新增） */
.modal-body textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  line-height: 1.65;
  resize: vertical;
}
.modal-body textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: #fafafa;
  border-radius: 0 0 22px 22px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfd;
  outline: none;
  font-size: 14.5px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(0, 113, 227, 0.6);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.10);
}
.field .hint { font-size: 11.5px; color: #98989d; margin-top: 6px; }

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.input-row .btn { flex: none; height: 44px; padding: 0 16px; font-size: 13px; }

.steps { margin: 0 0 4px; padding-left: 20px; color: #3a3a3f; font-size: 13px; line-height: 1.9; }
.steps li { margin-bottom: 2px; }
.steps li::marker { color: var(--blue); font-weight: 600; }

.udid-wait {
  display: none;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 2px 0;
}
.udid-wait.show { display: flex; }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(0, 113, 227, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.msg { font-size: 13px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255, 69, 58, 0.09); color: #b3261e; }
.msg.ok { background: rgba(48, 209, 88, 0.12); color: #1d7a3a; }

.detail-desc { white-space: pre-wrap; color: #3a3a3f; font-size: 14px; line-height: 1.7; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

.install-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f5f5f7;
  font-size: 13px;
}
.install-box code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  word-break: break-all;
  color: #4b4b50;
  border: 1px solid var(--line);
}

/* ---------------- Toast ---------------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.toast.err { background: rgba(190, 40, 30, 0.95); }
.toast.ok { background: rgba(24, 128, 56, 0.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- 广告位（容器） ---------------- */
.ad-wrap { max-width: 1100px; margin: 18px auto 0; padding: 0 24px; }
.ad-wrap:empty { display: none; }
.ad-wrap[hidden] { display: none; }
.ad-inline-cell { display: flex; min-width: 0; }
.ad-inline-cell > .ad { flex: 1; }

/* ---------------- 会员中心 ---------------- */
.account-wrap { max-width: 940px; margin: 0 auto; padding: 40px 24px 80px; }
.auth-card {
  max-width: 420px;
  margin: 20px auto 0;
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}
.tabs { display: flex; gap: 6px; padding: 4px; background: #f5f5f7; border-radius: 12px; margin-bottom: 22px; }
.tabs button {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.16s;
}
.tabs button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0071e3, #34aadc);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  flex: none;
}
.profile .who b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.profile .who span { color: var(--muted); font-size: 12.5px; }
.profile .nums { margin-left: auto; display: flex; gap: 26px; text-align: right; }
.profile .nums div b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.profile .nums div span { font-size: 11.5px; color: var(--muted); }

.panel-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 760px) { .panel-2 { grid-template-columns: 1fr; } .profile .nums { margin-left: 0; } }

.card-box {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-box h3 { margin: 0 0 4px; font-size: 15.5px; letter-spacing: -0.01em; }
.card-box .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.16s;
  background: #fbfbfd;
}
.plan:hover { border-color: #c9c9ce; }
.plan.active { border-color: var(--blue); background: rgba(0, 113, 227, 0.06); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08); }
.plan b { display: block; font-size: 13.5px; }
.plan span { font-size: 11.5px; color: var(--muted); }
.plan i { font-style: normal; display: block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--blue); }

.table-mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-mini th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table-mini td { padding: 10px; border-bottom: 1px solid #f2f2f4; }
.table-mini tr:last-child td { border-bottom: none; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  text-align: center;
  color: #98989d;
  font-size: 12px;
  background: #fff;
}
.footer a { color: #6e6e73; }
.footer .sep { margin: 0 8px; opacity: 0.4; }

@media (max-width: 720px) {
  .nav { gap: 14px; padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 52px 18px 40px; }
  .stats { gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 26px 16px 60px; }
  .modal { max-height: 92vh; }
}

/* ---------------- 邀请 ---------------- */
.invite-box .invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}
.invite-code {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.07);
  border: 1px solid rgba(0, 113, 227, 0.18);
  color: #08457e;
}
.invite-link {
  font-size: 11.5px;
  color: #6e6e73;
  word-break: break-all;
  background: #f5f5f7;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.invite-stats {
  font-size: 12.5px;
  color: #6e6e73;
  margin-bottom: 10px;
}
.foot-members {
  margin-top: 12px;
  font-size: 12.5px;
  color: #6e6e73;
}
.foot-members b {
  color: #1d1d1f;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 详情页富文本 ---------------- */
.detail-desc.rich { white-space: normal; }
.detail-desc.rich > :first-child { margin-top: 0; }
.detail-desc.rich p { margin: 0 0 10px; }
.detail-desc.rich h1, .detail-desc.rich h2 { font-size: 17px; margin: 16px 0 8px; font-weight: 600; color: var(--text); }
.detail-desc.rich h3, .detail-desc.rich h4 { font-size: 14.5px; margin: 14px 0 6px; font-weight: 600; color: var(--text); }
.detail-desc.rich ul, .detail-desc.rich ol { margin: 0 0 10px; padding-left: 22px; }
.detail-desc.rich li { margin: 3px 0; }
.detail-desc.rich blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 113, 227, 0.05);
  border-radius: 0 10px 10px 0;
  color: #3a3a3f;
}
.detail-desc.rich pre {
  margin: 10px 0;
  padding: 10px 12px;
  background: #f5f5f7;
  border-radius: 10px;
  overflow: auto;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
}
.detail-desc.rich code { background: #f5f5f7; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.detail-desc.rich img { max-width: 100%; border-radius: 12px; margin: 8px 0; display: block; }
.detail-desc.rich a { color: var(--blue); text-decoration: underline; }
.detail-desc.rich hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.detail-desc.rich table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.detail-desc.rich th, .detail-desc.rich td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }

/* ================= 支付 ================= */
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pay-chip {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; text-align: left; transition: all .16s;
}
.pay-chip b { font-size: 13px; font-weight: 600; color: var(--text); }
.pay-chip i { font-size: 11px; font-style: normal; color: var(--muted); }
.pay-chip:hover { border-color: #c9c9ce; }
.pay-chip.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.pay-chip.active b { color: var(--blue); }
.pay-empty { font-size: 12.5px; color: var(--muted); padding: 10px 0; }

.pay-modal { max-width: 400px; }
.pay-amount { font-size: 32px; font-weight: 600; letter-spacing: -.03em; text-align: center; margin-top: 4px; }
.pay-desc { text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.pay-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-qr { width: 208px; height: 208px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.pay-hint { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }
.pay-qr-text { width: 100%; text-align: center; }
.pay-qr-text code { display: block; margin: 6px 0; padding: 10px; background: #f5f5f7; border-radius: 10px; font-size: 11.5px; word-break: break-all; }
.pay-qr-none { padding: 30px 12px; text-align: center; color: var(--muted); font-size: 12.5px; background: #f5f5f7; border-radius: 14px; }
.pay-qr-none span { display: block; margin-top: 6px; color: #98989d; font-size: 11.5px; }
.pay-gateway { width: 100%; text-align: center; padding: 18px 0; }
.pay-open {
  display: inline-block; padding: 11px 22px; border-radius: 980px; background: var(--blue);
  color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 500;
}
.pay-open:hover { background: var(--blue-dark); }
.pay-tip { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.pay-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.pay-meta b { color: var(--text); font-weight: 500; }
.pay-state { padding: 2px 8px; border-radius: 980px; font-size: 11px; }
.pay-state.pending { background: rgba(255,159,10,.12); color: #a35c00; }
.pay-state.review { background: rgba(0,113,227,.1); color: var(--blue); }
.pay-state.paid { background: rgba(48,209,88,.14); color: #1c7c37; }
.pay-state.closed { background: #f0f0f2; color: var(--muted); }
.pay-ok { text-align: center; padding: 26px 10px; color: #1c7c37; font-size: 16px; font-weight: 600; }
.pay-code { margin-top: 10px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.pay-code b { font-family: ui-monospace, Menlo, monospace; color: var(--text); letter-spacing: 1px; }
.pay-recharge-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ================= 客服 ================= */
.cs-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 26px rgba(0,0,0,.22); transition: transform .16s;
}
.cs-fab:hover { transform: translateY(-2px); }
.cs-mask { position: fixed; inset: 0; z-index: 91; background: rgba(0,0,0,.32); backdrop-filter: blur(2px); }
.cs-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 92;
  width: 348px; max-height: min(620px, calc(100vh - 36px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: csIn .18s ease;
}
@keyframes csIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cs-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.cs-head-text { display: flex; flex-direction: column; gap: 2px; }
.cs-head-text b { font-size: 15px; }
.cs-head-text span { font-size: 11.5px; color: var(--muted); }
.cs-close { border: none; background: #f5f5f7; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 12px; }
.cs-body { padding: 14px 18px 18px; overflow-y: auto; }
.cs-notice { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.cs-time { color: #a35c00; }
.cs-channels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.cs-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cs-ch-main { display: flex; flex-direction: column; min-width: 0; }
.cs-ch-main b { font-size: 13px; }
.cs-ch-main span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-qr-wrap { text-align: center; padding: 8px 0; }
.cs-qr-wrap img { width: 168px; height: 168px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); }
.cs-qr-wrap code { display: block; padding: 8px; background: #f5f5f7; border-radius: 8px; font-size: 11.5px; word-break: break-all; }
.cs-sec-title { font-size: 12px; color: var(--muted); margin: 16px 0 8px; font-weight: 500; }
.cs-ticket input, .cs-ticket textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  font-size: 13px; font-family: inherit; margin-bottom: 8px; background: #fff; color: var(--text);
}
.cs-ticket textarea { resize: vertical; }
.cs-ticket .btn { width: 100%; }
.cs-empty { font-size: 12px; color: var(--muted); padding: 10px 0; text-align: center; }
.cs-mine { display: flex; flex-direction: column; gap: 6px; }
.cs-tk {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 9px 11px;
}
.cs-tk:hover { border-color: #c9c9ce; }
.cs-tk-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cs-tk-top b { font-size: 12.5px; font-weight: 500; }
.cs-tk-sub { font-size: 11px; color: var(--muted); }
.cs-badge { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 980px; background: #f0f0f2; color: var(--muted); flex: none; }
.cs-badge.open { background: rgba(255,159,10,.14); color: #a35c00; }
.cs-badge.replied { background: rgba(48,209,88,.14); color: #1c7c37; }
.cs-thread { display: flex; flex-direction: column; gap: 10px; }
.cs-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cs-thread-head b { font-size: 13px; }
.cs-thread-head span { font-size: 11px; color: var(--muted); margin-left: 6px; }
.cs-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.cs-msg { padding: 8px 11px; border-radius: 12px; background: #f5f5f7; max-width: 92%; }
.cs-msg.admin { background: rgba(0,113,227,.08); align-self: flex-start; }
.cs-msg.user { align-self: flex-end; }
.cs-msg-head { font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.cs-msg-text { font-size: 12.5px; line-height: 1.65; word-break: break-word; }
.cs-thread textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  font-size: 13px; font-family: inherit; resize: vertical;
}
.cs-thread .btn { width: 100%; }

@media (max-width: 560px) {
  .cs-panel { right: 0; bottom: 0; width: 100%; max-height: 86vh; border-radius: 20px 20px 0 0; }
  .cs-fab { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* hidden 属性优先于组件自身的 display */
.cs-panel[hidden], .cs-mask[hidden], .cs-fab[hidden],
.cs-mine[hidden], .cs-thread[hidden], .cs-qr-wrap[hidden] { display: none !important; }

/* ---------------- 公告 / 帖子 ---------------- */

.post-main { max-width: 820px; }
.post-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}
.post-back:hover { color: var(--text); }

.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #d9d9de;
}
.post-card.pinned { border-color: rgba(232, 137, 12, 0.45); background: #fffdf8; }

.post-cover {
  flex: 0 0 92px;
  height: 92px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f2;
}

.post-body { min-width: 0; flex: 1; }

.post-title {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.post-title.is-bold { font-weight: 800; }

.post-pin {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(232, 137, 12, 0.14);
  color: #a15c00;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}

.post-summary {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #a1a1a6;
  font-size: 12px;
}
.post-foot .dot { opacity: 0.6; }
.post-tags { display: inline-flex; gap: 6px; margin-left: 4px; }
.post-tag {
  padding: 1px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  color: #6e6e73;
  font-size: 11px;
}

.post-empty {
  padding: 46px 20px;
  text-align: center;
  color: #a1a1a6;
  font-size: 14px;
}

.post-more { display: flex; justify-content: center; margin-top: 22px; }

.post-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 36px 40px;
}
.post-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.post-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.post-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: #a1a1a6;
  font-size: 12.5px;
}

.post-content { font-size: 15px; line-height: 1.85; color: #1d1d1f; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  margin: 1.5em 0 0.6em;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.post-content h1 { font-size: 23px; }
.post-content h2 { font-size: 20px; }
.post-content h3 { font-size: 17px; }
.post-content p { margin: 0 0 1em; }
.post-content ul, .post-content ol { margin: 0 0 1em; padding-left: 1.5em; }
.post-content li { margin: 0.35em 0; }
.post-content a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(0, 122, 255, 0.3); }
.post-content a:hover { border-bottom-color: var(--blue); }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 0.6em 0; }
.post-content blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.post-content pre {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
}
.post-content code {
  background: #f5f5f7;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.92em;
}
.post-content pre code { background: none; padding: 0; }
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-content th { background: #fafafa; }

@media (max-width: 640px) {
  .post-article { padding: 24px 20px 28px; border-radius: 14px; }
  .post-head h1 { font-size: 21px; }
  .post-card { padding: 14px 16px; }
  .post-cover { flex-basis: 68px; height: 68px; }
}

/* ---------------- 弹窗误触提示（assets/modal.js） ---------------- */

@keyframes wb-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  80% { transform: translateX(-1px); }
}
.modal.shake { animation: wb-shake 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

.wb-hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 76vw;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  animation: wb-hint-in 0.2s ease;
}
@keyframes wb-hint-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 详情页：下载方式（附件 / 直链 / 网盘） ---------- */
.dl-ways { margin-top: 18px; display: grid; gap: 12px; }
.dl-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dl-group-t {
  padding: 7px 12px; background: rgba(0, 0, 0, 0.028);
  font-size: 12px; color: var(--muted); letter-spacing: 0.02em;
}
.dl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.dl-item:first-of-type { border-top: 0; }
.dl-tag {
  flex: none; font-size: 11px; line-height: 1.6; padding: 1px 7px; border-radius: 6px;
  background: rgba(0, 113, 227, 0.1); color: var(--blue); font-weight: 500;
}
.dl-tag.file { background: rgba(48, 209, 88, 0.14); color: #1d7a3a; }
.dl-tag.pan { background: rgba(255, 159, 10, 0.16); color: #9a5b00; }
.dl-name {
  font-size: 13.5px; color: var(--text); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-rec { font-style: normal; font-size: 10.5px; color: var(--blue); margin-left: 6px; }
.dl-sub { font-size: 12px; color: var(--muted); }
.dl-sub b { color: var(--text); letter-spacing: 0.04em; }
.dl-item .spacer { flex: 1 1 auto; }
.dl-empty { font-size: 13px; color: var(--muted); }

/* ================================================================
   广告样式（横幅 / 卡片 / 原生 / 细条 / 悬浮）
   由 /assets/ads.js 渲染，后台可任选样式与位置
   ================================================================ */

.ad { text-decoration: none; color: inherit; }

/* 角标 */
.ad-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  flex: none;
  width: fit-content;
}
.ad.is-light .ad-badge { background: rgba(0, 0, 0, 0.06); color: #6e6e73; }

/* 按钮 */
.ad-cta {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  border-radius: 980px;
  background: #fff;
  color: #0b2a4a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s;
}
.ad-cta i { font-style: normal; opacity: 0.6; }
.ad.is-light .ad-cta { background: rgba(0, 0, 0, 0.07); color: #1d1d1f; }
.ad:hover .ad-cta { transform: translateX(2px); }
.ad-go { margin-left: auto; flex: none; font-size: 17px; opacity: 0.65; transition: transform 0.18s; }
.ad:hover .ad-go { transform: translateX(3px); opacity: 0.95; }

/* 图片容器 */
.ad-media { display: block; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.ad-media img { width: 100%; height: 100%; display: block; }

/* ---- 横幅 ---- */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--ad-bg, linear-gradient(120deg, #0b2a4a, #1a7fd1));
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 34px rgba(11, 42, 74, 0.18);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s;
}
.ad-banner::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -6%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.ad-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(11, 42, 74, 0.26); }
.ad-banner .ad-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.ad-banner b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ad-banner em { font-style: normal; font-size: 13px; opacity: 0.86; }
.ad-banner .ad-media { flex: none; width: 120px; height: 66px; border-radius: 12px; }
.ad-banner + .ad-banner { margin-top: 10px; }

/* ---- 细条 ---- */
.ad-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--ad-bg, #1d1d1f);
  color: #fff;
  font-size: 13px;
  overflow: hidden;
}
.ad-strip b { font-weight: 600; flex: none; }
.ad-strip em {
  font-style: normal;
  opacity: 0.82;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 卡片（竖版） ---- */
.ad-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s;
}
.ad-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }
.ad-card .ad-media.top {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ad-bg, linear-gradient(135deg, #eef4ff, #dfe9ff));
}
.ad-card .ad-copy { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; min-width: 0; }
.ad-card b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ad-card em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ad-card .ad-desc { font-size: 12.5px; color: #8a8a8f; line-height: 1.6; }
.ad-card .ad-cta { margin-left: 0; margin-top: 4px; background: var(--blue); color: #fff; align-self: flex-start; }
.ad-card:hover .ad-cta { background: var(--blue-dark); }

/* ---- 原生（混进应用列表） ---- */
.ad-native { position: relative; }
.ad-native-icon { background: var(--ad-bg, linear-gradient(145deg, #0071e3, #34aadc)); }
.ad-native-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.ad-native .app-title h3 { font-weight: 600; }
.ad-native .app-meta { display: flex; gap: 10px; }
.ad-native::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 113, 227, 0.35);
  pointer-events: none;
}

/* ---- 悬浮 ---- */
.ad-float-wrap {
  position: fixed;
  right: 20px;
  bottom: 88px; /* 让开右下角的客服按钮 */
  z-index: 80;
  width: 320px;
  max-width: calc(100vw - 32px);
  animation: adFloatIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes adFloatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ad-float-wrap .ad { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); }
.ad-x {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(29, 29, 31, 0.82);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.16s;
}
.ad-x:hover { background: #1d1d1f; }

/* ================================================================
   2026 视觉升级：首页 / 登录页
   ================================================================ */

/* ---- 导航 ---- */
.nav { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.16s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 24px 60px;
  background:
    radial-gradient(900px 380px at 18% -10%, rgba(0, 113, 227, 0.14), transparent 68%),
    radial-gradient(760px 340px at 84% 0%, rgba(191, 90, 242, 0.12), transparent 66%),
    radial-gradient(700px 300px at 50% 108%, rgba(52, 170, 220, 0.12), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 62%, var(--bg) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(620px 300px at 50% 10%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(620px 300px at 50% 10%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 13px;
  margin-bottom: 20px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-size: 12.5px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.16);
}
.hero h1 { font-weight: 700; }
.hero h1 em {
  background: linear-gradient(96deg, #0071e3 0%, #34aadc 46%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.searchbar {
  height: 52px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.searchbar .kbd {
  flex: none;
  font-size: 11px;
  color: #98989d;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: #fafafc;
}

/* 统计条：玻璃卡片 */
.stats { gap: 14px; margin-top: 42px; }
.stat {
  min-width: 132px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08); }
.stat b { font-size: 25px; font-weight: 650; letter-spacing: -0.02em; }

/* ---- 区块标题 ---- */
.section-head { align-items: baseline; }
.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: '';
  width: 4px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(180deg, #0071e3, #34aadc);
}

/* ---- 应用卡片 ---- */
.app-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.app-card:hover {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 113, 227, 0.08);
}
.app-icon { transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.app-card:hover .app-icon { transform: scale(1.04); }

/* 骨架屏 */
.skeleton {
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: none;
  background: #fff;
}
.sk-bar {
  border-radius: 7px;
  background: linear-gradient(90deg, #eeeef1 25%, #f6f6f8 37%, #eeeef1 63%);
  background-size: 400% 100%;
  animation: skShine 1.4s ease infinite;
}
@keyframes skShine { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.sk-icon { width: 62px; height: 62px; border-radius: 15px; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }

/* ---- 登录页 ---- */
.auth-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  max-width: 900px;
  margin: 18px auto 0;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.auth-aside {
  position: relative;
  padding: 40px 38px;
  color: #fff;
  background:
    radial-gradient(520px 260px at 10% 0%, rgba(255, 255, 255, 0.20), transparent 62%),
    radial-gradient(420px 300px at 92% 100%, rgba(191, 90, 242, 0.34), transparent 64%),
    linear-gradient(150deg, #0a2a4d 0%, #0d5c9e 52%, #1a7fd1 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(420px 300px at 20% 0%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(420px 300px at 20% 0%, #000, transparent 76%);
  pointer-events: none;
}
.auth-aside > * { position: relative; }
.auth-aside .a-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.auth-aside .a-brand .brand-mark {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}
.auth-aside h2 {
  margin: 34px 0 10px;
  font-size: 26px;
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.auth-aside p {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.auth-feats { display: flex; flex-direction: column; gap: 13px; margin-top: auto; }
.auth-feat { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.auth-feat .fi {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
}
.auth-feat b { display: block; font-weight: 600; font-size: 13px; }
.auth-feat span { font-size: 12px; color: rgba(255, 255, 255, 0.68); }
.auth-main { padding: 34px 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-card {
  max-width: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.auth-side-ad { margin-top: 20px; }
.auth-side-ad .ad-card .ad-media.top { aspect-ratio: 21 / 9; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .auth-aside { padding: 26px 24px; }
  .auth-aside h2 { margin: 16px 0 8px; font-size: 21px; }
  .auth-aside p { margin-bottom: 16px; }
  .auth-feats { display: none; }
  .auth-main { padding: 24px 22px; }
  .hero { padding: 56px 20px 42px; }
  .stat { min-width: 104px; padding: 12px 16px; }
  .ad-banner { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .ad-banner .ad-media { width: 84px; height: 48px; }
  .ad-banner .ad-cta { margin-left: 0; }
  .ad-float-wrap { right: 12px; bottom: 80px; width: calc(100vw - 24px); }
}
