/* ===========================================================
   极客字符滤镜 ASCII DANCE — 内容页共用样式
   适用于 about / privacy / terms 等静态页面
   =========================================================== */
:root {
  --accent: #2f6bff;
  --accent-dark: #1e4fd6;
  --text-main: #1f2633;
  --text-dim: #6b7686;
  --line: #e8edf4;
  --bg: #f3f5f9;
  --card: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-main);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.85;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

/* ===== 顶栏 ===== */
header.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 12px;
}
.logo {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, #2f6bff, #6ea3ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Courier New", monospace; font-weight: bold; font-size: 13px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-txt { font-weight: 700; font-size: 15px; line-height: 1.3; }
.logo-txt small { display: block; font-size: 10px; color: var(--text-dim); font-weight: normal; letter-spacing: 2px; }
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.head-nav a.nav-lnk {
  font-size: 13px; color: #4a5468; padding: 7px 11px; border-radius: 8px;
}
.head-nav a.nav-lnk:hover { background: #f2f6fd; color: var(--accent); text-decoration: none; }
.back-btn {
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: bold; white-space: nowrap;
}
.back-btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ===== 版心 ===== */
main { max-width: 820px; margin: 0 auto; padding: 32px 24px 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(31,38,51,0.04);
}
h1 { font-size: 26px; line-height: 1.5; margin-bottom: 10px; letter-spacing: .2px; }
h2 { font-size: 18px; margin: 4px 0 12px; }
h3 { font-size: 15px; margin: 18px 0 6px; color: #2b3547; }
p { margin: 0 0 12px; color: #3b4657; }
.lead { color: var(--text-dim); font-size: 14px; }
ol, ul { margin: 0 0 12px 22px; color: #3b4657; }
li { margin-bottom: 6px; }
code {
  font-family: "Courier New", monospace; font-size: 13px;
  background: #f4f7fc; border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 5px;
}
.meta-line { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ===== 提示框 ===== */
.notice {
  border-left: 3px solid var(--accent);
  background: #f4f7ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 14px;
  color: #33415c;
}
.notice.warn { border-color: #e8a33d; background: #fff8ec; color: #6b4a15; }

/* ===== 目录 ===== */
.toc {
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 18px;
  font-size: 13.5px;
}
.toc b { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.toc ol { margin: 0 0 0 18px; column-count: 2; column-gap: 20px; }
.toc li { margin-bottom: 2px; }

/* ===== 字符画演示 ===== */
.ascii-demo {
  font-family: "Courier New", monospace;
  font-size: 11px; line-height: 1.05;
  white-space: pre; overflow: hidden;
  color: #0f1520; background: #0b0e14;
  letter-spacing: 0.5px;
  padding: 18px; border-radius: 12px; margin: 4px 0 16px;
}
.ascii-demo span { color: #fff; }

/* ===== 步骤 ===== */
.steps { counter-reset: s; list-style: none; margin-left: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 8px;
  background: #ecf2ff; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold;
}

/* ===== FAQ ===== */
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: none; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: #232d3d; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋ "; color: var(--accent); }
.faq details[open] summary::before { content: "－ "; }
.faq details p { margin: 8px 0 0; font-size: 14px; color: #4a5468; }

/* ===== 标签 ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: #f2f6fd; color: #3d6ad6; border: 1px solid #e2eafb;
}

/* ===== 信息表 ===== */
table.info { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 14px; }
table.info th, table.info td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info th { color: var(--text-dim); font-weight: normal; width: 34%; background: #fafcff; }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: none; }

/* ===== 页脚 ===== */
footer.site-foot {
  max-width: 820px; margin: 0 auto;
  padding: 24px 24px 56px;
  font-size: 12.5px; color: var(--text-dim);
  text-align: center; line-height: 2;
}
footer.site-foot .f-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
footer.site-foot a { color: #5b6b82; }
footer.site-foot .f-copy { color: #93a0b3; }

@media (max-width: 600px) {
  .card { padding: 20px 18px; }
  h1 { font-size: 21px; }
  main { padding: 20px 14px 8px; }
  .toc ol { column-count: 1; }
  header.site-head { padding: 10px 14px; }
  .head-nav a.nav-lnk { padding: 6px 8px; font-size: 12px; }
  footer.site-foot { padding: 20px 14px 40px; }
}
