@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* 纸面哑光 · 高对比 · 阅读优先 */
:root {
  --paper: #fdfbf7;
  --mist: #f5f5f5;
  --ink: #1a1a1a;
  --line: #e0e0e0;
  --fog: #6d6a64;
  --glass: rgba(255, 255, 255, 0.58);
  --serif: "Newsreader", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Roboto", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  letter-spacing: 0.012em;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 页头 */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.ticker {
  background: var(--ink);
  color: var(--paper);
}

.ticker p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.09em;
}

.brandrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  object-fit: cover;
  background: var(--mist);
}

.pillnav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.pillnav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pillnav li {
  animation: rise 0.16s linear both;
}

.pillnav li:nth-child(1) { animation-delay: 0s; }
.pillnav li:nth-child(2) { animation-delay: 0.03s; }
.pillnav li:nth-child(3) { animation-delay: 0.06s; }
.pillnav li:nth-child(4) { animation-delay: 0.09s; }
.pillnav li:nth-child(5) { animation-delay: 0.12s; }
.pillnav li:nth-child(6) { animation-delay: 0.15s; }
.pillnav li:nth-child(7) { animation-delay: 0.18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

.pillnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.pillnav a:hover,
.pillnav a:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pillnav a[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 主视觉 */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
  min-height: 70vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(#d9d5cc 1px, transparent 1px);
  background-size: 18px 18px;
}

.hero-media {
  grid-column: 1;
  grid-row: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(6px);
  aspect-ratio: 4 / 3;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  background: repeating-linear-gradient(0deg, transparent 0 27px, #e6e2d9 27px 28px);
}

.hero-blank span { border: 1px dashed #dcd7cc; margin: 12px; border-radius: 10px; }

.hero-text {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  text-align: right;
}

.hero-text h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fog);
}

/* 正文区 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  align-items: start;
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.content-col { min-width: 0; }

.paper { display: block; }

.paper > section {
  scroll-margin-top: 28px;
  padding: 26px 26px 30px;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(6px);
}

.paper > section + section { border-top: 1px solid var(--line); }

.paper h2 {
  padding-left: 14px;
  margin: 0 0 14px;
  border-left: 4px solid var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.paper h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
}

.paper h2 span,
.paper h3 span { display: inline; }

.paper p { margin: 0 0 18px; }

.paper ul,
.paper ol { margin: 0 0 18px; padding-left: 22px; }

.paper li { margin-bottom: 8px; }

.paper a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.paper a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.paper blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--fog);
  background: var(--mist);
  border-radius: 0 10px 10px 0;
  color: #3a3833;
}

.paper img {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 6px 0 18px;
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

.paper th,
.paper td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.paper th { background: var(--mist); font-weight: 700; }

.paper code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

.paper pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
}

.paper pre code { border: 0; padding: 0; background: none; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 20px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.rail-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rail-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.rail-list li { border-bottom: 1px dashed var(--line); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.rail-list a:hover { padding-left: 5px; text-decoration: underline; text-underline-offset: 3px; }

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
}

.totop:hover { background: var(--ink); color: var(--paper); }

/* 页脚 */
footer {
  border-top: 1px solid var(--ink);
  background: var(--mist);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 36px;
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.foot-cols dd { margin: 0; }

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
}

.foot-cols dd a:hover { text-decoration: underline; text-underline-offset: 4px; }

.foot-brand {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.foot-note { margin-top: 8px !important; font-size: 16px; line-height: 1.65; color: var(--fog); }

.sub-block h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sub-form { display: flex; flex-wrap: wrap; gap: 8px; }

.sub-form input {
  flex: 1 1 130px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
}

.sub-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

.sub-form button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.sub-form button:hover { background: var(--paper); color: var(--ink); }

.foot-base {
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot-base p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fog);
}

/* 窄屏 */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 32px 16px 36px;
  }
  .hero-text {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
  }
  .hero-media { grid-column: 1; grid-row: 2; }
  .lede { max-width: none; }
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 16px 48px;
  }
  .rail { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 16px 24px; }
  .paper > section { padding: 18px 16px 22px; }
  .ticker p, .brandrow, .pillnav { padding-left: 16px; padding-right: 16px; }
  .brandrow { padding-top: 16px; }
}

@media (max-width: 520px) {
  .foot-cols { grid-template-columns: 1fr; }
  .brand { font-size: 22px; }
  .paper h2 { font-size: 24px; }
  .paper h3 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
