@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;700&display=swap');

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --bg: #0a130a;
  --bg2: #10200f;
  --txt: #e9ffe9;
  --dim: #a4c6a4;
  --line: rgba(105, 255, 105, 0.26);
  --line-c: rgba(0, 255, 255, 0.34);
  --chrome: linear-gradient(135deg, #dff9ff 0%, #9fe4ff 16%, #69ff69 36%, #eafff4 50%, #86eeff 64%, #ffffff 80%, #69ff69 100%);
  --r: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--txt);
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 460px at 88% -8%, rgba(0, 255, 255, 0.2), transparent 62%),
    radial-gradient(620px 420px at 2% 10%, rgba(105, 255, 105, 0.17), transparent 64%),
    radial-gradient(540px 380px at 50% 108%, rgba(0, 255, 255, 0.12), transparent 66%),
    linear-gradient(180deg, #0a130a, #10200f 42%, #0a130a);
  font-family: Figtree, 'Noto Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
}

img { max-width: 100%; }

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

section[id] { scroll-margin-top: 132px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 16px;
  background: rgba(10, 19, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--chrome);
  opacity: 0.72;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.65);
  animation: pulse 4.5s ease-in-out infinite;
}

.brand::before {
  content: "✦";
  margin-right: 6px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

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

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 16px;
  color: #d5efd5;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--chrome);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-1px);
}

/* ---------- 骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 46px;
}

/* ---------- 侧栏 ---------- */
.rail {
  border: 1px solid var(--line-c);
  border-radius: var(--r);
  padding: 12px 14px 14px;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.1), rgba(105, 255, 105, 0.04));
}

.rail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

hr {
  height: 1px;
  margin: 10px 0 14px;
  border: 0;
  background: var(--chrome);
  opacity: 0.6;
}

.rail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 16px;
  color: #d5efd5;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-list a:hover,
.rail-list a.on {
  background: var(--neon);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "txt" "fig";
  gap: 16px;
  align-items: center;
  padding: 6px 0 4px;
}

.hero-txt { grid-area: txt; }

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  font-weight: 700;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.32));
}

.collage {
  grid-area: fig;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: 148px;
}

.collage img {
  position: absolute;
  width: 62%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line-c);
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.22));
}

.collage img:first-child {
  left: 0;
  top: 0;
  z-index: 2;
  transform: rotate(-4deg);
}

.collage img:last-child {
  right: 0;
  top: 10%;
  transform: rotate(5deg);
}

.collage img:only-child {
  width: 82%;
  left: 8%;
  top: 0;
  transform: rotate(-2deg);
}

.collage .bubble {
  position: absolute;
  inset: 12% 10% 12% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85), transparent 44%),
    conic-gradient(from 200deg, var(--cyan), var(--neon), #ffffff, var(--cyan));
  opacity: 0.6;
  filter: blur(2px);
}

/* ---------- 正文 ---------- */
.flow {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.flow > section {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 18px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  animation: rise 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.flow > section:nth-of-type(2) { animation-delay: 0.06s; }
.flow > section:nth-of-type(3) { animation-delay: 0.12s; }
.flow > section:nth-of-type(4) { animation-delay: 0.18s; }
.flow > section:nth-of-type(5) { animation-delay: 0.24s; }
.flow > section:nth-of-type(6) { animation-delay: 0.3s; }
.flow > section:nth-of-type(7) { animation-delay: 0.36s; }

.flow > section::after {
  content: "";
  display: block;
  clear: both;
}

.flow h2 {
  margin: 0 0 2px;
  font-size: clamp(1.32rem, 5vw, 1.78rem);
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.42), 0 0 32px rgba(105, 255, 105, 0.22);
}

.flow h3 {
  margin: 22px 0 2px;
  font-size: 1.12rem;
  color: var(--neon);
}

.flow p,
.flow li {
  max-width: 70ch;
}

.flow p { margin: 0 0 14px; }
.flow ul,
.flow ol { padding-left: 1.25em; }
.flow li { margin: 0 0 8px; }

.flow a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-color: rgba(105, 255, 105, 0.5);
  text-underline-offset: 3px;
}

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

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

.flow img {
  border-radius: var(--r);
  border: 1px solid var(--line-c);
}

.flow figure { margin: 16px 0; }

.flow time {
  display: inline-block;
  font-size: 16px;
  color: var(--dim);
}

.flow strong { color: #ffffff; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 20px;
  padding: 30px 16px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.08), transparent 62%);
}

.foot-mark {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 11vw, 4.4rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 255, 255, 0.3));
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.foot-grid dl { margin: 0; }

.foot-grid dt {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.foot-grid dd {
  margin: 0;
  font-size: 16px;
  color: #cfe6cf;
}

.foot-grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-right: 10px;
  color: #d8f0d8;
  text-decoration: none;
}

.foot-grid dd a:hover {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.7);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  max-width: 1160px;
  margin: 24px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(105, 255, 105, 0.18);
  font-size: 16px;
  color: var(--dim);
}

.foot-base p { margin: 0; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--neon);
  text-decoration: none;
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 12px rgba(105, 255, 105, 0.55); }
  50% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-mark { margin-bottom: 26px; }
}

@media (min-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    grid-template-areas: "fig txt";
    gap: 30px;
    min-height: 44vh;
    padding: 26px 0 10px;
  }
  .hero-txt { text-align: right; }
  .rail-list { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .shell {
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-areas:
      "rail hero"
      "rail flow";
    gap: 30px 34px;
    align-items: start;
    padding: 26px 24px 66px;
  }
  .rail {
    grid-area: rail;
    position: sticky;
    top: 88px;
  }
  .hero { grid-area: hero; }
  .flow { grid-area: flow; }
  .flow > section { padding: 28px 26px 30px; }
  section[id] { scroll-margin-top: 96px; }
}

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