﻿:root {
  --paper: #f7f4ea;
  --paper-2: #efeade;
  --card: #fffdf7;
  --ink: #17211b;
  --ink-2: #3f4c43;
  --muted: #6b746b;
  --green: #1e4632;
  --green-2: #143023;
  --lime: #cadd4a;
  --rule: #cfc9b6;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

section[id] {
  scroll-margin-top: 96px;
}

h1,
h2,
h3 {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-weight: 700;
}

/* 报头 */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 234, 0.95);
  border-bottom: 3px double var(--green);
  backdrop-filter: blur(8px);
}

.masthead.is-scrolled {
  box-shadow: 0 8px 22px rgba(23, 33, 27, 0.07);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-domain {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.masthead-issue {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.masthead-nav a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.masthead-nav a:hover {
  border-bottom-color: var(--green);
  color: var(--green);
}

/* 首屏 */

.hero {
  border-bottom: 1px solid var(--rule);
}

.front-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  padding-top: 70px;
  padding-bottom: 58px;
}

.issue {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

.hero-main h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.deck {
  margin-top: 24px;
  max-width: 33em;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 700;
}

.btn-solid {
  background: var(--green);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--green-2);
}

.btn-line {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-line:hover {
  background: rgba(30, 70, 50, 0.06);
}

.contents {
  align-self: start;
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}

.contents-head {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

.contents a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule);
}

.contents-no {
  grid-row: span 2;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 15px;
  color: var(--green);
}

.contents-name {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.contents-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.contents a:hover .contents-name {
  color: var(--green);
}

/* 拼版正文 */

.front-body {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.story {
  padding: 66px 52px 72px 0;
}

.sections {
  padding: 66px 0 72px 52px;
  border-left: 1px solid var(--rule);
}

.rubric {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

.story h2,
.sections h2,
.notes h2,
.letters h2,
.afterword h2,
.install h2,
.screens-head h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  line-height: 1.3;
}

.story > p {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--ink-2);
}

.story > p.rubric {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.8;
}

.story > p.story-open {
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
}

.story-open::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 3.6em;
  line-height: 0.82;
  color: var(--green);
}

.story blockquote {
  margin: 26px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--lime);
  background: var(--paper-2);
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 16.5px;
  line-height: 1.85;
}

.story-aside {
  margin-top: 30px;
  padding: 18px 22px 20px;
  background: var(--paper-2);
  border-top: 2px solid var(--green);
}

.aside-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
}

.story-aside ul {
  margin-top: 10px;
}

.story-aside li {
  position: relative;
  padding: 4px 0 4px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.story-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  background: var(--lime);
}

.side-lead {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

.section-list {
  margin-top: 30px;
  border-top: 2px solid var(--green);
}

.section-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: start;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.section-no {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
}

.section-index h3 {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.35;
}

.section-row p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

.section-page {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* 图版 */

.screens {
  padding: 68px 0 72px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.screens-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: end;
}

.screens-head h2 {
  margin-top: 0;
}

.screens-head p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.plate-row {
  display: flex;
  gap: 22px;
  margin-top: 34px;
}

.plate {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 26px rgba(23, 33, 27, 0.08);
}

.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 13 / 20;
  object-fit: cover;
  background: #10160f;
}

/* 编辑手记 */

.notes {
  padding: 70px 0 76px;
  background: var(--green);
  color: #eef1e3;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: start;
}

.notes .rubric {
  color: var(--lime);
}

.notes-head > p:last-child {
  margin-top: 16px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(238, 241, 227, 0.72);
}

.note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  border-top: 1px solid rgba(238, 241, 227, 0.3);
}

.note-list li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(238, 241, 227, 0.22);
}

.note-no {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: var(--lime);
}

.note-list h3 {
  margin-top: 6px;
  font-size: 18px;
}

.note-list p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(238, 241, 227, 0.7);
}

.notes-foot {
  grid-column: 2;
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--lime);
  font-size: 12.5px;
  color: rgba(238, 241, 227, 0.7);
}

/* 问答与编后记 */

.front-close {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.letters {
  padding: 66px 52px 72px 0;
}

.afterword {
  padding: 66px 0 72px 52px;
  border-left: 1px solid var(--rule);
}

.letter-list {
  margin-top: 28px;
  border-top: 2px solid var(--green);
}

.letter-list details {
  border-bottom: 1px solid var(--rule);
}

.letter-list summary {
  padding: 16px 0;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
}

.letter-list details p {
  padding: 0 0 18px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}

.afterword > p:not(.rubric) {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
}

.afterword-top {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--green);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

/* 安装 */

.install {
  padding: 68px 0 76px;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}

.install-head {
  max-width: 44em;
}

.install-head h2 {
  margin-top: 12px;
}

.install-head > p:last-child {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.install-row {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}

.install-row:not(:has(.install-col:not([hidden]))) {
  margin-top: 0;
}

.install-col {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 16px;
  border-top: 2px solid var(--green);
}

.install-col:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.install-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
}

.install-name {
  margin-top: 8px;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

.install-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.install-go {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.install-go::after {
  content: " →";
}

.install-col:hover .install-name {
  color: var(--green);
}

/* 报尾 */

.colophon {
  background: var(--green-2);
  color: #eef1e3;
}

.colophon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 20px;
}

.colophon-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.colophon-brand .brand-name {
  font-size: 17px;
  color: var(--paper);
}

.colophon-brand .brand-domain {
  font-size: 11px;
  color: rgba(247, 244, 234, 0.6);
}

.colophon-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(247, 244, 234, 0.75);
}

.colophon-nav a:hover {
  color: var(--lime);
}

.colophon-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(247, 244, 234, 0.18);
  font-size: 12px;
  color: rgba(247, 244, 234, 0.6);
}

/* 404 */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

.error-inner {
  max-width: 620px;
}

.error-code {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  font-weight: 700;
  color: var(--green);
}

.error-inner h1 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.error-inner p:not(.error-code) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.error-btn:not([hidden]) {
  display: inline-flex;
}

.error-btn {
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 26px;
  padding: 0 24px;
  background: var(--green);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

/* 响应式 */

@media (max-width: 1040px) {
  .front-hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .contents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin-top: 40px;
    padding-left: 0;
    padding-top: 0;
    border-left: 0;
    border-top: 3px solid var(--green);
  }

  .contents-head {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-bottom: 1px solid var(--rule);
  }

  .front-body,
  .front-close {
    grid-template-columns: 1fr;
  }

  .story,
  .letters {
    padding-right: 0;
  }

  .sections,
  .afterword {
    padding-left: 0;
    border-left: 0;
  }

  .sections {
    margin-top: 8px;
    padding-top: 52px;
    border-top: 1px solid var(--rule);
  }

  .afterword {
    padding-top: 48px;
    border-top: 1px solid var(--rule);
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .notes-foot {
    grid-column: 1;
  }

  .screens-head {
    grid-template-columns: 1fr;
  }

  .install-row {
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .masthead-inner {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .masthead-issue {
    display: none;
  }

  .masthead-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  section[id] {
    scroll-margin-top: 118px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero-main h1 {
    font-size: 2.05rem;
    line-height: 1.24;
  }

  .deck {
    font-size: 14.5px;
    line-height: 1.95;
  }

  .btn-solid,
  .btn-line {
    height: 46px;
    padding: 0 20px;
  }

  .contents {
    grid-template-columns: 1fr;
    column-gap: 0;
    margin-top: 34px;
  }

  .story,
  .letters {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .sections,
  .afterword {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .screens {
    padding: 52px 0 56px;
  }

  .plate-row {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 26px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .plate {
    flex: 0 0 58vw;
    max-width: 250px;
  }

  .section-row {
    grid-template-columns: 92px minmax(0, 1fr) 34px;
    gap: 14px;
    padding: 18px 0 20px;
  }

  .section-row p {
    font-size: 13px;
  }

  .notes {
    padding: 52px 0 56px;
  }

  .note-list {
    grid-template-columns: 1fr;
  }

  .notes-foot {
    margin-top: 18px;
  }

  .install {
    padding: 52px 0 56px;
  }

  .install-row {
    flex-direction: column;
    gap: 26px;
    margin-top: 28px;
  }

  .colophon-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .colophon-nav {
    gap: 14px;
  }

  .error-main {
    padding: 60px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
