@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --pink: #ff8ad4;
  --ink: #172617;
  --deep: #0a140b;
  --text: #e6fee9;
  --muted: #9dc9ab;
  --edge: rgba(105, 255, 105, 0.3);
  --chrome: linear-gradient(180deg, #ffffff 0%, #d8ffe6 36%, #8ff8ff 64%, #69ff69 100%);
  --glow: 0 0 22px rgba(0, 255, 255, 0.38);
}

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

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

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 6% -6%, rgba(0, 255, 255, 0.18), transparent 62%),
    radial-gradient(760px 480px at 96% 6%, rgba(105, 255, 105, 0.15), transparent 64%),
    radial-gradient(680px 520px at 58% 102%, rgba(255, 138, 212, 0.13), transparent 66%),
    var(--deep);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

/* 顶部细条 */

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #0f2110;
  background: linear-gradient(90deg, var(--green), var(--cyan) 55%, var(--pink));
  box-shadow: 0 2px 18px rgba(0, 255, 255, 0.35);
}

.ticker p {
  margin: 0;
  padding-left: 0.3em;
  white-space: nowrap;
}

/* 左侧固定导航 */

.hd {
  position: fixed;
  top: 36px;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 10px 24px;
  border-right: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.94), rgba(8, 16, 9, 0.97));
  backdrop-filter: blur(10px);
}

.mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #0f2110;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mark:hover {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 26px rgba(105, 255, 105, 0.75);
}

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

.hd nav {
  width: 100%;
}

.hd nav p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.hd nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 6px;
  text-align: center;
  font-size: 16px;
  line-height: 1.22;
  color: #dcffe6;
  border: 1px solid rgba(0, 255, 255, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    rgba(105, 255, 105, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.hd nav a:hover {
  transform: translateY(-2px) scale(1.04);
  color: #0d1c0d;
  border-color: transparent;
  background: var(--chrome);
  box-shadow: 0 0 20px rgba(105, 255, 105, 0.65);
}

main {
  margin-left: 98px;
  padding-top: 36px;
}

/* 首屏 */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 44px 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(2.5px 2.5px at 12% 20%, #ffffff, transparent 62%),
    radial-gradient(2px 2px at 31% 74%, var(--cyan), transparent 62%),
    radial-gradient(2.5px 2.5px at 69% 24%, var(--green), transparent 62%),
    radial-gradient(2px 2px at 87% 68%, #ffffff, transparent 62%),
    radial-gradient(3px 3px at 49% 8%, var(--cyan), transparent 62%);
  animation: twinkle 3.6s ease-in-out infinite alternate;
}

.hero-core {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  text-align: center;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.5)) drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}

.hero figure {
  position: absolute;
  z-index: 1;
  margin: 0;
  width: min(23vw, 176px);
  overflow: hidden;
  border: 1px solid rgba(105, 255, 105, 0.55);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero figure img {
  width: 100%;
}

.ph-a {
  left: 5%;
  top: 14%;
  transform: rotate(-8deg);
}

.ph-b {
  right: 5%;
  bottom: 10%;
  transform: rotate(7deg);
}

/* 正文与右栏 */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px clamp(16px, 3.5vw, 44px) 60px;
}

.flow > section {
  position: relative;
  margin: 0 0 24px;
  padding: 26px clamp(16px, 2.6vw, 32px);
  border: 1px solid var(--edge);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(0, 255, 255, 0.05)),
    rgba(12, 24, 14, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  scroll-margin-top: 72px;
  animation: rise 0.55s ease both;
}

.flow > section:nth-child(2n) {
  animation-delay: 0.07s;
}

.flow > section:nth-child(3n) {
  animation-delay: 0.14s;
}

.flow h2 {
  margin: 0 0 14px;
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #f2fff5;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.45);
}

.flow h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  color: var(--cyan);
}

.flow p {
  margin: 0 0 14px;
}

.flow p:last-child {
  margin-bottom: 0;
}

.flow ul,
.flow ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}

.flow li {
  margin-bottom: 8px;
}

.flow li::marker {
  color: var(--green);
}

.flow strong {
  color: #ffffff;
}

.flow a {
  border-bottom: 1px dashed rgba(0, 255, 255, 0.55);
}

.flow a:hover {
  color: var(--cyan);
}

.flow blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(0, 255, 255, 0.08);
}

.flow blockquote p {
  margin: 0;
}

.rail {
  position: sticky;
  top: 56px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(10, 22, 12, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rail h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.32em;
  color: var(--cyan);
}

.rail hr {
  height: 3px;
  margin: 12px 0 14px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 16px;
  color: #d9ffe6;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rail-nav a:hover {
  transform: translateX(3px);
  border-color: var(--edge);
  background: rgba(105, 255, 105, 0.15);
}

/* 页脚 */

footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-left: 98px;
  padding: 38px clamp(16px, 3.5vw, 44px) 26px;
  font-size: 16px;
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.5), rgba(8, 16, 9, 0.9));
}

footer p {
  margin: 0;
}

.f-brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.6);
}

.f-col {
  display: flex;
  flex-direction: column;
}

.f-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #c9efd6;
}

.f-col a:hover {
  color: var(--cyan);
}

footer small {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
  color: var(--muted);
  border-top: 1px dashed rgba(105, 255, 105, 0.28);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .ticker {
    position: static;
    justify-content: flex-start;
    padding: 0 14px;
    letter-spacing: 0.2em;
  }

  .hd {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--edge);
  }

  .hd nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hd nav p {
    flex-direction: row;
    gap: 8px;
  }

  .hd nav a {
    flex: none;
    padding: 9px 14px;
    white-space: nowrap;
  }

  main {
    margin-left: 0;
    padding-top: 0;
  }

  .hero {
    min-height: 40vh;
    padding: 54px 16px;
  }

  .hero figure {
    width: 33vw;
    opacity: 0.9;
  }

  .ph-a {
    left: 2%;
    top: 7%;
  }

  .ph-b {
    right: 2%;
    bottom: 7%;
  }

  .board {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .rail {
    position: static;
    order: 2;
  }

  footer {
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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