/* F0011 官网网页（下载页、隐私政策、用户协议）共用的样式，对外地址 /web/static/site.<哈希>.css（WebAssets），页面没有脚本。
   照原型 v1（docs/features/F0011-20261129-android-release/02-prototype/v1/site.css）。颜色取 App 默认主题“石墨”
   （client/ui/theme/presets/Graphite.kt），深色跟随系统。字体用系统字体，不下发思源字体。 */
:root {
  --bg: #F4F4F3; --surface: #FFFFFF; --sunk: #E9E9E7; --fg: #1A1A19; --muted: #61615E; --line: #DCDCD9;
  --accent: #2B2B2A; --accent-soft: #E4E4E1; --on-accent: #FFFFFF; --warn-bg: #FFF4D6; --warn-fg: #5C4400;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --surface: #1B1B1B; --sunk: #252525; --fg: #ECECEA; --muted: #A3A3A0; --line: #303030;
    --accent: #EDEDEB; --accent-soft: #333333; --on-accent: #141414; --warn-bg: #3A3013; --warn-fg: #F3DC9C;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; }
.page { max-width: 680px; margin: 0 auto; padding: 24px 20px 40px; }

/* 顶部 */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.brand h1 { margin: 0; font-size: 22px; line-height: 1.3; }
.brand p { margin: 0; color: var(--muted); font-size: 13px; }

/* 微信 / QQ 提示条 */
.notice { background: var(--warn-bg); color: var(--warn-fg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.notice b { display: block; margin-bottom: 2px; }

/* 主卡片 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.card .platform { font-size: 13px; color: var(--muted); }
.card h2 { margin: 2px 0 2px; font-size: 20px; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.btn { display: block; text-align: center; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 600; text-decoration: none; }
.btn + .btn { margin-top: 10px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 500; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.notes { margin: 14px 0 0; padding: 12px 14px; background: var(--sunk); border-radius: 12px; font-size: 14px; }
.notes b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.notes ul { margin: 0; padding-left: 18px; }
.tip { color: var(--muted); font-size: 13px; text-align: center; margin: -4px 0 20px; }

/* 其他平台 */
.section-label { font-size: 13px; color: var(--muted); margin: 20px 4px 8px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.row + .row { border-top: 1px solid var(--line); }
.row .info { flex: 1; min-width: 0; }
.row .info b { display: block; font-weight: 600; }
.row .info span { color: var(--muted); font-size: 13px; }
.row .dl { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); text-decoration: none; font-size: 14px; }
.row .soon { flex: none; color: var(--muted); font-size: 13px; }

/* 折叠：历史版本、校验信息 */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; }
details > summary { cursor: pointer; padding: 12px 14px; list-style: none; font-weight: 600; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "展开"; float: right; color: var(--muted); font-weight: 400; font-size: 13px; }
details[open] > summary::after { content: "收起"; }
details .inner { border-top: 1px solid var(--line); padding: 4px 14px 12px; font-size: 14px; }
.ver { padding: 8px 0; }
.ver + .ver { border-top: 1px dashed var(--line); }
.ver b { font-weight: 600; }
.ver .when { color: var(--muted); font-size: 13px; margin-left: 6px; }
.ver .files { margin-top: 2px; }
.ver .files a { margin-right: 14px; font-size: 13px; }
.hash { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--muted); }
.hash-item { padding: 6px 0; }
.hash-item b { display: block; font-size: 13px; font-weight: 600; color: var(--fg); }

.empty { text-align: center; padding: 48px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.empty b { display: block; font-size: 17px; margin-bottom: 4px; }
.empty span { color: var(--muted); font-size: 14px; }

footer { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); margin: 0 6px; }
footer p { margin: 4px 0; }

/* 政策页 */
.doc h1 { font-size: 24px; margin: 0 0 4px; }
.doc .doc-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.doc h2 { font-size: 17px; margin: 24px 0 6px; }
.doc p { margin: 6px 0; }
.doc ul, .doc ol { margin: 6px 0; padding-left: 20px; }
.doc li { margin: 3px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; background: var(--surface); }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--sunk); font-weight: 600; }
.doc .back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.doc .history { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* 宽屏（电脑）：主卡片与其他平台并排 */
@media (min-width: 900px) {
  .page.wide { max-width: 960px; }
  .wide .columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
  .wide .columns .section-label { margin-top: 0; }
}

/* 实现补充：旧版本提示、主卡片里“即将推出”、更新说明折叠 */
.notice a { color: inherit; font-weight: 600; }
.card .soon-text { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.notes details { background: transparent; border: 0; border-radius: 0; margin-top: 4px; }
.notes details > summary { padding: 0; font-weight: 400; font-size: 13px; color: var(--muted); }
.notes details > summary::after { content: ""; }
.notes details ul { margin-top: 4px; }
