/* AI机场志 (aijichang.pro) — Aurora Glass Tech Portal UI 框架
 * 视觉定位：深邃光感科技首屏 + 立体层级白卡 + 彩色语义指标条 + 内联矢量图标 · 纯原生 CSS 零外部依赖
 */

:root {
  --bg: #f1f5fd;
  --bg-glow: radial-gradient(circle at 12% 0%, rgba(99, 102, 241, 0.09), transparent 42%),
             radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.08), transparent 38%);
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --surface-muted: #eef2ff;
  --hero-bg: linear-gradient(135deg, #090d1e 0%, #131c3d 48%, #0c2c4d 100%);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #e0e7ff;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 28px -10px rgba(30, 41, 59, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 18px 36px -12px rgba(79, 70, 229, 0.22), 0 4px 12px rgba(15, 23, 42, 0.06);
  --container: 1200px;
  --prose: 800px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, 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;
  background-color: var(--bg);
  background-image: var(--bg-glow);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1 { font-size: clamp(1.82rem, 3.2vw, 2.52rem); font-weight: 800; margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.34rem, 2.2vw, 1.72rem); font-weight: 800; margin-bottom: 0.75rem; }
h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin: 0 0 0.95rem; color: var(--text-secondary); }
ul, ol { padding-left: 1.35rem; margin: 0 0 1rem; color: var(--text-secondary); }
li { margin-bottom: 0.42rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--surface-muted);
  color: #312e81;
  padding: 0.14em 0.4em;
  border-radius: 5px;
  border: 1px solid #c7d2fe;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: #0b1120;
  color: #e2e8f0;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
pre code { background: transparent; color: inherit; border: none; padding: 0; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.table-actions { display: inline-flex; align-items: center; gap: 0.38rem; white-space: nowrap; }
.icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; border-radius: var(--radius-sm); }

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }
.section-surface {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  margin-bottom: 1.6rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

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

/* Top Utility Bar & Glass Header */
.top-ticker {
  background: #070b18;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.top-ticker-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}
.top-ticker a { color: #7dd3fc; font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo:hover { text-decoration: none; color: var(--primary); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.brand-domain {
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.76rem;
  border-radius: 999px;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.is-active {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  color: var(--primary);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-muted); }
.contact-btn {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  border-color: #c7d2fe;
  color: var(--primary);
}
.contact-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
}
.menu-toggle { display: none; }

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0.9rem 1.25rem 1.2rem;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.mobile-drawer a {
  display: block;
  padding: 0.6rem 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.84rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.breadcrumb-list li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--primary); }

/* Deep Aurora Tech Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #e2e8f0;
  padding: 3.25rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  color: #ffffff;
  background: linear-gradient(120deg, #ffffff 0%, #c7d2fe 58%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.04rem;
  color: #cbd5e1;
  margin-bottom: 1.4rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.85rem;
  color: #94a3b8;
}
.hero-stats strong { color: #ffffff; font-family: var(--font-mono); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  padding: 0.26rem 0.78rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.hero .eyebrow,
.page-header .eyebrow,
.section-aurora-dark .eyebrow {
  color: #a5f3fc;
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(103, 232, 249, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

/* Frosted Glass Spotlight Panel inside Hero */
.spotlight-board {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.spotlight-head h2 { font-size: 1rem; margin: 0; color: #ffffff; }
.spotlight-head a { font-size: 0.82rem; font-weight: 600; color: #7dd3fc; }

.spotlight-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.68rem 0.72rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.55rem;
}
.spotlight-item:last-child { margin-bottom: 0; }
.spotlight-meta strong { display: block; font-size: 0.95rem; color: #ffffff; }
.spotlight-meta strong a { color: #ffffff; }
.spotlight-meta strong a:hover { color: #67e8f9; }
.spotlight-meta span { display: block; font-size: 0.8rem; color: #cbd5e1; }
.spotlight-actions { display: flex; gap: 0.38rem; flex-shrink: 0; }

/* Elevated Quick-Decision Cards */
.feature-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #a5b4fc;
}
.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.ib-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.ib-sky { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #075985; }
.ib-emerald { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.ib-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.ib-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }
.ib-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #9f1239; }

.feature-card h3 { font-size: 1.04rem; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.89rem; margin-bottom: 0.85rem; }
.feature-card a.cell-link { margin-top: auto; font-size: 0.86rem; font-weight: 700; }

/* Podium Showcase Cards (Top 3) */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.podium-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.podium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.podium-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
}
.podium-1::before { background: linear-gradient(90deg, #f59e0b, #4f46e5); }
.podium-2::before { background: linear-gradient(90deg, #4f46e5, #0ea5e9); }
.podium-3::before { background: linear-gradient(90deg, #059669, #06b6d4); }

.podium-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.podium-price {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  margin: 0.35rem 0 0.7rem;
}
.podium-price span { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }

/* Visual Metric Bars */
.meter-row { margin-bottom: 0.55rem; font-size: 0.8rem; }
.meter-label { display: flex; justify-content: space-between; color: var(--text-secondary); font-weight: 600; margin-bottom: 0.2rem; }
.meter-track {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
}
.meter-fill-green {
  background: linear-gradient(90deg, #10b981 0%, #0ea5e9 100%);
}

/* Latency Dot */
.dot-fast {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  margin-right: 0.35rem;
}

/* Scenario Bento Cards (Colorful Themes) */
.bento-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.bento-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #a5b4fc;
  text-decoration: none;
}
.bento-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.bento-tile h3 { margin: 0; font-size: 1.06rem; }
.bento-tile p { margin: 0; font-size: 0.87rem; color: var(--text-muted); }
.bento-brands { font-size: 0.81rem; color: var(--primary); font-weight: 600; margin-top: auto; padding-top: 0.4rem; }

/* Dark Aurora Compare Section */
.section-aurora-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #0c4a6e 100%);
  color: #e2e8f0;
  padding: 3.25rem 0;
}
.section-aurora-dark h2,
.section-aurora-dark h3 { color: #ffffff; }
.section-aurora-dark p,
.section-aurora-dark li { color: #cbd5e1; }
.glass-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

/* Magazine Split (Guides + Blog Feed) */
.magazine-split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.26fr);
  gap: 1.5rem;
  align-items: start;
}
.feed-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--border);
}
.feed-row:last-child { border-bottom: none; padding-bottom: 0; }
.feed-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}
.feed-row-title { font-weight: 700; font-size: 0.96rem; color: var(--text); }
.feed-row-title:hover { color: var(--primary); }
.feed-row-desc { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.52; }

/* Glossary Horizontal Strip */
.glossary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
}
.glossary-chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.glossary-chip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #a5b4fc; }
.glossary-chip-card h3 { font-size: 0.96rem; margin-bottom: 0.35rem; }
.glossary-chip-card p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.65rem; }
.glossary-chip-card a.cell-link { margin-top: auto; font-size: 0.83rem; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.62rem 1.22rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%); color: #ffffff; }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-muted); }

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

.btn-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: #042f2e;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}
.btn-accent:hover { color: #042f2e; filter: brightness(1.06); }

.btn-sm { padding: 0.4rem 0.82rem; font-size: 0.84rem; border-radius: 8px; }
.btn-xs { padding: 0.28rem 0.62rem; font-size: 0.79rem; border-radius: 7px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-sky { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--emerald-soft); color: var(--emerald); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-gray { background: #f1f5f9; color: var(--text-secondary); border: 1px solid var(--border); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.75rem; }

/* Subpage Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #a5b4fc; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.card-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.48rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
}

.airport-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  margin: 0.7rem 0 0.85rem;
  font-size: 0.84rem;
}
.airport-kv div strong { display: block; font-size: 0.73rem; color: var(--text-muted); font-weight: 600; }
.airport-kv div span { color: var(--text); font-weight: 600; }
.pros-cons-mini { font-size: 0.86rem; margin-bottom: 0.85rem; }
.pros-cons-mini p { margin-bottom: 0.35rem; }

/* Filter Toolbar & Directory List */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.filter-tab {
  padding: 0.4rem 0.92rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-muted); }
.filter-tab.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.hub-search-input {
  min-width: 240px;
  padding: 0.44rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}
.is-hidden { display: none !important; }

.directory-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.directory-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 110px auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.directory-item:last-child { border-bottom: none; }
.directory-item:hover { background: var(--surface-soft); }
.directory-title { font-weight: 700; font-size: 0.99rem; color: var(--text); display: block; margin-bottom: 0.2rem; }
.directory-summary { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.directory-date { font-size: 0.8rem; font-family: var(--font-mono); color: var(--text-muted); text-align: right; }

/* Callout */
.callout {
  background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.2rem;
  margin-bottom: 1.4rem;
}
.callout-warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  border-left-color: var(--amber);
}
.callout-title { font-weight: 700; color: var(--text); margin-bottom: 0.35rem; font-size: 0.96rem; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.45rem;
}

table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 0.88rem; }
th, td { padding: 0.76rem 0.72rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.prose table { font-size: 0.85rem; }
.prose th, .prose td { padding: 0.68rem 0.62rem; }
th {
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8faff; }

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f5f9;
  color: var(--text);
  font-weight: 800;
  font-size: 0.84rem;
  font-family: var(--font-mono);
}
.rank-1 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #ffffff; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35); }
.rank-2 { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: #ffffff; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3); }
.rank-3 { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); color: #ffffff; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); }

/* Subpage Aurora Header & Elevated KPI Cards */
.page-header {
  background: linear-gradient(135deg, #0b1120 0%, #172554 60%, #0f3654 100%);
  color: #e2e8f0;
  padding: 2.35rem 0 2.15rem;
  border-bottom: 1px solid #1e293b;
}
.page-header h1 { color: #ffffff; }
.page-header .section-subtitle { color: #cbd5e1; }
.page-header .page-meta-row { color: #94a3b8; }
.page-header .page-meta-row a:not(.btn) { color: #7dd3fc; }

.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.2rem;
  font-size: 0.86rem;
  margin-top: 0.8rem;
}

.kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}
.kpi-item {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.82rem 1rem;
}
.kpi-item small { display: block; font-size: 0.74rem; color: #94a3b8; margin-bottom: 0.2rem; }
.kpi-item strong { font-size: 0.98rem; color: #ffffff; font-family: var(--font-mono); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.75rem;
  align-items: start;
  padding: 2.25rem 0 3.2rem;
}
.prose {
  max-width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-card);
}
.prose h2 {
  margin-top: 2rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #e0e7ff;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.35rem; }

.sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 1.15rem; }
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.sidebar-box h3 {
  font-size: 0.94rem;
  margin-bottom: 0.72rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid var(--border);
}
.toc-list, .sidebar-links { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.toc-list li, .sidebar-links li { margin-bottom: 0.46rem; }
.toc-list a, .sidebar-links a { color: var(--text-secondary); }
.toc-list a:hover, .sidebar-links a:hover { color: var(--primary); }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: 0.92rem 0;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0.8rem 0 1rem; color: var(--text-secondary); font-size: 0.94rem; border-top: 1px solid var(--border); }

/* Compare Tool UI */
.compare-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.45rem;
}
.compare-picker { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.75rem; }
.compare-picker select {
  min-width: 220px;
  min-height: 40px;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.compare-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.95rem; }
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  color: var(--primary);
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}
.compare-chip button { background: transparent; border: none; color: var(--primary); cursor: pointer; font-size: 1rem; line-height: 1; }
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.4rem;
  text-align: center;
  color: var(--text-muted);
}

/* Prev / Next Sequential Pager Navigation */
.pager-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.pager-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.pager-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.pager-card-next { text-align: right; }
.pager-dir {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.22rem;
}
.pager-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.pager-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.pager-hub:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-muted); text-decoration: none; }

/* Starter Path Banner & Contextual Link Strip */
.starter-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}
.starter-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.starter-step small { font-size: 0.74rem; font-weight: 800; color: var(--primary); font-family: var(--font-mono); }
.starter-step a { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.starter-step a:hover { color: var(--primary); }
.starter-step span { font-size: 0.82rem; color: var(--text-muted); }

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--primary); }

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 13, 30, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
}
.search-modal.is-open { display: flex; }
.search-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.05rem; border-bottom: 1px solid var(--border); }
.search-input-row input { flex: 1; border: none; font-size: 0.98rem; font-family: inherit; color: var(--text); background: transparent; outline: none; }
.search-results { max-height: 420px; overflow-y: auto; padding: 0.7rem; }
.search-result-item { display: block; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); color: var(--text); }
.search-result-item:hover { background: var(--surface-muted); text-decoration: none; }
.search-result-item strong { display: block; font-size: 0.94rem; color: var(--text); }
.search-result-item span { display: block; font-size: 0.81rem; color: var(--text-muted); margin-top: 0.12rem; }

/* Professional Contact Modal (Gmail & Telegram) */
.contact-dialog {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 26px 64px rgba(9, 13, 30, 0.42);
  overflow: hidden;
}
.contact-dialog-head {
  background: linear-gradient(135deg, #0b1120 0%, #172554 60%, #0f3654 100%);
  color: #ffffff;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.contact-dialog-head h2 { color: #ffffff; font-size: 1.18rem; margin: 0 0 0.25rem; }
.contact-dialog-head p { color: #cbd5e1; font-size: 0.84rem; margin: 0; }
.contact-dialog-body { padding: 1.35rem 1.4rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.contact-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-card-head { display: flex; align-items: center; gap: 0.65rem; }
.contact-icon-gmail {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c;
  flex-shrink: 0;
}
.contact-icon-tg {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1;
  flex-shrink: 0;
}
.contact-card h3 { margin: 0; font-size: 0.98rem; }
.contact-card small { display: block; font-size: 0.76rem; color: var(--text-muted); }
.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  word-break: break-all;
}
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; padding-top: 0.25rem; }
.btn-tg {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.25);
}
.btn-tg:hover { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #ffffff; }
.btn-gmail {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(185, 28, 28, 0.24);
}
.btn-gmail:hover { background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%); color: #ffffff; }
.contact-note-box {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.82rem 1rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Rich Dark Footer */
.site-footer {
  background: linear-gradient(180deg, #0b1120 0%, #070b18 100%);
  color: #cbd5e1;
  padding: 3rem 0 1.9rem;
  border-top: 1px solid #1e293b;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #7dd3fc; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2rem; margin-bottom: 1.85rem; }
.footer-brand { color: #ffffff; font-size: 1.08rem; font-weight: 800; margin-bottom: 0.6rem; }
.footer-desc { font-size: 0.86rem; color: #94a3b8; line-height: 1.65; }
.footer-col h3 { color: #ffffff; font-size: 0.93rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.footer-col li { margin-bottom: 0.44rem; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.81rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .feature-grid-4, .glossary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .podium-grid, .bento-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .magazine-split, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-item { grid-template-columns: minmax(0, 1fr); gap: 0.38rem; }
  .directory-date { text-align: left; }
  .prose { padding: 1.35rem 1.15rem; }
  .pager-nav, .starter-path { grid-template-columns: minmax(0, 1fr); }
  .pager-card-next { text-align: left; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 2rem 0; }
  .grid-2, .grid-3, .grid-4, .feature-grid-4, .podium-grid, .bento-6, .glossary-strip, .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-domain, .top-ticker { display: none; }
  table { min-width: 620px; }
}
