@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #172617;
  --deep: #0c1610;
  --lime: #69ff69;
  --cyan: #00ffff;
  --paper: #e9ffe9;
  --soft: #b7d9bd;
  --rule: rgba(105, 255, 105, 0.22);
  --rule-cyan: rgba(0, 255, 255, 0.28);
  --card: rgba(19, 40, 26, 0.72);
  --chrome: linear-gradient(160deg, #f4fff8 0%, #a9e3c3 28%, #ffffff 44%, #7fd8b4 62%, #d7f7e2 100%);
  --lift: 0 14px 30px rgba(0, 0, 0, 0.4);
  --body: 'Crimson Pro', 'Cormorant Garamond', Georgia, 'Songti SC', serif;
  --head: 'Cormorant Garamond', 'Crimson Pro', Georgia, serif;
  --mark: 'Cinzel', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.72;
  background:
    radial-gradient(70rem 42rem at 92% -10%, rgba(0, 255, 255, 0.13), transparent 62%),
    radial-gradient(58rem 38rem at -14% 8%, rgba(105, 255, 105, 0.15), transparent 64%),
    var(--ink);
}

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* 顶部细条 */
.band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.32rem 0.8rem;
  color: #08150c;
  background: linear-gradient(90deg, var(--cyan), var(--lime) 42%, #ffffff 60%, var(--cyan));
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.band-text {
  font-family: var(--mark);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.spark {
  width: 9px;
  height: 9px;
  flex: none;
  background: #08150c;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* 顶栏 */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem clamp(0.7rem, 3vw, 2rem);
  background: rgba(11, 22, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brandmark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.28);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brandmark:hover {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(105, 255, 105, 0.45);
  text-decoration: none;
}

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

.mark-glyph {
  font-family: var(--mark);
  font-size: 1.05rem;
  color: #0d2216;
  letter-spacing: 0;
}

.pills {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.42rem;
  padding: 0.15rem 0 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 255, 105, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
  color: #dcffe4;
  font-family: var(--mark);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 14px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pill:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 8px 20px rgba(0, 255, 255, 0.32);
  text-decoration: none;
}

/* 首屏 */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3.2rem 1.2rem 4.6rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(closest-side at 50% 34%, rgba(0, 255, 255, 0.18), transparent 72%),
    radial-gradient(closest-side at 16% 82%, rgba(105, 255, 105, 0.2), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -1px;
  height: 62px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: 0.66;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: #f4fff7;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.6), 0 0 46px rgba(0, 255, 255, 0.35);
}

.hero-lead {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--soft);
  font-size: 1.05rem;
  font-style: italic;
}

.hero-glyph {
  position: absolute;
  right: clamp(0.8rem, 7vw, 6rem);
  top: 50%;
  z-index: 1;
  margin: 0;
  transform: translateY(-52%);
  display: grid;
  place-items: center;
  opacity: 0.92;
}

.disc {
  display: block;
  width: clamp(58px, 11vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #ffffff, #9fe6c4, var(--lime), var(--cyan), #ffffff, #8fd3b4, #ffffff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 14px 34px rgba(0, 255, 255, 0.32);
  filter: saturate(1.15);
}

.spark--hero {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 16px;
  height: 16px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(105, 255, 105, 0.85);
}

/* 主区 */
main {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0 clamp(1rem, 3vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.2rem clamp(0.9rem, 3vw, 2rem) 3.4rem;
}

main > .rail {
  grid-column: 1;
  grid-row: 1 / span 60;
  align-self: start;
  position: sticky;
  top: 5.4rem;
}

.rail-aside {
  margin: 0 0 1.2rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--rule-cyan);
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--lift);
}

.rail-aside h2 {
  margin: 0;
  font-family: var(--mark);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--lime);
  text-transform: uppercase;
}

.subtitle {
  margin: 0.3rem 0 0.9rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--soft);
}

.rail-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.rail-list li {
  counter-increment: toc;
  border-top: 1px dashed var(--rule);
}

.rail-list li:first-child {
  border-top: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.3rem 0.15rem;
  font-size: 1rem;
  color: #d9f8e2;
}

.rail-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mark);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.rail-list a:hover {
  color: var(--lime);
  text-decoration: none;
}

.rail-figure {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0.9rem 0;
}

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  color: #d9f8e2;
  font-size: 0.94rem;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.totop:hover {
  color: #ffffff;
  box-shadow: 0 0 0 1px var(--lime), 0 8px 20px rgba(105, 255, 105, 0.3);
  text-decoration: none;
}

/* 正文章节 */
main > section:not(.rail) {
  grid-column: 2;
  position: relative;
  padding: 2.3rem 0 2.6rem;
  border-top: 1px solid var(--rule);
}

main > section:not(.rail):first-of-type {
  border-top: 1px solid var(--rule);
}

main > section:not(.rail)::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

main > section:not(.rail) > :first-child {
  margin-top: 0;
}

main > section:not(.rail) h2 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  line-height: 1.28;
  color: #f2fff5;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.25);
  margin: 0 0 0.9rem;
}

main > section:not(.rail) h3 {
  font-family: var(--head);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--lime);
  margin: 1.6rem 0 0.5rem;
}

main > section:not(.rail) p {
  margin: 0 0 1.05rem;
  max-width: 40rem;
}

main > section:not(.rail) figure {
  margin: 1.3rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule-cyan);
  border-radius: 4px;
  background: rgba(0, 255, 255, 0.06);
  box-shadow: var(--lift);
}

main > section:not(.rail) figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

main > section:not(.rail) aside {
  margin: 1.3rem 0;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  background: rgba(105, 255, 105, 0.08);
  box-shadow: var(--lift);
  font-style: italic;
}

main > section:not(.rail) aside > :last-child {
  margin-bottom: 0;
}

main > section:not(.rail) ul,
main > section:not(.rail) ol {
  max-width: 40rem;
  padding-left: 1.25rem;
}

main > section:not(.rail) li {
  margin: 0 0 0.45rem;
}

main > section:not(.rail) blockquote {
  margin: 1.3rem 0;
  padding: 0.8rem 1.1rem;
  border-left: 2px solid var(--lime);
  color: var(--soft);
  font-style: italic;
}

main > section:not(.rail) img {
  max-width: 100%;
  height: auto;
}

main > section:not(.rail) hr {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 1.6rem 0;
}

/* 页脚 */
.foot {
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(105, 255, 105, 0.07), rgba(0, 0, 0, 0.35));
  padding: 2.3rem clamp(0.9rem, 3vw, 2rem) 1.1rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem 1.2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.foot-col--meta {
  display: flex;
  align-items: flex-start;
}

.foot address {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-style: normal;
}

.foot-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--chrome);
  overflow: hidden;
  flex: none;
}

.foot-mark .mark-glyph {
  font-size: 0.9rem;
}

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

.foot-brand {
  font-family: var(--head);
  font-size: 1.1rem;
  color: #f2fff5;
  letter-spacing: 0.04em;
}

.foot-nav dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.6rem;
  align-items: center;
}

.foot-nav dt {
  font-family: var(--mark);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cfeeda;
  font-size: 0.98rem;
}

.foot-nav a:hover {
  color: var(--lime);
  text-decoration: none;
}

.foot-jump {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cfeeda;
  font-size: 0.98rem;
}

.foot-jump a:hover {
  color: var(--lime);
  text-decoration: none;
}

.copy {
  max-width: 72rem;
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--mark);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--soft);
  text-align: center;
}

/* 滚动显现 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* 断点 */
@media (max-width: 860px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.3rem;
  }

  main > .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-bottom: 0.4rem;
  }

  main > section:not(.rail) {
    grid-column: 1;
  }

  .rail-aside {
    padding: 0.9rem 0.95rem 1rem;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
  }

  .rail-list li {
    border-top: 0;
  }

  .rail-list a {
    min-height: 40px;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.95rem;
  }

  .rail-figure {
    display: none;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-glyph {
    right: 0.4rem;
    opacity: 0.55;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.0625rem;
  }

  .hero {
    min-height: 68vh;
    padding-top: 2.4rem;
  }

  .pills {
    gap: 0.35rem;
  }

  .pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.86rem;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-col--meta {
    order: 9;
  }
}

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

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

  .pill,
  .brandmark,
  .totop {
    transition: none;
  }
}

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