/* ==========================================================================
   K8s 学习手册 — 视觉系统
   ========================================================================== */

:root {
  --ink: #0a0f1c;
  --ink-2: #101a2d;
  --paper: #fbfcfe;
  --paper-2: #f3f6fb;
  --paper-3: #eef2f8;
  --line: #e3e9f2;
  --line-strong: #d2dbe8;
  --text: #1b2739;
  --muted: #596a82;
  --faint: #8494a9;
  --mint: #0d9488;
  --mint-bright: #2dd4bf;
  --mint-soft: #e7fffb;
  --blue: #2563eb;
  --amber: #d97706;
  --rose: #e11d48;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 28, 0.04), 0 4px 14px rgba(10, 15, 28, 0.04);
  --shadow-md: 0 18px 50px -18px rgba(10, 15, 28, 0.22);
  --section-max: 74rem;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono",
    Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Material 主题变量
   -------------------------------------------------------------------------- */

[data-md-color-scheme="default"] {
  --md-default-bg-color: var(--paper);
  --md-default-fg-color: var(--text);
  --md-default-fg-color--light: var(--muted);
  --md-default-fg-color--lighter: var(--faint);
  --md-default-fg-color--lightest: rgba(132, 148, 169, 0.22);
  --md-code-bg-color: #f5f8fc;
  --md-code-fg-color: #24324a;
  --md-typeset-color: var(--text);
  --md-typeset-a-color: #0f766e;
  --md-accent-fg-color: var(--mint);
  --md-accent-fg-color--transparent: rgba(13, 148, 136, 0.1);
  --md-typeset-mark-color: #fef3c7;
}

[data-md-color-scheme="slate"] {
  --md-hue: 220;
  --md-default-bg-color: #0b1018;
  --md-default-fg-color: #d7e0ec;
  --md-default-fg-color--light: #93a3b8;
  --md-default-fg-color--lighter: #6b7c93;
  --md-default-fg-color--lightest: rgba(147, 163, 184, 0.18);
  --md-code-bg-color: #0f1622;
  --md-code-fg-color: #cfd9e6;
  --md-typeset-color: #d7e0ec;
  --md-typeset-a-color: #5eead4;
  --md-accent-fg-color: var(--mint-bright);
  --md-accent-fg-color--transparent: rgba(45, 212, 191, 0.12);
  --md-typeset-mark-color: rgba(251, 191, 36, 0.35);

  --paper: #0b1018;
  --paper-2: #111927;
  --paper-3: #162031;
  --line: #202c3f;
  --line-strong: #2b3a51;
  --text: #d7e0ec;
  --muted: #93a3b8;
  --faint: #6b7c93;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}

[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0a0f1c;
  --md-primary-fg-color--light: #111a2e;
  --md-primary-fg-color--dark: #060a12;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   基础排版
   -------------------------------------------------------------------------- */

body,
input,
button {
  font-family: var(--font-sans);
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
}

::selection {
  background: rgba(45, 212, 191, 0.28);
}

.md-typeset {
  font-size: 0.8rem;
  line-height: 1.78;
  color: var(--text);
}

.md-typeset p {
  margin: 0.85em 0;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.md-typeset h1 {
  font-size: 2.05rem;
  line-height: 1.18;
  margin: 0 0 0.55rem;
  font-weight: 800;
  letter-spacing: -0.028em;
}

.md-typeset h2 {
  font-size: 1.34rem;
  line-height: 1.35;
  margin: 2.5em 0 0.85em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.018em;
}

.md-typeset h2::before {
  content: "";
  display: inline-block;
  width: 0.32rem;
  height: 0.92em;
  margin-right: 0.55rem;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--mint-bright), var(--mint));
  vertical-align: -0.06em;
}

.md-typeset h3 {
  font-size: 1.03rem;
  margin: 1.9em 0 0.65em;
}

.md-typeset h4 {
  font-size: 0.9rem;
  margin: 1.5em 0 0.5em;
}

.md-typeset h5 {
  font-size: 0.78rem;
  margin: 1.4em 0 0.4em;
  color: var(--muted);
  text-transform: none;
}

.md-typeset a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

.md-typeset a:hover {
  border-bottom-color: currentColor;
}

.md-typeset hr {
  border-bottom: 1px solid var(--line);
  margin: 2.4em 0;
}

.md-typeset strong {
  font-weight: 700;
  color: var(--text);
}

.md-typeset ul li,
.md-typeset ol li {
  margin-bottom: 0.35em;
}

.md-typeset .headerlink {
  color: var(--faint);
  opacity: 0;
  transition: opacity 120ms ease;
}

.md-typeset h2:hover .headerlink,
.md-typeset h3:hover .headerlink,
.md-typeset h4:hover .headerlink {
  opacity: 0.55;
}

/* 正文首段 / 章节导语 */
.chapter-deck {
  max-width: 48rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.9;
  border-left: 3px solid var(--mint-bright);
  padding-left: 0.9rem;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 1.7rem;
}

.chapter-meta span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  white-space: nowrap;
}

.chapter-meta span:first-child {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.26);
  background: rgba(13, 148, 136, 0.07);
}

[data-md-color-scheme="slate"] .chapter-meta span:first-child {
  color: #5eead4;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.md-header {
  background: rgba(10, 15, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.md-header__inner {
  max-width: 90rem;
}

.md-header__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-header__topic .md-ellipsis {
  font-size: 0.9rem;
}

.md-logo img,
.md-logo svg {
  height: 1.65rem;
  width: 1.65rem;
  border-radius: 0.3rem;
}

.md-search__form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 150ms ease, border-color 150ms ease;
}

.md-search__form:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.md-search__input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.md-search__icon[for="__search"] {
  color: rgba(226, 232, 240, 0.75);
}

/* 顶部 Tab */
.md-tabs {
  background: #0a0f1c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.md-tabs__list {
  max-width: 90rem;
  margin: 0 auto;
}

.md-tabs__link {
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 1;
  transition: color 140ms ease;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: #ffffff;
}

.md-tabs__item {
  height: 2.35rem;
}

.md-tabs__item .md-tabs__link--active {
  box-shadow: inset 0 -2px 0 var(--mint-bright);
}

/* 左右侧栏 */
.md-sidebar {
  font-size: 0.72rem;
}

.md-nav {
  font-size: 0.7rem;
  line-height: 1.45;
}

.md-nav__title {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.md-nav__link {
  color: var(--muted);
  padding: 0.32rem 0;
  transition: color 120ms ease;
}

.md-nav__link:hover {
  color: var(--md-accent-fg-color);
}

.md-nav__link--active,
.md-nav__link--active:hover {
  color: var(--md-accent-fg-color);
  font-weight: 650;
}

.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
  color: var(--text);
  font-weight: 700;
}

.md-nav--secondary .md-nav__title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.md-nav--secondary .md-nav__link {
  padding: 0.22rem 0;
}

.md-nav--secondary .md-nav__list {
  padding-left: 0.1rem;
  border-left: 1px solid var(--line);
}

.md-nav--secondary .md-nav__item {
  padding-left: 0.55rem;
}

/* 阅读进度 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint-bright), #60a5fa);
  pointer-events: none;
}

body:has(.home-shell) .reading-progress {
  display: none;
}

/* --------------------------------------------------------------------------
   正文元素
   -------------------------------------------------------------------------- */

.md-content__inner {
  padding-bottom: 2.5rem;
}

.md-content__inner::before {
  display: none;
}

.md-typeset code {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 0.13em 0.38em;
  border-radius: 5px;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-typeset code {
  color: #7dd3c7;
  background: rgba(45, 212, 191, 0.09);
  border-color: rgba(45, 212, 191, 0.15);
}

.md-typeset .highlight {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--md-code-bg-color);
  box-shadow: var(--shadow-sm);
  margin: 1.1em 0;
}

.md-typeset .highlight pre {
  margin: 0;
}

.md-typeset .highlight code {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.74rem;
  line-height: 1.72;
}

.md-typeset pre > code {
  font-size: 0.72rem;
  line-height: 1.72;
}

.md-clipboard {
  color: var(--faint);
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.7rem;
  box-shadow: var(--shadow-sm);
  margin: 1.2em 0;
}

.md-typeset table:not([class]) th {
  background: var(--paper-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0.8rem;
  white-space: nowrap;
}

.md-typeset table:not([class]) td {
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0.8rem;
  vertical-align: top;
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: 0;
}

.md-typeset table:not([class]) tr:hover td {
  background: rgba(13, 148, 136, 0.035);
}

.md-typeset blockquote {
  margin: 1.2em 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--mint-bright);
  border-radius: 0 8px 8px 0;
  background: var(--paper-2);
  color: var(--muted);
}

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

.md-typeset .admonition,
.md-typeset details {
  border: 1px solid var(--line);
  border-left: 3px solid var(--md-accent-fg-color);
  border-radius: 9px;
  box-shadow: none;
  font-size: 0.73rem;
  overflow: hidden;
  margin: 1.3em 0;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-weight: 700;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.md-typeset .admonition-title {
  background: rgba(13, 148, 136, 0.055);
}

.md-typeset .admonition.note,
.md-typeset details.note {
  border-left-color: var(--blue);
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-left-color: var(--amber);
}

.md-typeset .admonition.danger,
.md-typeset details.danger {
  border-left-color: var(--rose);
}

.md-typeset .task-list-item {
  list-style: none;
}

.md-typeset .task-list-item input {
  margin-right: 0.45rem;
}

.md-typeset .md-button {
  border-radius: 8px;
  font-weight: 650;
}

/* Mermaid */
.mermaid {
  margin: 1.4rem 0;
  text-align: center;
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* 文档内可复用的结构组件 */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.3em 0;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  padding: 0.9rem 1rem;
}

.doc-card h4 {
  margin: 0 0 0.35rem !important;
  font-size: 0.78rem;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.7;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.3em 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
}

.flow__node {
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text);
}

.flow__node--accent {
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.08);
  color: #0f766e;
}

[data-md-color-scheme="slate"] .flow__node--accent {
  color: #5eead4;
}

.flow__arrow {
  color: var(--faint);
  font-size: 0.72rem;
}

/* 页脚导航 */
.md-footer {
  background: #0a0f1c;
}

.md-footer-meta {
  background: #070b13;
}

.md-footer__inner {
  max-width: 90rem;
}

.md-copyright {
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.62rem;
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

body:has(.home-shell) .md-main__inner {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.home-shell) .md-content {
  max-width: none;
}

body:has(.home-shell) .md-content__inner {
  padding: 0;
  margin: 0;
}

body:has(.home-shell) .md-tabs {
  display: none;
}

body:has(.home-shell) .md-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.home-shell {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.home-article {
  max-width: none;
  padding: 0;
  margin: 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(45, 212, 191, 0.14), transparent 62%),
    radial-gradient(900px 500px at 12% 92%, rgba(37, 99, 235, 0.14), transparent 60%),
    linear-gradient(180deg, #080d18 0%, #0a1220 62%, #0a0f1c 100%);
  color: #e7eef8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  top: -12rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 4.6rem 1.5rem 4.2rem;
}

.home-hero__inner > * {
  min-width: 0;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3c7;
  margin-bottom: 1.15rem;
}

.home-eyebrow::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0.03); }
}

.home-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: #f6f9ff;
}

.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #5eead4 0%, #7dd3fc 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: #9fb0c7;
  font-size: 1rem;
  line-height: 1.85;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.85rem;
  padding: 0 1.3rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn--primary {
  color: #052e2b !important;
  background: linear-gradient(120deg, #5eead4, #2dd4bf);
  box-shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.55);
}

.home-btn--primary:hover {
  box-shadow: 0 14px 34px -8px rgba(45, 212, 191, 0.65);
}

.home-btn--ghost {
  color: #dbe7f6 !important;
  border: 1px solid rgba(203, 213, 225, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 213, 225, 0.35);
}

.home-btn svg {
  width: 0.9rem;
  height: 0.9rem;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.home-hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-hero__meta b {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.home-hero__meta span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d8ea6;
}

/* 终端 */
.home-visual {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 1rem 0.6rem;
}

.home-visual::before {
  content: "";
  position: absolute;
  inset: 12% 4% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 68%);
  filter: blur(18px);
  z-index: -1;
}

.terminal {
  position: relative;
  max-width: 100%;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(9, 14, 25, 0.92);
  box-shadow:
    0 30px 90px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(-1.1deg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.terminal__bar i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #475569;
}

.terminal__bar i:nth-child(1) { background: #f87171; }
.terminal__bar i:nth-child(2) { background: #fbbf24; }
.terminal__bar i:nth-child(3) { background: #34d399; }

.terminal__bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: #64748b;
  letter-spacing: 0.04em;
}

.md-typeset .terminal__mobile {
  display: none;
}

.terminal pre {
  max-width: 100%;
  margin: 0;
  padding: 1.05rem 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.85;
  color: #aebdd2;
}

.terminal .md-code__nav,
.terminal .md-code__button {
  display: none;
}

.terminal code {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.terminal .p { color: #5eead4; }
.terminal .ok { color: #4ade80; }
.terminal .warn { color: #fbbf24; }
.terminal .dim { color: #64748b; }
.terminal .key { color: #93c5fd; }

.home-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(13, 20, 35, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  font-size: 0.6rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.home-float b {
  font-family: var(--font-mono);
  color: #5eead4;
  font-weight: 600;
}

.home-float--one {
  right: -0.5rem;
  bottom: 0.5rem;
  transform: rotate(1.6deg);
}

.home-float--two {
  left: -1.1rem;
  top: -1.35rem;
  transform: rotate(-2.4deg);
}

.home-float__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}

/* 数据条 */
.home-stats-wrap {
  max-width: var(--section-max);
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.home-stat {
  min-width: 0;
  padding: 1.3rem 1.5rem;
  border-right: 1px solid var(--line);
}

.home-stat:last-child {
  border-right: 0;
}

.home-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.2;
}

.home-stat span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.home-section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 4.8rem 1.5rem 1rem;
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-kicker {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.home-section h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  border: 0;
  padding: 0;
}

.home-section h2::before {
  display: none;
}

.home-section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 36rem;
}

.home-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.home-more:hover {
  border-bottom-color: currentColor;
}

/* 学习路径 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 12.2rem;
  padding: 1.25rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint-bright), transparent 70%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-md);
}

.path-card:hover::before {
  opacity: 1;
}

.path-card__num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}

.path-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.7;
}

.path-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--faint);
}

.path-card__foot span:last-child {
  color: var(--mint);
  font-size: 0.7rem;
  transition: transform 180ms ease;
}

.path-card:hover .path-card__foot span:last-child {
  transform: translateX(2px);
}

/* 内容地图 */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.65rem;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 10rem;
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.32);
  box-shadow: var(--shadow-md);
}

.bento-card--core { grid-column: span 5; }
.bento-card--network { grid-column: span 7; }
.bento-card--storage { grid-column: span 4; }
.bento-card--observe { grid-column: span 4; }
.bento-card--delivery { grid-column: span 4; }

.bento-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  margin-bottom: 1rem;
  border-radius: 7px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  background: rgba(13, 148, 136, 0.07);
  color: var(--mint);
}

.bento-card__icon svg {
  width: 1rem;
  height: 1rem;
}

.bento-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--text);
}

.bento-card p {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.75;
}

.bento-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 1rem;
}

.bento-card__tags span {
  padding: 0.16rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted);
}

.bento-card__arrow {
  position: absolute;
  right: 1.1rem;
  top: 1.2rem;
  color: var(--faint);
  font-size: 0.8rem;
  transition: transform 180ms ease, color 180ms ease;
}

.bento-card:hover .bento-card__arrow {
  transform: translate(2px, -2px);
  color: var(--mint);
}

.bento-card--dark {
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(45, 212, 191, 0.15), transparent 65%),
    #0a0f1c;
  border-color: #1b283d;
  color: #e2e8f0;
}

.bento-card--dark h3 {
  color: #f1f5f9;
}

.bento-card--dark p {
  color: #93a3b8;
}

.bento-card--dark .bento-card__icon {
  border-color: rgba(94, 234, 212, 0.22);
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
}

.bento-card--dark .bento-card__tags span {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #93a3b8;
}

.bento-card--dark .bento-card__arrow {
  color: #64748b;
}

/* 实验方法论 */
.home-lab {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}

.home-lab__panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 20px;
  background:
    radial-gradient(700px 400px at 82% 0%, rgba(45, 212, 191, 0.12), transparent 60%),
    linear-gradient(135deg, #0a101c 0%, #0b1424 100%);
  border: 1px solid #1b283d;
  color: #dbe7f6;
  overflow: hidden;
}

.home-lab__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 20%, #000, transparent 75%);
  pointer-events: none;
}

.home-lab__copy {
  position: relative;
  z-index: 1;
}

.home-lab__copy h2 {
  margin: 0 0 0.8rem;
  color: #f4f8ff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.home-lab__copy p {
  margin: 0 0 1.2rem;
  color: #93a3b8;
  font-size: 0.76rem;
  line-height: 1.85;
  max-width: 30rem;
}

.home-lab__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-lab__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #b6c4d8;
  font-size: 0.7rem;
  line-height: 1.6;
}

.home-lab__list li::before {
  content: "✓";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.08rem;
  border-radius: 4px;
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  font-size: 0.56rem;
  font-weight: 700;
}

.home-lab__visual {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(6, 10, 18, 0.72);
  overflow: hidden;
}

.lab-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.lab-step:last-child {
  border-bottom: 0;
}

.lab-step__no {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #5eead4;
  padding-top: 0.1rem;
}

.lab-step__body b {
  display: block;
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 650;
}

.lab-step__body span {
  display: block;
  margin-top: 0.1rem;
  color: #7d8ea6;
  font-size: 0.62rem;
  line-height: 1.55;
}

.lab-step__body code {
  font-size: 0.58rem;
  padding: 0.08em 0.3em;
  border: 1px solid rgba(45, 212, 191, 0.16);
  background: rgba(45, 212, 191, 0.06);
  color: #7dd3c7;
}

/* 底部 CTA */
.home-cta-wrap {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 4.6rem 1.5rem 4.8rem;
}

.home-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.2rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(45, 212, 191, 0.12), transparent 65%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  overflow: hidden;
}

.home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 148, 136, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}

.home-cta > * {
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.035em;
}

.home-cta h2::before {
  display: none;
}

.home-cta p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 34rem;
}

.home-cta .home-btn--ghost {
  color: var(--text) !important;
  border-color: var(--line-strong);
  background: var(--paper);
}

.home-cta .home-btn--ghost:hover {
  border-color: var(--mint);
}

/* 首页页脚 */
.home-footer {
  background: #070b13;
  color: #93a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-footer__inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.home-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.82rem;
}

.home-footer__brand img {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.28rem;
}

.home-footer p {
  margin: 0;
  max-width: 20rem;
  font-size: 0.66rem;
  line-height: 1.75;
  color: #6b7c93;
}

.home-footer h4 {
  margin: 0 0 0.7rem;
  color: #cbd5e1;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.home-footer a {
  display: block;
  margin-bottom: 0.38rem;
  color: #8494a9;
  font-size: 0.66rem;
  text-decoration: none;
}

.home-footer a:hover {
  color: #5eead4;
}

.home-footer__bottom {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 1.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #5b6b82;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1100px) {
  .path-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .path-card {
    min-height: 10.5rem;
  }
}

@media screen and (max-width: 960px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
    padding: 3.4rem 1.3rem 3.6rem;
  }

  .home-visual {
    max-width: 34rem;
    margin: 0 auto;
    width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem, 8vw, 3.2rem);
  }

  .home-lab__panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.2rem;
  }

  .bento-card--core,
  .bento-card--network,
  .bento-card--storage,
  .bento-card--observe,
  .bento-card--delivery {
    grid-column: span 6;
  }

  .home-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 720px) {
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-stat {
    border-bottom: 1px solid var(--line);
  }

  .home-stat:nth-child(2n) {
    border-right: 0;
  }

  .home-stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .path-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .md-typeset h1 {
    font-size: 1.65rem;
  }
}

@media screen and (max-width: 560px) {
  .path-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--core,
  .bento-card--network,
  .bento-card--storage,
  .bento-card--observe,
  .bento-card--delivery {
    grid-column: span 12;
  }

  .home-hero__meta {
    gap: 1.1rem;
  }

  .home-hero__meta b {
    font-size: 0.95rem;
  }

  .home-stats-wrap {
    padding: 0 1rem;
  }

  .home-section,
  .home-lab,
  .home-cta-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
  }

  .home-float {
    display: none;
  }

  .terminal {
    transform: none;
  }

  .terminal > pre:not(.terminal__mobile) {
    display: none;
  }

  .md-typeset .terminal__mobile {
    display: block;
    font-size: 0.56rem;
  }
}

@media screen and (max-width: 420px) {
  .home-hero__inner {
    padding: 2.9rem 1.1rem 3rem;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .home-lede {
    font-size: 0.92rem;
  }

  .home-actions {
    gap: 0.5rem;
  }

  .home-btn {
    height: 2.65rem;
    padding: 0 1rem;
    font-size: 0.72rem;
  }

  .home-section h2 {
    font-size: 1.45rem;
  }
}

@media print {
  .reading-progress,
  .home-visual,
  .md-sidebar,
  .md-header,
  .md-tabs {
    display: none;
  }
}
