/* ==========================================================================
   智控研发工作室 · 官网全局样式
   设计系统：深色科技风 / 青蓝渐变 / 玻璃拟态
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0b0e14;
  --bg-soft: #0e131b;
  --bg-panel: #11151d;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #34d399;

  --txt: #f1f5f9;
  --txt-2: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;

  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.06));

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 50px -20px rgba(34, 211, 238, 0.45);

  --maxw: 1200px;
  --nav-h: 68px;

  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; }
p { margin: 0; }
figure, blockquote { margin: 0; }
::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(34, 211, 238, 0.13), transparent 62%),
    radial-gradient(760px 480px at 8% 4%, rgba(59, 130, 246, 0.10), transparent 60%);
  pointer-events: none;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
  padding-top: clamp(64px, 7.5vw, 112px);
  padding-bottom: clamp(64px, 7.5vw, 112px);
  position: relative;
}
.section--tight {
  padding-top: 52px;
  padding-bottom: 52px;
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 72px);
}
.section + .section { padding-top: 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 58px); text-align: center; }
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; }

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(11, 14, 20, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-size: 1.02rem; }
.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
  line-height: 1.4;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--txt-2);
  font-size: 0.94rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--txt);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--txt);
  transition: transform 0.25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s, color 0.22s;
}

.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 12px 34px -12px rgba(34, 211, 238, 0.75);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px rgba(34, 211, 238, 0.9);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--txt);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

/* ---------- 6. Cards ---------- */
.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.5), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--cyan);
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.card--featured {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.05) 60%, rgba(255, 255, 255, 0.02));
  box-shadow: 0 22px 60px -28px rgba(34, 211, 238, 0.65);
}
.card--featured::after { opacity: 1; }

.card__badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #04121a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 功能点列表 */
.feature-list { display: grid; gap: 9px; margin-top: 16px; }
.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.5);
  box-shadow: inset 0 0 0 2px rgba(11, 14, 20, 1), 0 0 8px rgba(34, 211, 238, 0.4);
}

/* 通用网格 */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #67e8f9 0%, #22d3ee 40%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.85;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats div { padding-left: 22px; padding-right: 22px; border-left: 1px solid var(--line); }
.hero__stats div:first-child { padding-left: 0; border-left: 0; }
.hero__stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__stats span { font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.04em; }

/* Hero 视觉 */
.hero__visual { position: relative; }

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__visual:hover .hero-panel { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }

.hero-panel::before {
  content: "";
  position: absolute;
  top: -22%; right: -22%; bottom: -22%; left: -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.28), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-panel__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 12px;
}
.hero-panel__bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.hero-panel__bar i:nth-child(1) { background: rgba(52, 211, 153, 0.75); }
.hero-panel__bar i:nth-child(2) { background: rgba(245, 158, 11, 0.75); }
.hero-panel__bar i:nth-child(3) { background: rgba(239, 68, 68, 0.75); }
.hero-panel__bar b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-panel__body {
  display: block;
  aspect-ratio: 1792 / 940;
}
.hero-panel__body .shot {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070a0f;
  min-height: 0;
}
.hero-panel__body .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-panel__chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-panel__chips span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--txt-2);
}
.hero-panel__chips span b { color: var(--cyan); font-weight: 600; }

/* ---------- 8. 信任条 ---------- */
.trustbar {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  overflow: hidden;
}
.trustbar__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.trustbar:hover .trustbar__track { animation-play-state: paused; }
.trustbar__track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  white-space: nowrap;
}
.trustbar__track span::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.5);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. 技术栈 ---------- */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.stack__bars { display: grid; gap: 22px; }
.bar__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 0.9rem;
  color: var(--txt-2);
}
.bar__label b { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }
.bar__track {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--txt-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.tags span:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: #fff;
  background: rgba(34, 211, 238, 0.09);
  transform: translateY(-2px);
}

/* ---------- 10. 案例 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filters button {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.87rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filters button:hover { color: #fff; border-color: var(--line-strong); }
.filters button[aria-pressed="true"] {
  color: #04121a;
  font-weight: 600;
  border-color: transparent;
  background: var(--grad);
}

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 30px 70px -30px rgba(34, 211, 238, 0.4), var(--shadow);
}

.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070a0f;
  border-bottom: 1px solid var(--line);
}
.case-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover .case-card__media img { transform: scale(1.045); }
.case-card__media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 15, 0.75));
  pointer-events: none;
}

.case-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.case-card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-card__body p { color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.case-card__tags span {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #7dd3fc;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.case-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
}
.case-card__more::after { content: "→"; transition: transform 0.25s; }
.case-card:hover .case-card__more::after { transform: translateX(4px); }

.case-card--wide { grid-column: span 2; }
.case-card--wide .case-card__media { aspect-ratio: 16 / 8.4; }

.case-card[hidden] { display: none; }

/* ---------- 11. 数据条 ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: clamp(26px, 3.4vw, 44px) 0;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(34, 211, 238, 0.14), transparent 58%),
    radial-gradient(120% 160% at 100% 100%, rgba(59, 130, 246, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.018);
  text-align: center;
}
.stats-band > div { padding: 8px 12px; border-left: 1px solid var(--line); }
.stats-band > div:first-child { border-left: 0; }
.stats-band strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
}
.stats-band span { font-size: 0.82rem; color: var(--muted); }

/* ---------- 12. 流程 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.process::before {
  content: "";
  position: absolute;
  top: 30px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45) 12%, rgba(59, 130, 246, 0.45) 88%, transparent);
}

.process__item { position: relative; text-align: center; padding-top: 0; }
.process__num {
  position: relative;
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.22), rgba(11, 14, 20, 0.95) 72%);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 28px -6px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.process__item h3 { font-size: 0.97rem; margin-bottom: 8px; }
.process__item p { font-size: 0.82rem; color: var(--muted-2); line-height: 1.6; }

/* ---------- 13. 评价 ---------- */
.quote {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 6px; right: 22px;
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
}
.quote p { color: var(--txt-2); font-size: 0.93rem; line-height: 1.8; position: relative; }
.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote__avatar {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
}
.quote footer b { display: block; font-size: 0.88rem; }
.quote footer span { font-size: 0.76rem; color: var(--muted-2); }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 860px; margin-left: auto; margin-right: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s, border-color 0.25s;
}
.faq details[open] summary { color: #fff; }
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--cyan);
}
.faq .faq__a {
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
  max-width: 92%;
}
.faq .faq__a a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. 文章 ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow);
}
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #070a0f; border-bottom: 1px solid var(--line); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.post-card__meta .tag {
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
  color: #7dd3fc;
}
.post-card h3 { font-size: 1rem; line-height: 1.5; margin-bottom: 10px; }
.post-card:hover h3 { color: #fff; }
.post-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.65; }

.post-card--row { flex-direction: row; align-items: stretch; }
.post-card--row .post-card__media { width: 34%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }

/* ---------- 16. CTA / Footer ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 4vw, 54px);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 180% at 0% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(90% 180% at 100% 100%, rgba(59, 130, 246, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); font-size: 0.95rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
}
.qr-card img { width: 74px; height: 74px; border-radius: 8px; background: #fff; padding: 4px; }
.qr-card b { display: block; font-size: 0.88rem; }
.qr-card span { font-size: 0.74rem; color: var(--muted-2); }

.site-footer {
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand p { margin-top: 16px; max-width: 320px; color: var(--muted-2); font-size: 0.86rem; line-height: 1.8; }
.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--txt-2); font-size: 0.87rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--cyan); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted-2);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a:hover { color: var(--txt-2); }

/* ---------- 17. 页面头部（内页） ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 84px));
  padding-bottom: clamp(32px, 4vw, 52px);
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.page-head p { max-width: 720px; color: var(--muted); font-size: 1rem; line-height: 1.85; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.2); }
.breadcrumb li { display: flex; align-items: center; }

/* ---------- 18. 正文排版 ---------- */
.prose {
  max-width: 780px;
  color: var(--txt-2);
  font-size: 1rem;
  line-height: 1.95;
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
  color: #fff;
}
.prose h3 { font-size: 1.1rem; margin-top: 1.9em; margin-bottom: 0.55em; color: #fff; }
.prose p { color: var(--txt-2); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.78em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: n; }
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 0.15em;
  width: 21px; height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
}
.prose blockquote {
  padding: 18px 22px;
  border-left: 3px solid rgba(34, 211, 238, 0.5);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(34, 211, 238, 0.055);
  color: var(--txt-2);
  font-size: 0.95rem;
}
.prose blockquote p { color: var(--txt-2); }
.prose pre {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #06090d;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-family: var(--mono);
  font-size: 0.86em;
  color: #7dd3fc;
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.prose figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
}
.prose figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #070a0f;
}
.prose figcaption {
  margin-top: 0;
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: center;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose th, .prose td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose th { background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 600; }
.prose td { color: var(--txt-2); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.article-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 18px; }
.aside-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
}
.aside-card h3 { font-size: 0.9rem; margin-bottom: 14px; }
.aside-card ul { display: grid; gap: 12px; }
.aside-card a { font-size: 0.85rem; color: var(--txt-2); line-height: 1.6; display: block; }
.aside-card a:hover { color: var(--cyan); }

/* ---------- 19. 站点提示 / 灯箱 ---------- */
.wechat-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(13, 18, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -18px rgba(34, 211, 238, 0.6);
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wechat-float:hover { transform: translateY(-3px); box-shadow: 0 22px 52px -16px rgba(34, 211, 238, 0.8); }
.wechat-float svg { width: 20px; height: 20px; color: #4ade80; }

.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 5vw;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 1);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* ---------- 20. 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; margin-left: auto; margin-right: auto; width: 100%; }
  .hero-panel { transform: none; }
  .stack { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .case-card--wide { grid-column: span 2; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .prose, .prose > * { min-width: 0; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header .btn--primary { display: none; }

  .site-header.is-open { background: rgba(11, 14, 20, 0.98); backdrop-filter: blur(16px); }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    padding: 14px 24px 22px;
    gap: 4px;
    background: rgba(11, 14, 20, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .site-header.is-open .nav-links a[aria-current="page"]::after { display: none; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stats-band > div:nth-child(3) { border-left: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .hero__stats div { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .hero__stats { gap: 14px 0; }
  .hero__stats div { flex: 1 1 46%; padding-left: 14px; padding-right: 14px; }
  .hero__stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cases, .posts, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .case-card--wide { grid-column: span 1; }
  .case-card--wide .case-card__media { aspect-ratio: 16 / 10; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .post-card--row { flex-direction: column; }
  .post-card--row .post-card__media { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .wechat-float { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 0.8rem; }
  .wechat-float em { display: none; }
  .filters { gap: 8px; }
  .filters button { padding: 6px 14px; font-size: 0.82rem; }
  .prose { font-size: 0.95rem; }
  .qr-card { width: 100%; }
}

/* ---------- 22. 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.contact-panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
}
.contact-panel h2 { font-size: 1.2rem; margin-bottom: 18px; }

.contact-rows { display: grid; gap: 14px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}
.contact-row:hover { border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.05); }
.contact-row__icon {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}
.contact-row__icon svg { width: 18px; height: 18px; }
.contact-row__body { min-width: 0; }
.contact-row__body b { display: block; font-size: 0.9rem; }
.contact-row__body span { font-size: 0.8rem; color: var(--muted-2); word-break: break-all; }

.qr-box {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}
.qr-box__img {
  width: min(220px, 62vw);
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 10px;
}
.qr-box p { font-size: 0.82rem; color: var(--muted-2); line-height: 1.7; }

.need-list { display: grid; gap: 10px; }
.need-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.88rem;
  color: var(--txt-2);
}
.need-list li::before {
  content: "□";
  color: var(--cyan);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- 23. 404 ---------- */
.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  text-align: center;
}
.error-page__code {
  font-family: var(--mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.error-page h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 18px 0 14px; }
.error-page p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--muted); line-height: 1.9; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.error-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 46px auto 0;
  text-align: left;
}
.error-links a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, transform 0.2s;
}
.error-links a:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-2px); }
.error-links b { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.error-links span { font-size: 0.78rem; color: var(--muted-2); }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .error-links { grid-template-columns: 1fr; }
  .contact-row { align-items: flex-start; }
}

/* ---------- 24. 文章列表封面占位 / 空状态 / 分页 ---------- */
/* 数据库没有 cover 字段时的封面占位（纯 CSS，不依赖图片） */
.post-card__media--ph {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 28% 18%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(70% 90% at 82% 88%, rgba(59, 130, 246, 0.22), transparent 62%),
    #0a0f16;
}
.post-card__media--ph::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 78%);
}
.post-card__media--ph svg {
  position: relative;
  width: 34px;
  height: 34px;
  color: rgba(34, 211, 238, 0.6);
  transition: transform 0.6s;
}
.post-card:hover .post-card__media--ph svg { transform: scale(1.12); }

.empty-state {
  padding: clamp(48px, 7vw, 88px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; margin-bottom: 10px; color: var(--txt); font-size: 1.05rem; }
.empty-state p { font-size: 0.9rem; }

/* ThinkPHP paginate()->render() 默认输出 ul.pagination，这里统一覆盖成深色样式 */
.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(36px, 4vw, 56px);
}
.pagination-wrap .pagination__meta {
  width: 100%;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-2);
}
ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.pagination > li { display: flex; margin: 0; }
ul.pagination > li > a,
ul.pagination > li > span {
  min-width: 42px;
  height: 42px;
  padding-left: 13px;
  padding-right: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt-2);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
ul.pagination > li > a:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.09);
  color: #fff;
  transform: translateY(-2px);
}
ul.pagination > li.active > span,
ul.pagination > li.active > a {
  border-color: transparent;
  background: var(--grad);
  color: #04121a;
  font-weight: 700;
}
ul.pagination > li.disabled > span,
ul.pagination > li.disabled > a {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 640px) {
  ul.pagination > li > a,
  ul.pagination > li > span { min-width: 38px; height: 38px; padding-left: 10px; padding-right: 10px; font-size: 0.8rem; }
  ul.pagination { gap: 6px; }
}

/* ---------- 25. 文章详情页 ---------- */
/* 阅读进度条 */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 130;
  width: 0;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* 标题下方的时间 / 分类行 */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted-2);
}
.article-meta .tag {
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
  color: #7dd3fc;
  font-size: 0.74rem;
}

/* 侧栏自动目录 */
.toc { display: grid; gap: 9px; }
.toc a {
  display: block;
  padding: 4px 0 4px 11px;
  border-left: 1px solid var(--line);
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.toc a:hover { color: var(--txt); border-left-color: rgba(34, 211, 238, 0.45); }
.toc a.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), transparent);
}
.toc .toc__item--sub a { padding-left: 22px; font-size: 0.79rem; }

/* 侧栏文章信息 */
.meta-list { display: grid; gap: 10px; }
.meta-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.meta-list b { color: var(--txt-2); font-weight: 500; text-align: right; }

/* 上一篇 / 下一篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}
.post-nav > a,
.post-nav > span {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.post-nav > a:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
}
.post-nav small {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.post-nav b { font-size: 0.92rem; font-weight: 600; line-height: 1.55; }
.post-nav .is-next { text-align: right; }
.post-nav > span.is-empty { opacity: 0.4; }

/* 相关文章 */
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.related-head h2 { font-size: 1.2rem; }
.related-head a { font-size: 0.85rem; color: var(--cyan); }

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .is-next { text-align: left; }
}

/* ---------- 26. 低版本 Chromium 内核兜底 ---------- */
/* 360 / QQ / 搜狗等浏览器常驻留在 Chromium 8x 内核，下面这两类特性会被整条丢弃：
   - 逻辑属性 margin-inline / padding-inline / inset / border-block（需 Chromium 87+）
     已全部改写成 margin-left/right、padding-left/right、top/right/bottom/left
   - aspect-ratio（需 Chromium 88+），用 @supports 做固定高度兜底
   以后新增样式不要再使用上述新属性，否则页面在 360 里会“只丢一部分板式”。 */
@supports not (aspect-ratio: 16 / 9) {
  .hero-panel__body { height: 340px; }
  .case-card__media { height: 200px; }
  .case-card--wide .case-card__media { height: 232px; }
  .post-card__media { height: 196px; }
  .post-card--row .post-card__media { height: auto; }
}

@media (max-width: 1080px) {
  @supports not (aspect-ratio: 16 / 9) {
    .hero-panel__body { height: 360px; }
  }
}

@media (max-width: 860px) {
  @supports not (aspect-ratio: 16 / 9) {
    .case-card__media { height: 190px; }
    .case-card--wide .case-card__media { height: 190px; }
  }
}

@media (max-width: 640px) {
  @supports not (aspect-ratio: 16 / 9) {
    .hero-panel__body { height: 300px; }
    .post-card__media { height: 200px; }
  }
}
