/* ============================================================
   Micro World | DM018 — style.css
   深空实验室主题 · 青绿高亮 + 蓝色辅助
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 底色：深空暗蓝 */
  --bg-deep: #04070f;
  --bg: #060b18;
  --bg-soft: #0a1226;

  /* 主色：薄荷绿 / 青绿 */
  --mint: #52f2c5;
  --mint-bright: #8dffdd;
  --mint-dim: #2bbd9a;
  --mint-glow: rgba(82, 242, 197, 0.35);

  /* 辅助色：蓝 */
  --blue: #6db9ff;
  --blue-dim: #3d7fd1;
  --blue-glow: rgba(109, 185, 255, 0.28);

  /* 语义色 */
  --warn: #ffd166;
  --danger: #ff7d7d;

  /* 文本 */
  --text: #e9f6f7;
  --text-soft: #a8bccb;
  --text-mute: #6b8199;

  /* 面 */
  --panel: rgba(12, 24, 44, 0.62);
  --panel-solid: #0b1526;
  --panel-hi: rgba(22, 41, 68, 0.72);
  --line: rgba(120, 200, 220, 0.14);
  --line-hi: rgba(82, 242, 197, 0.42);

  /* 阴影 / 圆角 */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 46px -18px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 40px -6px var(--mint-glow);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: 'Space Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 600; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; }

::selection { background: var(--mint-glow); color: #031410; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb {
  background: rgba(82, 242, 197, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(82, 242, 197, 0.4); background-clip: content-box; }

/* ---------- 3. 星空背景 ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #0d1c38 0%, #070d1c 45%, var(--bg-deep) 100%),
    var(--bg-deep);
  pointer-events: none;
}

.sky__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky__nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.sky__nebula--1 {
  width: 62vw; height: 62vw;
  left: -14vw; top: -20vw;
  background: radial-gradient(circle, rgba(38, 200, 170, 0.32), transparent 66%);
  animation: drift 34s ease-in-out infinite alternate;
}
.sky__nebula--2 {
  width: 55vw; height: 55vw;
  right: -16vw; top: 6vh;
  background: radial-gradient(circle, rgba(58, 120, 230, 0.34), transparent 66%);
  animation: drift 42s ease-in-out infinite alternate-reverse;
}
.sky__nebula--3 {
  width: 46vw; height: 46vw;
  left: 30vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(94, 74, 200, 0.26), transparent 68%);
  animation: drift 50s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(1.04); }
}

/* 实验室网格 */
.sky__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 200, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 200, 220, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 20%, transparent 78%);
  animation: gridPan 60s linear infinite;
}
@keyframes gridPan {
  to { background-position: 72px 72px, 72px 72px; }
}

.sky__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, transparent 40%, rgba(2, 4, 10, 0.72) 100%);
}

/* ---------- 4. 布局 ---------- */
.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

#app { position: relative; z-index: 1; }

/* 视图切换 */
.view {
  display: none;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  animation: viewIn 0.5s var(--ease) both;
}
.view.is-active { display: block; }

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

/* ---------- 5. 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav.is-scrolled,
.nav.is-solid {
  background: rgba(5, 10, 22, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand__mark { width: 34px; height: 34px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__mark { animation: brandPulse 4.5s ease-in-out infinite; }
@keyframes brandPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(82, 242, 197, 0.35)); }
  50%      { filter: drop-shadow(0 0 13px rgba(82, 242, 197, 0.75)); }
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand__text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 2.6px;
  color: var(--mint-dim);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  padding: 9px 15px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav__links a.is-active {
  color: var(--mint-bright);
  background: rgba(82, 242, 197, 0.09);
  box-shadow: inset 0 0 0 1px rgba(82, 242, 197, 0.22);
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--text-mute);
  white-space: nowrap;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(82, 242, 197, 0.12);
  display: inline-block;
  flex-shrink: 0;
}
.dot--live { animation: dotBlink 2.2s ease-in-out infinite; }
@keyframes dotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(82, 242, 197, 0.14); }
  50%      { opacity: 0.45; box-shadow: 0 0 0 6px rgba(82, 242, 197, 0.04); }
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 6. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease),
              background 0.25s, border-color 0.25s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}
.btn__arrow { width: 17px; height: 17px; transition: transform 0.28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  color: #03150f;
  background: linear-gradient(135deg, var(--mint-bright), var(--mint) 45%, var(--mint-dim));
  box-shadow: 0 10px 30px -10px var(--mint-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(82, 242, 197, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--text);
  border-color: rgba(109, 185, 255, 0.34);
  background: rgba(24, 46, 74, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(109, 185, 255, 0.7);
  background: rgba(38, 72, 116, 0.55);
  box-shadow: 0 10px 26px -14px var(--blue-glow), 0 0 0 1px rgba(109, 185, 255, 0.15);
  transform: translateY(-2px);
}

.btn--quiet {
  color: var(--text-soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--r-sm);
}
.btn--quiet:hover { color: var(--text); border-color: rgba(82, 242, 197, 0.4); background: rgba(82, 242, 197, 0.06); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 7. 首页 Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 34px 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: var(--mint);
  border: 1px solid rgba(82, 242, 197, 0.26);
  background: rgba(82, 242, 197, 0.055);
  border-radius: 99px;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.04;
  background: linear-gradient(160deg, #ffffff 8%, #d5f6ee 40%, var(--mint) 78%, #4bb8b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 34px rgba(82, 242, 197, 0.16));
}
.hero__title-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(22px, 2.9vw, 36px);
  letter-spacing: 1px;
  font-weight: 500;
  background: linear-gradient(100deg, #cfe9ff, var(--blue) 60%, #7fa8d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  max-width: 560px;
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* 旋转培养皿视觉 */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.dish-orbit {
  position: relative;
  width: min(400px, 90%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.dish-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(82, 242, 197, 0.16);
}
.dish-orbit__ring--outer {
  inset: 0;
  border-style: dashed;
  border-color: rgba(109, 185, 255, 0.2);
  animation: spin 42s linear infinite;
}
.dish-orbit__ring--outer::before,
.dish-orbit__ring--mid::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px 3px var(--mint-glow);
}
.dish-orbit__ring--mid {
  inset: 13%;
  border-color: rgba(82, 242, 197, 0.2);
  animation: spin 26s linear infinite reverse;
}
.dish-orbit__ring--mid::before { background: var(--blue); box-shadow: 0 0 12px 3px var(--blue-glow); top: auto; bottom: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.dish-orbit__core {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.1), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(28, 74, 66, 0.92), rgba(9, 26, 34, 0.96) 72%);
  border: 1px solid rgba(82, 242, 197, 0.28);
  box-shadow:
    0 0 0 10px rgba(82, 242, 197, 0.035),
    0 0 0 22px rgba(82, 242, 197, 0.02),
    0 0 70px -10px rgba(82, 242, 197, 0.4),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 10px rgba(82,242,197,0.035), 0 0 0 22px rgba(82,242,197,0.02), 0 0 60px -10px rgba(82,242,197,0.32), inset 0 0 60px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(82,242,197,0.055), 0 0 0 26px rgba(82,242,197,0.025), 0 0 90px -6px rgba(82,242,197,0.5), inset 0 0 60px rgba(0,0,0,0.5); }
}
.dish-orbit__core svg { width: 100%; height: 100%; }

.dish-orbit__label {
  position: absolute;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--mint);
  background: rgba(6, 16, 26, 0.82);
  border: 1px solid rgba(82, 242, 197, 0.22);
  border-radius: 99px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: labelFloat 6s ease-in-out infinite;
}
.dish-orbit__label--a { top: 6%; right: 2%; animation-delay: 0s; }
.dish-orbit__label--b { bottom: 16%; left: -4%; color: var(--blue); border-color: rgba(109,185,255,0.3); animation-delay: 1.6s; }
.dish-orbit__label--c { bottom: 2%; right: 10%; animation-delay: 3.1s; }
@keyframes labelFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ---------- 8. 统计卡片 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 46px 0 16px;
}

.stat {
  position: relative;
  padding: 22px 24px 20px;
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(20, 38, 62, 0.72), rgba(9, 18, 32, 0.66));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82, 242, 197, 0.55), transparent);
  opacity: 0.6;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 242, 197, 0.32);
  box-shadow: 0 20px 40px -24px rgba(82, 242, 197, 0.5);
}
.stat__label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font);
  color: var(--text);
}
.stat__value b {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
  background: linear-gradient(150deg, #ffffff, var(--mint) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__value b.stat__value--word {
  font-size: 30px;
  letter-spacing: -0.4px;
  background: linear-gradient(150deg, #eaf6ff, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}
.stat__value em {
  font-style: normal;
  font-size: 13px;
  color: var(--mint-dim);
}
.stat__meta {
  display: block;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--text-mute);
  opacity: 0.85;
}

/* ---------- 9. 功能卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-card {
  position: relative;
  padding: 32px 32px 30px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 242, 197, 0.09), transparent 55%),
    linear-gradient(160deg, rgba(17, 34, 56, 0.8), rgba(8, 16, 30, 0.78));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.feature-card.card--alt {
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 185, 255, 0.11), transparent 55%),
    linear-gradient(160deg, rgba(17, 32, 58, 0.8), rgba(8, 16, 30, 0.78));
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.045) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  box-shadow: 0 28px 60px -30px rgba(82, 242, 197, 0.55);
}
.feature-card.card--alt:hover {
  border-color: rgba(109, 185, 255, 0.42);
  box-shadow: 0 28px 60px -30px rgba(109, 185, 255, 0.55);
}
.feature-card:hover::after { transform: translateX(100%); }

.feature-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--mint);
  background: rgba(82, 242, 197, 0.08);
  border: 1px solid rgba(82, 242, 197, 0.2);
}
.card--alt .feature-card__icon {
  color: var(--blue);
  background: rgba(109, 185, 255, 0.08);
  border-color: rgba(109, 185, 255, 0.22);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-mute);
}
.feature-card h3 { font-size: 21px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; line-height: 1.85; color: var(--text-soft); }
.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--mint);
  letter-spacing: 0.3px;
}
.card--alt .feature-card__link { color: var(--blue); }
.feature-card__link i { font-style: normal; transition: transform 0.3s var(--ease); }
.feature-card:hover .feature-card__link i { transform: translateX(5px); }

/* 跑马灯 */
.ticker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--text-mute);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker > span {
  flex-shrink: 0;
  color: var(--mint-dim);
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.ticker__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerRun 40s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker__track b { color: var(--mint); font-weight: 500; }
@keyframes tickerRun { to { transform: translateX(-50%); } }

/* ---------- 10. 页面标题 ---------- */
.page-head { margin-bottom: 34px; max-width: 780px; }
.page-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: none;
  flex-wrap: wrap;
}
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.6px;
  color: var(--mint-dim);
  margin-bottom: 12px;
}
.page-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.8px;
  background: linear-gradient(150deg, #ffffff, #cfeae4 70%, #8fb8c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ---------- 11. 筛选 / chip ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.chip {
  padding: 8px 17px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.25s var(--ease);
}
.chip b { font-family: var(--mono); font-size: 11px; color: var(--mint-dim); margin-left: 5px; font-weight: 400; }
.chip:hover { color: var(--text); border-color: rgba(82, 242, 197, 0.35); }
.chip.is-active {
  color: #04150f;
  background: linear-gradient(135deg, var(--mint-bright), var(--mint));
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 8px 22px -12px var(--mint-glow);
}
.chip.is-active b { color: rgba(3, 21, 15, 0.6); }

/* ---------- 12. 菌种卡片 ---------- */
.strain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

.strain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(18, 34, 56, 0.8), rgba(8, 15, 28, 0.82));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  animation: cardIn 0.5s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.strain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(82, 242, 197, 0.36);
  box-shadow: 0 26px 54px -28px rgba(82, 242, 197, 0.5);
}
.strain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82, 242, 197, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.strain-card:hover::before { opacity: 1; }

.strain-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.strain-card__dish {
  width: 62px; height: 62px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 38% 32%, rgba(255,255,255,0.08), rgba(6, 20, 26, 0.9) 70%);
  border: 1px solid rgba(82, 242, 197, 0.18);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6), 0 0 22px -8px var(--mint-glow);
}
.strain-card__dish svg { width: 100%; height: 100%; }

.group-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.4px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}
.group-tag[data-group="细菌"] { color: #7fe6ff; border-color: rgba(127, 230, 255, 0.28); background: rgba(127, 230, 255, 0.07); }
.group-tag[data-group="酵母"] { color: #ffd98a; border-color: rgba(255, 217, 138, 0.28); background: rgba(255, 217, 138, 0.07); }
.group-tag[data-group="霉菌"] { color: #9ddc8a; border-color: rgba(157, 220, 138, 0.28); background: rgba(157, 220, 138, 0.07); }
.group-tag[data-group="古菌"] { color: #c9a4ff; border-color: rgba(201, 164, 255, 0.28); background: rgba(201, 164, 255, 0.07); }
.group-tag[data-group="藻类"] { color: #52f2c5; border-color: rgba(82, 242, 197, 0.3); background: rgba(82, 242, 197, 0.07); }

.strain-card h3 { font-size: 18px; margin-bottom: 3px; }
.strain-card__latin {
  display: block;
  font-family: var(--font);
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.strain-card__sum {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.strain-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}
.strain-card__stats b { color: var(--mint); font-weight: 500; }

/* ---------- 13. 面板 ---------- */
.panel {
  padding: 24px 24px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(16, 31, 52, 0.78), rgba(7, 14, 26, 0.8));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel__head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.panel__num {
  display: grid;
  place-items: center;
  min-width: 24px; height: 22px;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mint);
  background: rgba(82, 242, 197, 0.09);
  border: 1px solid rgba(82, 242, 197, 0.22);
  border-radius: 6px;
}
.panel__hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.4px;
}

/* ---------- 14. 表单控件 ---------- */
.field { display: block; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: block;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 9px;
  letter-spacing: 0.4px;
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 42px 12px 15px;
  font-size: 14px;
  color: var(--text);
  background: rgba(4, 12, 24, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.select-wrap select:hover { border-color: rgba(82, 242, 197, 0.34); }
.select-wrap select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(82, 242, 197, 0.13);
}
.select-wrap select option { background: #0b1526; color: var(--text); }
.select-wrap__arrow {
  position: absolute;
  right: 14px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}
.select-wrap--sm select { padding: 9px 38px 9px 12px; font-size: 13px; }
.select-wrap--sm { min-width: 190px; }

/* 分段选择器 */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: rgba(4, 12, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.segmented__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
  border-radius: 6px;
  transition: all 0.25s var(--ease);
}
.segmented__btn svg { width: 18px; height: 18px; opacity: 0.7; }
.segmented__btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.segmented__btn.is-active {
  color: #04150f;
  background: linear-gradient(135deg, var(--mint-bright), var(--mint));
  font-weight: 500;
  box-shadow: 0 6px 18px -10px var(--mint-glow);
}
.segmented__btn.is-active svg { opacity: 1; }

/* ---------- 15. 复选框组 ---------- */
.checks { display: grid; gap: 8px; }

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.check:hover { border-color: rgba(82, 242, 197, 0.3); background: rgba(82, 242, 197, 0.035); }
.check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.check__box {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid rgba(150, 190, 210, 0.38);
  background: rgba(4, 12, 24, 0.7);
  transition: all 0.22s var(--ease);
}
.check__box::after {
  content: '';
  position: absolute;
  left: 5.2px; top: 1.8px;
  width: 4.5px; height: 9px;
  border: solid #03150f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: all 0.22s var(--ease);
}
.check input:checked ~ .check__box {
  background: linear-gradient(135deg, var(--mint-bright), var(--mint));
  border-color: transparent;
  box-shadow: 0 0 14px -2px var(--mint-glow);
}
.check input:checked ~ .check__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible ~ .check__box { box-shadow: 0 0 0 3px rgba(82, 242, 197, 0.25); }
.check input:checked ~ .check__body .check__name { color: var(--mint-bright); }
.check.is-checked {
  border-color: rgba(82, 242, 197, 0.34);
  background: rgba(82, 242, 197, 0.05);
}

.check__body { min-width: 0; flex: 1; }
.check__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.check__name { font-size: 13.5px; color: var(--text); transition: color 0.2s; }
.check__kind {
  font-size: 10.5px;
  padding: 1.5px 7px;
  border-radius: 99px;
  color: var(--text-mute);
  border: 1px solid var(--line);
  letter-spacing: 0.3px;
}
.check__formula {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--blue);
  opacity: 0.72;
}
.check__desc {
  display: block;
  margin-top: 4px;
  font-size: 11.8px;
  line-height: 1.6;
  color: var(--text-mute);
}

/* ---------- 16. 滑块 ---------- */
.slider { margin-bottom: 24px; }
.slider:last-child { margin-bottom: 0; }
.slider__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.slider__label { font-size: 13px; color: var(--text-soft); letter-spacing: 0.3px; }
.slider__value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
}
.slider__value b {
  font-size: 17px;
  color: var(--mint);
  font-weight: 500;
  margin-right: 3px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  display: block;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(82, 242, 197, 0.55), rgba(109, 185, 255, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--mint) 62%, var(--mint-dim));
  border: 0;
  box-shadow: 0 0 0 4px rgba(82, 242, 197, 0.13), 0 2px 10px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.22s, transform 0.18s;
}
input[type="range"]:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(82, 242, 197, 0.18), 0 2px 14px rgba(0, 0, 0, 0.6);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(82, 242, 197, 0.55), rgba(109, 185, 255, 0.35));
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(82, 242, 197, 0.14);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 7px rgba(82, 242, 197, 0.25), 0 2px 10px rgba(0, 0, 0, 0.55);
}

.slider__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  opacity: 0.75;
}

/* 最适区间标记 */
.slider__marks {
  position: relative;
  height: 5px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.slider__marks i {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 99px;
  transition: left 0.4s var(--ease), width 0.4s var(--ease);
}
.marks__optimal {
  background: linear-gradient(90deg, rgba(82, 242, 197, 0.25), rgba(82, 242, 197, 0.85), rgba(82, 242, 197, 0.25));
}
.marks__tolerable {
  background: rgba(109, 185, 255, 0.28);
}

/* ---------- 17. 工作台布局 ---------- */
.bench {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.bench__form { display: grid; gap: 18px; }
.bench__score { position: sticky; top: calc(var(--nav-h) + 20px); }

/* 环形评分 */
.gauge {
  position: relative;
  width: 210px;
  margin: 6px auto 18px;
}
.gauge__svg { width: 100%; height: auto; transform: rotate(-90deg); }
.gauge__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 11;
}
.gauge__fill {
  fill: none;
  stroke: var(--mint);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 515.2;
  stroke-dashoffset: 515.2;
  filter: drop-shadow(0 0 8px rgba(82, 242, 197, 0.55));
  transition: stroke-dashoffset 0.65s var(--ease), stroke 0.4s;
}
.gauge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
}
.gauge__center b {
  font-family: var(--font);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
}
.gauge__center span {
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--mint);
}

.score-note {
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  min-height: 44px;
  margin-bottom: 16px;
}

.meters { display: grid; gap: 10px; margin-bottom: 16px; }
.meter {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.meter__k { color: var(--text-mute); }
.meter__track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter__bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint-dim), var(--mint));
  transition: width 0.55s var(--ease), background 0.35s;
}
.meter__v {
  text-align: right;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-soft);
}

.verdict {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 12.3px;
  line-height: 1.65;
}
.verdict__item {
  display: flex;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.verdict__item--good {
  color: #a8f7dd;
  background: rgba(82, 242, 197, 0.06);
  border-color: rgba(82, 242, 197, 0.16);
}
.verdict__item--bad {
  color: #ffc6a8;
  background: rgba(255, 141, 92, 0.06);
  border-color: rgba(255, 141, 92, 0.18);
}
.verdict__item i { font-style: normal; flex-shrink: 0; opacity: 0.85; }

.bench__score .btn + .btn { margin-top: 9px; }

/* ---------- 18. 模拟器 ---------- */
.sim-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.sim-toolbar__strain,
.sim-toolbar__preset { display: flex; flex-direction: column; gap: 6px; }
.sim-toolbar label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.6px;
}

.sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}
.sim__side { display: grid; gap: 18px; }

/* 培养皿 */
.panel--dish { padding-bottom: 18px; }
.dish-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 0 20px;
}
.dish-holder {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
}
.dish {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.09), transparent 44%),
    radial-gradient(circle at 50% 50%, #123028 0%, #0a1d20 55%, #050f16 100%);
  border: 1px solid rgba(82, 242, 197, 0.24);
  box-shadow:
    0 0 0 9px rgba(82, 242, 197, 0.03),
    0 0 0 18px rgba(255, 255, 255, 0.012),
    0 0 60px -14px rgba(82, 242, 197, 0.42),
    inset 0 0 52px rgba(0, 0, 0, 0.6);
}
.dish::after {
  /* 玻璃高光 */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.13), transparent 34%);
  pointer-events: none;
}
.dish__svg { width: 100%; height: 100%; display: block; }

.dish-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-mute);
}
.dish-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dish-legend b { font-family: var(--mono); color: var(--mint); font-weight: 500; }
.dish-legend__sep { width: 1px; height: 12px; background: var(--line); }
.swatch {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px currentColor;
}

/* 读数 */
.readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.readout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  background: rgba(9, 18, 32, 0.92);
}
.readout__k { font-size: 11px; color: var(--text-mute); }
.readout__v {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-mute);
}
.readout__v b {
  font-size: 17px;
  font-weight: 500;
  color: var(--mint);
  letter-spacing: -0.4px;
}

.phase-badge {
  padding: 4px 12px;
  font-size: 11.5px;
  border-radius: 99px;
  color: var(--blue);
  background: rgba(109, 185, 255, 0.1);
  border: 1px solid rgba(109, 185, 255, 0.26);
  transition: all 0.4s;
  white-space: nowrap;
}

/* 时间轴 */
.timeline { padding-top: 4px; }
.timeline__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.timeline__val { font-family: var(--mono); }
.timeline__val b { font-size: 16px; color: var(--mint); font-weight: 500; }
.timeline__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-mute);
  opacity: 0.7;
}
.timeline__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: #03150f;
  background: linear-gradient(135deg, var(--mint-bright), var(--mint-dim));
  box-shadow: 0 8px 24px -10px var(--mint-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.22s var(--ease), box-shadow 0.25s;
  flex-shrink: 0;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 10px 30px -8px rgba(82, 242, 197, 0.65); }
.play-btn:active { transform: scale(0.97); }
.play-btn svg { width: 19px; height: 19px; }
.play-btn .icon-pause { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

.mini-btn {
  padding: 8px 15px;
  font-size: 12.5px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: all 0.22s;
}
.mini-btn:hover { color: var(--text); border-color: rgba(82, 242, 197, 0.4); background: rgba(82, 242, 197, 0.05); }

.speed {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  color: var(--text-mute);
}
.speed > span { margin-right: 4px; }
.speed__opt {
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.speed__opt:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.speed__opt.is-active {
  color: var(--mint);
  border-color: rgba(82, 242, 197, 0.3);
  background: rgba(82, 242, 197, 0.08);
}

/* 图表 */
.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-mute);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 2.5px; border-radius: 2px; display: inline-block; }
.lg--curve { background: var(--mint); box-shadow: 0 0 8px rgba(82, 242, 197, 0.6); }
.lg--mu { background: var(--blue); opacity: 0.85; }
.lg--cursor { background: transparent; border-left: 2px dashed rgba(255, 209, 102, 0.9); height: 10px; width: 2px; }

.chart-box {
  position: relative;
  height: 270px;
  width: 100%;
}

.phases {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.phase-strip__item {
  flex: 1;
  min-width: 62px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text-mute);
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition: all 0.3s;
  cursor: default;
}
.phase-strip__item.is-current {
  color: #04150f;
  font-weight: 500;
  border-color: transparent;
  background: var(--mint);
  box-shadow: 0 0 18px -6px var(--mint-glow);
}

.chart-note {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mute);
}

/* ---------- 19. 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, #0e1d33, #070f1d 70%);
  border: 1px solid rgba(82, 242, 197, 0.22);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -40px var(--mint-glow);
  animation: modalIn 0.42s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: all 0.22s;
}
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; }

.modal__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 32px 34px 26px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 0% 0%, rgba(82, 242, 197, 0.09), transparent 60%);
}
.modal__dish {
  width: 108px; height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(82, 242, 197, 0.22);
  box-shadow: 0 0 40px -14px var(--mint-glow), inset 0 0 26px rgba(0, 0, 0, 0.55);
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.08), #071a1e 72%);
}
.modal__dish svg { width: 100%; height: 100%; }
.modal__title { font-size: 28px; letter-spacing: -0.5px; margin: 8px 0 3px; }
.modal__latin {
  font-family: var(--font);
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-mute);
  display: block;
  margin-bottom: 14px;
}
.modal__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.modal__tags span {
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-soft);
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.modal__body { padding: 26px 34px 32px; }
.modal__body .modal__head { padding: 0 0 24px; margin: 0 -34px 26px; background: none; }

.modal__section { margin-bottom: 26px; }
.modal__section:last-child { margin-bottom: 0; }
.modal__section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--mint-dim);
  margin-bottom: 14px;
}
.modal__section h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.modal__text { font-size: 13.8px; line-height: 1.9; color: var(--text-soft); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.spec {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
}
.spec__k { display: block; font-size: 10.5px; color: var(--text-mute); letter-spacing: 0.4px; margin-bottom: 5px; }
.spec__v { font-size: 13px; color: var(--text); font-family: var(--mono); }
.spec__v.is-accent { color: var(--mint); }

.modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- 20. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  padding: 12px 22px;
  font-size: 13.5px;
  color: var(--text);
  background: rgba(10, 24, 34, 0.96);
  border: 1px solid rgba(82, 242, 197, 0.35);
  border-radius: 99px;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.9), 0 0 30px -12px var(--mint-glow);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(12px);
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 21. 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 14, 0.6);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-mute);
}
.footer__meta { font-size: 11.5px; opacity: 0.75; }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { order: -1; min-height: 320px; }
  .dish-orbit { width: min(320px, 78%); }
  .bench { grid-template-columns: 1fr; }
  .bench__score { position: static; }
  .sim { grid-template-columns: 1fr; }
  .nav__status { display: none; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(5, 10, 22, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-115%);
    transition: transform 0.38s var(--ease);
    margin: 0;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 13px 16px; font-size: 15px; border-radius: var(--r-sm); }
  .nav__toggle { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-head--row { align-items: flex-start; }
  .sim-toolbar { width: 100%; }
  .sim-toolbar__strain, .sim-toolbar__preset { flex: 1; }
  .select-wrap--sm { min-width: 0; }
  .chart-box { height: 230px; }
  .modal__head { grid-template-columns: 1fr; padding: 26px 22px 22px; }
  .modal__dish { width: 84px; height: 84px; }
  .modal__body { padding: 20px 22px 26px; }
  .modal__body .modal__head { margin: 0 -22px 22px; }
}

@media (max-width: 560px) {
  .container, .nav__inner { width: calc(100% - 32px); }
  .view { padding-top: calc(var(--nav-h) + 26px); }
  .hero__title { font-size: 36px; }
  .stats { gap: 10px; }
  .stat { padding: 16px 16px 15px; }
  .stat__value b { font-size: 28px; }
  .stat__meta { font-size: 10.5px; }
  .feature-card { padding: 24px 20px; }
  .panel { padding: 18px 16px; }
  .readouts { grid-template-columns: 1fr; }
  .dish-holder { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .bench__score .gauge { width: 180px; }
  .timeline__ticks span:nth-child(even) { display: none; }
}

/* 尊重"减少动效"偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sky__stars { display: none; }
}
