/* =========================================================
   PandaCloud (熊猫Cloud) - Light Dashboard Design System
   Domain: https://pandacloud-jc.homes
   ========================================================= */

:root {
  --bg-canvas: #f5f8fc;
  --bg-surface: #ffffff;
  --bg-subtle: #f0f5fa;
  --bg-hover: #eaf2fb;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --brand-primary: #0ea5e9;
  --brand-primary-dark: #0284c7;
  --brand-emerald: #10b981;
  --brand-emerald-dark: #059669;
  --brand-indigo: #6366f1;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --gradient-soft: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 14px 36px -8px rgba(14, 165, 233, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Dynamic Ambient Mesh */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
}

.ambient-orb-2 {
  width: 480px;
  height: 480px;
  top: 18%;
  right: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
  animation-delay: -6s;
}

.ambient-orb-3 {
  width: 420px;
  height: 420px;
  bottom: 5%;
  left: 25%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
  animation-delay: -11s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 28px) scale(1.06); }
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header & Navigation + Dropdowns
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(14, 165, 233, 0.45);
  position: relative;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary-dark);
  background: var(--bg-subtle);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 256px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.dropdown-link:hover {
  background: var(--bg-subtle);
}

.dropdown-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.search-trigger:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.btn-md {
  height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
  background: var(--bg-subtle);
}

.btn-soft {
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-primary-dark);
}

.btn-soft:hover {
  background: rgba(14, 165, 233, 0.18);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-primary);
}

/* =========================================================
   Dashboard Hero & Overview Grid
   ========================================================= */
.section {
  padding: 44px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary-dark);
  background: rgba(14, 165, 233, 0.1);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 680px;
}

.dashboard-hero {
  padding-top: 32px;
  padding-bottom: 28px;
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-emerald);
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-emerald);
  animation: pulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.85); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.35);
}

.hero-main-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-title .text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

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

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-light);
}

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

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 3px;
  font-family: var(--font-mono);
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--brand-emerald-dark);
  font-weight: 600;
}

/* Right Dashboard Chart Card */
.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chart-title-group h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.chart-title-group p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.segmented-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.seg-btn.active {
  background: #fff;
  color: var(--brand-primary-dark);
  box-shadow: var(--shadow-xs);
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background: linear-gradient(180deg, rgba(240, 245, 250, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}

.chart-canvas-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, -115%);
  transition: opacity 0.12s ease;
  z-index: 10;
  white-space: nowrap;
}

.chart-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.legend-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 6px;
}

/* =========================================================
   Subscription Quick Action & Nodes Table
   ========================================================= */
.sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sub-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 7px 12px;
}

.sub-url-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.sub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
}

.filter-pill.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.nodes-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

.nodes-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.nodes-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.nodes-table td {
  padding: 13px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.nodes-table tbody tr:hover {
  background: #f8fbff;
}

.node-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.flag-badge {
  font-size: 1.25rem;
  line-height: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-proto {
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-primary-dark);
  font-family: var(--font-mono);
}

.tag-rate {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald-dark);
  font-family: var(--font-mono);
}

.tag-unlock {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.ping-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
}

.ping-fast { color: var(--brand-emerald-dark); }
.ping-med { color: var(--brand-amber); }

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   Pricing Section (Light Mode Adaptation of Plan Cards)
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--brand-emerald);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf9 100%);
  box-shadow: 0 18px 40px -12px rgba(16, 185, 129, 0.22);
}

.plan-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.plan-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.plan-badge {
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.plan-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-desc {
  margin: 6px 0 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 44px;
}

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

.plan-divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: 20px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.price-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

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

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.18s ease;
}

.pricing-card:not(.featured) .plan-cta {
  background: var(--bg-subtle);
  color: var(--brand-primary-dark);
}

.pricing-card:not(.featured) .plan-cta:hover {
  background: var(--brand-primary);
  color: #fff;
}

.pricing-card.featured .plan-cta {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.45);
}

.pricing-card.featured .plan-cta:hover {
  filter: brightness(1.04);
}

/* =========================================================
   Quick Tutorials & Download Center
   ========================================================= */
.tutorial-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.client-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fff;
  transition: all 0.18s ease;
}

.client-tab-btn:hover {
  border-color: var(--brand-primary);
  background: #f8fbff;
}

.client-tab-btn.active {
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  box-shadow: var(--shadow-xs);
}

.client-tab-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.client-tab-os {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tutorial-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.step-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.step-box h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.step-box p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.download-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.18s ease;
}

.download-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   Knowledge Base (12 SEO/GEO Articles Grid)
   ========================================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.4);
}

.article-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.article-cat {
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-primary-dark);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.article-card h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.42;
  color: var(--text-primary);
}

.article-card h3 a:hover {
  color: var(--brand-primary-dark);
}

.article-excerpt {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.article-kw {
  font-size: 0.73rem;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.article-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

/* =========================================================
   Reviews & FAQ Section + Footer
   ========================================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.review-stars {
  color: var(--brand-amber);
  font-size: 0.92rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--brand-primary-dark);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.89rem;
  color: var(--text-secondary);
  display: none;
  border-top: 1px solid var(--bg-subtle);
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary-dark);
}

.site-footer {
  margin-top: 56px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 48px 0 28px;
}

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

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-primary-dark);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   Global Search Modal
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

.modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
}

.search-hot-wrap {
  padding: 14px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.search-hot-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hot-tag-btn {
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.hot-tag-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
  background: #f0f9ff;
}

.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: var(--bg-subtle);
}

.search-result-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.search-result-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   Standalone Article Page Layout
   ========================================================= */
.read-progress {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 99;
  transition: width 0.08s linear;
}

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

.article-main {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

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

.breadcrumb a:hover {
  color: var(--brand-primary-dark);
}

.article-hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.3;
  font-weight: 800;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.article-body h2 {
  margin: 30px 0 12px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 4px solid var(--brand-primary);
}

.article-body h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.article-body p {
  margin: 0 0 15px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.82;
}

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

.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body a.inline-link {
  color: var(--brand-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}

.callout-box strong {
  color: var(--text-primary);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.article-table th {
  background: var(--bg-subtle);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}

.article-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.sidebar-card h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
}

.toc-list a:hover {
  background: var(--bg-subtle);
  color: var(--brand-primary-dark);
}

.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  transition: all 0.16s ease;
}

.pager-link:hover {
  border-color: var(--brand-primary);
  background: #fff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 400;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1100px) {
  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .pricing-grid,
  .articles-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tutorial-shell {
    grid-template-columns: 1fr;
  }
  .client-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-subtle);
    margin-top: 4px;
    display: none;
  }
  .nav-item.open-mobile .nav-dropdown {
    display: block;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid,
  .articles-grid,
  .reviews-grid,
  .faq-list,
  .steps-grid,
  .download-grid,
  .article-pager {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 24px 20px;
  }
  .kbd-hint {
    display: none;
  }
}

