/* AI 开通手册 · 共用样式
   配色：暖白底、墨色字，朱橙一屏只用一处。
   不加载外部字体：读者可能还没有能用的网络。 */

:root {
  --bg: #F5F4F1;
  --card: #FFFFFF;
  --line: #E1DED8;
  --ink: #141414;
  --ink-2: #6E6A65;
  --accent: #EF5A1E;
  --accent-soft: rgba(239, 90, 30, .13);
  --warn: #FF5A4E;
  --warn-soft: rgba(255, 90, 78, .10);
  --ok: #2E7D4F;
  --radius: 12px;
  --shadow: 0 0 0 1px rgba(20, 20, 20, .06), 0 10px 30px -12px rgba(20, 20, 20, .18);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(20, 20, 20, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--ink); }
code, kbd { overflow-wrap: anywhere; font-family: var(--mono); font-size: .88em; background: #EFEDE8; border-radius: 5px; padding: .1em .4em; }
img { max-width: 100%; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.topbar { border-bottom: 1px solid var(--line); background: rgba(245, 244, 241, .92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; gap: 12px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.brand small { font-weight: 500; color: var(--ink-2); margin-left: 8px; font-size: 13px; }
.topnav { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); }
.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 520px) { .brand small { display: none; } .topnav { gap: 12px; } }

/* 最后验证 */
.verified { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 26px; }
.verified::before { content: ""; width: 8px; height: 8px; background: var(--ok); border-radius: 2px; }

/* 标题区 */
.hero { padding: 6px 0 34px; }
h1 { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.22; font-weight: 900; margin: 14px 0 16px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: #3B3936; max-width: 640px; margin: 0; }
h2 { font-size: 26px; font-weight: 900; margin: 56px 0 14px; line-height: 1.3; }
h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.kicker { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .08em; }
.muted { color: var(--ink-2); }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px; }
.card + .card { margin-top: 14px; }

/* 页面信息条：耗时 / 适合谁 / 要准备什么 */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.facts ul { margin: 2px 0 0; padding-left: 1.1em; }
@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
}

/* 方块编号步骤 */
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; margin: 34px 0 0; }
.num { width: 40px; height: 40px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.step h3 { margin: 4px 0 8px; font-size: 21px; }
.step ol, .step ul { padding-left: 1.2em; margin: 8px 0; }
.step li + li { margin-top: 6px; }

/* 你应该看到 */
.see { margin-top: 14px; border-left: 3px solid var(--ok); background: rgba(46, 125, 79, .07); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 15px; }
.see b { display: block; font-size: 13px; color: var(--ok); }

/* 提醒：打码 / 坑 */
.note { border-radius: 10px; padding: 12px 16px; font-size: 15px; background: #EFEDE8; margin: 16px 0; }
.note b { margin-right: 6px; }
.pit { background: var(--warn-soft); border: 1px solid rgba(255, 90, 78, .35); }
.pit b { color: #C2352B; }

/* 截图占位 */

/* 对比表 */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F0EEEA; font-size: 13px; color: var(--ink-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.unverified { color: var(--ink-2); font-size: 13px; }
.unverified::before { content: "注意 · "; color: #B4560F; font-weight: 700; }

/* 卡住了 */
details { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; color: var(--ink-2); font-weight: 400; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 18px 16px; font-size: 15.5px; }

/* 做完检查 */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ink); flex: none; }

/* 按钮：主按钮用墨色，朱橙留给标题关键词，一屏只一处 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--ink); font-size: 15px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #2A2826; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* 页脚 */
footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
footer p { margin: 4px 0; }

.crumb { font-size: 13px; color: var(--ink-2); margin-top: 26px; }
.crumb a { text-decoration: none; }
.crumb + .verified { margin-top: 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h2 { font-size: 23px; margin-top: 44px; }
  .card { padding: 18px 16px; }
  .step { grid-template-columns: 34px 1fr; gap: 12px; }
  .num { width: 34px; height: 34px; font-size: 16px; }
}
@media print { .topbar { position: static; } body { background-image: none; } }

/* 网格里的长内容（表格）不撑破页面 */
.step > div, .facts > div { min-width: 0; }
@media (max-width: 520px) {
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 10px 10px; }
  td:first-child { width: 4.5em; }
}

/* 不跑 JS 时（微信、文件 App 预览）：交互控件收起，改成静态说明，内容一律不藏 */
.who { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; margin-top: 4px; }
html.js .who, html.js .nojs-only { display: none; }
html:not(.js) .js-only { display: none; }

/* 命令和提示词 */
pre.code { background: #23211F; color: #F1EEE9; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; margin: 12px 0; white-space: pre; }
pre.code.prompt { white-space: pre-wrap; background: #F6F4F0; color: #2A2826; border: 1px solid var(--line); }
.src { font-size: 14px; color: var(--ink-2); }
