:root {
  --ink: #18211d;
  --muted: #5f6863;
  --paper: #f3f1e9;
  --surface: #fbfaf5;
  --line: #c8cbc2;
  --accent: #d65f36;
  --accent-soft: #e9bca6;
  --deep: #25362f;
  --shell: min(88rem, calc(100% - 5rem));
  --radius: 0.2rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(90deg, transparent calc(25% - 1px), rgba(24, 33, 29, 0.045) 25%, transparent calc(25% + 1px)), linear-gradient(90deg, transparent calc(50% - 1px), rgba(24, 33, 29, 0.045) 50%, transparent calc(50% + 1px)), linear-gradient(90deg, transparent calc(75% - 1px), rgba(24, 33, 29, 0.045) 75%, transparent calc(75% + 1px));
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.25rem;
}

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 233, 0.96);
}

.header-shell {
  min-height: 6.2rem;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto;
  align-items: stretch;
}

.wordmark {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.wordmark strong {
  overflow: hidden;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 720;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wordmark-symbol {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
}

.wordmark-symbol i { position: absolute; display: block; background: var(--accent); }
.wordmark-symbol i:first-child { width: 1px; inset: 0 auto 0 50%; }
.wordmark-symbol i:last-child { height: 1px; inset: 50% 0 auto; }

.site-nav { display: flex; align-items: stretch; counter-reset: nav-order; }

.site-nav a {
  counter-increment: nav-order;
  min-width: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-right: 1px solid var(--line);
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a span { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.1em; }
.site-nav .nav-number::before { content: "0" counter(nav-order); }
.site-nav a:hover, .site-nav a.is-active { color: var(--surface); background: var(--deep); }
.site-nav a:hover span, .site-nav a.is-active span { color: var(--accent-soft); }
.nav-toggle { display: none; }

.home-hero { border-bottom: 1px solid var(--line); }

.hero-shell {
  min-height: 41rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(23rem, 5fr);
  border-inline: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8.5rem) clamp(2rem, 6vw, 6.5rem) clamp(4rem, 7vw, 7rem) 0;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.section-index span { color: var(--accent); }

.hero-copy h1 {
  max-width: 13em;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 1.05;
  font-weight: 660;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

.hero-description {
  max-width: 44rem;
  margin-bottom: 2.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.action-link {
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ink);
  font-weight: 650;
}

.action-link-dark { color: var(--surface); background: var(--ink); }
.action-link span { color: var(--accent); font-size: 1.25rem; }

.hero-drawing {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.drawing-plane {
  position: absolute;
  inset: 17% 10% 12% 13%;
  border: 1px solid var(--ink);
  background: linear-gradient(135deg, rgba(214, 95, 54, 0.12), transparent 44%), repeating-linear-gradient(0deg, transparent 0 3.2rem, rgba(24, 33, 29, 0.08) 3.2rem calc(3.2rem + 1px));
  transform: skewY(-6deg);
}

.drawing-column { position: absolute; bottom: 17%; width: 17%; border: 1px solid var(--ink); background: var(--paper); }
.drawing-column::before { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(90deg, transparent 0 1.8rem, rgba(24, 33, 29, 0.09) 1.8rem calc(1.8rem + 1px)); }
.drawing-column-a { left: 20%; height: 34%; }
.drawing-column-b { left: 42%; height: 52%; background: var(--accent); }
.drawing-column-c { left: 64%; height: 70%; }
.drawing-axis { position: absolute; display: block; background: var(--ink); }
.drawing-axis-x { left: 9%; right: 8%; bottom: 12%; height: 1px; }
.drawing-axis-y { top: 12%; bottom: 8%; left: 13%; width: 1px; }

.hero-rule { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 1.25rem; border-inline: 1px solid var(--line); }
.hero-rule span { border-right: 1px solid var(--line); }

.home-block { padding: clamp(5rem, 9vw, 9rem) 0; border-bottom: 1px solid var(--line); }

.block-heading { margin-bottom: clamp(3rem, 5vw, 5.5rem); }
.block-heading h2, .inner-title h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  line-height: 1.05;
  font-weight: 620;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.block-heading h2 a:hover { color: var(--accent); }

.about-heading { display: grid; grid-template-columns: 1fr 2fr; }
.about-heading .section-index { align-self: end; margin: 0 0 0.8rem; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.about-label {
  position: relative;
  min-height: 20rem;
  border-right: 1px solid var(--ink);
  background: var(--accent);
}
.about-label span { position: absolute; width: 44%; aspect-ratio: 1; left: 28%; top: 26%; border: 1px solid var(--ink); transform: rotate(45deg); }
.about-label i { position: absolute; width: 1px; height: 100%; left: 50%; background: var(--ink); }

.about-copy { padding: clamp(2.5rem, 5vw, 5rem); }
.about-copy p { max-width: 52rem; color: var(--muted); }
.about-copy .about-primary { margin-bottom: 1.5rem; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 2.3rem); line-height: 1.5; }

.inline-link, .card-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}
.inline-link span, .card-link span { color: var(--accent); }

.news-heading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: 4rem; }
.heading-side { align-self: end; padding-left: 2rem; border-left: 1px solid var(--line); }
.heading-side p { color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.news-card { min-width: 0; grid-column: span 4; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-card:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.news-card:nth-child(4), .news-card:nth-child(6) { border-right: 0; }

.media-slot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #c9cec6, #eef0e8); }
.media-slot img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.media-slot:hover img { transform: scale(1.025); }
.media-slot img.is-broken { display: none; }
.media-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37, 54, 47, 0.92), rgba(93, 111, 101, 0.64) 58%, rgba(214, 95, 54, 0.62)); }
.media-fallback::before { position: absolute; inset: 14%; content: ""; border: 1px solid rgba(251, 250, 245, 0.55); transform: skewY(-5deg); }
.media-fallback i { position: absolute; display: block; background: rgba(251, 250, 245, 0.72); }
.media-fallback i:first-child { width: 1px; inset: 8% auto 8% 31%; }
.media-fallback i:last-child { height: 1px; inset: 62% 8% auto; }

.news-card-copy { position: relative; padding: 1.6rem 1.5rem 2rem; }
.news-card:nth-child(1) .news-card-copy { padding: 2.2rem 2rem 2.7rem; }
.news-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.08em; }
.news-meta span { color: var(--accent); font-weight: 700; }
.news-card h3 { margin-bottom: 0.8rem; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.35; }
.news-card:nth-child(1) h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.news-card h3 a:hover { color: var(--accent); }
.news-card-copy > p:not(.news-meta) { color: var(--muted); }
.card-link { margin-top: 0.5rem; font-size: 0.88rem; }

.inner-main { min-height: 60vh; }
.inner-heading { padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.inner-heading-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); gap: 4rem; }
.breadcrumbs { margin-bottom: 2.5rem; color: var(--muted); font-size: 0.84rem; }
.breadcrumbs a:hover { color: var(--accent); }
.inner-title p { max-width: 46rem; margin: 1.5rem 0 0; color: var(--muted); }

.archive-list { padding-block: clamp(3rem, 7vw, 7rem); }
.archive-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 4rem minmax(14rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.archive-row:last-of-type { border-bottom: 1px solid var(--line); }
.archive-index { align-self: start; color: var(--accent); font-size: 0.78rem; font-weight: 700; }
.archive-copy { min-width: 0; }
.archive-copy time { display: block; margin-bottom: 0.6rem; color: var(--muted); font-size: 0.78rem; }
.archive-copy h2 { margin-bottom: 0.8rem; font-size: clamp(1.45rem, 2.5vw, 2.45rem); line-height: 1.25; }
.archive-copy h2 a:hover { color: var(--accent); }
.archive-copy p { max-width: 46rem; color: var(--muted); }

.pagination { margin-top: 3rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span { min-width: 2.8rem; min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.4rem 0.8rem; border: 1px solid var(--line); background: var(--surface); }
.pagination .active, .pagination a:hover { color: var(--surface); border-color: var(--deep); background: var(--deep); }

.single-layout { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: 4rem; padding-block: clamp(4rem, 8vw, 8rem); }
.single-rail { position: relative; min-height: 28rem; border: 1px solid var(--line); background: var(--surface); }
.single-rail span { position: absolute; inset: 13%; border: 1px solid var(--ink); }
.single-rail i { position: absolute; display: block; background: var(--accent); }
.single-rail i:nth-child(2) { width: 1px; inset: 7% auto 7% 38%; }
.single-rail i:nth-child(3) { height: 1px; inset: 64% 7% auto; }

.prose { min-width: 0; color: #2f3934; font-size: 1.06rem; line-height: 1.9; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { color: var(--ink); line-height: 1.35; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.7rem; }
.prose h3 { margin: 2rem 0 0.8rem; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.3rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.prose img { width: 100%; height: auto; margin: 2rem 0; }
.prose table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 0.65rem; border: 1px solid var(--line); }
.prose pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--deep); color: var(--surface); }

.article-shell { padding-block: 2rem clamp(5rem, 9vw, 9rem); }
.article-shell > .breadcrumbs { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.article-heading { max-width: 64rem; padding: clamp(3rem, 7vw, 7rem) 0 clamp(2.5rem, 5vw, 5rem); }
.article-heading h1 { margin-bottom: 1.7rem; font-size: clamp(2.7rem, 6vw, 6rem); line-height: 1.08; font-weight: 620; letter-spacing: -0.052em; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; color: var(--muted); font-size: 0.86rem; }
.article-media { width: min(100%, 72rem); margin-left: auto; }
.article-layout { display: grid; grid-template-columns: 10rem minmax(0, 48rem); gap: clamp(2rem, 5vw, 5rem); justify-content: center; padding-block: clamp(3rem, 7vw, 7rem); }
.article-rail { display: flex; flex-direction: column; gap: 1rem; color: var(--muted); font-size: 0.74rem; overflow-wrap: anywhere; }
.article-rail > span { color: var(--accent); font-size: 2.4rem; font-weight: 620; line-height: 1; }
.article-rail i { width: 1px; height: 8rem; display: block; background: var(--line); }

.article-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--ink); }
.article-neighbors > a, .article-neighbors > span { position: relative; min-width: 0; min-height: 9rem; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 4rem 1.5rem 1.5rem; }
.article-neighbors > :first-child { border-right: 1px solid var(--line); }
.article-neighbors small { margin-bottom: 0.5rem; color: var(--muted); }
.article-neighbors strong { overflow-wrap: anywhere; }
.article-neighbors a > span { position: absolute; right: 1.5rem; color: var(--accent); font-size: 1.5rem; }
.article-neighbors a:hover { background: var(--surface); }

.site-footer { color: #e8ebe5; background: var(--deep); }
.footer-lead { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: end; padding: clamp(4rem, 7vw, 7rem) 0 3rem; border-bottom: 1px solid rgba(232, 235, 229, 0.24); }
.footer-brand { font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 620; line-height: 1.05; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.footer-lead p { max-width: 43rem; margin: 0; color: #bbc3bd; }
.footer-groups { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 2rem; padding: 3.5rem 0; }
.footer-group { min-width: 0; }
.footer-group h2 { margin-bottom: 1.2rem; color: #9ca9a1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; }
.footer-group ul { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.footer-group li { max-width: 100%; overflow-wrap: anywhere; }
.footer-group a:hover { color: var(--accent-soft); }
.footer-links ul { flex-direction: row; flex-wrap: wrap; gap: 0.55rem 1.25rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid rgba(232, 235, 229, 0.24); color: #aeb8b2; font-size: 0.78rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 64rem) {
  :root { --shell: min(100% - 3rem, 72rem); }
  .header-shell { grid-template-columns: minmax(12rem, 1fr) auto; }
  .site-nav a { min-width: 7.2rem; }
  .hero-shell { min-height: 36rem; grid-template-columns: minmax(0, 3fr) minmax(19rem, 2fr); }
  .news-card { grid-column: span 6; }
  .news-card:nth-child(1) { grid-column: span 12; grid-row: auto; }
  .news-card:nth-child(3), .news-card:nth-child(5) { border-right: 0; }
  .news-card:nth-child(4), .news-card:nth-child(6) { border-right: 1px solid var(--line); }
  .archive-row { grid-template-columns: 3rem minmax(12rem, 18rem) minmax(0, 1fr); gap: 1.5rem; }
  .footer-groups { grid-template-columns: repeat(3, 1fr); }
  .footer-links { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(232, 235, 229, 0.2); }
}

@media (max-width: 48rem) {
  :root { --shell: calc(100% - 2rem); }
  body::before { display: none; }
  .header-shell { min-height: 4.8rem; display: flex; justify-content: space-between; align-items: stretch; }
  .wordmark { max-width: calc(100% - 7.5rem); padding-right: 1rem; border-right: 0; }
  .wordmark-symbol { width: 2.1rem; height: 2.1rem; }
  .nav-toggle {
    min-width: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.5rem;
    border: 0;
    border-left: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
  }
  .nav-toggle-lines { width: 1.25rem; display: grid; gap: 0.3rem; }
  .nav-toggle-lines i { width: 100%; height: 1px; display: block; background: currentColor; transition: transform 180ms ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child { transform: translateY(0.2rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child { transform: translateY(-0.2rem) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 0 1.5rem 2.5rem rgba(24, 33, 29, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 4.2rem; justify-content: flex-start; padding: 0 1rem; border-top: 1px solid var(--line); border-right: 0; }
  .hero-shell { min-height: auto; display: block; border-inline: 0; }
  .hero-copy { padding: 4.5rem 0 3rem; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(2.1rem, 10vw, 2.5rem); line-height: 1.05; }
  .hero-drawing { min-height: 18rem; border: 1px solid var(--line); }
  .hero-rule { display: none; }
  .home-block { padding: 4.5rem 0; }
  .about-heading, .news-heading, .inner-heading-grid, .single-layout, .footer-lead { grid-template-columns: 1fr; gap: 2rem; }
  .about-heading .section-index { margin-bottom: 1.6rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-label { min-height: 10rem; border-right: 0; border-bottom: 1px solid var(--ink); }
  .about-label span { width: 4.5rem; left: calc(50% - 2.25rem); top: calc(50% - 2.25rem); }
  .about-copy { padding: 2rem 0; }
  .heading-side { padding: 1.5rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .news-grid { display: block; }
  .news-card { border-right: 0 !important; }
  .news-card-copy, .news-card:nth-child(1) .news-card-copy { padding: 1.4rem 0 2.5rem; }
  .news-card:nth-child(1) h3 { font-size: 1.55rem; }
  .inner-heading { padding: 3.5rem 0 3rem; }
  .inner-title h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .archive-row { grid-template-columns: 2.5rem minmax(0, 1fr); align-items: start; padding: 1.5rem 0 2.5rem; }
  .archive-index { grid-row: 1 / span 2; }
  .archive-media { grid-column: 2; }
  .archive-copy { grid-column: 2; }
  .single-layout { padding-block: 3.5rem; }
  .single-rail { min-height: 9rem; }
  .article-shell { padding-top: 0; }
  .article-heading { padding: 3rem 0; }
  .article-heading h1 { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .article-media { width: 100%; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .article-rail { flex-direction: row; align-items: center; }
  .article-rail i { width: 5rem; height: 1px; }
  .article-neighbors { grid-template-columns: 1fr; }
  .article-neighbors > :first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-lead { align-items: start; }
  .footer-groups { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.7rem; }
}

@media (max-width: 30rem) {
  .hero-actions { display: grid; }
  .action-link { width: 100%; }
  .footer-groups { grid-template-columns: 1fr; }
  .footer-links { grid-column: auto; }
  .article-neighbors > a, .article-neighbors > span { padding-right: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
