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

:root {
  --ink: #001e3c;
  --abyss: #000b18;
  --mint: #99ffcc;
  --lime: #00ff41;
  --fog: #dcfff2;
  --dim: rgba(220, 255, 242, 0.82);
  --line: rgba(153, 255, 204, 0.18);
  --card: rgba(9, 48, 78, 0.62);
  --r: 18px;
  --shadow: 0 22px 44px -26px #000, 0 2px 0 0 rgba(153, 255, 204, 0.06) inset;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 22px 16px 120px;
  background: var(--ink);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0, 255, 65, 0.1), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(153, 255, 204, 0.1), transparent 46%);
  background-attachment: fixed;
  color: var(--fog);
  font-family: Poppins, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 255, 65, 0.2), transparent 42%),
    radial-gradient(circle at 72% 68%, rgba(153, 255, 204, 0.2), transparent 48%);
  filter: blur(46px);
  animation: breath 13s ease-in-out infinite alternate;
}

@keyframes breath {
  from { transform: scale(1) rotate(0deg); opacity: 0.75; }
  to { transform: scale(1.14) rotate(4deg); opacity: 1; }
}

@keyframes cellPulse {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; transform: scale(1); }
  50% { border-radius: 42% 58% 38% 62% / 62% 38% 58% 42%; transform: scale(1.06); }
}

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--lime); }

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

/* ---- 左侧固定胶囊导航 ---- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 142px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  background: rgba(0, 12, 26, 0.82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 48px;
  border-radius: 50% 46% 54% 50% / 50% 54% 46% 50%;
  background: linear-gradient(140deg, rgba(0, 255, 65, 0.28), rgba(153, 255, 204, 0.14));
  border: 1px solid var(--line);
  color: var(--mint);
  animation: cellPulse 9s ease-in-out infinite;
}

.mark img { display: block; border-radius: 50%; }
.mark-txt {
  font-family: Righteous, Poppins, sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pills a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.pills a:hover,
.pills a:focus-visible {
  color: var(--abyss);
  background: var(--mint);
  border-color: var(--lime);
  transform: translateX(3px);
}

/* ---- 主区 ---- */
main { display: block; }

.hero {
  position: relative;
  min-height: 45vh;
  margin: 0 0 34px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 26px 26px var(--r) var(--r);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  background: linear-gradient(150deg, #013058 0%, #002b4d 55%, #04percent 100%);
  background-image: linear-gradient(150deg, #013058 0%, #00223f 58%, #063f36 100%);
}

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 11, 24, 0.15) 0%, rgba(0, 11, 24, 0.82) 78%);
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(1.15) contrast(1.05);
}

.hero-num {
  position: absolute;
  left: clamp(10px, 3vw, 30px);
  top: clamp(-14px, 0vw, 6px);
  font-family: Righteous, Poppins, sans-serif;
  font-size: clamp(96px, 20vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(153, 255, 204, 0.42);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 26px clamp(16px, 4vw, 44px) clamp(52px, 9vw, 76px);
  max-width: 42ch;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-family: Righteous, Poppins, "PingFang SC", sans-serif;
  font-size: clamp(27px, 5.4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 6px 30px rgba(0, 11, 24, 0.85);
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--abyss);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 12px 26px -14px var(--lime);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-jump:hover {
  color: var(--abyss);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 30px -14px var(--lime);
}

/* ---- 内容区：左 aside + 右正文 ---- */
.bio {
  display: grid;
  grid-template-columns: minmax(150px, 196px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.index {
  position: sticky;
  top: 22px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px var(--r) 32px var(--r);
  box-shadow: var(--shadow);
}

.index small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--lime);
  line-height: 1.4;
}

.index h2 {
  margin: 2px 0 12px;
  font-family: Righteous, Poppins, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  color: var(--mint);
}

.index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index ol a {
  display: block;
  padding: 9px 10px;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dim);
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease;
}

.index ol a:hover,
.index ol a:focus-visible {
  background: rgba(153, 255, 204, 0.16);
  color: var(--mint);
}

/* ---- 正文流 ---- */
.flow { min-width: 0; }

.flow > section {
  margin: 0 0 26px;
  padding: clamp(18px, 3.2vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r) 40px var(--r) 40px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.flow > section:nth-of-type(even) {
  border-radius: 40px var(--r) 40px var(--r);
}

.flow > section:hover { border-color: rgba(0, 255, 65, 0.4); }

.flow section[id] { scroll-margin-top: 24px; }

.flow h2 {
  margin: 0 0 14px;
  font-family: Righteous, Poppins, "PingFang SC", sans-serif;
  font-size: clamp(22px, 3.2vw, 31px);
  line-height: 1.28;
  color: var(--mint);
  letter-spacing: 0.01em;
}

.flow h3 {
  margin: 22px 0 10px;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.35;
  color: #ffffff;
}

.flow small {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0.28em;
  line-height: 1.4;
  color: var(--lime);
}

.flow p {
  margin: 0 0 15px;
  color: var(--dim);
  line-height: 1.85;
}

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

.flow a {
  color: var(--lime);
  border-bottom: 1px solid rgba(0, 255, 65, 0.4);
}

.flow a:hover { border-bottom-color: var(--lime); }

.flow ul,
.flow ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--dim);
}

.flow li { margin-bottom: 8px; }
.flow li::marker { color: var(--lime); }

.flow strong { color: #ffffff; font-weight: 600; }

.flow blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--lime);
  background: rgba(0, 255, 65, 0.07);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--fog);
}

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

.flow img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 8px 0 14px;
}

.flow figure { margin: 14px 0; }
.flow figcaption { font-size: 16px; color: rgba(220, 255, 242, 0.62); }

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

.flow table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 16px;
}

.flow th,
.flow td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.flow th { color: var(--mint); font-weight: 600; }

.flow code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: rgba(0, 255, 65, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ---- 页脚 ---- */
.foot {
  margin-top: 40px;
  padding: 26px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  background: rgba(0, 10, 22, 0.78);
  border: 1px solid var(--line);
  border-radius: 40px 40px var(--r) var(--r);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.foot-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(153, 255, 204, 0.1);
}

.foot-mark img { display: block; border-radius: 50%; }

.foot-name {
  margin: 0;
  font-family: Righteous, Poppins, sans-serif;
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.15;
  color: var(--mint);
  word-break: break-word;
}

.foot-nav { flex: 1 1 320px; }

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  align-items: baseline;
}

.foot-nav dt {
  font-size: 16px;
  color: rgba(153, 255, 204, 0.55);
  letter-spacing: 0.08em;
}

.foot-nav dd {
  margin: 0 10px 0 0;
}

.foot-nav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 16px;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.foot-nav dd a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.legal {
  flex: 0 0 auto;
  font-size: 16px;
  color: rgba(220, 255, 242, 0.6);
}

/* ---- 滚动揭示 ---- */
.rv {
  opacity: 0;
  transform: translateY(18px);
}

.rv.on {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ---- 断点 ---- */
@media (min-width: 901px) {
  body { padding: 30px 40px 60px 178px; }
  main { max-width: 1120px; margin: 0 auto; }
  .foot { padding: 30px 30px; }
}

@media (max-width: 900px) {
  .rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-right: 0;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(0, 10, 22, 0.94);
  }
  .rail::-webkit-scrollbar { height: 0; }
  .mark { flex: 0 0 auto; }
  .pills { flex-direction: row; gap: 8px; }
  .pills a { white-space: nowrap; padding: 10px 14px; }
  .pills a:hover { transform: translateY(-2px); }
  .bio { grid-template-columns: minmax(0, 1fr); }
  .index { position: static; }
  .index ol { flex-direction: row; flex-wrap: wrap; }
  .index ol a { border: 1px solid var(--line); }
  .foot { flex-direction: column; align-items: flex-start; }
  .legal { width: 100%; }
}

@media (max-width: 420px) {
  .hero { min-height: 42vh; }
  .hero-copy { padding-bottom: 54px; }
  .foot-nav dl { gap: 4px 10px; }
  .foot-nav dd { margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .mark { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-jump:hover,
  .pills a:hover { transform: none; }
}

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