/* ===== 字体 ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ===== 变量 ===== */
:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-mid: #888888;
  --c-border: #e0e0e0;
  --c-glass-bg: rgba(255,255,255,0.72);
  --c-glass-border: rgba(255,255,255,0.45);
  --c-overlay: rgba(31,31,31,0.04);

  --shadow-sm: 0 1px 4px rgba(31,31,31,0.06), 0 1px 2px rgba(31,31,31,0.04);
  --shadow-md: 0 4px 16px rgba(31,31,31,0.09), 0 2px 6px rgba(31,31,31,0.06);
  --shadow-lg: 0 12px 36px rgba(31,31,31,0.12), 0 4px 12px rgba(31,31,31,0.08);
  --shadow-xl: 0 24px 64px rgba(31,31,31,0.16), 0 8px 24px rgba(31,31,31,0.10);

  --font-title: 'Cormorant', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius: 4px;
  --header-h: 68px;
  --max-w: 1200px;
  --content-max: 820px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-white);
  color: var(--c-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .78; }
ul, ol { list-style: none; }
button, input { font-family: var(--font-body); font-size: 1rem; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}
.main-nav { grid-column: 1; }
.brand-center { grid-column: 2; text-align: center; }
.brand-name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-dark);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}
.nav-links a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--c-dark);
  padding: 10px 4px;
  white-space: nowrap;
  transition: color .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--c-mid); }

/* ===== Hero ===== */
.hero-section,
.topic-hero,
.article-hero,
.page-hero {
  position: relative;
  min-height: 100vh;
  background: var(--c-dark);
  color: var(--c-white);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  z-index: 1;
}
.page-hero--sm {
  min-height: 52vh;
}
.hero-bg-num {
  position: absolute;
  right: -2vw;
  bottom: -0.1em;
  font-family: var(--font-title);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.04em;
  z-index: 0;
  will-change: transform;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 80px 24px 72px;
  text-align: right;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  color: var(--c-white);
}
.hero-lead {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  margin-left: auto;
  line-height: 1.8;
}
.article-meta {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-weight: 400;
}
.article-meta .date-sep { opacity: .4; }
.article-meta .date-label { opacity: .6; }
.article-meta a { color: rgba(255,255,255,0.65); }

/* ===== 内容区布局 ===== */
.content-section {
  position: relative;
  z-index: 2;
  background: var(--c-white);
}
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}
.content-wrap.with-aside {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== 侧边栏（左侧）===== */
.site-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside-block {
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
}
.aside-block h2 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.aside-block .subtitle {
  font-size: .75rem;
  color: var(--c-mid);
  margin-bottom: 14px;
  font-weight: 400;
}
.aside-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aside-nav-links a {
  font-size: .82rem;
  font-weight: 500;
  padding: 7px 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-dark);
  transition: padding-left .18s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-nav-links a:last-child { border-bottom: none; }
.aside-nav-links a:hover { padding-left: 6px; color: var(--c-mid); }
.aside-stat {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 4px;
}

/* ===== 正文主列 ===== */
.main-col { min-width: 0; }
.page-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-dark);
}
.page-content h2 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 2em 0 .5em;
  letter-spacing: .02em;
}
.page-content h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.6em 0 .4em;
}
.page-content p { margin-bottom: 1.1em; }
.page-content ul, .page-content ol {
  margin: .8em 0 1em 1.4em;
  list-style: disc;
}
.page-content li { margin-bottom: .4em; }
.page-content a { border-bottom: 1px solid var(--c-border); }
.page-content a:hover { border-color: var(--c-dark); }
.page-content time {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-mid);
  letter-spacing: .04em;
}
.article-body { max-width: var(--content-max); }
.prose h2 { margin-top: 2.4em; }

/* ===== h2 + p.subtitle 模式 ===== */
h2 + .subtitle, h2 + p.subtitle {
  color: var(--c-mid);
  font-size: .88rem;
  margin-top: -6px;
  margin-bottom: 28px;
  font-weight: 400;
}

/* ===== 首页专题区 ===== */
.home-content { background: var(--c-light); }
.topics-section {
  position: relative;
  background: var(--c-white);
  z-index: 2;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px;
}
.section-inner > h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

/* ===== 玻璃卡片 ===== */
.glass-card {
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  position: relative;
  z-index: 2;
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: 0;
}
.glass-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-lg);
}
.glass-card > * { position: relative; z-index: 1; }
.card-num {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(31,31,31,0.08);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -.04em;
}
.topic-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.topic-card h3 a { color: var(--c-dark); }
.topic-card .subtitle {
  font-size: .82rem;
  color: var(--c-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}
.card-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
  margin-top: 4px;
}
.card-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-dark);
  padding: 5px 0;
  transition: padding-left .15s;
}
.card-links a:hover { padding-left: 6px; color: var(--c-mid); }

/* ===== 首页时间线 ===== */
.timeline-section {
  background: var(--c-light);
  position: relative;
  z-index: 2;
}
.tl-heading { margin-bottom: 40px; }
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--c-border);
  margin-left: 28px;
}
.tl-item {
  display: flex;
  gap: 28px;
  padding: 28px 0 28px 36px;
  position: relative;
  border-bottom: 1px solid var(--c-border);
}
.tl-item:last-child { border-bottom: none; }
.tl-marker {
  position: absolute;
  left: -20px;
  top: 30px;
  width: 36px;
  height: 36px;
  background: var(--c-dark);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.tl-body { flex: 1; min-width: 0; }
.tl-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: .75rem;
  color: var(--c-mid);
  margin-bottom: 6px;
  font-weight: 400;
}
.tl-meta time { font-family: var(--font-body); font-weight: 500; }
.tl-meta a { color: var(--c-mid); border-bottom: 1px solid transparent; }
.tl-meta a:hover { border-color: var(--c-mid); }
.tl-body h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-body h4 a { color: var(--c-dark); }
.tl-desc {
  font-size: .86rem;
  color: var(--c-mid);
  line-height: 1.6;
}

/* ===== 专题子页列表 ===== */
.child-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--c-border);
}
.child-section > h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.child-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.child-item {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  transition: background .15s;
}
.child-item:last-child { border-bottom: none; }
.child-item:hover { background: var(--c-light); }
.child-item > a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  min-height: 60px;
  color: var(--c-dark);
}
.child-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(31,31,31,0.15);
  flex-shrink: 0;
  width: 40px;
  text-align: right;
  letter-spacing: -.03em;
}
.child-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.child-title {
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.4;
}
.child-meta {
  font-size: .78rem;
  color: var(--c-mid);
  line-height: 1.5;
  display: block;
}
.child-meta time {
  font-weight: 500;
  margin-right: 8px;
}

/* ===== 文章翻页 ===== */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.art-nav-prev, .art-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  max-width: 48%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
  color: var(--c-dark);
}
.art-nav-prev:hover, .art-nav-next:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  opacity: 1;
}
.art-nav-next { margin-left: auto; text-align: right; }
.art-nav-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-mid);
  text-transform: uppercase;
}
.art-nav-title {
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-title);
  line-height: 1.4;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  position: relative;
  z-index: 2;
}
.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 56px 24px 48px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.footer-col strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.footer-col p {
  font-size: .84rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-nav-links a {
  font-size: .84rem;
  color: rgba(255,255,255,0.62);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-nav-links a:last-child { border-bottom: none; }
.footer-nav-links a:hover { color: var(--c-white); opacity: 1; }
.footer-contact .subscribe-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.subscribe-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .86rem;
  outline: none;
  transition: border-color .15s;
  min-height: 44px;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.35); }
.subscribe-form input:focus { border-color: rgba(255,255,255,0.4); }
.subscribe-form button {
  background: var(--c-white);
  color: var(--c-dark);
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  letter-spacing: .04em;
  transition: opacity .15s;
}
.subscribe-form button:hover { opacity: .85; }
.footer-bottom {
  padding: 20px 24px;
}
.footer-bottom > nav {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand a {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: .06em;
}
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  flex: 1;
}
.footer-bottom > nav a {
  font-size: .78rem;
  color: rgba(255,255,255,0.4);
  padding: 8px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom > nav a:hover { color: var(--c-white); opacity: 1; }

/* ===== 视差 ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-num {
    transition: transform .1s linear;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-num { transition: none; }
  .glass-card { transition: none; }
  .art-nav-prev, .art-nav-next { transition: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    gap: 8px;
  }
  .main-nav { display: none; }
  .brand-center { grid-column: 1; text-align: left; }

  .hero-section, .topic-hero, .article-hero, .page-hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-inner {
    padding: 64px 16px 48px;
    text-align: right;
  }
  .hero-bg-num {
    font-size: clamp(80px, 30vw, 160px);
  }

  .content-wrap.with-aside {
    grid-template-columns: 1fr;
    padding: 36px 16px;
  }
  .site-aside {
    position: static;
    order: 2;
  }
  .main-col { order: 1; }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-top { padding: 40px 16px 36px; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-copy { text-align: center; }

  .timeline-list { margin-left: 18px; }
  .tl-item { padding: 20px 0 20px 28px; }
  .tl-marker { left: -18px; width: 32px; height: 32px; font-size: .65rem; top: 22px; }

  .article-nav { flex-direction: column; }
  .art-nav-prev, .art-nav-next { max-width: 100%; }
  .art-nav-next { margin-left: 0; text-align: left; }

  .section-inner { padding: 48px 16px; }
  .child-item > a { padding: 14px 14px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.1rem; }
  .hero-title { font-size: 2rem; }
  .hero-lead { font-size: .9rem; }
  .nav-links a { font-size: .72rem; }
}
