/* ============ 系规备考网 · 沉稳蓝主题 ============ */
:root {
  --blue-900: #14283f;
  --blue-800: #1e3a5f;
  --blue-700: #2c5f8a;
  --blue-500: #3f7fb5;
  --blue-100: #dce8f2;
  --blue-50:  #eef4f9;
  --bg: #f4f7fa;
  --card: #ffffff;
  --text: #24344a;
  --muted: #6b7d90;
  --line: #d8e2ec;
  --gold: #c9a24b;
  --red: #c0392b;
  --green: #2e7d4f;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(30, 58, 95, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header ---- */
.site-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-badge {
  width: 36px; height: 36px; border-radius: 9px; background: var(--gold);
  color: #1e2f45; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 18px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-size: 11px; font-weight: 400; opacity: .7; letter-spacing: .5px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 8px;
  font-size: 15px; transition: .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.main-nav a.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.menu-btn { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ---- hero / home ---- */
.hero {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: #fff; border-radius: var(--radius); padding: 40px 32px; margin: 24px 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(201, 162, 75, .15);
}
.hero h1 { font-size: 30px; margin-bottom: 8px; }
.hero .sub { opacity: .85; font-size: 15px; max-width: 640px; }
.countdown-box { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.countdown-num {
  font-size: 64px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.countdown-label { font-size: 15px; opacity: .85; }
.countdown-note { font-size: 13px; opacity: .6; margin-top: 6px; }
.hero-tags { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-tags span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  padding: 4px 14px; border-radius: 999px; font-size: 13px;
}

.section-title { font-size: 22px; color: var(--blue-800); margin: 34px 0 6px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 5px; height: 22px; background: var(--gold); border-radius: 3px; }
.section-desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject-card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border-top: 3px solid var(--blue-500);
}
.subject-card h3 { color: var(--blue-800); font-size: 17px; margin-bottom: 8px; }
.subject-card .score { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.subject-card p { font-size: 14px; }
.subject-card.gold { border-top-color: var(--gold); }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.entry-card {
  background: var(--card); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); cursor: pointer; transition: .2s;
  border: 1px solid var(--line); display: block; color: var(--text);
}
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(30,58,95,.14); text-decoration: none; }
.entry-card h3 { color: var(--blue-800); font-size: 17px; margin-bottom: 6px; }
.entry-card p { font-size: 13px; color: var(--muted); }
.entry-card .arrow { color: var(--gold); font-weight: 700; }

/* ---- content pages ---- */
.page { padding: 28px 0 40px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; color: var(--blue-800); }
.page-head .crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); margin-bottom: 18px; border: 1px solid var(--line);
}
.card h2 { font-size: 18px; color: var(--blue-800); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.card h3 { font-size: 15px; color: var(--blue-700); margin: 14px 0 8px; }
.card p { font-size: 14.5px; margin-bottom: 8px; }
.card ul, .card ol { padding-left: 22px; font-size: 14.5px; }
.card li { margin-bottom: 6px; }
.card li strong { color: var(--blue-800); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
table.data-table th {
  background: var(--blue-50); color: var(--blue-800); text-align: left;
  padding: 9px 12px; border: 1px solid var(--line); font-weight: 600; white-space: nowrap;
}
table.data-table td { padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
table.data-table tr:nth-child(even) td { background: #fafcfe; }

.badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.badge.gold { background: #faf3e0; color: #9a7a2e; }
.badge.blue { background: var(--blue-100); color: var(--blue-800); }
.badge.red { background: #fdecea; color: var(--red); }
.badge.green { background: #e6f4ec; color: var(--green); }

.callout {
  background: var(--blue-50); border-left: 4px solid var(--blue-500);
  border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 14px; margin: 12px 0;
}
.callout.warn { background: #fdf6ec; border-left-color: var(--gold); }
.callout strong { color: var(--blue-800); }

.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.reg-card { background: var(--blue-50); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.reg-card b { color: var(--blue-800); display: block; margin-bottom: 4px; }

.chapter-list { display: flex; flex-direction: column; gap: 6px; }
.chapter-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  border-radius: 8px; font-size: 14px; background: #fafcfe; border: 1px solid #eaf0f6;
}
.chapter-row.hot { background: #fdf9ef; border-color: #f0e3c4; }
.chapter-no { color: var(--muted); font-variant-numeric: tabular-nums; width: 30px; flex-shrink: 0; text-align: right; }
.chapter-name { flex: 1; }
.chapter-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.toc-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.toc-strip a {
  font-size: 13px; background: var(--card); border: 1px solid var(--line);
  padding: 5px 14px; border-radius: 999px; color: var(--blue-800);
}
.toc-strip a:hover { background: var(--blue-50); text-decoration: none; }

/* ---- footer ---- */
.site-footer {
  background: var(--blue-900); color: rgba(255,255,255,.75);
  padding: 28px 0; margin-top: 40px; font-size: 13px; text-align: center;
}
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: #9ec3e4; }
.site-footer .copy { opacity: .5; margin-top: 10px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .subject-grid, .entry-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--blue-800); flex-direction: column; padding: 10px 16px;
  }
  .main-nav.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 24px; }
  .countdown-num { font-size: 48px; }
  table.data-table { font-size: 13px; }
  table.data-table th, table.data-table td { padding: 7px 8px; }
}
