/* ============================================================
   全局统一样式 · 知识档案站（白底黑字简洁版）
   所有页面共享 · 长期固定 · 勿轻易改动
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --card: #ffffff;
  --card-2: #f8f9fa;
  --border: #e5e5e5;
  --border-strong: #d0d0d0;
  --text: #1a1a1a;
  --text-dim: #4a4a4a;
  --text-mute: #888888;
  --accent: #0066cc;
  --accent-2: #004499;
  --code-bg: #f5f5f5;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-2); text-decoration: underline; }

/* ============================================================
   首页样式
   ============================================================ */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero .badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-soft);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}
.hero .subtitle {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.8;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-mute);
}
.hero .meta span {
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.hero .meta b { color: var(--text); font-weight: 600; }

/* SECTION */
section { padding: 48px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-title {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.section-title .desc {
  color: var(--text-mute);
  font-size: 14px;
  margin-top: 4px;
}

/* ARTICLE LIST */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.article-card .a-date {
  font-size: 13px;
  color: var(--text-mute);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.article-card .a-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.article-card .a-title a { color: inherit; }
.article-card .a-title a:hover { color: var(--accent); text-decoration: none; }
.article-card .a-summary {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}
.article-card .a-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.article-card .a-tags span {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--bg-soft);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.article-card .a-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* FOOTER */
footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .hero h1 { font-size: 24px; }
  .container { padding: 0 16px; }
  .article-card { padding: 16px 18px; }
}

/* ============================================================
   报告页样式（测试模版.html 及所有文章通用）
   ============================================================ */
.report-header {
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--border);
}
.report-header .container { max-width: 820px; }
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.report-meta span {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
}
.report-meta .r-date {
  color: var(--text-mute);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.report-meta .r-cat {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,102,204,0.05);
}
.report-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}
.report-header .r-summary {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

/* 报告正文 */
.report-body { padding: 40px 0; }
.report-body .container { max-width: 820px; }

.report-body section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.report-body section:last-child { border-bottom: none; }
.report-body section > section { padding: 20px 0; border-bottom: none; }

.report-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--text);
  line-height: 1.4;
}
.report-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
  line-height: 1.4;
}
.report-body h3::before {
  content: '■';
  color: var(--text-mute);
  margin-right: 8px;
  font-size: 12px;
  vertical-align: middle;
}
.report-body p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 12px;
}
.report-body p.lead {
  color: var(--text);
  font-weight: 500;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--text-mute);
  border-radius: 0 4px 4px 0;
  margin: 12px 0 16px;
}

.report-body ul {
  list-style: none;
  margin: 10px 0 18px;
  padding-left: 4px;
}
.report-body ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 6px;
}
.report-body ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 20px;
  color: var(--text-mute);
  font-weight: 700;
}

.report-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 14px 0 20px;
}
.report-body pre code {
  display: block;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
}

/* 高亮提示框 */
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 14px 20px;
  margin: 20px 0;
}
.callout h4 {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
}
.callout p { color: var(--text); margin: 0; font-size: 14px; }

/* 返回首页 */
.back-link {
  display: inline-block;
  margin-top: 40px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 14px;
  transition: all 0.15s;
}
.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 目录 */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 24px 0 32px;
}
.toc h4 {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  padding-left: 0;
  margin: 0;
}
.toc ol li {
  counter-increment: toc;
  margin-bottom: 4px;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--text-mute);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.toc ol li a { color: var(--text-dim); }
.toc ol li a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .report-header h1 { font-size: 22px; }
  .report-body h2 { font-size: 19px; }
  .report-body h3 { font-size: 16px; }
  .report-body pre { padding: 12px 14px; }
  .report-body pre code { font-size: 12px; }
}
