:root {
  --pku: #7a1731;
  --pku-deep: #4f0d20;
  --kye: #4b2b63;
  --ink: #1c1a1b;
  --muted: #706a6d;
  --line: #e9e4e6;
  --paper: #fff;
  --soft: #f7f4f5;
  color-scheme: light;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }

.reading-progress { position: fixed; z-index: 30; inset: 0 0 auto; height: 3px; background: rgba(255,255,255,.15); }
.reading-progress span { display: block; width: 100%; height: 100%; background: #d2ae63; transform: scaleX(0); transform-origin: left; }
.masthead { position: absolute; z-index: 20; inset: 24px clamp(20px,5vw,72px) auto; display: flex; align-items: center; justify-content: space-between; color: #fff; font-family: Arial, "Microsoft YaHei", sans-serif; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; color: inherit; text-decoration: none; letter-spacing: .08em; }
.brand span { font-size: .76rem; font-weight: 700; }
.brand strong { font-size: 1.45rem; }
.masthead-label { font-size: .78rem; letter-spacing: .12em; opacity: .86; }

.hero { position: relative; min-height: min(890px, 94vh); display: grid; align-items: end; overflow: hidden; background: #23141c; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,7,16,.17) 15%, rgba(30,7,18,.28) 46%, rgba(28,6,16,.91) 100%); }
.hero-copy { position: relative; z-index: 2; width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 clamp(46px,8vw,92px); color: #fff; }
.eyebrow { margin: 0 0 18px; font-family: Arial, "Microsoft YaHei", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: #efd592; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.45rem,6vw,5.5rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.hero-summary { max-width: 760px; margin: 26px 0 0; font-size: clamp(1rem,1.7vw,1.28rem); line-height: 1.9; color: rgba(255,255,255,.88); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 28px; font: .84rem/1.5 Arial, "Microsoft YaHei", sans-serif; color: rgba(255,255,255,.72); }
.hero-meta span + span::before, .hero-meta time::before { content: "·"; margin-right: 22px; }

.article-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: clamp(64px,9vw,110px) 0 100px; }
.article-shell > p { margin: 0 0 1.25em; font-size: 1.08rem; line-height: 2.02; letter-spacing: .015em; text-align: justify; }
.article-shell h2 { position: relative; margin: 4.6rem 0 2rem; padding-top: 1.25rem; font-size: clamp(1.72rem,4.2vw,2.35rem); line-height: 1.32; letter-spacing: -.02em; text-wrap: balance; }
.article-shell h2::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 4px; background: linear-gradient(90deg, var(--pku), var(--kye)); }
.article-shell h3 { margin: 3.2rem 0 1.15rem; padding-left: 18px; border-left: 4px solid var(--kye); font-size: clamp(1.22rem,3vw,1.52rem); line-height: 1.48; }
.article-shell blockquote { margin: 2.2rem 0; padding: 1.8rem 2rem; border: 0; background: var(--soft); color: var(--pku-deep); }
.article-shell blockquote p { margin: 0; font-size: clamp(1.2rem,3vw,1.55rem); line-height: 1.7; font-weight: 700; text-align: center; }
.article-image { width: min(1120px, calc(100vw - 32px)); margin: 2.7rem 50%; transform: translateX(-50%); }
.article-image.portrait { width: min(620px, calc(100vw - 32px)); }
.article-image img { width: 100%; border-radius: 2px; background: #eee; box-shadow: 0 16px 46px rgba(25,14,19,.09); }
.article-image figcaption { margin-top: 12px; color: #5b5458; font: 600 .86rem/1.55 Arial, "Microsoft YaHei", sans-serif; text-align: center; letter-spacing: .035em; }

footer { padding: 44px max(20px, calc((100vw - 1080px)/2)); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.75); background: linear-gradient(135deg, var(--pku-deep), #291520 62%, #221528); font-family: Arial, "Microsoft YaHei", sans-serif; }
footer div { display: grid; gap: 7px; }
footer strong { color: #fff; letter-spacing: .06em; }
footer span, footer p { margin: 0; font-size: .8rem; }

@media (max-width: 700px) {
  .masthead { inset: 18px 18px auto; }
  .masthead-label { display: none; }
  .hero { min-height: 86svh; }
  .hero > img { object-position: center; }
  .hero-copy { width: calc(100% - 36px); padding-bottom: 38px; }
  .hero-summary { line-height: 1.7; }
  .hero-meta { gap: 6px 14px; }
  .hero-meta span + span::before, .hero-meta time::before { margin-right: 14px; }
  .article-shell { width: calc(100% - 38px); padding-top: 58px; }
  .article-shell > p { font-size: 1.02rem; line-height: 1.94; }
  .article-shell h2 { margin-top: 3.8rem; }
  .article-shell h3 { margin-top: 2.75rem; }
  .article-shell blockquote { padding: 1.5rem 1.2rem; }
  .article-image { width: 100vw; margin-top: 2.25rem; margin-bottom: 2.25rem; }
  .article-image img { border-radius: 0; box-shadow: none; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  @page { size: A4; margin: 15mm 14mm 17mm; }
  @page :first { margin: 0; }

  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; }
  .reading-progress, .masthead { display: none !important; }

  .hero {
    min-height: 297mm;
    height: 297mm;
    break-after: page;
  }
  .hero-copy {
    width: auto;
    margin: 0 18mm;
    padding: 0 0 28mm;
  }
  .hero h1 { max-width: 165mm; font-size: 25pt; line-height: 1.18; }
  .hero-summary { max-width: 165mm; font-size: 11pt; line-height: 1.8; }
  .hero-meta { font-size: 8.5pt; }

  .article-shell { width: auto; margin: 0; padding: 0; }
  .article-shell > p { font-size: 10.5pt; line-height: 1.85; orphans: 3; widows: 3; }
  .article-shell h2 { margin: 16mm 0 7mm; padding-top: 5mm; font-size: 19pt; break-after: avoid; }
  .article-shell h3 { margin: 10mm 0 4mm; font-size: 13.5pt; break-after: avoid; }
  .article-shell blockquote { margin: 8mm 0; padding: 7mm 8mm; break-inside: avoid; }
  .article-shell blockquote p { font-size: 14pt; }

  .article-image,
  .article-image.portrait {
    width: 100%;
    margin: 8mm 0;
    transform: none;
    break-inside: avoid;
  }
  .article-image.portrait { width: 72%; margin-left: auto; margin-right: auto; }
  .article-image img {
    max-height: 220mm;
    object-fit: contain;
    box-shadow: none;
  }
  .article-image figcaption { margin-top: 3mm; font-size: 8.5pt; }

  footer {
    margin: 14mm -14mm -17mm;
    padding: 12mm 14mm;
    break-inside: avoid;
  }
}
