/* ===== 陈德荣 · 多页简洁版 ===== */
:root {
  --ink: #1c2333;
  --muted: #5d6677;
  --soft: #8a93a3;
  --line: #e4e8ef;
  --bg: #f3f5f8;
  --paper: #ffffff;
  --navy: #121e33;
  --blue: #2f7de1;
  --orange: #f2714a;
  --violet: #7364e3;
  --teal: #22a596;
  --accent: var(--blue);
  --radius: 10px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.85 "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .01em;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
li + li { margin-top: 4px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; border-bottom: 3px solid var(--orange); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 26px 24px 22px;
  display: flex; align-items: center; gap: 16px;
}
.site-header img { width: 46px; height: 46px; flex: none; }
.site-title { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: .22em; }
.site-title a { color: #fff; }
.site-title a:hover { text-decoration: none; }
.site-subtitle { margin: 2px 0 0; color: #aab6ca; font-size: 13px; letter-spacing: .08em; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav ul {
  max-width: var(--max); margin: 0 auto; padding: 0 12px; list-style: none;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block; padding: 13px 16px 11px; white-space: nowrap;
  color: var(--muted); font-size: 14px; letter-spacing: .1em;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a span { margin-left: 6px; font-size: 11px; color: var(--soft); letter-spacing: .14em; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--orange); }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 32px auto 0; padding: 0 24px; }
.page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 52px 48px; }
.eyebrow { margin: 0 0 6px; color: var(--orange); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.page h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.45; }
.page h1 small { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; color: var(--muted); }
.lead { margin: 0 0 8px; color: var(--muted); }
h2 { margin: 40px 0 14px; padding-left: 12px; font-size: 19px; line-height: 1.4; border-left: 3px solid var(--accent); }
h3 { margin: 22px 0 6px; font-size: 16px; }
p { margin: 0 0 12px; }

.theme-blue { --accent: var(--blue); }
.theme-orange { --accent: var(--orange); }
.theme-violet { --accent: var(--violet); }
.theme-teal { --accent: var(--teal); }

/* ---------- Components ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 24px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts div { background: var(--paper); padding: 12px 16px; }
.facts dt { font-size: 12px; color: var(--soft); letter-spacing: .14em; }
.facts dd { margin: 2px 0 0; font-weight: 500; word-break: break-all; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.tags li { margin: 0; padding: 2px 12px; font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.card {
  position: relative; display: block; padding: 22px 24px; color: inherit;
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; background: var(--paper);
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 30, 51, .08); }
.card__index { margin: 0; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .16em; }
.card h3 { margin: 6px 0 8px; line-height: 1.5; }
.card p { color: var(--muted); font-size: 15px; }
.card__more { font-size: 14px; color: var(--accent); font-weight: 500; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--soft); }
.card__meta strong { color: var(--orange); }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 10px 0; margin: 0; border-bottom: 1px dashed var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain time, .list-plain .label { color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; }

figure { margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafbfc; }
figure a { display: block; padding: 16px; background: #fff; }
figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 18px; }
.metrics div { padding: 16px 18px; border-radius: 8px; background: var(--bg); }
.metrics span { display: block; font-size: 12px; color: var(--soft); letter-spacing: .12em; }
.metrics strong { display: block; font-size: 28px; line-height: 1.4; color: var(--accent); font-variant-numeric: tabular-nums; }
.metrics small { color: var(--muted); font-size: 13px; }

.equation { margin: 14px 0; padding: 14px 18px; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--accent); }
.equation__label { display: block; font-size: 11px; color: var(--soft); letter-spacing: .16em; }
.equation__line { font-family: "Cambria Math", "Times New Roman", serif; font-size: 19px; }
.equation__meta { font-size: 13px; color: var(--muted); }

.note { margin-top: 32px; padding: 16px 20px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); }
.note strong { display: block; font-size: 12px; color: var(--accent); letter-spacing: .16em; }
.note p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Profile Page ---------- */
.profile-meta {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 24px 0 0; padding: 14px 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.profile-meta div { padding: 4px 18px; border-left: 1px solid var(--line); }
.profile-meta div:first-child { border-left: 0; }
.profile-meta dt { font-size: 12px; color: var(--soft); letter-spacing: .1em; }
.profile-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.profile-stack { display: flex; flex-direction: column; gap: 20px; }
.profile-panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.profile-panel h2 { margin: 0 0 14px; font-size: 17px; }
.profile-panel p:last-child { margin-bottom: 0; }

.edu-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.edu-school { font-size: 17px; font-weight: 600; color: var(--ink); }
.edu-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; vertical-align: 1px;
  font-size: 11px; font-weight: 600; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, #fff); border-radius: 4px;
}
.edu-time { font-size: 13px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.edu-major { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.contact-list { margin: 12px 0 0; }
.contact-list div {
  display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.contact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { font-size: 13px; color: var(--soft); }
.contact-list dd { margin: 0; font-size: 15px; font-weight: 500; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px; color: var(--soft); font-size: 13px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-header__inner { padding: 20px 18px 16px; }
  .site-title { font-size: 23px; }
  main { margin-top: 18px; padding: 0 12px; }
  .page { padding: 28px 22px 32px; }
  .page h1 { font-size: 22px; }
  .list-plain li { grid-template-columns: 1fr; gap: 0; }
  .pager { flex-direction: column; }
  .profile-meta { grid-template-columns: repeat(2, 1fr); padding: 6px 14px; }
  .profile-meta div { border-left: 0; border-bottom: 1px solid var(--line); padding: 10px 6px; }
  .profile-meta div:last-child { border-bottom: 0; grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
}
