:root {
  --ink: #1b2a41;
  --ink-2: #12202f;
  --brass: #c98a3c;
  --brass-2: #8a6528;
  --paper: #f4efe6;
  --line: rgba(201, 138, 60, 0.38);
  --serif: "Crimson Pro", Georgia, "Songti SC", "SimSun", serif;
  --sans: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "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(--ink-2);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.01em;
}

[id] {
  scroll-margin-top: 92px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- 顶部 / 导航 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  padding: 0 14px 8px;
  background: rgba(18, 32, 47, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.ticker {
  flex: 0 0 100%;
  margin: 0;
  padding: 7px 0 1px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.26em;
  color: var(--brass);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandmark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid rgba(201, 138, 60, 0.55);
  border-radius: 4px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.brandmark:hover {
  background: var(--brass);
  color: var(--ink-2);
}

.brandmark .mark-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.jump {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.jump p {
  display: flex;
  gap: 2px;
  margin: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jump p::-webkit-scrollbar {
  display: none;
}

.jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(244, 239, 230, 0.86);
  transition: color 0.2s ease, background 0.2s ease;
}

.jump a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.72;
  flex: 0 0 auto;
}

.jump a:hover {
  color: var(--brass);
  background: rgba(201, 138, 60, 0.13);
}

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

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  color: var(--paper);
  background: radial-gradient(
    120% 95% at 10% 8%,
    #26405a 0%,
    #1b2a41 46%,
    #0e1a26 100%
  );
}

.hero-ghost {
  position: absolute;
  right: -1vw;
  bottom: -8vh;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(160px, 33vw, 430px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(201, 138, 60, 0.16);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero-art {
  position: relative;
  z-index: 1;
  align-self: stretch;
  height: 100%;
  min-height: 48svh;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(85% 75% at 28% 22%, #2d4a68, #16283a 62%, #0d1824);
}

.hero-art.is-blank::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(201, 138, 60, 0.1) 0 1px,
    rgba(201, 138, 60, 0) 1px 26px
  );
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    100deg,
    rgba(14, 26, 38, 0.55) 0%,
    rgba(14, 26, 38, 0) 45%,
    rgba(14, 26, 38, 0.6) 100%
  );
}

.art-ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(58%, 270px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(201, 138, 60, 0.55);
  border-radius: 50%;
  pointer-events: none;
}

.art-line {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 15%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    rgba(201, 138, 60, 0) 0%,
    rgba(201, 138, 60, 0.6) 50%,
    rgba(201, 138, 60, 0) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 40px clamp(20px, 5vw, 64px);
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 58px);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lede {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(244, 239, 230, 0.82);
}

/* ---------- 正文 ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(170px, 232px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) 20px clamp(56px, 8vw, 104px);
}

.rail {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--brass);
}

.rail small {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--brass-2);
}

.rail h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.rail-list {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(27, 42, 65, 0.13);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail-list a:hover,
.rail-list a.on {
  color: var(--brass-2);
  padding-left: 6px;
}

.story-body {
  min-width: 0;
  max-width: 71ch;
  font-size: 17px;
}

.story-body section {
  padding-bottom: clamp(28px, 4vw, 46px);
  margin-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 2px solid rgba(201, 138, 60, 0.36);
  border-radius: 4px;
}

.story-body section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.story-body h2 {
  margin: 0 0 0.7em;
  font-size: clamp(25px, 3.4vw, 34px);
  color: var(--ink);
  text-wrap: balance;
}

.story-body h3 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(20px, 2.4vw, 24px);
}

.story-body small {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--brass-2);
}

.story-body p {
  margin: 0 0 1em;
}

.story-body a {
  color: var(--brass-2);
  text-decoration-color: rgba(138, 101, 40, 0.45);
  text-underline-offset: 3px;
}

.story-body ul,
.story-body ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.story-body li {
  margin-bottom: 0.45em;
}

.story-body figure {
  margin: 1.4em 0;
}

.story-body img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.story-body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--brass);
  color: #33455c;
}

.story-body table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 16px;
}

.story-body th,
.story-body td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(27, 42, 65, 0.18);
  text-align: left;
}

.story-body pre {
  margin: 1.2em 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 4px;
  background: rgba(27, 42, 65, 0.07);
}

/* 进场动效 */

.js .story-body section {
  opacity: 0;
  transform: translateY(22px);
}

.js .story-body section.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@supports (animation-timeline: view()) {
  .hero-ghost {
    animation: ghost-drift linear both;
    animation-timeline: view();
    animation-range: cover;
  }

  @keyframes ghost-drift {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(110px);
    }
  }
}

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

.site-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
  padding: clamp(40px, 6vw, 76px) 20px 30px;
  background: var(--ink-2);
  border-top: 2px solid var(--brass);
}

.foot-brand {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 118px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: rgba(244, 239, 230, 0.16);
  overflow-wrap: anywhere;
}

.foot-col {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.foot-col small {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--brass);
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 15px;
  text-decoration: none;
  color: rgba(244, 239, 230, 0.8);
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-col a:hover {
  color: var(--brass);
  border-color: var(--brass);
}

.foot-col .mark-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-top: 4px;
}

.foot-copy {
  grid-column: 1 / 3;
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.62);
}

.foot-jump {
  grid-column: 4 / 5;
  justify-self: end;
  margin: 14px 0 0;
}

.foot-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(201, 138, 60, 0.6);
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  color: var(--brass);
  transition: background 0.2s ease, color 0.2s ease;
}

.foot-jump a:hover {
  background: var(--brass);
  color: var(--ink-2);
}

/* ---------- 窄屏 ---------- */

@media (max-width: 880px) {
  html {
    scroll-behavior: smooth;
  }

  [id] {
    scroll-margin-top: 84px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 100svh;
  }

  .hero-ghost {
    font-size: clamp(130px, 42vw, 240px);
    bottom: -4vh;
  }

  .hero-art {
    min-height: 33svh;
    max-height: 40svh;
  }

  .hero-copy {
    padding: 26px 20px 42px;
  }

  .lede {
    font-size: 16px;
  }

  .story {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .rail {
    position: static;
    padding: 10px 0 4px;
    border-left: 0;
    border-top: 3px solid var(--brass);
  }

  .rail h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 16px;
  }

  .rail-list a {
    min-height: 40px;
    padding: 8px 0;
    border-bottom: 0;
  }

  .site-foot {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

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

  .foot-jump {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .jump a {
    padding: 0 8px;
    font-size: 14px;
  }

  .jump a::before {
    margin-right: 5px;
  }
}

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

  .js .story-body section {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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