/* ==========================================================================
   MDSS 梦迪云网 (mdss.lol) — Pure Native CSS (Zero Frameworks / Instant Paint)
   ========================================================================== */

:root {
  --bg-base: #060a14;
  --bg-surface: rgba(13, 21, 38, 0.78);
  --bg-surface-strong: rgba(15, 25, 46, 0.92);
  --bg-elevated: rgba(23, 35, 61, 0.68);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(56, 189, 248, 0.42);
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --cyan: #0ea5e9;
  --cyan-bright: #38bdf8;
  --emerald: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-w: 1240px;
  --shadow-card: 0 20px 50px rgba(2, 6, 23, 0.55);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Pure CSS Dynamic Animated Wire-Trace Background ---------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #0d162a 0%, #060a14 70%);
}

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

.bg-orb--amber {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.5) 0%, transparent 70%);
  animation: orbDriftA 18s ease-in-out infinite alternate;
}

.bg-orb--cyan {
  width: 640px;
  height: 640px;
  top: 22%;
  right: -180px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.46) 0%, transparent 70%);
  animation: orbDriftB 22s ease-in-out infinite alternate;
}

.bg-orb--indigo {
  width: 520px;
  height: 520px;
  bottom: -160px;
  left: 28%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24) 0%, rgba(245, 158, 11, 0.16) 50%, transparent 75%);
  animation: orbDriftC 25s ease-in-out infinite alternate;
}

/* Seamless repeating circuit/wire-trace micro-pattern */
.bg-grid {
  position: absolute;
  inset: -60px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke-width='1.1'%3E%3Cpath d='M0 44h52l18 18h48l16-16h86' stroke='rgba(56,189,248,0.09)'/%3E%3Cpath d='M0 132h34l22-22h62l20 20h82' stroke='rgba(245,158,11,0.08)'/%3E%3Cpath d='M44 0v56l20 20v64l-20 20v60' stroke='rgba(56,189,248,0.075)'/%3E%3Cpath d='M164 0v42l-18 18v72l18 18v70' stroke='rgba(148,163,184,0.065)'/%3E%3Ccircle cx='52' cy='44' r='2.5' fill='rgba(56,189,248,0.14)'/%3E%3Ccircle cx='118' cy='62' r='2.5' fill='rgba(56,189,248,0.12)'/%3E%3Ccircle cx='56' cy='110' r='2.5' fill='rgba(245,158,11,0.14)'/%3E%3Ccircle cx='146' cy='132' r='2.5' fill='rgba(245,158,11,0.12)'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 220px 220px, 55px 55px, 55px 55px;
  mask-image: radial-gradient(ellipse 92% 84% at 50% 38%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 84% at 50% 38%, #000 35%, transparent 100%);
  animation: gridSlide 32s linear infinite;
}

/* Fullscreen animated electric wire-trace overlay */
.bg-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.wire-base {
  fill: none;
  stroke: rgba(56, 189, 248, 0.14);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wire-base--amber {
  stroke: rgba(245, 158, 11, 0.13);
}

.wire-pulse {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 110 920;
  will-change: stroke-dashoffset;
}

.wire-pulse--cyan {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.85));
  animation: wireFlow 7.5s linear infinite;
}

.wire-pulse--amber {
  stroke: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.85));
  animation: wireFlowRev 9s linear infinite;
}

.wire-pulse--slow {
  stroke-dasharray: 140 890;
  animation-duration: 11.5s;
  animation-delay: -3.2s;
}

.wire-pulse--fast {
  stroke-dasharray: 85 945;
  animation-duration: 6.2s;
  animation-delay: -1.8s;
}

.wire-node {
  fill: #0b1324;
  stroke: rgba(56, 189, 248, 0.45);
  stroke-width: 1.5;
  animation: nodeBlink 3.6s ease-in-out infinite;
}

.wire-node--amber {
  stroke: rgba(251, 191, 36, 0.5);
  animation-delay: 1.4s;
}

.wire-ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.18);
  stroke-width: 1;
}

.bg-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(251, 191, 36, 0.45) 35%, rgba(56, 189, 248, 0.6) 65%, transparent 100%);
  opacity: 0;
  will-change: transform, opacity;
}

.bg-beam--1 {
  top: 24%;
  animation: beamSweep 9s ease-in-out infinite;
}

.bg-beam--2 {
  top: 66%;
  animation: beamSweep 12s ease-in-out 4.5s infinite;
}

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

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

@keyframes orbDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(70px, -65px, 0) scale(1.08); }
}

@keyframes gridSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(220px, 220px, 0); }
}

@keyframes wireFlow {
  0% { stroke-dashoffset: 1030; }
  100% { stroke-dashoffset: 0; }
}

@keyframes wireFlowRev {
  0% { stroke-dashoffset: -1030; }
  100% { stroke-dashoffset: 0; }
}

@keyframes nodeBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes beamSweep {
  0% { transform: translateX(-65%); opacity: 0; }
  25% { opacity: 0.45; }
  75% { opacity: 0.45; }
  100% { transform: translateX(65%); opacity: 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .bg-grid,
  .bg-beam,
  .wire-pulse,
  .wire-node,
  .pulse-dot {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Layout & Shared Components ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 68px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: var(--amber-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.gradient-text {
  background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 35%, #38bdf8 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #0ea5e9 130%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.38);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #041322;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.3);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--cyan-bright);
  background: rgba(30, 41, 59, 0.85);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 10px;
}

/* ---------- Sticky Header & Pure CSS Mobile Drawer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 10, 20, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
}

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

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-domain {
  font-size: 12px;
  color: var(--cyan-bright);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
}

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

.nav-burger span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

@media (max-width: 980px) {
  .nav-burger {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 18px;
    background: rgba(6, 10, 20, 0.96);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links a {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .nav-links a:hover {
    background: rgba(30, 41, 59, 0.65);
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* ---------- Hero Bento Section ---------- */
.hero {
  padding: 58px 0 42px;
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.kpi-box strong {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--amber-bright);
}

.kpi-box span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Telemetry Panel (Pure HTML+CSS) */
.telemetry-card {
  background: linear-gradient(165deg, rgba(15, 25, 48, 0.9), rgba(8, 14, 28, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34d399;
  font-weight: 700;
}

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

.node-list {
  display: grid;
  gap: 10px;
}

.node-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13.5px;
}

.node-name {
  font-weight: 600;
  color: var(--text-primary);
}

.node-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan-bright);
}

.node-ms {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #34d399;
}

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

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

/* ---------- Features Bento Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

/* ---------- Single-Row Horizontal Pricing ("所有价格要同排") ---------- */
.pricing-row-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(215px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.price-card--featured {
  border-color: rgba(245, 158, 11, 0.65);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 25, 48, 0.94) 38%);
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.22);
  color: var(--amber-bright);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.price-tier {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-bright);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.price-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--amber-bright);
}

.price-value {
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  color: var(--text-primary);
}

.price-unit {
  font-size: 14px;
  color: var(--text-muted);
}

.price-alt {
  font-size: 13px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.price-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-features li::before {
  content: "✓";
  color: #34d399;
  font-weight: 800;
  flex-shrink: 0;
}

.price-cta {
  margin-top: auto;
  width: 100%;
}

/* Single-line Cycle Matrix Strip */
.cycle-strip {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
}

.cycle-strip strong {
  color: var(--amber-bright);
}

.cycle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.cycle-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ---------- Pure CSS Radio Tabs for Clients ---------- */
.tabs-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-label {
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-panel {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

#tab-win:checked ~ .tab-labels label[for="tab-win"],
#tab-ios:checked ~ .tab-labels label[for="tab-ios"],
#tab-android:checked ~ .tab-labels label[for="tab-android"],
#tab-router:checked ~ .tab-labels label[for="tab-router"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(14, 165, 233, 0.24));
  border-color: var(--cyan-bright);
  color: var(--text-primary);
}

#tab-win:checked ~ .tab-panels .panel-win,
#tab-ios:checked ~ .tab-panels .panel-ios,
#tab-android:checked ~ .tab-panels .panel-android,
#tab-router:checked ~ .tab-panels .panel-router {
  display: grid;
}

.step-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.step-list strong {
  color: var(--text-primary);
}

.client-links-box {
  background: rgba(10, 17, 32, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.client-links-box h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--amber-bright);
}

.ext-link-list {
  display: grid;
  gap: 8px;
}

.ext-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13.5px;
  color: var(--cyan-bright);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ext-link-item:hover {
  border-color: var(--cyan-bright);
  background: rgba(14, 165, 233, 0.14);
}

@media (max-width: 820px) {
  .tab-panel {
    grid-template-columns: 1fr;
  }
}

/* ---------- Articles Hub Grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.42;
}

.article-card p {
  margin: 0 0 16px;
  font-size: 13.8px;
  color: var(--text-secondary);
}

.article-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--amber-bright);
  font-weight: 700;
}

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

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

/* ---------- Reviews Section ---------- */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.34);
  margin-top: 14px;
  font-size: 14px;
  color: #a7f3d0;
}

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

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #060a14;
  background: linear-gradient(135deg, var(--amber-bright), var(--cyan-bright));
}

.reviewer-meta strong {
  display: block;
  font-size: 14.5px;
}

.reviewer-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.stars {
  color: var(--amber-bright);
  font-size: 14px;
  letter-spacing: 1px;
}

.review-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.review-plan {
  margin-top: auto;
  font-size: 12px;
  color: var(--cyan-bright);
}

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

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

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

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 20px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-glow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

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

.faq-body {
  padding: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14.8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 12px;
}

/* ---------- CTA Banner & Footer ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.cta-banner p {
  margin: 0 auto 22px;
  max-width: 640px;
  color: var(--text-secondary);
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 15, 0.88);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--amber-bright);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

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

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

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

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

/* ---------- Article Pages Layout ---------- */
.article-wrap {
  padding: 36px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

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

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

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

.article-main h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 21px;
  color: var(--amber-bright);
}

.article-body h3 {
  margin: 20px 0 10px;
  font-size: 17.5px;
  color: var(--cyan-bright);
}

.article-body p {
  margin: 0 0 15px;
  color: var(--text-secondary);
}

.article-body a {
  color: var(--cyan-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a.btn {
  text-decoration: none;
  color: #fff;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
  display: grid;
  gap: 7px;
}

.callout-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.callout-box strong {
  color: var(--amber-bright);
}

.article-inline-cta {
  margin: 26px 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.side-box {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.side-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--amber-bright);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13.8px;
}

.side-list a {
  color: var(--text-secondary);
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.side-list a:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

.prev-next-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pn-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
}

.pn-card:hover {
  border-color: var(--amber-bright);
}

.pn-card small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pn-card strong {
  font-size: 14px;
  color: var(--text-primary);
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-main {
    padding: 22px 18px;
  }
  .prev-next-nav {
    grid-template-columns: 1fr;
  }
}

/* ---------- Data Table in Articles / Sitemap ---------- */
.data-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(14, 165, 233, 0.14);
  color: var(--text-primary);
  font-weight: 700;
}

.data-table td {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
