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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --gray: #d9d9d9;
  --gray-2: #8a8a8a;
  --gap: 1rem;
  --edge: 20px;
  --rail-top: 170px;
  --display: "Anton", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Epilogue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0 0 16px;
}

/* ---------- 顶部：品牌独占一行，菜单行在下 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  padding: 12px var(--edge) 12px;
}

.brandline {
  display: block;
}

.brand {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(26px, 5.5vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
  padding: 2px 0;
}

.menuline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 10px;
}

.menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.16s ease, color 0.16s ease;
}

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

.find {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  min-width: 210px;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 16px;
  min-height: 44px;
}

.find input:focus {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.find button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 0 18px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.find button:hover,
.find button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(40px, 7vw, 88px) var(--edge) clamp(40px, 6vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

.hero-copy {
  grid-column: 1 / span 6;
  min-width: 0;
}

.kicker {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 8.6vw, 108px);
  line-height: 1.01;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  color: var(--paper);
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: #e8e8e8;
  max-width: 34ch;
  margin: 0;
}

.hero-media {
  grid-column: 7 / span 6;
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #141414 0 14px, #202020 14px 28px);
}

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

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-5deg);
  max-width: 70%;
}

/* ---------- 正文 + 右侧栏 ---------- */

.shell {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--edge) clamp(56px, 8vw, 96px);
}

.prose {
  grid-column: 1 / span 8;
  min-width: 0;
}

.rail {
  grid-column: 9 / span 4;
  position: sticky;
  top: var(--rail-top);
  align-self: start;
  border: 2px solid var(--line);
  border-bottom-width: 10px;
  border-radius: 28px;
  background: var(--paper);
  padding: 22px;
}

.rail small {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gray-2);
}

.rail h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.rail-links {
  display: flex;
  flex-direction: column;
  margin: 0 0 6px;
}

.rail-links a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  transition: padding-left 0.16s ease;
}

.rail-links a:last-child {
  border-bottom: 0;
}

.rail-links a:hover,
.rail-links a:focus-visible {
  padding-left: 8px;
  text-decoration: underline;
}

.to-top {
  margin: 16px 0 0;
}

.to-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

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

/* ---------- 正文排版（作用于 page.content） ---------- */

.prose article {
  scroll-margin-top: var(--rail-top);
  border-top: 3px solid var(--line);
  padding-top: 20px;
}

.prose article + article {
  margin-top: clamp(44px, 6vw, 72px);
}

.prose small {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gray-2);
  margin-bottom: 6px;
}

.prose h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.prose h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 32px 0 12px;
}

.prose p {
  font-size: 18px;
  line-height: 1.75;
  max-width: 66ch;
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.75;
  max-width: 66ch;
}

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

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose blockquote {
  margin: 0 0 18px;
  padding: 6px 0 6px 20px;
  border-left: 5px solid var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.prose figure {
  margin: 0 0 20px;
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.prose strong {
  font-weight: 700;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin: 0 0 20px;
}

.prose th,
.prose td {
  border: 1.5px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  line-height: 1.6;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--line);
  padding: clamp(40px, 6vw, 64px) var(--edge) 28px;
}

.foot-brand {
  font-family: var(--display);
  font-size: clamp(28px, 4.6vw, 50px);
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 4px 20px;
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
  transition: border-color 0.16s ease;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  border-bottom-color: var(--paper);
}

.foot-sub {
  display: flex;
  align-items: stretch;
  max-width: 340px;
  margin: 0;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
  overflow: hidden;
}

.foot-sub input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  padding: 10px 16px;
  min-height: 44px;
}

.foot-sub input::placeholder {
  color: #9a9a9a;
}

.foot-sub button {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 0 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.foot-sub button:hover,
.foot-sub button:focus-visible {
  background: var(--gray);
}

.foot-copy {
  grid-column: 1 / -1;
  display: block;
  border-top: 1px solid #333333;
  padding-top: 16px;
  font-size: 16px;
  color: #b9b9b9;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- 入场动效 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */

@media (max-width: 1024px) {
  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-media {
    grid-column: 8 / span 5;
  }

  .prose {
    grid-column: 1 / span 7;
  }

  .rail {
    grid-column: 8 / span 5;
  }
}

@media (max-width: 860px) {
  :root {
    --rail-top: 200px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-top: 36px;
  }

  .hero-copy,
  .hero-media {
    grid-column: 1 / -1;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 64px);
  }

  .lede {
    max-width: 46ch;
  }

  .hero-media {
    min-height: 240px;
    border-radius: 24px;
  }

  .hero-img {
    border-radius: 24px;
  }

  .shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prose,
  .rail {
    grid-column: 1 / -1;
  }

  .rail {
    position: static;
    order: 2;
  }

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

  .foot-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --edge: 16px;
    --rail-top: 230px;
  }

  .find {
    min-width: 0;
    width: 100%;
  }

  .menuline {
    gap: 10px;
  }

  .menu p {
    gap: 6px;
  }

  .menu a {
    padding: 9px 13px;
    font-size: 16px;
  }

  .prose p,
  .prose ul,
  .prose ol,
  .prose blockquote {
    font-size: 17px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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