@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --ink: #172617;
  --ink-deep: #0b1610;
  --neon: #69ff69;
  --cyan: #00ffff;
  --paper: #eafff2;
  --soft: #c9ecd8;
  --dim: #9dc2ac;
  --line: rgba(105, 255, 105, 0.24);
  --chrome: linear-gradient(180deg, #ffffff 0%, #d3e3d9 36%, #7d9486 52%, #f2fbf5 64%, #9fb4a7 100%);
  --glass: linear-gradient(180deg, rgba(11, 26, 16, 0.9), rgba(23, 44, 30, 0.92));
  --glow-g: 0 0 18px rgba(105, 255, 105, 0.55);
  --glow-c: 0 0 20px rgba(0, 255, 255, 0.5);
  --radius: 10px;
  --font-deco: "Poiret One", "Didact Gothic", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Didact Gothic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  background:
    radial-gradient(880px 620px at 88% -8%, rgba(0, 255, 255, 0.20), transparent 62%),
    radial-gradient(760px 540px at 4% 6%, rgba(105, 255, 105, 0.16), transparent 64%),
    linear-gradient(180deg, #1d3222 0%, #0d1a12 48%, #172617 100%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 14%, rgba(0, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 46% 68%, rgba(105, 255, 105, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 90% 74%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px);
  background-size: 240px 240px, 320px 320px, 280px 280px, 360px 360px;
}

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

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

/* ── 顶部：品牌独占一行 + 胶囊菜单行 ───────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.55rem clamp(0.85rem, 3vw, 2rem) 0.7rem;
  background: linear-gradient(180deg, rgba(13, 27, 18, 0.97), rgba(16, 32, 21, 0.86));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brandrow {
  display: flex;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(0, 255, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.25rem 0.15rem;
  text-decoration: none;
  color: var(--paper);
}

.mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #10200f;
  background: conic-gradient(from 210deg, var(--neon), var(--cyan), #ffffff, var(--neon));
  box-shadow: var(--glow-c), inset 0 0 10px #ffffff;
}

.mark-img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow-c);
}

.brandname {
  font-family: var(--font-deco);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.75), 0 0 30px rgba(0, 255, 255, 0.35);
}

.pillgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.55rem;
}

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.3;
  color: #0b1a11;
  text-decoration: none;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 #ffffff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff, #d8ffe4 52%, var(--neon));
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.32), var(--glow-c), inset 0 1px 0 #ffffff;
}

/* ── 主体：左侧 aside + 右侧 stage ───────────────────── */
main { position: relative; z-index: 1; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem clamp(0.85rem, 3vw, 2rem) 2.4rem;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.rail {
  position: sticky;
  top: 8.6rem;
  padding: 0.85rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 255, 0.32);
  background: linear-gradient(160deg, rgba(0, 255, 255, 0.14), rgba(105, 255, 105, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.rail-label {
  margin: 0 0 0.5rem;
  padding-left: 0.45rem;
  font-family: var(--font-deco);
  font-size: 1rem;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.5rem;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: #dcffe7;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.45;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.rail-list a:hover {
  background: rgba(105, 255, 105, 0.16);
  border-left-color: var(--neon);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.9);
}

.stage { min-width: 0; }

.sheet {
  padding: clamp(1rem, 3vw, 2.1rem);
  border-radius: 16px;
  border: 1px solid rgba(105, 255, 105, 0.22);
  background: var(--glass);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ── 首屏 ─────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100vh;
  padding-bottom: 1.2rem;
  position: relative;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-deco);
  font-weight: 400;
  font-size: clamp(2rem, 6.2vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-align: left;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.6), 0 0 44px rgba(0, 255, 255, 0.32);
}

.hero .lede {
  margin: 0;
  max-width: 54ch;
  color: var(--soft);
  font-size: 1.05rem;
}

.hero-art-wrap {
  margin-top: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 32px rgba(0, 255, 255, 0.22), inset 0 0 40px rgba(105, 255, 105, 0.1);
}

.hero-art-wrap:empty { display: none; }

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.15) contrast(1.05);
}

.hero::after {
  content: "";
  display: block;
  height: 9px;
  margin-top: 1.1rem;
  border-radius: 3px;
  transform: skewY(-1.4deg);
  background: linear-gradient(90deg, var(--neon), var(--cyan) 50%, var(--neon));
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.55);
}

/* ── 正文 ─────────────────────────────────────────────── */
.sheet small {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-deco);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.55);
}

.sheet div {
  scroll-margin-top: 10.5rem;
  padding-top: 1.9rem;
}

.sheet div + div {
  margin-top: 1.4rem;
  border-top: 1px dashed rgba(105, 255, 105, 0.18);
}

.sheet h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-deco);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.45);
}

.sheet h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--font-deco);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--neon);
}

.sheet p { margin: 0 0 1rem; max-width: 68ch; }

.sheet ul,
.sheet ol { margin: 0 0 1.1rem; padding-left: 1.35rem; max-width: 68ch; }

.sheet li { margin-bottom: 0.45rem; }

.sheet li::marker { color: var(--cyan); }

.sheet strong { color: #ffffff; }

.sheet blockquote {
  margin: 1.2rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 255, 255, 0.08);
  color: var(--soft);
}

.sheet img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(105, 255, 105, 0.25);
}

.sheet a { color: var(--neon); text-underline-offset: 3px; }

.sheet time {
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.sheet hr {
  border: 0;
  height: 1px;
  margin: 1.6rem 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.js .sheet div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .sheet div.in {
  opacity: 1;
  transform: none;
}

/* ── 页脚：三列 dl + 居中底栏 ─────────────────────────── */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  padding: 1.3rem clamp(0.85rem, 3vw, 2rem) 1.7rem;
  border-top: 1px solid rgba(105, 255, 105, 0.3);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.09), rgba(13, 26, 17, 0.95));
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 960px;
  margin: 0 auto;
}

.foot dl { margin: 0; }

.foot dt { margin: 0 0 0.15rem; }

.foot dd { margin: 0; }

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0.1rem;
  color: #d6f7e2;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
}

.foot dt a { color: #ffffff; }

.foot a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--neon);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(0, 255, 255, 0.22);
  color: var(--dim);
  text-align: center;
}

.totop {
  min-height: 40px;
  padding: 0.25rem 0.95rem !important;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.45);
  background: rgba(0, 255, 255, 0.1);
  color: var(--cyan) !important;
}

.totop:hover { background: rgba(0, 255, 255, 0.22); box-shadow: var(--glow-c); }

/* ── 断点 ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 1rem; }

  .rail { position: static; }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 0.4rem;
  }

  .pillgroup {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .pillgroup::-webkit-scrollbar { display: none; }

  .brandname { font-size: 1.32rem; letter-spacing: 0.14em; }

  .sheet div { scroll-margin-top: 9rem; }

  .hero { min-height: 100svh; }

  .sheet p,
  .sheet ul,
  .sheet ol { max-width: none; }
}

@media (max-width: 560px) {
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .rail-list { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .sheet div { opacity: 1; transform: none; }
}

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