/* ============================================================
   网盘分享平台 · 样式表
   基础件（后台/表单/下载页共用）+ 首页「supaste 式」版式。
   首页语言：纯白极简、居中大字、软阴影悬浮卡片、能力胶囊、
   人群分块；不用大色块，高级感靠留白与卡片质感。
   不使用 emoji，所有装饰图形用 CSS / 内联 SVG 画。
   ============================================================ */

:root {
  --red: #c8102e;
  --red-bright: #e01636;
  --red-dark: #8d0a20;
  --red-deep: #6d0819;
  --red-soft: #fdf3f4;
  --gold: #b8912f;
  --gold-bright: #e3bb55;
  --gold-deep: #8a6812;
  --gold-soft: #fdf9ee;
  --gold-line: #eee0c2;

  --ink: #171a20;
  --ink-2: #565f6c;
  --ink-3: #98a1ad;

  --line: #e9e9ec;
  --line-soft: #f2f2f4;
  --bg: #f7f7f8;
  --card: #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(23, 26, 32, .05);
  --shadow-sm: 0 1px 2px rgba(23, 26, 32, .05), 0 6px 16px -8px rgba(23, 26, 32, .12);
  --shadow: 0 1px 2px rgba(23, 26, 32, .04), 0 18px 40px -22px rgba(23, 26, 32, .22);
  --shadow-up: 0 2px 6px rgba(23, 26, 32, .05), 0 34px 70px -34px rgba(23, 26, 32, .28);

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;

  --page: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(200, 16, 46, .14); }

a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: none; color: var(--red-dark); }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶栏：白底发丝边（v2，微信 PC 式） ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: none;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 30px;
  width: 100%; max-width: 1120px; height: 60px;
  margin: 0 auto; padding: 0 20px;
  background: transparent; border: none; box-shadow: none;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .3px;
}
.brand:hover { color: var(--ink); }
.brand-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: transparent;
  box-shadow: none;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--red);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: none;
}

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 13.5px; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--red); border-radius: 2px;
  transition: right .22s cubic-bezier(.4, 0, .2, 1);
}
.nav a:not(.btn):hover::after { right: 0; }
.who {
  color: var(--ink-2); font-size: 12.5px;
  background: var(--line-soft); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}
.topbar .btn {
  background: var(--red); color: #fff; border-radius: 999px;
  box-shadow: none;
}
.topbar .btn:hover { background: var(--red-dark); color: #fff; transform: none; }
.topbar .btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line);
}
.topbar .btn-ghost:hover { background: var(--line-soft); color: var(--ink); }

/* ---------------- 主体 ---------------- */
.main { padding: 92px 0 0; min-height: calc(100vh - 160px); overflow-x: clip; }
.main > .page-head, .main > .notice, .main > .alert, .main > .card, .main > .crumb, .main > .tabs {
  margin: 28px 20px 0;
}
.main > .card + .card, .main > .card + .crumb { margin-top: 18px; }
.main > .alert { margin-bottom: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.45;
  white-space: nowrap;
  letter-spacing: .3px;
  box-shadow: 0 1px 2px rgba(13, 15, 18, .08), 0 10px 22px -12px rgba(200, 16, 46, .95);
  transition: transform .14s ease, box-shadow .2s ease, background .18s ease, color .15s ease, border-color .15s ease;
}
.btn:hover {
  color: #fff; transform: translateY(-1px);
  background: var(--red-bright);
  box-shadow: 0 2px 5px rgba(13, 15, 18, .1), 0 16px 28px -14px rgba(200, 16, 46, 1);
}
.btn:active { transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .16); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; font-weight: 500; }

.btn-ghost {
  background: var(--card); border-color: var(--line); color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: #d3d6dc; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }

.btn-gold {
  background: linear-gradient(180deg, #fdfaf0, #faf3dd);
  border-color: var(--gold-line); color: var(--gold-deep);
  box-shadow: var(--shadow-xs);
}
.btn-gold:hover { background: linear-gradient(180deg, #fdf9ec, #f6eccd); border-color: var(--gold); color: var(--gold-deep); }

.btn-danger {
  background: var(--card); border-color: var(--line); color: var(--ink-3);
  box-shadow: var(--shadow-xs);
}
.btn-danger:hover { border-color: #eec0c9; color: var(--red); background: var(--red-soft); }

/* 实体金色按钮（下载页主 CTA）—— 金属质感 */
.btn-solid-gold {
  background: linear-gradient(180deg, #e0bd55 0%, #c99d26 48%, #b28a15 100%);
  border-color: #a8801a;
  color: #fff;
  text-shadow: 0 1px 1px rgba(120, 90, 10, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(13, 15, 18, .1), 0 16px 30px -14px rgba(168, 128, 26, .95);
}
.btn-solid-gold:hover {
  color: #fff;
  background: linear-gradient(180deg, #ebc85f 0%, #d3a72c 48%, #bb9118 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .44), 0 3px 8px rgba(13, 15, 18, .12), 0 20px 36px -16px rgba(168, 128, 26, 1);
}

.btn-lg { padding: 13px 32px; font-size: 15px; border-radius: 12px; }
.btn-xl { padding: 15px 36px; font-size: 15.5px; border-radius: 12px; letter-spacing: .4px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 7px; letter-spacing: .3px; }
.card-sub { color: var(--ink-3); font-size: 13px; margin: 0 0 18px; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 17px; }
.field > label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); letter-spacing: .2px; }
.field > label em { color: var(--red); font-style: normal; margin-left: 3px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: #d6d9df; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .1);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2398a1ad' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.hint { color: var(--ink-3); font-size: 12px; margin: 7px 0 0; line-height: 1.6; }
.switch { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.switch input { width: auto; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.form-actions .hint { margin: 0; }

/* ---------------- 提示条 ---------------- */
.alert {
  padding: 12px 16px; border-radius: 11px; margin-bottom: 18px; font-size: 13px;
  border: 1px solid transparent; border-left-width: 3px; line-height: 1.6;
}
.alert-error { background: var(--red-soft); border-color: #f3ccd3; border-left-color: var(--red); color: #8d1024; }
.alert-info { background: var(--gold-soft); border-color: var(--gold-line); border-left-color: var(--gold); color: #7a6210; }
.notice {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 11px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-left: 3px solid var(--gold);
  color: #7a6210; font-size: 13px;
}
.notice.down { background: var(--red-soft); border-color: #f3ccd3; border-left-color: var(--red); color: #8d1024; }

/* ---------------- 表格 / 列表 ---------------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; padding: 13px 15px; color: var(--ink-3);
  font-weight: 600; font-size: 12.5px; letter-spacing: .4px;
  background: var(--line-soft); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 14px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover td { background: #fbfbfc; }
.table .num { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table a { font-weight: 500; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* ---------------- 驱动卡片 ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.drive-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform .16s ease, box-shadow .2s ease, border-color .16s ease;
}
.drive-card:hover { border-color: #d3d6dc; box-shadow: var(--shadow-sm); transform: translateY(-3px); color: var(--ink); }
.drive-card.off { opacity: .5; pointer-events: none; }
.drive-card h4 { margin: 0 0 6px; font-size: 15px; letter-spacing: .3px; }
.drive-card p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.65; }

/* ---------------- 面包屑 ---------------- */
.crumb { color: var(--ink-3); font-size: 13px; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--red); }
.crumb .sep { margin: 0 7px; color: #ced5dd; }

/* ---------------- 徽章 ---------------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; line-height: 1.75; vertical-align: middle; font-weight: 500;
}
.badge-gold { background: var(--gold-soft); color: var(--gold-deep); border: 1px solid var(--gold-line); }
.badge-red { background: var(--red-soft); color: var(--red); border: 1px solid #f3ccd3; }
.badge-grey { background: var(--line-soft); color: var(--ink-3); border: 1px solid var(--line); }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 56px 16px; color: var(--ink-3); }
.empty p { margin: 0 0 14px; }
.empty::before {
  content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 14px; background: var(--line-soft);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23a9b2bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ============================================================
   下载页（访客）—— 居中舞台版式
   ============================================================ */
.dl-stage { max-width: 580px; margin: 40px auto 0; }

.dl-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 48px 40px 38px;
  text-align: center; box-shadow: var(--shadow-up);
}

.dl-icon-lg {
  width: 78px; height: 78px; margin: 0 auto 24px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 32px -15px rgba(200, 16, 46, .95);
}

.dl-title {
  font-size: 22px; font-weight: 700; margin: 0 0 14px;
  word-break: break-all; line-height: 1.5; letter-spacing: 0;
}

.dl-meta-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 10px; color: var(--ink-3); font-size: 12.5px; margin-bottom: 28px;
}
.dl-meta-row b { color: var(--ink-2); font-weight: 600; }
.dl-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* 文件信息块（三格） */
.dl-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.dl-stat {
  flex: 1 1 120px; max-width: 176px; padding: 13px 15px; border-radius: 13px;
  background: var(--line-soft); border: 1px solid var(--line);
}
.dl-stat .k { display: block; color: var(--ink-3); font-size: 11.5px; margin-bottom: 3px; letter-spacing: .5px; }
.dl-stat .v { display: block; color: var(--ink); font-size: 14px; font-weight: 700; word-break: break-all; line-height: 1.5; }

.dl-card .btn-xl { width: 100%; }
.dl-foot { margin: 16px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }

.dl-actions-row { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.dl-link-btn { color: var(--ink-3); font-size: 12.5px; text-decoration: none; padding: 4px 8px; border-radius: 6px; transition: color .15s, background .15s; cursor: pointer; }
.dl-link-btn:hover { color: var(--red-dark); background: var(--red-soft); }
.dl-sep { color: var(--line); font-size: 12px; }
#dl-btn:disabled { opacity: .7; cursor: wait; }

/* 下载页提示条（.dl-notice，勿与通用 .notice 混用） */
.dl-notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px; font-size: 12.5px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius); color: var(--ink-2);
}
.dl-notice-icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--gold-line); color: var(--gold-bright);
}
.dl-notice-body { min-width: 0; }
.dl-notice-body strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 3px; letter-spacing: .3px; }
.dl-notice-body p { margin: 0; line-height: 1.65; }
.dl-notice-body a { color: var(--red-dark); font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.foot {
  border-top: 1px solid var(--line); padding: 30px 0; margin-top: 0;
  color: var(--ink-3); font-size: 12px; text-align: center;
  background: transparent; letter-spacing: .2px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.foot-brand .brand-mark { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.foot-sep { color: #d3d6dc; }

/* ---------------- 管理后台 ---------------- */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs a {
  padding: 10px 16px; color: var(--ink-2); font-size: 13px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover { color: var(--red); }
.tabs a.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 19px; box-shadow: var(--shadow-xs);
}
.stat::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold-bright));
}
.stat .k { color: var(--ink-3); font-size: 12px; }
.stat .v { font-size: 24px; font-weight: 800; margin-top: 2px; line-height: 1.3; letter-spacing: -.2px; }
.stat .v small { font-size: 12px; font-weight: 400; color: var(--ink-3); }

.mono { font-family: var(--mono); font-size: 12px; }

.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }
.inline-form .field > label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.row-actions form { margin: 0; }
.act-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.act-row > form { margin: 0; }

.pager { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.pager a { color: var(--ink-2); }

/* ---------------- 挂载方式卡片（配置网盘页） ---------------- */
.mode-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 22px 24px; margin: 15px 0; box-shadow: var(--shadow-xs);
  transition: border-color .16s ease, box-shadow .2s ease;
}
.mode-card:hover { border-color: #d8dbe1; box-shadow: var(--shadow-sm); }
.mode-card.is-off { background: var(--line-soft); opacity: .75; }
.mode-head { display: flex; align-items: center; gap: 10px; }
.mode-head h2 { font-size: 15px; margin: 0; font-weight: 700; letter-spacing: .3px; }
.mode-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 7px;
  background: linear-gradient(140deg, var(--red-bright), var(--red-deep)); color: #fff;
  font-size: 12px; font-weight: 600;
  box-shadow: 0 5px 12px -6px rgba(200, 16, 46, .9);
}
.mode-tip { color: var(--ink-3); font-size: 13px; margin: 8px 0 4px; }
.mode-body { padding-top: 8px; }
.mode-body .field { margin-bottom: 15px; }
.mode-body .field:last-child { margin-bottom: 0; }
.mode-actions { margin-top: 20px; padding-top: 17px; border-top: 1px dashed var(--line); }
.mode-actions .btn { min-width: 150px; }
.field input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .13); }

/* ---------------- 扫码登录 ---------------- */
.qr-stage { text-align: center; padding: 8px 0 2px; }
.qr-img-wrap {
  display: inline-block; padding: 12px; margin: 16px 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.qr-img-wrap img { display: block; width: 230px; height: 230px; }
.qr-state { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); min-height: 20px; }
.qr-state.ok { color: #1f7a44; }
.qr-state.err { color: var(--red); }

/* ---------------- 滚动进场（仅支持 scroll-driven 动画的浏览器生效） ---------------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 6% entry 78%;
    }
  }
}

/* ---------------- 小屏 ---------------- */
@media (max-width: 1040px) {
  .sp-feed { grid-template-columns: repeat(2, 1fr); }
  .sp-pans { grid-template-columns: repeat(2, 1fr); }
  .sp-caps { grid-template-columns: repeat(2, 1fr); }
  .sp-uses { gap: 38px 40px; }
}

@media (max-width: 860px) {
  .sp-sec { padding: 68px 18px; }
  .sp-hero { margin-top: -62px; padding: calc(62px + 64px) 18px 84px; min-height: 92vh; }
  .sky-title b, .sky-title em { font-size: clamp(30px, 8vw, 40px); letter-spacing: -1px; }
  .sp-steps { grid-template-columns: 1fr; max-width: 520px; }
  .sp-pans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .sp-caps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .sp-uses { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .sp-safe { grid-template-columns: 1fr; max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 34px; }
  .hero-stat { padding: 14px 10px; border-radius: 14px; }
  .hero-stat b { font-size: 22px; }
  .cmp-wrap { margin-top: 44px; }
}

@media (max-width: 720px) {
  .main > .page-head, .main > .notice, .main > .alert, .main > .card, .main > .crumb, .main > .tabs {
    margin-left: 14px; margin-right: 14px;
  }
  .wrap { padding: 0 14px; }
  .topbar-inner { gap: 14px; height: 54px; padding: 0 14px; }
  .brand { font-size: 14.5px; }
  .nav { gap: 13px; }
  .who { display: none; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 18.5px; }
  .card { padding: 20px; }
  .sky-facts span + span::before { margin: 0 11px; }
  .sp-feed { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .dl-card { padding: 34px 20px 28px; }
  .dl-title { font-size: 18px; }
  .dl-stage { margin-top: 24px; }
}

@media (max-width: 640px) {
  .topbar .nav { gap: 10px; }
  .topbar .nav a:not(.btn) { display: none; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .table th, .table td { padding: 12px 10px; }
  .cmp-table th, .cmp-table td { padding-left: 14px; padding-right: 14px; }
}

/* hero 通栏：解除 .main 宽度限制（仅首页，body:has 选择器） */
body:has(.hero) main.main { max-width: none; margin: 0; padding: 0; }

/* ============================================================
   v2 首页 + 分享页（2026-11-03 重写）
   设计语言：白底 + 红金强调 + 发丝边 + 大留白 + 无渐变无投影
   ============================================================ */

.hero {
  border-bottom: none;
  background:
    radial-gradient(1100px 520px at 80% -20%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(700px 320px at 8% 110%, rgba(227, 187, 85, .18), transparent 62%),
    linear-gradient(118deg, #38060f 0%, #7a0a1d 42%, #c8102e 100%);
}
.hero-grid {
  max-width: 1120px; margin: 0 auto; padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-eyebrow { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; margin: 0 0 16px; letter-spacing: 2px; }
.hero-title { font-size: 40px; font-weight: 600; line-height: 1.22; margin: 0 0 18px; letter-spacing: -1.2px; color: #fff; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.78); line-height: 1.8; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: #fff; color: var(--red-dark); box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); }
.hero-cta .btn-primary:hover { background: #f7e8ea; color: var(--red-deep); }
.hero-cta .btn-ghost { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.38); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); color: #fff; }

.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-lg { padding: 11px 32px; font-size: 15px; font-weight: 600; border-radius: 9px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-xl { width: 100%; padding: 13px 0; font-size: 15px; font-weight: 600; border-radius: 10px; }

/* hero 产品预览卡（视觉锚点） */
.hero-preview { position: relative; display: flex; justify-content: center; }
.pv-card {
  width: 320px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20, 2, 6, .55);
  transform: rotate(2.5deg);
  transition: transform .3s ease;
}
.pv-card:hover { transform: rotate(0deg); }
.pv-tilt { }
.pv-top { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.pv-dot:first-child { background: var(--red); }
.pv-body { padding: 30px 28px 28px; text-align: center; }
.pv-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 13px;
  background: #fff; color: var(--red);
  border: 1px solid #f5d5da;
  display: flex; align-items: center; justify-content: center;
}
.pv-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.pv-chips { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.pv-chips span {
  font-size: 11.5px; color: var(--ink-2);
  background: var(--line-soft); border-radius: 6px; padding: 4px 10px;
}
.pv-btn {
  background: var(--red); color: #fff; border-radius: 9px;
  padding: 11px 0; font-size: 14px; font-weight: 600;
}
.pv-float {
  position: absolute; left: 4%; bottom: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 10px 26px -14px rgba(13,15,18,.3);
  transform: rotate(-3deg);
}
.pv-float svg { color: #2e9e5b; }

.metrics {
  border-bottom: 0.5px solid var(--line);
  background: var(--line-soft);
}
.metrics-inner {
  display: flex; justify-content: center; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
}
.metric { flex: 1; text-align: center; }
.metric b { font-size: 28px; font-weight: 700; color: var(--red); display: block; line-height: 1; }
.metric span { font-size: 13px; color: var(--ink-3); margin-top: 6px; display: block; }
.metric-divider { width: 0.5px; height: 36px; background: var(--line); }

.section-inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.section-h { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.section-sub { font-size: 14px; color: var(--ink-3); margin: 0 0 28px; }

/* 大屏自适应：≥1280px 放大字号与预览卡 */
@media (min-width: 1280px) {
  .hero-grid { padding: 96px 32px 84px; gap: 72px; }
  .hero-title { font-size: 54px; letter-spacing: -1.6px; line-height: 1.15; }
  .hero-sub { font-size: 16.5px; }
  .hero-eyebrow { font-size: 14px; }
  .hero-cta .btn-lg { padding: 13px 38px; font-size: 16px; }
  .pv-card { width: 400px; }
  .pv-name { font-size: 17px; }
  .pv-btn { padding: 13px 0; font-size: 15px; }
  .pv-icon { width: 60px; height: 60px; }
  .pv-float { font-size: 13.5px; padding: 10px 18px; }
  .section-inner { padding: 72px 32px; }
  .section-h { font-size: 24px; }
  .section-sub { font-size: 15px; }
  .metric b { font-size: 34px; }
  .metric span { font-size: 14px; }
  .pan-tag { padding: 10px 20px; font-size: 15px; }
  .step { padding: 30px 26px; }
  .step h3 { font-size: 16.5px; }
  .step p { font-size: 14px; }
  .faq-item summary { font-size: 15.5px; }
  .faq-item p { font-size: 14.5px; }
  .cta-final h2 { font-size: 30px; }
}

.pans-section { border-bottom: 0.5px solid var(--line); }
.pan-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pan-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 16px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.pan-tag em { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 400; }

.steps-section { border-bottom: 0.5px solid var(--line); background: var(--line-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; }
.step-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.step p { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin: 0; }

.faq-section { border-bottom: 0.5px solid var(--line); }
.faq-section .section-inner { max-width: 808px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item summary {
  padding: 16px 0; font-size: 14.5px; font-weight: 500; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--ink-3); font-weight: 300; }
.faq-item[open] summary::after { content: "-"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 0 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 0; }

.cta-final { text-align: center; background: var(--red-soft); }
.cta-final .section-inner { padding: 64px 24px; }
.cta-final .hero-cta { justify-content: center; margin-top: 8px; }
.cta-final h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.cta-final p { font-size: 14px; color: var(--ink-2); margin: 0 0 24px; }

/* v2 分享页 */
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 32px 36px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(13, 15, 18, .04), 0 24px 48px -30px rgba(13, 15, 18, .18);
}
.dl-icon-wrap {
  width: 60px; height: 60px; margin: 0 auto 22px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.dl-cat-archive { background: var(--red-soft); color: var(--red); }
.dl-cat-video { background: #e6f1fb; color: #185fa5; }
.dl-cat-audio { background: #eaf3de; color: #3b6d11; }
.dl-cat-image { background: #f1efe8; color: #5f5e5a; }
.dl-cat-doc { background: var(--gold-soft); color: var(--gold-deep); }
.dl-cat-file { background: var(--line-soft); color: var(--ink-2); }

.dl-title { font-size: 19px; font-weight: 700; margin: 0 0 22px; word-break: break-all; line-height: 1.5; }

.dl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.dl-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--line-soft); border-radius: 7px;
  padding: 6px 13px; font-size: 13px;
}
.dl-chip-k { color: var(--ink-3); font-size: 12px; }
.dl-chip-v { color: var(--ink); font-weight: 600; }

#dl-btn:disabled { opacity: .65; cursor: wait; }
.dl-actions-row { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.dl-link-btn { color: var(--ink-3); font-size: 12.5px; text-decoration: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: color .15s, background .15s; }
.dl-link-btn:hover { color: var(--red); background: var(--red-soft); }
.dl-sep { color: var(--line); font-size: 12px; }
.dl-foot { margin: 16px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 44px; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px 44px; }
  .hero-copy { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-preview { margin-top: 4px; }
  .pv-float { left: 50%; transform: translateX(-50%) rotate(-3deg); }
  .metrics-inner { padding: 20px 16px; }
  .metric b { font-size: 22px; }
  .steps-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 40px 20px; }
  .dl-card { padding: 32px 20px 28px; }
  .dl-title { font-size: 17px; }
}
