@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --ink: #000000;
  --panel: #121212;
  --mid: #0b1626;
  --line: #1b2942;
  --line-soft: #142033;
  --fg: #e9edf4;
  --dim: #9aa7b8;
  --neon: #7fb0ff;
  --gold: #d9b471;
  --serif: "Playfair Display", Georgia, "Songti SC", "SimSun", serif;
  --body: "Source Serif 4", Georgia, "Songti SC", "SimSun", serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  padding-bottom: 5.5rem;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 5rem;
}

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

a {
  color: var(--neon);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* ---- 角落品牌图标 ---- */
.mark {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mark:hover {
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(127, 176, 255, 0.28);
}

/* ---- 首屏 ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 5.5rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 50% 0%, #101c2e 0%, #05080e 46%, #000000 78%);
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 62rem;
  text-align: center;
}

.ghost {
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.6rem, 19vw, 14rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: #0e1a2b;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.kicker {
  margin: 0;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--neon);
}

.hero h1 {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.3rem, 8.6vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(127, 176, 255, 0.22);
}

.rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 1.7rem auto 0;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(127, 176, 255, 0.55);
}

.hero-fig {
  margin: 2.6rem auto 0;
  max-width: 54rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
}

/* ---- 两栏主体（侧栏在左） ---- */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  padding: 3rem 0 4rem;
}

.rail small {
  display: block;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--neon);
}

.rail h2 {
  margin: 0.35rem 0 1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.1rem;
  font-size: 1rem;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.7rem;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  border-left-color: var(--neon);
  background: #070d16;
}

/* ---- 正文 ---- */
.stage {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 3.4rem 0 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--line);
}

.prose h2::after {
  content: "";
  display: block;
}

.prose small {
  display: block;
  margin-top: 3.2rem;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--gold);
}

.prose small + h2 {
  margin-top: 0.4rem;
}

.prose h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.3;
  color: #fff;
  margin: 2rem 0 0.7rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: #dde4ee;
  line-height: 1.85;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 1.3rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #dde4ee;
}

.prose li::marker {
  color: var(--neon);
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.3rem 0 0.3rem 1.1rem;
  border-left: 3px solid var(--neon);
  color: #c7d2e2;
  font-style: italic;
}

.prose section {
  padding-top: 0.05rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.prose section:last-child {
  border-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 1rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.prose th {
  color: var(--neon);
  font-weight: 600;
}

/* ---- 页脚 ---- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 3rem 0 7rem;
}

.giant {
  margin: 0 0 2.6rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 12.5vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: #16233a;
  white-space: nowrap;
  overflow: hidden;
}

.fcols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.8rem;
}

.fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fcol li a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.2rem 0;
  color: var(--dim);
  font-size: 1rem;
  text-decoration: none;
}

.fcol li a:hover,
.fcol li a:focus-visible {
  color: #fff;
  text-shadow: 0 0 10px rgba(127, 176, 255, 0.45);
}

address {
  font-style: normal;
  color: var(--dim);
  line-height: 1.8;
}

.fname {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.fkw {
  display: block;
  font-size: 0.95rem;
  color: var(--dim);
}

.fbottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--dim);
  font-size: 0.95rem;
}

.fbottom p {
  margin: 0;
}

/* ---- 底部固定导航 ---- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.dock ol {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.1rem;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock ol::-webkit-scrollbar {
  display: none;
}

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.dock a:hover,
.dock a:focus-visible,
.dock a[aria-current="true"] {
  color: #fff;
  border-bottom-color: var(--neon);
  text-shadow: 0 0 10px rgba(127, 176, 255, 0.5);
}

/* ---- 滚动显现 ---- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ---- 断点 ---- */
@media (min-width: 700px) {
  .fcols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  body {
    font-size: 1.1rem;
    padding-bottom: 5.2rem;
  }

  .cols {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 3.6rem;
    padding: 5rem 0 6rem;
  }

  .rail {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }

  .dock ol {
    justify-content: center;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .fcols {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.4rem;
  }

  .foot {
    padding-bottom: 9rem;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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