/* 记仇背法条 · 官网静态页样式（jichoubei.com） */

:root {
  --brand: #1e3a8a;
  --brand-strong: #172c6b;
  --brand-soft: #eef2ff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --card: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.brand .name { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.brand .sub { font-size: 12px; color: var(--muted); font-weight: 400; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------- 主体 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 32px 32px 56px; }

.page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 48px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 1px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-soft);
  margin-bottom: 8px;
}
.page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

h2.section {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-strong);
  margin: 30px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  line-height: 1.4;
}
h3.sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
}

p { margin: 8px 0; }
p.indent { text-indent: 2em; }
ul, ol { margin: 8px 0 8px 22px; }
li { margin: 5px 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 6px;
  font-size: 14px;
}
table.data caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 6px;
}
table.data th,
table.data td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
table.data th { background: #f3f5f9; font-weight: 600; color: var(--brand-strong); }
table.data tbody tr:nth-child(even) { background: #fafbfc; }

.note {
  background: #fbfcfd;
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 14px;
  color: #374151;
  border-radius: 0 6px 6px 0;
}

/* ---------- 首页专属 ---------- */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 8px 0 4px;
}
.hero-text { flex: 1 1 auto; }
.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.hero .slogan {
  font-size: 15px;
  color: var(--brand);
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero p { color: #374151; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 4px; }
.feature {
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.feature .t { font-size: 14px; font-weight: 600; color: var(--brand-strong); margin-bottom: 3px; }
.feature .d { font-size: 13px; color: var(--muted); line-height: 1.7; }

.qr-box {
  flex: 0 0 200px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.qr-frame {
  width: 164px;
  height: 164px;
  margin: 0 auto;
  border: 1px dashed #b9c3d6;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5b8;
  font-size: 12px;
  letter-spacing: 1px;
}
.qr-box .cap { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.qr-box .cap b { color: var(--text); font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 26px 32px 34px;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 2;
}
.site-footer .disclaimer {
  max-width: 860px;
  margin: 0 auto 12px;
  font-size: 12.5px;
  color: #7b8494;
  line-height: 1.9;
  text-align: left;
  border-left: 3px solid var(--line);
  padding-left: 12px;
}
.site-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted #c3cad6; }
.site-footer .icp { color: #4b5563; }
