/* ==========================================================================
   Spark 产品站 | 共享设计系统（白色主题）
   --------------------------------------------------------------------------
   版式语言沿用 LLPower：大留白节奏、大标题、顶部细线式功能卡、玻璃质感、
   滚动入场。白底深字；只有 Shizuku NEXT 带主题色（蓝 #2563eb），
   实况通知与侧键保持中性黑白。
   ========================================================================== */

/* ---------- 1. 设计 token ---------- */
:root {
  /* 基底：白 */
  --bg-0: #ffffff;
  --bg-1: #f7f8f9;
  --bg-deep: #f1f3f5;

  /* 文字：近黑灰阶 */
  --ink: #14181c;
  --ink-soft: rgba(20, 24, 28, .66);
  --ink-faint: rgba(20, 24, 28, .50);

  /* 卡片/磨砂材质（白底上的磨砂白） */
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-bg-strong: rgba(255, 255, 255, .92);
  --glass-brd: rgba(20, 24, 28, .08);
  --glass-brd-strong: rgba(20, 24, 28, .16);
  --glass-blur: 18px;

  /* 线条 */
  --line: rgba(20, 24, 28, .10);
  --line-soft: rgba(20, 24, 28, .05);

  /* 阴影（白底靠阴影建立层次） */
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .04), 0 4px 14px rgba(20, 24, 28, .05);
  --shadow-md: 0 10px 34px rgba(20, 24, 28, .09);
  --shadow-accent: 0 8px 26px var(--accent-glow);

  /* 强调色：默认中性（预览入口页） */
  --accent: #1f2937;
  --accent-strong: #111827;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 41, 55, .07);
  --accent-glow: rgba(31, 41, 55, .16);

  /* 布局 */
  --shell: min(1140px, calc(100vw - 48px));
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 间距刻度（8px 基准） */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 40px;
  --s5: 64px;  --s6: 96px;  --s7: 120px; --s8: 120px;

  /* 圆角刻度 */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
}

/* 只有 Shizuku NEXT 使用主题色（蓝，取自应用图标）；
   实况通知与侧键保持中性黑白，不引入品牌色调。 */
body.theme-shizuku {
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .08);
  --accent-glow: rgba(37, 99, 235, .20);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font: 15px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 顶部极淡的品牌色晕染（白底上只留很轻一层） */
body::before {
  content: "";
  position: fixed;
  inset: -18vh 0 auto;
  height: 82vh;
  z-index: -1;
  background:
    radial-gradient(48% 42% at 20% 16%, var(--accent-soft), transparent 72%),
    radial-gradient(40% 36% at 84% 4%, var(--line-soft), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--bg-0) 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 3. 布局 ---------- */
.shell { width: var(--shell); margin-inline: auto; }
.section { position: relative; padding: var(--s8) 0; }

.section-heading { max-width: 760px; }
.section-heading h2,
.download-inner h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-heading p {
  margin: 22px 0 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.optical-line { display: inline; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  padding: 12px 18px; background: var(--accent); color: var(--accent-ink);
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 4. 顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
/* 两个应用的图标是白底的，白页面上要加一层浅底板才立得住 */
.brand img {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-1); border: 1px solid var(--line);
}
.brand small { color: var(--ink-faint); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
/* 站长头像：圆形 */
.brand img.is-avatar { border-radius: 50%; object-fit: cover; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav a { position: relative; transition: color .2s var(--ease); }
.nav a:not(.nav-download):hover { color: var(--ink); }
.nav a:not(.nav-download)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px;
  height: 2px; background: var(--accent); transition: right .25s var(--ease);
}
.nav a:hover::after { right: 0; }

.nav-download {
  padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.nav-download:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-accent); }

.menu-button { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); }
.menu-button span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--ink); }

/* ---------- 5. 按钮 ---------- */
.button {
  min-height: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 20px; padding: 0 26px;
  font-size: 15px; font-weight: 700;
  transition: transform .22s var(--ease), background .22s var(--ease),
              box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.97); }

.button-primary {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.button-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 30px var(--accent-glow); }
.button-primary::after {
  content: ""; position: absolute; top: 0; left: -85%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.button-primary:hover::after { left: 135%; transition: left .55s var(--ease); }

.button-glass {
  background: #ffffff; border-color: var(--line); color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.button-glass:hover { border-color: var(--glass-brd-strong); box-shadow: var(--shadow-md); }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 150px; }
.hero-inner { text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .16em;
}
.hero-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  margin: 30px 0 0;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 1.02; font-weight: 700; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-lead {
  max-width: 620px; margin: 30px auto 0;
  color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8;
}

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

.hero-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 26px;
  margin: 30px 0 0; color: var(--ink-faint); font-size: 13px;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .85;
}

/* 首屏视觉：底部渐隐，让截图融入白底 */
.hero-visual {
  position: relative; z-index: 2;
  margin-top: clamp(34px, 5vh, 60px);
  min-height: 480px; display: grid; place-items: start center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
}

/* ---------- 7. 手机 / 截图占位 ---------- */
/* 高度不再固定：由屏幕区域的 800:1757 比例决定，避免 10px 内边距造成比例偏差 */
.phone {
  position: relative;
  width: 300px;
  border-radius: 42px; padding: 10px;
  background: linear-gradient(155deg, #3a4240 0%, #1a1f1d 30%, #0d100f 62%, #262d2a 100%);
  box-shadow: 0 26px 56px rgba(20, 24, 28, .22), 0 0 0 1px rgba(20, 24, 28, .06);
}
.hero-visual .phone { width: 340px; }
/* 与真机截图 800×1757 完全一致，图片不会被裁切 */
.phone-screen {
  aspect-ratio: 800 / 1757; height: auto;
  border-radius: 34px; overflow: hidden;
  background: linear-gradient(155deg, #ffffff, var(--bg-1));
  display: grid; place-items: center;
}
/* 真机截图填满屏幕区域 */
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* 截图占位块：放入真图后 .shot-frame > img 自动铺满 */
.shot-frame {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center; gap: 8px;
  border: 1px dashed rgba(20, 24, 28, .20);
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(20, 24, 28, .025) 0 12px, transparent 12px 24px);
  color: var(--ink-faint); font-size: 12px; text-align: center; padding: 16px;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* 首屏占位块靠上排布：避免提示文字落进 hero-visual 的底部渐隐区 */
.shot-frame.is-top { align-content: start; padding-top: 36px; }
.shot-frame .shot-hint { color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.shot-frame .shot-size { font-variant-numeric: tabular-nums; }

.shot-wide { width: min(100%, 860px); aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.shot-mini { aspect-ratio: 800 / 1757; border-radius: var(--r-md); width: 100%; }

.shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
/* 只有两张截图时用两列居中，避免三列布局空出一列 */
.shot-row.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; margin-inline: auto; }
.shot-row .phone { width: 100%; }

figure.shot { margin: 0; }
figure.shot figcaption { margin-top: 14px; color: var(--ink-faint); font-size: 13px; text-align: center; }

/* ---------- 8. 功能卡：只有一条顶部细线 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 34px; }

.feature-card { padding: 20px 0 0; border-top: 1px solid var(--line); transition: border-color .25s var(--ease); }
.feature-card:hover { border-top-color: var(--accent); }
.feature-card:hover .feature-icon { transform: translateY(-2px); }
.feature-card h3 { margin: 15px 0 7px; font-size: 16.5px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.feature-icon { display: block; color: var(--accent); transition: transform .25s var(--ease); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 9. 面板 ---------- */
.panel {
  border-radius: var(--r-lg); padding: 26px;
  background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 10px; font-size: 17px; }
.panel p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-visual { order: -1; }

.split-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.16; font-weight: 700; letter-spacing: -.02em; }
.split-copy p { margin: 22px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.split-copy ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split-copy li { display: flex; gap: 10px; color: var(--ink-soft); font-size: 14.5px; }
.split-copy li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* 版本/体积/日期这类元信息 */
.meta-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 13px;
}
.meta-row b { display: block; margin-top: 5px; color: var(--ink); font-size: 15px; font-weight: 700; }

/* ---------- 10. 下载 ---------- */
.download-section { position: relative; padding: var(--s8) 0; }
.download-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.download-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.button-download { width: 100%; min-height: 62px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 22px; }
.button-download .dl-icon { width: 26px; height: 26px; border-radius: 8px; object-fit: contain; flex: 0 0 auto; }
.button-download .dl-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.button-download small { color: var(--ink-faint); font-size: 12px; font-weight: 500; }
.button-download.is-primary small { color: rgba(255, 255, 255, .82); }

.hash {
  margin-top: 22px; padding: 12px 14px;
  border-radius: var(--r-sm); background: var(--bg-1); border: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 11.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

/* 社交入口（图标取自工程内本地资源） */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-row a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--r-pill);
  background: #ffffff; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px;
  transition: transform .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.social-row a:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--glass-brd-strong); box-shadow: var(--shadow-sm); }
.social-row img { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; }

/* ---------- 11. FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  min-height: 84px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 17px; font-weight: 600; transition: color .2s var(--ease);
}
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
  flex: 0 0 auto; color: var(--ink-faint); font-size: 22px; font-style: normal; font-weight: 300;
  transition: transform .46s var(--ease), color .46s var(--ease);
}
.faq-list details[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq-list .faq-body { padding: 0 0 26px; max-width: 700px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.faq-list .faq-body p { margin: 0 0 10px; }
.faq-list .faq-body p:last-child { margin-bottom: 0; }
.faq-list .faq-body code {
  padding: 1px 6px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}

/* ---------- 11b. 折叠动画（JS 注入 wrap；无 JS 时保持原生） ---------- */
.acc-wrap { overflow: hidden; height: 0; transition: height .34s var(--ease); }
.faq-list details.acc-open summary i,
.release.acc-open > summary i { transform: rotate(45deg); color: var(--accent); }

/* ---------- 11c. 版本折叠列表（更新日志页） ---------- */
.release-list { margin-top: 20px; border-top: 1px solid var(--line); }
.release { border-bottom: 1px solid var(--line); }
.release > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 15.5px; font-weight: 700;
  transition: color .2s var(--ease);
}
.release > summary::-webkit-details-marker { display: none; }
.release > summary:hover { color: var(--accent); }
.release .rel-name { font-variant-numeric: tabular-nums; }
.release .rel-right {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-faint); font-weight: 500; font-size: 13px;
}
.release .rel-right i {
  font-style: normal; font-size: 20px; font-weight: 300; line-height: 1;
  color: var(--ink-faint);
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.release .release-body {
  padding: 0 0 20px; max-width: 720px;
  color: var(--ink-soft); font-size: 14px; line-height: 1.8;
}
.release .release-body h4 { margin: 14px 0 6px; font-size: 13.5px; color: var(--ink); }
.release .release-body h3 { margin: 16px 0 8px; font-size: 15px; color: var(--ink); }
.release .release-body ul { margin: 0 0 10px; padding-left: 18px; }
.release .release-body li { margin: 3px 0; }
.release .release-body p { margin: 6px 0; }
.release .release-body > *:first-child { margin-top: 0; }

/* ---------- 13. 反馈页 ---------- */
.fb-layout { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 1000px) { .fb-layout { grid-template-columns: 1fr; } .fb-form { position: static; } }

.fb-form { padding: 24px 22px; position: sticky; top: 92px; }
.fb-title { margin: 0 0 16px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.fb-total { font-size: 13px; font-weight: 600; color: var(--ink-faint); background: var(--bg-1); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.fb-field { margin-bottom: 16px; position: relative; }
.fb-field > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.fb-field > label i { font-style: normal; color: #dc2626; }
.fb-field input[type="text"], .fb-field input[type="search"], .fb-field select, .fb-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fb-field textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.fb-field input:focus, .fb-field textarea:focus, .fb-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.fb-hint { position: absolute; right: 2px; top: 0; font-size: 12px; color: var(--ink-faint); }
.fb-hint b { font-weight: 600; }

.fb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-choices label { position: relative; }
.fb-choices input { position: absolute; opacity: 0; pointer-events: none; }
.fb-choices span {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-soft); cursor: pointer; transition: all .2s var(--ease);
}
.fb-choices input:checked + span { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.fb-choices input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 1100px) {
  .fb-layout { grid-template-columns: 1fr; }
  .fb-form { position: static; }
}
@media (max-width: 560px) { .fb-row { grid-template-columns: 1fr; } }

.fb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fb-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.fb-status { font-size: 13px; color: var(--ink-faint); }
.fb-status.is-ok { color: #15803d; }
.fb-status.is-error { color: #dc2626; }
.fb-note { margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-faint); }

.fb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.fb-filters select, .fb-filters input {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: 13.5px;
}
.fb-filters input { flex: 1; min-width: 160px; }

.fb-list { display: grid; gap: 14px; }
.fb-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; background: #fff; transition: border-color .2s var(--ease); }
.fb-item:hover { border-color: var(--ink-faint); }
.fb-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fb-id { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.fb-time { margin-left: auto; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.fb-item-title { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.fb-item-body { font-size: 14px; line-height: 1.75; color: var(--ink-soft); word-break: break-word; }
.fb-item-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-faint); }
.fb-empty { text-align: center; color: var(--ink-faint); font-size: 14px; padding: 40px 0; }
.fb-more-wrap { display: flex; justify-content: center; margin-top: 20px; }

.tag-bug { background: #fef2f2; color: #b91c1c; }
.tag-idea { background: #eff6ff; color: #1d4ed8; }
.tag-question { background: #f0fdf4; color: #15803d; }
.tag-other { background: var(--bg-1); color: var(--ink-soft); }

/* ---------- 13b. 反馈附件 ---------- */
.fb-drop {
  display: grid; gap: 4px; padding: 18px 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.fb-drop:hover, .fb-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.fb-drop strong { font-size: 14px; font-weight: 700; }
.fb-drop span { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }
.fb-drop small { font-size: 12px; color: var(--ink-faint); }

.fb-filelist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.fb-file {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); font-size: 13px;
}
.fb-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-file-size { color: var(--ink-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.fb-file-remove {
  border: 0; background: none; color: #dc2626; font: inherit; font-size: 12.5px;
  cursor: pointer; padding: 2px 4px; border-radius: 6px;
}
.fb-file-remove:hover { background: #fef2f2; }
.fb-file-total { color: var(--ink-faint); font-size: 12px; padding: 2px; }

.fb-atts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fb-att {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.fb-att:hover { border-color: var(--accent); transform: translateY(-1px); }
.fb-att-thumb {
  width: 40px; aspect-ratio: 800 / 1757; height: auto;
  object-fit: cover; border-radius: 6px; display: block; background: var(--bg-1);
}
.fb-att-copy { display: grid; gap: 2px; min-width: 0; }
.fb-att-name {
  font-size: 13px; font-weight: 600; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-att-size { font-size: 12px; color: var(--ink-faint); }

/* ---------- 12. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 28px; background: var(--bg-1); }
.footer-main { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 64px; }
.footer-brand p { margin: 16px 0 0; max-width: 300px; color: var(--ink-faint); font-size: 13px; }
.footer-links { display: flex; gap: 70px; }
.footer-links h4 { margin: 0 0 16px; font-size: 13px; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; }
.footer-links a { display: block; margin-bottom: 11px; color: var(--ink-soft); font-size: 14px; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 12.5px;
}
/* ICP 备案号：指向工信部备案系统 */
.footer-icp a { color: var(--ink-faint); transition: color .2s var(--ease); }
.footer-icp a:hover { color: var(--accent); }

/* ---------- 13. 滚动入场 ---------- */
.reveal { opacity: 1; transform: translateY(0); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal.reveal-pending.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
  .button:hover, .button:active { transform: none; }
}

@media (max-width: 560px) {
  .fb-layout { gap: 18px; }
  .fb-form { padding: 20px 16px; }
  .fb-field input[type="text"], .fb-field input[type="search"], .fb-field select, .fb-field textarea,
  .fb-filters select, .fb-filters input { box-sizing: border-box; max-width: 100%; min-width: 0; }
  .fb-choices { gap: 7px; }
  .fb-choices span { padding: 7px 11px; font-size: 13px; }
  .fb-toolbar { align-items: stretch; gap: 10px; }
  .fb-toolbar .fb-title { margin-bottom: 0; }
  .fb-toolbar .button { width: 100%; }
  .fb-filters { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .fb-filters select, .fb-filters input { width: 100%; min-height: 42px; }
  .fb-item { padding: 15px 14px 14px; }
  .fb-item-head { align-items: flex-start; }
  .fb-time { width: 100%; margin-left: 0; }
  .fb-item-title { overflow-wrap: anywhere; }
  .fb-item-body { overflow-wrap: anywhere; }
  .fb-att { max-width: 100%; }
  .fb-att-name { max-width: min(56vw, 200px); }
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .shot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { flex-direction: column; gap: 40px; padding-bottom: 44px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100vw - 32px); --s8: 84px; }
  .header-inner { height: 64px; }
  .nav { display: none; }
  .menu-button { display: block; }
  /* 展开后：整行可点，每项占满宽度并带分隔线 */
  .site-header.menu-open .nav {
    display: flex; position: absolute; inset: 64px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 14px;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 44px rgba(20, 24, 28, .12);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-header.menu-open .nav a {
    display: block; width: 100%;
    padding: 15px 24px; font-size: 15.5px;
    border-top: 1px solid var(--line);
    min-height: 48px;               /* 触摸目标不少于 48px */
  }
  .site-header.menu-open .nav a:first-child { border-top: 0; }
  /* 移动端列布局下不用下划线动效 */
  .site-header.menu-open .nav a:not(.nav-download)::after { display: none; }
  /* 下载按钮：整行高亮的行动按钮 */
  .site-header.menu-open .nav a.nav-download {
    margin: 14px 20px 2px; width: auto; border-top: 0;
    border-radius: 12px; text-align: center; color: #fff;
  }
  .hero { padding-top: 120px; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; }
  .shot-row.is-two { grid-template-columns: 1fr; max-width: none; }
  .download-actions { grid-template-columns: 1fr; }
  .footer-links { gap: 40px; }
  /* 页脚三项在窄屏下逐行排布，避免 space-between 把备案号挤到奇怪位置 */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-visual { min-height: 380px; }
  .phone { width: 250px; }
}

/* 菜单按钮：展开时变成 X */
.menu-button span { transition: transform .25s var(--ease), opacity .2s var(--ease); }
.site-header.menu-open .menu-button span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.menu-open .menu-button span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-button span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 15. 预览入口页 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.product-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--r-lg); background: #ffffff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--glass-brd-strong); box-shadow: var(--shadow-md); }
.product-card img {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--bg-1); border: 1px solid var(--line);
}
.product-card h3 { margin: 0; font-size: 20px; }
.product-card p { margin: 0; flex: 1; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.product-card .tag { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- 16. 实时用户数 ---------- */
/* 数据来自 /noticeflow-api/v1/stats/summary（见 assets/spark.js 第 7 节）。
   颜色全部走主题变量：--ink 是数字、--ink-faint 是「人在用」文案，
   没有任何写死的黑/白，跟随主题与 body.theme-* 变化。
   取不到数据时脚本保留「—」并加 .is-pending，此时隐藏后面的文案。 */
.live-stat {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;    /* 等宽数字：跳动时宽度不抖 */
  font-feature-settings: "tnum" 1;
}
/* 数字与单位是脚本注入的行内元素，必须显式行内化：
   hero-meta 里的 .hero-meta span 是后代选择器，会波及内部元素。 */
.live-stat .live-num,
.live-stat .live-unit {
  display: inline;
  font-style: normal;                    /* <i> 默认斜体，这里要正体 */
}
.live-stat .live-unit {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
}
.live-stat.is-pending .live-unit { display: none; }

/* 门户产品卡里的实时用户数：靠基线对齐，与卡片文案同一灰阶 */
.live-row { display: flex; align-items: baseline; color: var(--ink-faint); font-size: 13px; }
