/* ==========================================================================
   Miaona机场 (miaona.buzz) — Pure Native CSS Design System
   Zero external CSS/JS frameworks · Pure CSS Dynamic Aurora Background
   ========================================================================== */

:root {
  --bg-base: #060913;
  --bg-elevated: rgba(13, 21, 38, 0.76);
  --bg-card: rgba(16, 25, 46, 0.8);
  --bg-card-hover: rgba(22, 34, 61, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(249, 184, 212, 0.45);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #fbc7de;
  --cyan-light: #ffe4f0;
  --cyan-dim: rgba(249, 184, 212, 0.14);
  --indigo: #c4b5fd;
  --indigo-dim: rgba(196, 181, 253, 0.15);
  --rose: #fb7185;
  --rose-dim: rgba(251, 113, 133, 0.14);
  --emerald: #34d399;
  --emerald-dim: rgba(52, 211, 153, 0.14);
  --amber: #fbbf24;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 18px 45px -18px rgba(2, 6, 23, 0.85);
  --shadow-glow: 0 0 36px -8px rgba(249, 184, 212, 0.26);
  --container-max: 1220px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-base);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-main);
  background: transparent;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Dynamic Pure-CSS Animated Background (Zero JS)
   ========================================================================== */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 15%, rgba(249, 184, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #050811 0%, #080d1b 55%, #060913 100%);
}

.bg-grid {
  position: absolute;
  inset: -120px 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  animation: gridDrift 28s linear infinite;
  will-change: transform;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(82px);
  opacity: 0.55;
  will-change: transform;
}

.bg-orb--cyan {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(249, 184, 212, 0.28), rgba(249, 184, 212, 0) 70%);
  animation: orbFloatA 20s ease-in-out infinite alternate;
}

.bg-orb--indigo {
  width: 620px;
  height: 620px;
  top: 24%;
  right: -140px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.24), rgba(196, 181, 253, 0) 70%);
  animation: orbFloatB 24s ease-in-out infinite alternate;
}

.bg-orb--rose {
  width: 460px;
  height: 460px;
  bottom: -110px;
  left: 28%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22), rgba(244, 114, 182, 0) 70%);
  animation: orbFloatC 22s ease-in-out infinite alternate;
}

.bg-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 228, 240, 0.42), rgba(249, 184, 212, 0.5), transparent);
  box-shadow: 0 0 24px rgba(249, 184, 212, 0.42);
  opacity: 0.38;
  animation: beamSweep 11s ease-in-out infinite;
  will-change: transform, opacity;
}

.bg-particles span {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  opacity: 0;
  animation: moteRise 14s linear infinite;
}

.bg-particles span:nth-child(1) { left: 10%; animation-duration: 13s; animation-delay: 0s; }
.bg-particles span:nth-child(2) { left: 24%; animation-duration: 17s; animation-delay: 2.5s; background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }
.bg-particles span:nth-child(3) { left: 41%; animation-duration: 15s; animation-delay: 5s; }
.bg-particles span:nth-child(4) { left: 58%; animation-duration: 19s; animation-delay: 1.5s; background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.bg-particles span:nth-child(5) { left: 73%; animation-duration: 14s; animation-delay: 4s; }
.bg-particles span:nth-child(6) { left: 89%; animation-duration: 16s; animation-delay: 7s; background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }

/* Assorted Animated Cheeses Layer (Pure CSS + SVG, Zero JS) */
.bg-cheese-layer {
  position: absolute;
  inset: -360px;
  background-image: url("../images/cheese-tile.svg");
  background-size: 360px 360px;
  background-repeat: repeat;
  opacity: 0.24;
  animation: cheeseTileDrift 36s linear infinite;
  will-change: transform;
}

.bg-cheeses {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-cheeses span {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 10px 22px rgba(251, 191, 36, 0.26));
  will-change: transform, opacity;
}

.bg-cheeses span:nth-child(1) {
  width: 82px; height: 70px; left: 2%; top: 14%;
  opacity: 0.68;
  background-image: url("../images/cheese-swiss.svg");
  animation: cheeseBobA 8s ease-in-out infinite alternate;
}

.bg-cheeses span:nth-child(2) {
  width: 88px; height: 80px; right: 2%; top: 18%;
  opacity: 0.66;
  background-image: url("../images/cheese-wheel.svg");
  animation: cheeseBobB 10s ease-in-out infinite alternate;
}

.bg-cheeses span:nth-child(3) {
  width: 74px; height: 64px; left: 2.5%; top: 56%;
  opacity: 0.64;
  background-image: url("../images/cheese-brie.svg");
  animation: cheeseBobB 9s ease-in-out infinite alternate;
}

.bg-cheeses span:nth-child(4) {
  width: 68px; height: 68px; right: 2.5%; top: 64%;
  opacity: 0.68;
  background-image: url("../images/cheese-cube.svg");
  animation: cheeseBobA 7.5s ease-in-out infinite alternate;
}

.bg-cheeses span:nth-child(5) {
  width: 76px; height: 72px; left: 14%; bottom: -90px;
  background-image: url("../images/cheese-melt.svg");
  animation: cheeseRise 18s linear infinite;
  animation-delay: -3s;
}

.bg-cheeses span:nth-child(6) {
  width: 72px; height: 62px; left: 34%; bottom: -90px;
  background-image: url("../images/cheese-blue.svg");
  animation: cheeseRiseReverse 22s linear infinite;
  animation-delay: -9s;
}

.bg-cheeses span:nth-child(7) {
  width: 74px; height: 64px; left: 53%; bottom: -90px;
  background-image: url("../images/cheese-swiss.svg");
  animation: cheeseRise 20s linear infinite;
  animation-delay: -13s;
}

.bg-cheeses span:nth-child(8) {
  width: 64px; height: 64px; left: 73%; bottom: -90px;
  background-image: url("../images/cheese-cube.svg");
  animation: cheeseRiseReverse 17s linear infinite;
  animation-delay: -6s;
}

.bg-cheeses span:nth-child(9) {
  width: 80px; height: 74px; left: 88%; bottom: -90px;
  background-image: url("../images/cheese-wheel.svg");
  animation: cheeseRise 24s linear infinite;
  animation-delay: -16s;
}

.bg-cheeses span:nth-child(10) {
  width: 70px; height: 60px; left: 46%; top: 9%;
  opacity: 0.56;
  background-image: url("../images/cheese-melt.svg");
  animation: cheeseBobA 11s ease-in-out infinite alternate;
}

@keyframes cheeseTileDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(360px, 360px, 0); }
}

@keyframes cheeseBobA {
  0% { transform: translate3d(0, 0, 0) rotate(-10deg) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(-8px, 14px, 0) rotate(-4deg) scale(0.97); }
}

@keyframes cheeseBobB {
  0% { transform: translate3d(0, 0, 0) rotate(12deg) scale(1); }
  50% { transform: translate3d(-14px, 16px, 0) rotate(-8deg) scale(1.05); }
  100% { transform: translate3d(10px, -14px, 0) rotate(6deg) scale(0.98); }
}

@keyframes cheeseRise {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.85); opacity: 0; }
  12% { opacity: 0.42; }
  85% { opacity: 0.36; }
  100% { transform: translate3d(45px, -120vh, 0) rotate(220deg) scale(1.08); opacity: 0; }
}

@keyframes cheeseRiseReverse {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.88); opacity: 0; }
  12% { opacity: 0.4; }
  85% { opacity: 0.34; }
  100% { transform: translate3d(-45px, -120vh, 0) rotate(-200deg) scale(1.06); opacity: 0; }
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 56px, 0); }
}

@keyframes orbFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(90px, 75px, 0) scale(1.14); }
}

@keyframes orbFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-110px, -60px, 0) scale(1.12); }
}

@keyframes orbFloatC {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  100% { transform: translate3d(-65px, -85px, 0) scale(1.16); }
}

@keyframes beamSweep {
  0% { transform: translate3d(0, -10vh, 0); opacity: 0; }
  18% { opacity: 0.38; }
  82% { opacity: 0.35; }
  100% { transform: translate3d(0, 108vh, 0); opacity: 0; }
}

@keyframes moteRise {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  15% { opacity: 0.75; }
  85% { opacity: 0.45; }
  100% { transform: translate3d(24px, -105vh, 0) scale(1.2); opacity: 0; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.38); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-orb,
  .bg-beam,
  .bg-particles span,
  .bg-cheese-layer,
  .bg-cheeses span,
  .pulse-dot {
    animation: none !important;
  }
}

/* ==========================================================================
   Layout & Typography Helpers
   ========================================================================== */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section--tight {
  padding: 3rem 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-light);
  background: var(--cyan-dim);
  border: 1px solid rgba(249, 184, 212, 0.34);
  margin-bottom: 0.9rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.text-gradient {
  background: linear-gradient(120deg, #ffe4f0 0%, #f9b8d4 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  color: #240919;
  background: linear-gradient(135deg, #ffe4f0 0%, #f9b8d4 100%);
  border-color: rgba(255, 228, 240, 0.55);
  box-shadow: 0 10px 26px -8px rgba(249, 184, 212, 0.55);
}

.btn--primary:hover {
  color: #180510;
  background: linear-gradient(135deg, #fff0f6 0%, #fbc7de 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(249, 184, 212, 0.72);
}

.btn--secondary {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  color: var(--cyan);
  border-color: var(--border-accent);
  background: rgba(19, 30, 54, 0.95);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   Sticky Top Navbar & Top-Left Brand Logo
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-main);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(249, 184, 212, 0.5);
  box-shadow: 0 0 18px rgba(249, 184, 212, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-domain {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
}

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

@media (max-width: 959px) {
  .nav-toggle-btn {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(8, 13, 27, 0.96);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3.75rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.pill--live {
  border-color: rgba(52, 211, 153, 0.38);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s ease-in-out infinite;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 0 1.35rem;
  font-size: 1.07rem;
  color: var(--text-soft);
  max-width: 620px;
}

.tldr-box {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(249, 184, 212, 0.08), rgba(196, 181, 253, 0.08));
  border: 1px solid rgba(249, 184, 212, 0.26);
  margin-bottom: 1.6rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tldr-box strong {
  color: var(--cyan-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-item {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.metric-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Telemetry Visual Panel */
.telemetry-card {
  background: var(--bg-card);
  border: 1px solid rgba(249, 184, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(14px);
}

.telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 700;
}

.telemetry-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--emerald-dim);
  color: var(--emerald);
}

.node-list {
  display: grid;
  gap: 0.75rem;
}

.node-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(9, 14, 28, 0.72);
  border: 1px solid var(--border-subtle);
}

.node-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.node-ms {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--emerald);
}

.node-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.node-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
}

.telemetry-foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 959px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Feature Grid & Node Coverage
   ========================================================================== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--cyan-dim);
  color: var(--cyan-light);
  border: 1px solid rgba(249, 184, 212, 0.34);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 750;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (max-width: 959px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Node & Client Split Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.matrix-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

.matrix-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.matrix-panel > p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.78rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.tag--hot {
  border-color: rgba(249, 184, 212, 0.36);
  color: var(--cyan-light);
  background: var(--cyan-dim);
}

@media (max-width: 859px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pricing Section — Strict Single Row on Desktop (所有价格要同排)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.35rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
}

.price-card--featured {
  background: linear-gradient(180deg, rgba(28, 22, 46, 0.96) 0%, rgba(16, 18, 38, 0.94) 100%);
  border: 1.5px solid rgba(249, 184, 212, 0.62);
  box-shadow: var(--shadow-card), 0 0 40px -10px rgba(249, 184, 212, 0.32);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 1.1rem;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #240919;
  background: linear-gradient(135deg, #ffe4f0, #f9b8d4);
  box-shadow: 0 6px 18px rgba(249, 184, 212, 0.38);
}

.price-tier {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.price-desc {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 2.5em;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
}

.price-value {
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-annual {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.price-quota {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(9, 14, 28, 0.8);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.1rem;
  font-size: 0.86rem;
}

.price-quota strong {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.price-features {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.58rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.price-features li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-note {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 959px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Articles Section & Cards
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.kw-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
  background: var(--indigo-dim);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.article-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 750;
}

.article-card h3 a {
  color: var(--text-main);
}

.article-card h3 a:hover {
  color: var(--cyan);
}

.article-card p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-read {
  font-weight: 700;
  color: var(--cyan);
}

@media (max-width: 1099px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   User Reviews (用户评价)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}

.review-stars {
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.review-text {
  margin: 0 0 1.15rem;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.review-name {
  font-weight: 700;
  color: var(--text-main);
}

.review-role {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.review-plan {
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: var(--cyan-dim);
  color: var(--cyan-light);
  border: 1px solid rgba(249, 184, 212, 0.3);
  font-weight: 600;
}

@media (max-width: 959px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Pure-HTML <details> Accordion
   ========================================================================== */
.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px -15px rgba(249, 184, 212, 0.28);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--rose);
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 0.9rem;
}

/* ==========================================================================
   External Links Ecosystem & CTA Banner & Footer
   ========================================================================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.ext-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.ext-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.ext-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.ext-list a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(9, 14, 28, 0.65);
  border: 1px solid transparent;
  color: var(--text-soft);
}

.ext-list a:hover {
  border-color: var(--border-accent);
  color: var(--cyan);
}

.ext-list span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 899px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

.cta-banner {
  background: linear-gradient(135deg, rgba(24, 20, 44, 0.95), rgba(34, 23, 62, 0.92));
  border: 1px solid rgba(249, 184, 212, 0.38);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cta-banner h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
}

.cta-banner p {
  margin: 0;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 15, 0.9);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.96rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.footer-col a {
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Article Pages & Legal / Sitemap Pages
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: var(--text-soft);
}

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.article-header {
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header h1 {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.32;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.article-prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.32rem;
  color: var(--text-main);
  padding-left: 0.75rem;
  border-left: 3px solid var(--cyan);
}

.article-prose h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.article-prose p {
  margin: 0 0 1.05rem;
  color: var(--text-soft);
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
  color: var(--text-soft);
}

.article-prose li {
  margin-bottom: 0.45rem;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.3rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.article-table th,
.article-table td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table th {
  background: rgba(9, 14, 28, 0.85);
  color: var(--cyan);
  font-weight: 700;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-cta-box {
  margin: 1.8rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(249, 184, 212, 0.1), rgba(196, 181, 253, 0.14));
  border: 1px solid rgba(249, 184, 212, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-cta-box h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
}

.article-cta-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.article-pager {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pager-link {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(9, 14, 28, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.pager-link:hover {
  border-color: var(--border-accent);
  color: var(--text-main);
}

.pager-label {
  display: block;
  font-size: 0.76rem;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.article-sidebar {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.sidebar-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.sidebar-links a {
  color: var(--text-soft);
}

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

.related-section {
  margin-top: 2.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 959px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

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

  .article-pager {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .article-main {
    padding: 1.35rem;
  }
}

/* Sitemap & Legal Pages */
.legal-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  margin: 0 0 1rem;
  font-size: 1.9rem;
}

.legal-card h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.22rem;
  color: var(--cyan);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

@media (max-width: 699px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}
