/* =========================================================
   国际专业滑雪培训体系 · 样式层
   ========================================================= */

:root {
  --bg: #060a13;
  --bg-soft: #0b1120;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eefb;
  --text-dim: #a9b8d6;
  --muted: #7185a8;
  --accent: #4f8cff;
  --accent-2: #818cf8;
  --accent-3: #38bdf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.85);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景光效 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(79, 140, 255, 0.20), transparent 62%),
    radial-gradient(900px 620px at 88% 4%, rgba(129, 140, 248, 0.16), transparent 60%),
    radial-gradient(1000px 800px at 50% 108%, rgba(56, 189, 248, 0.13), transparent 65%),
    linear-gradient(180deg, #060a13 0%, #070d19 45%, #05080f 100%);
}
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 78%);
}

::selection { background: rgba(79, 140, 255, 0.35); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); background-clip: content-box; }

/* =========================================================
   顶部
   ========================================================= */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(180deg, rgba(6, 10, 19, 0.92), rgba(6, 10, 19, 0.72));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }

.brand-mark {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #4f8cff, #818cf8 55%, #38bdf8);
  box-shadow: 0 8px 24px -8px rgba(79, 140, 255, 0.9);
}
.brand-mark svg { width: 25px; height: 25px; display: block; }

.brand-text h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand-text p {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.header-spacer { flex: 1 1 auto; }

.header-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stat { text-align: right; }
.stat b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #cfe0ff, #8fb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 11px; color: var(--muted); letter-spacing: 0.4px; }

/* ---------- 标签页 ---------- */
.tabs-bar {
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 19, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 75px;
  z-index: 55;
}
.tabs-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: #fff; }
.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 14px rgba(79, 140, 255, 0.85);
}
.tab-btn .tab-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-right: 7px;
}
.tab-btn.active .tab-num { color: var(--accent-3); }

/* =========================================================
   布局
   ========================================================= */
main { max-width: 1440px; margin: 0 auto; padding: 26px 28px 100px; }

.view { display: none; animation: fadeUp 0.35s ease both; }
.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.layout-split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* =========================================================
   左侧：体系列表
   ========================================================= */
.sidebar { position: sticky; top: 142px; }

.search-wrap { position: relative; margin-bottom: 13px; }
.search-wrap svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--muted);
}
#cert-search {
  width: 100%;
  padding: 11px 14px 11px 37px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
#cert-search::placeholder { color: var(--muted); }
#cert-search:focus {
  border-color: rgba(79, 140, 255, 0.6);
  background: rgba(79, 140, 255, 0.07);
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active {
  background: rgba(79, 140, 255, 0.16);
  border-color: rgba(79, 140, 255, 0.55);
  color: #cfe0ff;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(100vh - 290px);
  overflow-y: auto;
  padding-right: 5px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: var(--text);
  transition: all 0.18s ease;
}
.side-item:hover {
  background: var(--panel-hover);
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.side-item.active {
  background: rgba(79, 140, 255, 0.13);
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.22) inset;
}
.side-item.active::before { content: none; }

.flag-badge {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
}

.side-meta { min-width: 0; flex: 1; }
.side-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.isia-dot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.isia-dot.member { background: var(--ok); box-shadow: 0 0 9px rgba(52, 211, 153, 0.9); }
.isia-dot.observer { background: var(--warn); box-shadow: 0 0 9px rgba(251, 191, 36, 0.9); }
.isia-dot.withdrawn { background: var(--danger); box-shadow: 0 0 9px rgba(248, 113, 113, 0.9); }

.empty-hint { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* =========================================================
   右侧：认证详情
   ========================================================= */
.detail-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-hero {
  padding: 30px 32px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 230px at 10% 0%, var(--hero-glow, rgba(79, 140, 255, 0.24)), transparent 68%);
  pointer-events: none;
}
.detail-hero > * { position: relative; }

.hero-top { display: flex; align-items: flex-start; gap: 17px; flex-wrap: wrap; }

.hero-badge {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.9);
}

.hero-title { flex: 1 1 260px; min-width: 0; }
.hero-title h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.25;
}
.hero-title .full-name {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-title .tagline {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.hero-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  letter-spacing: 0.2px;
}
.pill.ok { border-color: rgba(52, 211, 153, 0.45); color: #86efac; background: rgba(52, 211, 153, 0.1); }
.pill.warn { border-color: rgba(251, 191, 36, 0.45); color: #fcd34d; background: rgba(251, 191, 36, 0.1); }
.pill.danger { border-color: rgba(248, 113, 113, 0.45); color: #fca5a5; background: rgba(248, 113, 113, 0.1); }
.pill.info { border-color: rgba(56, 189, 248, 0.45); color: #7dd3fc; background: rgba(56, 189, 248, 0.1); }

/* ---------- ISIA 映射条 ---------- */
.isia-map {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.isia-map-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  padding: 12px 15px;
}
.isia-map-cell small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.isia-map-cell b { font-size: 14px; font-weight: 650; }
.isia-map-cell.stamp b { color: #7dd3fc; }
.isia-map-cell.card b { color: #86efac; }

/* ---------- 警告框 ---------- */
.alert {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.alert svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 3px; }
.alert.danger { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.09); color: #fecaca; }
.alert.warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.09); color: #fde68a; }
.alert.info { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.08); color: #bae6fd; }
.hero-alert { margin-top: 18px; }

/* ---------- 主体区块 ---------- */
.detail-body { padding: 26px 32px 34px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.section-title::before {
  content: "";
  width: 3px; height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}
.section-title + .section-title { margin-top: 34px; }
.section-title .count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--mono);
}

/* =========================================================
   等级阶梯
   ========================================================= */
.ladder { display: flex; flex-direction: column; gap: 11px; }

.rung {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rung:hover { border-color: var(--border-strong); }
.rung.open { border-color: rgba(79, 140, 255, 0.42); background: rgba(79, 140, 255, 0.05); }

.rung-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  background: transparent;
  border: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
}

.rung-index {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  border: 1.5px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.rung.open .rung-index {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14);
}

.rung-info { flex: 1; min-width: 0; }
.rung-info .rung-name {
  font-size: 15px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.rung-info .rung-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.tag.stamp { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.42); }
.tag.card { background: rgba(52, 211, 153, 0.16); color: #86efac; border: 1px solid rgba(52, 211, 153, 0.42); }
.tag.none { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--border); }

.rung-chevron {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.rung.open .rung-chevron { transform: rotate(180deg); color: var(--accent-3); }

.rung-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rung.open .rung-body { grid-template-rows: 1fr; }
.rung-body-inner { overflow: hidden; }
.rung-body-pad {
  padding: 4px 18px 20px 66px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px 24px;
  border-top: 1px dashed var(--border);
  margin-top: 2px;
  padding-top: 18px;
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-label .ico { font-size: 12px; }

.field-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.field-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.field-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.72;
}
.field-list.skills li::before { background: var(--accent-3); }
.field-list.tests li::before { background: var(--warn); }

/* ---------- 概要网格（时长/前置） ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  padding: 14px 18px 4px 66px;
}
.meta-cell {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
}
.meta-cell small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 0.5px; }
.meta-cell span { font-size: 12.5px; color: var(--text-dim); }

/* =========================================================
   卡片网格（专项 / 通用）
   ========================================================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 16px;
}

.disc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.22s, box-shadow 0.22s;
  font-family: inherit;
  text-align: left;
  color: inherit;
  width: 100%;
}
.disc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 130px at 100% 0%, var(--card-glow, rgba(79, 140, 255, 0.22)), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}
.disc-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.95);
}
.disc-card > * { position: relative; }

.disc-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  margin-bottom: 13px;
}
.disc-card h3 { margin: 0; font-size: 16.5px; font-weight: 680; letter-spacing: 0.2px; }
.disc-card .disc-en {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
  margin: 3px 0 9px;
  letter-spacing: 0.3px;
}
.disc-card p { margin: 0; font-size: 12.8px; color: var(--text-dim); line-height: 1.65; }

.disc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.disc-tags span {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.disc-foot {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.disc-foot b { color: var(--accent-3); font-weight: 650; }

/* =========================================================
   弹层：专项详情
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.overlay.open { display: block; }

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn 0.25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.overlay-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(880px, 100%);
  background: linear-gradient(180deg, #0b1220, #070c16);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 70px -25px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.32s cubic-bezier(0.32, 0.72, 0, 1) both;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }

.overlay-head {
  padding: 24px 30px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex: 0 0 auto;
}
.overlay-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 200px at 0% 0%, var(--hero-glow, rgba(79, 140, 255, 0.22)), transparent 70%);
  pointer-events: none;
}
.overlay-head > * { position: relative; }

.overlay-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.16s ease;
  z-index: 2;
}
.overlay-close:hover {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
}
.overlay-close svg { width: 16px; height: 16px; }

.overlay-scroll { flex: 1 1 auto; overflow-y: auto; padding: 26px 30px 60px; }

/* ---------- 技术体系阶梯 ---------- */
.tech-steps { display: flex; flex-direction: column; gap: 0; }

.tech-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  position: relative;
}
.tech-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px; top: 44px; bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(79, 140, 255, 0.12));
  opacity: 0.5;
}
.tech-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  border: 1.5px solid var(--border-strong);
  background: #0a1020;
  z-index: 1;
}
.tech-step:nth-child(1) .tech-node { border-color: rgba(52, 211, 153, 0.6); color: #86efac; }
.tech-step:nth-child(2) .tech-node { border-color: rgba(56, 189, 248, 0.6); color: #7dd3fc; }
.tech-step:nth-child(3) .tech-node { border-color: rgba(129, 140, 248, 0.6); color: #a5b4fc; }
.tech-step:nth-child(4) .tech-node { border-color: rgba(244, 114, 182, 0.6); color: #f9a8d4; }

.tech-content { padding-bottom: 24px; }
.tech-content h4 { margin: 0 0 3px; font-size: 15.5px; font-weight: 680; }
.tech-content .tech-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tech-content ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tech-content li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.62;
}
.tech-content li::before {
  content: "";
  position: absolute;
  left: 1px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: rgba(79, 140, 255, 0.65);
  transform: rotate(45deg);
}

/* ---------- 通用信息块 ---------- */
.info-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
  padding: 17px 20px;
  margin-bottom: 13px;
}
.info-block h4 {
  margin: 0 0 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-rows { display: flex; flex-direction: column; gap: 8px; }
.info-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.62;
  align-items: flex-start;
}
.info-row .k {
  flex: 0 0 auto;
  min-width: 62px;
  color: var(--muted);
  font-weight: 600;
}
.info-row .v { color: var(--text-dim); flex: 1; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud span {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.28);
  color: #c7dbff;
}
.tag-cloud.warm span {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
  color: #fdba74;
}
.tag-cloud.cool span {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

/* =========================================================
   路径条（cardPath）
   ========================================================= */
.path-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
}
.path-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
}
.path-step.hot {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
  font-weight: 600;
}
.path-arrow { color: var(--muted); font-size: 14px; }

/* =========================================================
   总览：ISIA 层级
   ========================================================= */
.isia-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.isia-level-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}
.isia-level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 150px at 100% 0%, var(--lvl-glow, rgba(79, 140, 255, 0.2)), transparent 72%);
  pointer-events: none;
}
.isia-level-card > * { position: relative; }
.isia-level-card .lvl-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}
.isia-level-card h3 { margin: 7px 0 9px; font-size: 20px; font-weight: 700; }
.isia-level-card .lvl-hours {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
  color: var(--text-dim);
}
.isia-level-card .lvl-desc { font-size: 13.5px; color: var(--text-dim); margin: 0 0 9px; font-weight: 600; }
.isia-level-card .lvl-detail { font-size: 12.6px; color: var(--muted); margin: 0; line-height: 1.68; }

/* ---------- 六件套 ---------- */
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 12px; }
.check-item {
  display: flex;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.026);
  align-items: flex-start;
}
.check-item .num {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #cfe0ff;
  background: rgba(79, 140, 255, 0.14);
  border: 1px solid rgba(79, 140, 255, 0.32);
}
.check-item strong { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 3px; }
.check-item p { margin: 0; font-size: 12.4px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   表格
   ========================================================= */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.table-scroll { overflow-x: auto; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 880px;
}
table.cmp thead th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.32);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
table.cmp tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.6;
}
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover { background: rgba(255, 255, 255, 0.032); }
table.cmp tbody td:first-child { color: var(--text); font-weight: 620; white-space: nowrap; }
table.cmp .sys-cell { display: flex; align-items: center; gap: 11px; }

.mini-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}
.mini-badge.member { color: #86efac; border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.1); }
.mini-badge.observer { color: #fcd34d; border-color: rgba(251, 191, 36, 0.42); background: rgba(251, 191, 36, 0.1); }
.mini-badge.withdrawn { color: #fca5a5; border-color: rgba(248, 113, 113, 0.42); background: rgba(248, 113, 113, 0.1); }
.mini-badge.ok { color: #86efac; border-color: rgba(52, 211, 153, 0.42); background: rgba(52, 211, 153, 0.1); }
.mini-badge.no { color: var(--muted); border-color: var(--border); background: rgba(255, 255, 255, 0.05); }

/* ---------- 覆盖矩阵 ---------- */
table.matrix { font-size: 12.4px; min-width: 1000px; }
table.matrix thead th { text-align: center; writing-mode: vertical-rl; height: 128px; padding: 12px 6px; }
table.matrix thead th:first-child { text-align: left; writing-mode: horizontal-tb; height: auto; vertical-align: bottom; }
table.matrix tbody td { text-align: center; padding: 11px 6px; }
table.matrix tbody td:first-child { text-align: left; font-weight: 620; color: var(--text); white-space: nowrap; }
.mk { font-size: 14px; }
.mk.y { color: var(--ok); }
.mk.n { color: rgba(255, 255, 255, 0.14); }

/* ---------- 误区 ---------- */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.024);
  padding: 14px 18px;
}
.faq-item .q {
  font-size: 13.5px;
  font-weight: 650;
  color: #fca5a5;
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-bottom: 5px;
}
.faq-item .q::before { content: "✕"; font-size: 12px; opacity: 0.85; }
.faq-item .a { font-size: 13px; color: var(--text-dim); padding-left: 21px; line-height: 1.65; }

/* =========================================================
   视图四：路径规划计算器
   ========================================================= */
.planner-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 24px;
}

.input-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  padding: 18px 20px;
}
.input-card label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.input-hint { margin: 0 0 13px; font-size: 12px; color: var(--muted); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--accent-3);
  border-bottom: 2px solid var(--accent-3);
  transform: rotate(45deg);
  pointer-events: none;
}

.input-card select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.36);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.input-card select:hover { border-color: rgba(79, 140, 255, 0.5); }
.input-card select:focus {
  border-color: rgba(79, 140, 255, 0.75);
  background: rgba(79, 140, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
}
.input-card select option,
.input-card select optgroup {
  background: #0d1424;
  color: var(--text);
}
.input-card select optgroup {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-3);
}

.input-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 0 2px;
}
.input-arrow svg { width: 26px; height: 26px; }

/* ---------- 结果卡 ---------- */
.plan-head {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 26px 30px 22px;
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: linear-gradient(150deg, rgba(79, 140, 255, 0.14), rgba(255, 255, 255, 0.02) 62%);
}
.plan-head.warn {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(150deg, rgba(251, 191, 36, 0.14), rgba(255, 255, 255, 0.02) 62%);
}
.plan-head.done {
  border-color: rgba(52, 211, 153, 0.34);
  background: linear-gradient(150deg, rgba(52, 211, 153, 0.14), rgba(255, 255, 255, 0.02) 62%);
}
.plan-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 220px at 88% 0%, rgba(79, 140, 255, 0.2), transparent 70%);
  pointer-events: none;
}
.plan-head > * { position: relative; }

.plan-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.plan-status i {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-style: normal;
  font-size: 12px;
  background: rgba(79, 140, 255, 0.22);
  border: 1px solid rgba(79, 140, 255, 0.5);
  color: #cfe0ff;
}
.plan-head.warn .plan-status i { background: rgba(251, 191, 36, 0.2); border-color: rgba(251, 191, 36, 0.55); color: #fcd34d; }
.plan-head.done .plan-status i { background: rgba(52, 211, 153, 0.2); border-color: rgba(52, 211, 153, 0.55); color: #86efac; }

.plan-head h2 { margin: 0 0 9px; font-size: 23px; font-weight: 700; line-height: 1.3; }
.plan-head p { margin: 0; font-size: 13.5px; color: var(--text-dim); max-width: 82ch; line-height: 1.7; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }

/* ---------- 规划结果操作区 ---------- */
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-dim);
  font-size: 12.3px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.ghost-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.ghost-btn:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); border-color: rgba(255, 255, 255, 0.26); }
.ghost-btn:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }
.ghost-btn.done {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.plan-body {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  padding: 26px 30px 34px;
  box-shadow: var(--shadow);
}

/* ---------- 收尾步骤（六件套） ---------- */
.tail-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid rgba(52, 211, 153, 0.34);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.07);
}
.tail-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #86efac;
  background: rgba(52, 211, 153, 0.14);
  border: 1.5px solid rgba(52, 211, 153, 0.5);
}
.tail-step h4 { margin: 0 0 3px; font-size: 15.5px; font-weight: 680; }
.tail-step .tech-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tail-step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tail-step li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.62;
}
.tail-step li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.8);
}

/* ---------- 六件套自评 ---------- */
.gap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 9px; }

.gap-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}
.gap-item:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.045); }
.gap-item.done {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.07);
}
.gap-item input { position: absolute; opacity: 0; width: 0; height: 0; }

.gap-box {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.34);
  display: grid;
  place-items: center;
  transition: all 0.16s ease;
}
.gap-box::after {
  content: "";
  width: 5px; height: 9px;
  border-right: 2px solid #04121f;
  border-bottom: 2px solid #04121f;
  transform: rotate(45deg) scale(0);
  transition: transform 0.16s cubic-bezier(0.34, 1.5, 0.64, 1);
  margin-top: -2px;
}
.gap-item.done .gap-box {
  background: linear-gradient(140deg, #34d399, #22d3ee);
  border-color: transparent;
}
.gap-item.done .gap-box::after { transform: rotate(45deg) scale(1); }
.gap-item:focus-within { box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.16); }

.gap-text { min-width: 0; }
.gap-text strong { display: block; font-size: 13.2px; font-weight: 650; margin-bottom: 3px; }
.gap-text em {
  display: block;
  font-style: normal;
  font-size: 12.2px;
  color: var(--muted);
  line-height: 1.6;
}
.gap-text i {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}
.gap-item.done .gap-text i { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.36); color: #86efac; }

.gap-summary {
  margin-top: 14px;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.07);
  font-size: 13px;
  color: #fde68a;
}
.gap-summary b { color: #fff; font-weight: 650; }
.gap-summary.ok {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

/* ---------- 关注方向区块 ---------- */
.dir-block {
  margin-top: 12px;
  padding: 20px 22px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--dir-accent, var(--accent-3));
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.dir-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.dir-icon {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
}
.dir-head h4 { margin: 3px 0 4px; font-size: 16px; font-weight: 680; }
.dir-head p { margin: 0; font-size: 12.8px; color: var(--text-dim); line-height: 1.62; }
.dir-en {
  margin-left: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.dir-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 13px;
  margin-top: 13px;
  border-top: 1px solid var(--border);
}
.dir-head + .dir-row,
.dir-empty + .dir-row { border-top: 0; padding-top: 0; margin-top: 0; }

.dir-label {
  padding-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.dir-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.32);
  color: #a9c8ff;
}
.dir-skill {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.dir-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.dir-level {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border);
}
.dir-stage { font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; color: var(--accent-3); }
.dir-lv-name { font-size: 12.5px; font-weight: 600; }

.dir-empty {
  margin-bottom: 13px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.07);
  font-size: 12.8px;
  line-height: 1.65;
  color: #fde68a;
}

/* =========================================================
   通用
   ========================================================= */
.stack { display: flex; flex-direction: column; gap: 13px; }
.mt-lg { margin-top: 34px; }

footer.site-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 28px 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.4px;
  line-height: 1.85;
}
footer.site-footer strong { color: var(--text-dim); }
footer.site-footer code {
  font-family: var(--mono);
  font-size: 11.8px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #c7dbff;
}
footer.site-footer .disclaimer {
  margin-top: 10px;
  padding: 12px 16px;
  border-left: 2px solid rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.055);
  border-radius: 0 9px 9px 0;
  color: #d9c58a;
}

/* =========================================================
   响应式
   ========================================================= */
/* 三个输入卡在中等屏幕下改为纵向堆叠，箭头转向 */
@media (max-width: 1320px) {
  .planner-inputs { grid-template-columns: 1fr; gap: 12px; }
  .input-arrow { transform: rotate(90deg); padding: 3px 0; }
  .input-arrow svg { width: 22px; height: 22px; }
}

@media (max-width: 1080px) {
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-list {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner, .tabs-inner, main, footer.site-footer { padding-left: 16px; padding-right: 16px; }
  .header-stats { display: none; }
  .tabs-bar { top: 74px; }
  .detail-hero, .detail-body { padding-left: 20px; padding-right: 20px; }
  .rung-body-pad { padding-left: 18px; }
  .meta-grid { padding-left: 18px; }
  .hero-title h2 { font-size: 21px; }
  .overlay-head, .overlay-scroll { padding-left: 20px; padding-right: 20px; }
  .tech-step { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
  .tech-node { width: 36px; height: 36px; font-size: 10px; }
  .tech-step:not(:last-child)::before { left: 18px; top: 38px; }
  .grid-cards { grid-template-columns: 1fr; }
  .plan-head, .plan-body { padding-left: 20px; padding-right: 20px; }
  .plan-head h2 { font-size: 19px; }
  .tail-step { grid-template-columns: 36px minmax(0, 1fr); gap: 13px; padding: 15px; }
  .tail-icon { width: 36px; height: 36px; font-size: 15px; }
  .gap-list { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: 1fr; gap: 7px; }
  .dir-label { padding-top: 0; }
  .dir-block { padding: 16px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   打印 / 导出 PDF
   深色主题直接打印会白底白字，这里把内容区整体压成浅色，
   并只保留当前标签页，避免顺序打印四个视图。
   ========================================================= */
@media print {
  .bg-layer,
  .site-header,
  .tabs-bar,
  .site-footer,
  .planner-inputs,
  .plan-actions,
  .sidebar,
  .search-wrap,
  .filter-chips,
  .overlay { display: none !important; }

  .view { display: none !important; }
  .view.active { display: block !important; }

  html, body, main, .layout-split, .detail-panel, .plan-body { background: #fff !important; }

  main, main * {
    background-color: transparent !important;
    background-image: none !important;
    color: #111 !important;
    border-color: #b8b8b8 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  main .section-title { border-bottom-color: #999 !important; }
  main .section-title .count { color: #555 !important; }

  /* 折叠区域在纸上没有交互意义，一律展开（折叠靠 grid-template-rows 实现） */
  main .rung-body { grid-template-rows: 1fr !important; transition: none !important; }
  main .rung-chevron { display: none !important; }

  a { text-decoration: underline; }

  .tech-step,
  .rung,
  .info-block,
  .dir-block,
  .plan-head,
  .gap-item { break-inside: avoid; page-break-inside: avoid; }

  @page { margin: 14mm; }
}
