/* E客网络 (www.ekwl.cn) - 深青科技与网络工程手册视觉体系 (100% 本地化静态资源) */
:root {
  --bg-dark: #071324;
  --bg-panel: #0f213b;
  --bg-page: #f4f7fb;
  --bg-card: #ffffff;
  --brand-cyan: #0284c7;
  --brand-sky: #0ea5e9;
  --brand-cyan-soft: #e0f2fe;
  --brand-emerald: #059669;
  --brand-emerald-soft: #ecfdf5;
  --brand-amber: #d97706;
  --brand-amber-soft: #fffbeb;
  --brand-red: #dc2626;
  --brand-red-soft: #fef2f2;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border: #e2e8f0;
  --border-soft: #eef2f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(7, 19, 36, 0.05);
  --shadow-sm: 0 6px 18px rgba(7, 19, 36, 0.06);
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
}

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

a {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: #0369a1;
}

code, pre, .mono {
  font-family: var(--mono);
}

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

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

/* Header */
.ek-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.ek-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ek-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.ek-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ek-nav a {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
}

.ek-nav a:hover,
.ek-nav a.is-active {
  color: var(--brand-cyan);
  background: var(--brand-cyan-soft);
}

.ek-nav a.is-active {
  font-weight: 700;
}

.ek-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  background: var(--brand-cyan);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0369a1;
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: var(--brand-cyan-soft);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Mobile Drawer */
.ek-drawer {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 18px;
}

.ek-drawer.is-open {
  display: block;
}

.ek-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ek-drawer-grid a {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--ink-900);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.ek-drawer-grid a.is-active {
  background: var(--brand-cyan);
  color: #fff;
}

/* Announcement Banner (Right below Navigation) */
.ek-notice {
  background: linear-gradient(90deg, #0b1e38 0%, #102b4f 50%, #0b1e38 100%);
  border-bottom: 1px solid #1e3a5f;
  color: #e0f2fe;
  font-size: 0.86rem;
}

.ek-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.ek-notice-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ek-notice-pill {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--brand-sky);
  color: #071324;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.ek-notice-right {
  font-size: 0.78rem;
  color: #93c5fd;
  font-family: var(--mono);
}

/* Dark Tech Hero */
.ek-hero {
  background: radial-gradient(circle at 80% 18%, rgba(14, 165, 233, 0.22), transparent 44%),
              radial-gradient(circle at 12% 88%, rgba(5, 150, 105, 0.16), transparent 40%),
              linear-gradient(155deg, #071324 0%, #0d223f 60%, #102c50 100%);
  color: #f8fafc;
  padding: 42px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 0.8rem;
  font-family: var(--mono);
  margin-bottom: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.ek-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.25;
  font-weight: 800;
}

.ek-hero p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 0.96rem;
  max-width: 58ch;
}

.hero-search {
  display: flex;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  max-width: 560px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.94rem;
  color: var(--ink-900);
}

.hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 7px;
  background: var(--brand-cyan);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-search button:hover {
  background: #0369a1;
}

.hero-search button svg {
  width: 16px;
  height: 16px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  align-items: center;
}

.hero-chips a {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.hero-chips a:hover {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #fff;
}

/* Terminal Snapshot Panel */
.terminal-card {
  background: rgba(7, 19, 36, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 33, 59, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #94a3b8;
}

.term-dots {
  display: inline-flex;
  gap: 6px;
}

.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.term-dots span:nth-child(1) { background: #ef4444; }
.term-dots span:nth-child(2) { background: #f59e0b; }
.term-dots span:nth-child(3) { background: #10b981; }

.terminal-body {
  padding: 16px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.tool-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.tool-quick-link:hover {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--brand-sky);
  color: #fff;
}

.tql-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.tql-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.tql-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-alt {
  background: #eaf1f8;
  border-top: 1px solid #d7e3ef;
  border-bottom: 1px solid #d7e3ef;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sec-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sec-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--brand-cyan);
}

.sec-sub {
  margin: 4px 0 0;
  font-size: 0.87rem;
  color: var(--ink-500);
}

/* Topic Cards */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  color: inherit;
}

.topic-card:hover {
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.topic-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0b1e38;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-ico svg {
  width: 22px;
  height: 22px;
}

.topic-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: var(--ink-900);
}

.topic-card p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-500);
  line-height: 1.55;
}

/* Interactive Tool Box */
.tool-panel {
  background: var(--bg-card);
  border: 1px solid #cbd9e8;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.tool-form-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--ink-900);
  background: #fff;
  font-family: var(--mono);
}

.calc-btn {
  height: 42px;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: #0b1e38;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.calc-btn:hover {
  background: var(--brand-cyan);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 0;
}

.metric-box span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.metric-box strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.98rem;
  color: var(--ink-900);
  word-break: break-all;
}

/* Two-Column Content Layout */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.art-list {
  display: grid;
  gap: 16px;
}

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.art-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.pill-topic {
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--brand-cyan-soft);
  color: #0369a1;
  font-weight: 700;
}

.pill-level {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--brand-emerald-soft);
  color: var(--brand-emerald);
  font-weight: 700;
  font-family: var(--mono);
}

.pill-warn {
  background: var(--brand-amber-soft);
  color: var(--brand-amber);
}

.pill-risk {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.meta-muted {
  color: var(--ink-500);
}

.art-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.art-card h3 a {
  color: var(--ink-900);
}

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

.art-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-page);
  color: var(--ink-500);
  font-family: var(--mono);
  font-size: 0.74rem;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 18px;
}

.side-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.side-box h3 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-900);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

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

.cmd-item {
  background: #0b192c;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.79rem;
}

.cmd-item .cmd-lbl {
  display: block;
  color: #7dd3fc;
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.cmd-item code {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  color: #a7f3d0;
}

.port-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.84rem;
}

.port-mini li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.port-mini li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.port-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--brand-cyan);
  background: var(--brand-cyan-soft);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.78rem;
}

/* Matrix Grid */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.matrix-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.matrix-head h3 {
  margin: 0;
  font-size: 1rem;
}

.matrix-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.89rem;
}

.matrix-ul li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.matrix-ul a {
  color: var(--ink-900);
  font-weight: 500;
}

.matrix-ul a:hover {
  color: var(--brand-cyan);
}

.matrix-ul span {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-500);
}

/* Subpage Banner & Prose */
.sub-banner {
  background: linear-gradient(135deg, #071324 0%, #102a4c 100%);
  color: #fff;
  padding: 28px 0 32px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.crumb a {
  color: #7dd3fc;
}

.crumb.is-dark {
  color: var(--ink-500);
  margin-bottom: 14px;
}

.crumb.is-dark a {
  color: var(--brand-cyan);
}

.sub-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.sub-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.94rem;
  max-width: 68ch;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.doc-header {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.doc-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.38rem, 2.4vw, 1.85rem);
  line-height: 1.35;
}

.doc-summary {
  background: #f0f9ff;
  border-left: 4px solid var(--brand-cyan);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 22px;
  font-size: 0.93rem;
  color: var(--ink-900);
}

.prose {
  color: var(--ink-700);
  font-size: 0.98rem;
  line-height: 1.82;
  word-break: break-word;
}

.prose h2 {
  margin: 26px 0 12px;
  font-size: 1.22rem;
  color: var(--ink-900);
  padding-bottom: 7px;
  border-bottom: 2px solid var(--brand-cyan-soft);
  scroll-margin-top: 88px;
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 1.04rem;
  color: #0369a1;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.prose pre {
  background: #0b192c;
  color: #e2e8f0;
  padding: 15px 16px;
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 16px 0;
  max-width: 100%;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.prose .tip-box {
  background: var(--brand-amber-soft);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 13px 16px;
  color: #92400e;
  margin: 18px 0;
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table.ek-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.87rem;
  background: #fff;
}

table.ek-table th {
  background: #f1f5f9;
  color: var(--ink-900);
  font-weight: 700;
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
}

table.ek-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

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

.toc-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
}

.toc-ul a {
  display: block;
  padding: 4px 10px;
  border-left: 2px solid var(--border);
  color: var(--ink-700);
}

.toc-ul a:hover {
  border-left-color: var(--brand-cyan);
  color: var(--ink-900);
  background: var(--bg-page);
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.pn-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.pn-box span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.pn-box a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-900);
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 10px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 18px;
}

.faq-card summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-card summary::after {
  content: "+";
  color: var(--brand-cyan);
  font-family: var(--mono);
  font-size: 1.15rem;
}

.faq-card[open] summary::after {
  content: "−";
}

.faq-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  color: var(--ink-700);
  font-size: 0.9rem;
}

/* Filter Pills & Pagination */
.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill-link {
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 500;
}

.pill-link:hover,
.pill-link.is-active {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #fff;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pager a, .pager span {
  padding: 7px 13px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.86rem;
}

.pager span.is-cur {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #fff;
  font-weight: 700;
}

/* Footer */
.ek-footer {
  background: #071324;
  color: #cbd5e1;
  margin-top: 40px;
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-logo {
  height: 38px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 7px;
  margin-bottom: 12px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.94rem;
}

.footer-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-ul a {
  color: #94a3b8;
}

.footer-ul a:hover {
  color: #38bdf8;
}

.footer-bar {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.81rem;
  color: #94a3b8;
}

.footer-bar a {
  color: #e2e8f0;
}

/* Responsive (Zero horizontal scroll at 375px) */
@media (max-width: 1024px) {
  .ek-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .ek-brand img { height: 34px; }
  .ek-header-right .btn-primary { display: none; }
  .ek-notice-right { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 1fr; }
  .tool-form-row { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; gap: 6px; }
  .hero-search button { justify-content: center; width: 100%; }
  .doc-card { padding: 20px 16px; }
  .prev-next { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}
