:root {
  --bg-page: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.84);
  --bg-subtle: #eef2f8;
  --bg-dark: #090f1e;
  --bg-dark-elevated: #11192e;

  --bg-accent-soft: #eef4ff;
  --bg-ok-soft: #ecfdf5;
  --bg-warn-soft: #fffbeb;
  --bg-indigo-soft: #f0f0ff;
  --bg-cyan-soft: #ecfeff;

  --text-heading: #0b1324;
  --text-body: #334155;
  --text-muted: #64748b;

  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-indigo: #4f46e5;
  --accent-cyan: #0ea5e9;
  --accent-border: #c7d6fe;

  --ok-text: #047857;
  --ok-accent: #10b981;
  --ok-border: #a7f3d0;
  --warn-text: #92400e;
  --warn-border: #fde68a;

  --border: #e2e8f0;
  --border-soft: rgba(226, 232, 240, 0.8);
  --border-strong: #cbd5e1;

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

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -6px rgba(37, 99, 235, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 14px 36px -8px rgba(37, 99, 235, 0.28);

  --container-max: 1200px;
  --prose-max: 820px;

  --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%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-body);
  background: var(--bg-page);
  background-image: radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.045), transparent 36%),
                    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.045), transparent 34%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.3; margin-top: 0; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.38rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); margin-bottom: 0.7rem; letter-spacing: -0.012em; }
h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
p { margin-top: 0; margin-bottom: 0.95rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.36rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 0.14rem 0.44rem;
  border-radius: 6px;
  color: var(--accent-indigo);
  border: 1px solid var(--border);
  font-weight: 600;
}

.grad-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-indigo) 52%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header: Frosted Glass Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--text-heading);
  flex-shrink: 0;
}
.brand-logo:hover { text-decoration: none; color: var(--accent); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 9px;
  letter-spacing: 0.03em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(238, 242, 248, 0.82);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.primary-nav a {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--text-body);
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.primary-nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.primary-nav a.active {
  background: var(--bg-surface);
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

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

/* Refined Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.89rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-heading);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--bg-accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.btn-light {
  background: #ffffff;
  color: var(--bg-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.btn-light:hover { background: #eff6ff; color: var(--accent-deep); }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; border-radius: 8px; }

.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
}

/* Search Modal */
.search-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(9, 15, 30, 0.56);
  backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 72px 16px 24px;
}
.search-backdrop.open { display: flex; }
.search-dialog {
  width: 100%; max-width: 680px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(9, 15, 30, 0.28); overflow: hidden;
}
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.search-input-wrap input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit; color: var(--text-heading); background: transparent; }
.search-results { max-height: 400px; overflow-y: auto; padding: 10px; }
.search-item { display: block; padding: 10px 13px; border-radius: 10px; border: 1px solid transparent; transition: all 0.14s ease; }
.search-item:hover { background: var(--bg-accent-soft); border-color: var(--accent-border); text-decoration: none; }
.search-item-title { font-weight: 700; color: var(--text-heading); display: block; }
.search-item-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Contact Modal & Header Action */
.btn-contact-nav { white-space: nowrap; }
.contact-dialog {
  width: 100%; max-width: 580px; background: var(--bg-surface);
  border: 1px solid rgba(199, 214, 254, 0.95); border-radius: var(--radius-lg);
  box-shadow: 0 28px 64px rgba(9, 15, 30, 0.32), inset 0 1px 0 #ffffff;
  overflow: hidden; margin-top: 12px;
}
.contact-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5ff 100%);
  border-bottom: 1px solid var(--border);
}
.contact-modal-title { font-size: 1.15rem; font-weight: 800; color: var(--text-heading); margin: 0 0 3px; }
.contact-modal-sub { font-size: 0.84rem; color: var(--text-muted); margin: 0; }
.contact-modal-body { padding: 20px 22px; display: grid; gap: 14px; }
.contact-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-channel-card {
  background: #f8fafd; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.contact-channel-card:hover {
  border-color: var(--accent-border); box-shadow: var(--shadow-sm); transform: translateY(-1px);
}
.contact-channel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contact-icon-gmail { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.contact-icon-tg { background: #eff6ff; color: #0284c7; border: 1px solid #bae6fd; }
.contact-handle {
  font-family: var(--font-mono); font-size: 0.83rem; font-weight: 700;
  color: var(--text-heading); background: #ffffff;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; word-break: break-all;
}
.contact-channel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.contact-btn-gmail {
  background: linear-gradient(135deg, #ea4335 0%, #d93025 100%); color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.22);
}
.contact-btn-gmail:hover { color: #ffffff; filter: brightness(0.95); }
.contact-btn-tg {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.24);
}
.contact-btn-tg:hover { color: #ffffff; filter: brightness(0.95); }
.contact-modal-foot {
  padding: 13px 22px; background: var(--bg-subtle); border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}

/* Aurora Split Workbench Hero */
.hero-workbench {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 80% at 18% 10%, rgba(59, 130, 246, 0.12), transparent 65%),
    radial-gradient(ellipse 65% 70% at 88% 20%, rgba(99, 102, 241, 0.13), transparent 60%),
    radial-gradient(ellipse 55% 60% at 62% 95%, rgba(14, 165, 233, 0.09), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 44px;
}

.hero-workbench::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.085) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 92%);
  pointer-events: none;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-xs);
  color: var(--accent-indigo); font-size: 0.8rem; font-weight: 700; margin-bottom: 14px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--ok-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-lead { font-size: 1.03rem; color: var(--text-body); margin-bottom: 20px; line-height: 1.76; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 8px;
}
.hero-stat-item { display: flex; align-items: baseline; gap: 6px; font-size: 0.84rem; color: var(--text-muted); }
.hero-stat-item strong { font-size: 1.08rem; color: var(--text-heading); font-weight: 800; }

.hero-note { font-size: 0.83rem; color: var(--text-muted); border-left: 3px solid var(--accent-cyan); padding-left: 11px; margin-bottom: 0; }

/* Glassmorphic Workbench Console */
.workbench-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(199, 214, 254, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 18px 42px -10px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
}

.workbench-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 800; color: var(--text-heading);
}

.mini-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px; margin: 0 -8px;
  border-radius: 10px;
  border-bottom: 1px dashed var(--border);
  transition: background-color 0.15s ease;
}
.mini-pick:last-of-type { border-bottom: none; }
.mini-pick:hover { background: rgba(238, 244, 255, 0.65); }
.mini-pick-title { font-weight: 700; color: var(--text-heading); font-size: 0.95rem; display: flex; align-items: center; gap: 7px; }
.mini-pick-sub { font-size: 0.79rem; color: var(--text-muted); margin-top: 2px; }

/* Dynamic Country & Region Node Console */
.nrc-route-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: linear-gradient(135deg, #0b1324 0%, #172241 100%);
  color: #f8fafc;
  padding: 10px 13px;
  border-radius: 11px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.nrc-origin {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; color: #cbd5e1; white-space: nowrap;
}
.nrc-pulse-track {
  position: relative; flex: 1; height: 2px; min-width: 28px;
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px; overflow: hidden;
}
.nrc-pulse-track::after {
  content: "";
  position: absolute; top: 0; left: -40%; width: 42%; height: 100%;
  background: linear-gradient(90deg, transparent, #38bdf8, #34d399, transparent);
  animation: nrcFlow 2.1s linear infinite;
}
@keyframes nrcFlow {
  0% { left: -45%; }
  100% { left: 105%; }
}
.nrc-target {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: #ffffff; white-space: nowrap;
}
.nrc-ping-pill {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.18); color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.nrc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.nrc-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}
.nrc-tile:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  background: #f8fbff;
}
.nrc-tile.active {
  background: linear-gradient(180deg, #eff6ff 0%, #eef2ff 100%);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
}
.nrc-tile-top {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 4px;
}
.nrc-flag {
  width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  display: block;
}
.nrc-iso { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }
.nrc-name { font-size: 0.85rem; font-weight: 800; color: var(--text-heading); line-height: 1.2; }
.nrc-meta { font-size: 0.71rem; color: var(--text-muted); line-height: 1.25; }
.nrc-tile.active .nrc-iso, .nrc-tile.active .nrc-meta { color: var(--accent-deep); }

.nrc-detail {
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 13px;
}
.nrc-detail-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px;
  margin-bottom: 5px;
}
.nrc-detail-title { font-weight: 800; font-size: 0.9rem; color: var(--text-heading); }
.nrc-detail-desc { font-size: 0.8rem; color: var(--text-body); margin: 0 0 8px; line-height: 1.5; }
.nrc-brands { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nrc-brand-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--border-strong);
  font-size: 0.76rem; font-weight: 600; color: var(--text-heading);
}
.nrc-brand-chip:hover {
  border-color: var(--accent); color: var(--accent); background: var(--bg-accent-soft); text-decoration: none;
}
.nrc-foot {
  margin-top: 8px; font-size: 0.72rem; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}

/* Rank Medals */
.rank-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; padding: 0 7px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 800;
  font-family: var(--font-mono);
  background: var(--bg-subtle); color: var(--text-heading); border: 1px solid var(--border);
}
.rank-1 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border-color: #f59e0b; box-shadow: 0 2px 6px rgba(245, 158, 11, 0.22); }
.rank-2 { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #334155; border-color: #94a3b8; }
.rank-3 { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); color: #9a3412; border-color: #fb923c; }

/* Sections & Layout Helpers */
.section { padding: 44px 0; }
.section-sm { padding: 28px 0; }
.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header, .section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
}
.section-desc { color: var(--text-muted); margin-bottom: 0; max-width: 720px; font-size: 0.94rem; }

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

/* Quick Answer 4-Step Editorial Strip */
.answer-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.answer-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.answer-cell:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-indigo);
  background: var(--bg-accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 10px;
}
.answer-cell h3 { font-size: 1rem; margin-bottom: 6px; }
.answer-cell p { font-size: 0.88rem; margin-bottom: 12px; color: var(--text-body); }
.answer-cell a { margin-top: auto; font-size: 0.85rem; font-weight: 700; }

/* Bento Spotlight + Cards */
.bento-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 18px;
}
.bento-hero {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #ffffff 0%, #eff5ff 62%, #eef2ff 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bento-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-indigo) 55%, var(--accent-cyan) 100%);
}
.bento-hero:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(37, 99, 235, 0.16); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}
.card-muted { background: var(--bg-subtle); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-title { font-size: 1.07rem; font-weight: 800; color: var(--text-heading); margin: 0; }
.card-footer { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Tinted Icon Scenario Grid (6 Use Cases) */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.scenario-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.scenario-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-badge {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-emerald { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.icon-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.icon-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.icon-indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.icon-cyan { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.icon-rose { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.scenario-card h3 { margin: 0; font-size: 1.03rem; color: var(--text-heading); }
.scenario-card p { margin: 0; font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* Hairline Directory List */
.directory-list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.directory-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.directory-row:last-child { border-bottom: none; }
.directory-row:hover {
  background: linear-gradient(90deg, rgba(238, 244, 255, 0.75) 0%, #ffffff 100%);
  box-shadow: inset 3px 0 0 var(--accent);
  text-decoration: none;
}
.directory-main { min-width: 0; flex: 1; }
.directory-title { font-weight: 700; color: var(--text-heading); font-size: 0.98rem; display: block; margin-bottom: 2px; }
.directory-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Dark Contrast Aurora Band */
.dark-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 85% 20%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 80% at 15% 80%, rgba(99, 102, 241, 0.25), transparent 60%),
    linear-gradient(135deg, #090f1e 0%, #172042 100%);
  color: #e2e8f0;
  padding: 44px 0;
}
.dark-band h2 { color: #ffffff; margin-bottom: 8px; }
.dark-band p { color: #cbd5e1; margin-bottom: 0; }
.compare-preview {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}
.preview-chip {
  padding: 4px 11px; border-radius: 999px;
  background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #f8fafc; font-size: 0.8rem; font-weight: 600;
}

/* Magazine 2-Column Split */
.magazine-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  align-items: start;
}

/* Badges & Coupon Copy */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}
.badge-blue { background: var(--bg-accent-soft); color: var(--accent-indigo); border: 1px solid var(--accent-border); }
.badge-ok { background: var(--bg-ok-soft); color: var(--ok-text); border: 1px solid var(--ok-border); }
.badge-warn { background: var(--bg-warn-soft); color: var(--warn-text); border: 1px solid var(--warn-border); }
.badge-gray { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }

.coupon-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 7px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e; border: 1px dashed #d97706;
  font-family: var(--font-mono); font-size: 0.79rem; font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.coupon-btn::after { content: "复制"; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; opacity: 0.75; }
.coupon-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.22); }

.toast-msg {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  background: linear-gradient(135deg, #090f1e 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 11px 18px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 14px 32px rgba(9, 15, 30, 0.34);
  display: none;
}
.toast-msg.show { display: block; }

/* Spec list */
.spec-list { list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.89rem; }
.spec-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.spec-list li:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); flex-shrink: 0; }
.spec-val { color: var(--text-heading); font-weight: 700; text-align: right; }

/* KPI Strip & Score Progress Bars */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.kpi-box {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 15px;
  box-shadow: var(--shadow-xs);
}
.kpi-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
  opacity: 0.85;
}
.kpi-label { font-size: 0.77rem; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 600; }
.kpi-val { font-size: 1.08rem; font-weight: 800; color: var(--text-heading); }

.score-bars {
  display: grid; gap: 11px; margin-bottom: 20px;
  background: #f8fafd; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--border);
}
.score-row { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 12px; font-size: 0.88rem; font-weight: 600; }
.score-track { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 60%, #0ea5e9 100%);
  border-radius: 999px;
}

.pros-cons-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px;
}
.pros-box { background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%); border: 1px solid var(--ok-border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-xs); }
.cons-box { background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%); border: 1px solid var(--warn-border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-xs); }
.pros-box h3 { color: var(--ok-text); }
.cons-box h3 { color: var(--warn-text); }

/* Callouts */
.callout { padding: 16px 20px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-surface); margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.callout-info { background: linear-gradient(135deg, #eef4ff 0%, #f5f3ff 100%); border-color: var(--accent-border); }
.callout-warn { background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%); border-color: var(--warn-border); }
.callout-title { font-weight: 800; color: var(--text-heading); margin-bottom: 5px; }

/* Tables */
.table-scroll {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 0.865rem; }
th, td {
  padding: 10px 11px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: middle; white-space: normal; word-break: keep-all; overflow-wrap: break-word;
}
th {
  background: linear-gradient(180deg, #f8fafc 0%, #eff4fb 100%);
  color: var(--text-heading); font-weight: 800; font-size: 0.82rem;
}
@media (min-width: 1140px) {
  .layout-full th, .layout-full td,
  .home-ledger th, .home-ledger td {
    white-space: nowrap;
    padding: 10px 10px;
  }
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color 0.13s ease; }
tbody tr:nth-child(even) { background: #fafcff; }
tbody tr:hover { background: var(--bg-accent-soft); }

/* Subpage Aurora Banner, Prose & Sticky Sidebar */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 120% at 85% 0%, rgba(59, 130, 246, 0.1), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 0.83rem; color: var(--text-muted); margin-bottom: 9px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.81rem; color: var(--text-muted); margin-top: 10px; }
.page-meta > span {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.content-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px; padding: 30px 0 50px; align-items: start;
}
.content-layout.layout-full {
  grid-template-columns: minmax(0, 1fr);
}
a.pill-btn:hover { text-decoration: none; }

.prose {
  max-width: var(--prose-max); background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.prose-wide { max-width: 100%; }

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.sidebar-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 17px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 { font-size: 0.94rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar-links { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.sidebar-links li { margin-bottom: 7px; }
.sidebar-links a { display: inline-block; padding: 2px 0; font-weight: 500; }

/* Native HTML Accordion FAQ */
.faq-list { display: grid; gap: 11px; }
.faq-item {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-xs);
}
.faq-item h3 { font-size: 0.99rem; margin-bottom: 6px; }
.faq-item p:last-child { margin-bottom: 0; }

details.faq-acc {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 15px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
details.faq-acc[open] { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
details.faq-acc summary {
  font-weight: 700; color: var(--text-heading); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-acc summary::after {
  content: "+";
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--bg-accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; flex-shrink: 0;
}
details.faq-acc[open] summary::after { content: "−"; background: var(--accent); color: #ffffff; }
details.faq-acc p { margin-top: 11px; margin-bottom: 0; font-size: 0.93rem; color: var(--text-body); }

/* Filter Pills & Controls */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill-btn {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-surface); color: var(--text-body); font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease; box-shadow: var(--shadow-xs);
}
.pill-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pill-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-indigo) 100%);
  color: #ffffff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

/* Compare Controls */
.compare-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.compare-controls select {
  padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 9px;
  font-family: inherit; font-size: 0.9rem; background: #ffffff; color: var(--text-heading);
}
.compare-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; background: var(--bg-accent-soft);
  border: 1px solid var(--accent-border); border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: var(--accent-indigo);
}
.chip button { background: none; border: none; color: var(--accent-indigo); font-weight: 700; cursor: pointer; padding: 0 2px; font-size: 1rem; line-height: 1; }

/* Luminous Obsidian Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0b1222 0%, #060a14 100%);
  color: #cbd5e1;
  padding: 46px 0 28px;
  margin-top: 28px;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(59, 130, 246, 0.55) 35%, rgba(14, 165, 233, 0.55) 65%, transparent 95%);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.site-footer h4 { color: #ffffff; font-size: 0.95rem; margin-bottom: 12px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #ffffff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, 0.16); padding-top: 18px; font-size: 0.8rem; color: #94a3b8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-split, .magazine-split { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-hero { grid-row: auto; grid-column: span 2; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .mobile-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .primary-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px; flex-direction: column; align-items: stretch; gap: 4px;
    border-radius: 0; box-shadow: var(--shadow-md);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 12px; }
}

@media (max-width: 640px) {
  .table-scroll table { min-width: 580px; }
  .grid-2, .grid-3, .grid-4, .footer-grid, .bento-grid, .scenario-grid, .answer-strip, .pros-cons-split, .kpi-strip {
    grid-template-columns: 1fr;
  }
  .nrc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-channel-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm, .mobile-toggle { padding: 5px 9px; font-size: 0.78rem; }
  .bento-hero { grid-column: auto; }
  .score-row { grid-template-columns: 95px 1fr 40px; }
  .directory-row { flex-direction: column; align-items: flex-start; }
  .prose { padding: 20px 16px; }
}
