@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --bg: #0a130b;
  --paper: #eaffea;
  --chrome: linear-gradient(180deg, #f4fff4 0%, #a9c6b3 36%, #ffffff 51%, #6f8f7c 63%, #ddffe4 100%);
  --line: rgba(105, 255, 105, 0.34);
  --cyanline: rgba(0, 255, 255, 0.22);
  --serif: 'Libre Baskerville', 'Cormorant Garamond', 'Songti SC', 'Noto Serif SC', 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: #d9ffd9;
  background:
    radial-gradient(circle at 8% -6%, rgba(0, 255, 255, 0.16), transparent 46%),
    radial-gradient(circle at 92% 2%, rgba(105, 255, 105, 0.14), transparent 42%),
    var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--neon);
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.28;
}

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

/* ---------- 头部 ---------- */
.mast {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cyanline);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.11), rgba(10, 19, 11, 0)),
    #0a130b;
}

.mast::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.92), rgba(0, 255, 255, 0.34) 46%, rgba(0, 255, 255, 0) 72%);
  opacity: 0.72;
  filter: blur(1px);
  pointer-events: none;
}

.mast::after {
  content: "";
  position: absolute;
  left: -46px;
  bottom: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(105, 255, 105, 0.5), rgba(105, 255, 105, 0) 70%);
  pointer-events: none;
}

.mast-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px dashed rgba(105, 255, 105, 0.22);
}

.strip-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: #a6e3b4;
}

.strip-link:last-child {
  justify-self: end;
}

.strip-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.75);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 10px;
  white-space: nowrap;
}

.brand-text {
  font-size: 1.16rem;
  letter-spacing: 0.16em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 9px rgba(105, 255, 105, 0.5));
}

.brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

.rail {
  display: none;
  position: relative;
  z-index: 2;
  padding: 0 10px 6px;
  justify-content: space-between;
  gap: 10px;
}

.rail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.94rem;
  color: #c8ffd3;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rail a:hover {
  color: #06140a;
  border-color: #b9ffb9;
  background: linear-gradient(180deg, #e6ffe6, #69ff69 58%, #2fd45f);
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.55);
}

/* ---------- 粘性锚点条 ---------- */
.ties {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--cyanline);
  background: rgba(9, 18, 10, 0.94);
  backdrop-filter: blur(6px);
}

.ties-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ties-list li {
  flex: 0 0 auto;
}

.ties-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: #b6f2c2;
  border-bottom: 2px solid transparent;
}

.ties-list a:hover,
.ties-list a[aria-current] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.65);
}

/* ---------- 主体框架 ---------- */
.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 12px 44px;
}

.side {
  order: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--cyanline);
  border-left: 3px solid var(--cyan);
  background: rgba(23, 38, 23, 0.62);
}

.side-title {
  margin: 0 4px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.side ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  font-size: 0.84rem;
  color: #bdf7c8;
  border: 1px solid rgba(105, 255, 105, 0.28);
}

.side a:hover,
.side a[aria-current] {
  color: #06140a;
  background: var(--neon);
}

.side-top {
  margin-left: auto;
  color: #8fd8a0;
}

.read {
  min-width: 0;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 45vh;
  padding: 22px 14px 26px;
  border-left: 1px solid var(--cyanline);
  border-bottom: 3px solid var(--neon);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.07), rgba(23, 38, 23, 0));
}

.hero-plate {
  margin: 0;
  width: 100%;
}

h1 {
  font-size: clamp(2.1rem, 10.5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(105, 255, 105, 0.45));
  overflow-wrap: break-word;
}

/* ---------- 正文区块 ---------- */
main > article:not(.hero) {
  margin-bottom: 22px;
  padding: 26px 14px 30px;
  border-left: 1px solid var(--cyanline);
  border-bottom: 3px solid var(--neon);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.05), rgba(23, 38, 23, 0.32));
  overflow-wrap: break-word;
}

main > article:not(.hero):last-of-type {
  border-bottom-color: var(--cyan);
}

main > article h2 {
  margin: 0 0 14px;
  padding-left: 12px;
  font-size: 1.42rem;
  border-left: 3px solid var(--neon);
  color: #ecffec;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.35);
}

main > article h3 {
  margin: 20px 0 10px;
  font-size: 1.12rem;
  color: #e2ffe4;
}

main > article ul,
main > article ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

main > article li {
  margin-bottom: 0.4em;
}

main > article a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 255, 255, 0.4);
}

main > article a:hover {
  color: #06140a;
  background: var(--cyan);
}

main > article blockquote {
  margin: 0 0 1em;
  padding: 12px 14px;
  border-left: 3px solid var(--cyan);
  background: rgba(0, 255, 255, 0.06);
}

main > article figure {
  margin: 0 0 1em;
}

main > article img {
  border-bottom: 3px solid var(--neon);
}

main > article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

main > article th,
main > article td {
  padding: 8px 10px;
  border: 1px solid rgba(105, 255, 105, 0.25);
  text-align: left;
}

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

/* ---------- 页脚 ---------- */
.base {
  position: relative;
  overflow: hidden;
  padding: 26px 14px 14px;
  border-top: 3px solid var(--neon);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.08), rgba(9, 18, 10, 0)),
    #09120a;
}

.base::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(0, 255, 255, 0.4), rgba(0, 255, 255, 0) 70%);
  pointer-events: none;
}

.base-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.base h3 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.26em;
  color: var(--cyan);
  font-weight: 400;
}

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

.base ul li a,
.base address a,
.base-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  font-size: 0.94rem;
  color: #c9ffd4;
}

.base ul li a:hover,
.base address a:hover,
.base-top-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.base address {
  font-style: normal;
}

.base address strong {
  display: block;
  font-size: 1.04rem;
  letter-spacing: 0.12em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 16px;
  color: #dcffdc;
  background: #0e1a0f;
  border: 1px solid var(--neon);
  border-radius: 0;
}

.sub button {
  min-height: 44px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #06160b;
  cursor: pointer;
  border: 1px solid #b9ffb9;
  border-radius: 0;
  background: linear-gradient(180deg, #f2fff2, #69ff69 56%, #2fd45f);
  box-shadow: 0 0 16px rgba(105, 255, 105, 0.5);
}

.sub button:hover {
  box-shadow: 0 0 24px rgba(105, 255, 105, 0.85);
}

.base-legal {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 255, 255, 0.26);
  text-align: center;
  font-size: 0.84rem;
  color: #9ec9a7;
}

.base-legal p {
  margin: 0;
}

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

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

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .rail {
    display: flex;
  }

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

  main > article:not(.hero) {
    padding: 32px 26px 36px;
  }

  .hero {
    padding: 30px 26px 34px;
  }
}

@media (min-width: 980px) {
  .stage {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 34px;
    padding: 26px 20px 70px;
    align-items: start;
  }

  .side {
    position: sticky;
    top: 62px;
    display: block;
    padding: 14px 14px 16px;
    border-left: 3px solid var(--cyan);
  }

  .side-title {
    display: block;
    margin: 0 0 10px;
  }

  .side ul {
    display: block;
    border-top: 1px solid rgba(105, 255, 105, 0.22);
  }

  .side ul li a {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(105, 255, 105, 0.16);
  }

  .side-top {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-left: 0;
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .base-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2.8rem, 5.6vw, 5rem);
  }
}

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