/* =========================================================
   数据分析师成长路线图 · 共享样式
   ========================================================= */
:root {
  --bg: #070c14;
  --bg-soft: #0c1322;
  --card: rgba(255,255,255,.045);
  --card-hover: rgba(255,255,255,.07);
  --card-border: rgba(255,255,255,.09);
  --text: #e9eefb;
  --text-dim: #9aa6c4;
  --accent: #34d399;        /* emerald */
  --accent-2: #22d3ee;      /* cyan */
  --accent-3: #a78bfa;      /* violet */
  --warn: #fbbf24;
  --danger: #f87171;
  --pink: #e879f9;
  --radius: 16px;
  --radius-sm: 10px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(167,139,250,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(52,211,153,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

/* ---------- 导航 ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,12,20,.78);
  border-bottom: 1px solid var(--card-border);
}
nav .inner {
  max-width: 1160px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
nav .brand { font-weight: 800; font-size: 16px; letter-spacing: .5px; color: var(--text); text-decoration: none; }
nav .brand span { color: var(--accent); }
nav a.nav-link { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .2s; }
nav a.nav-link:hover { color: var(--accent); }
nav a.nav-link.on { color: var(--accent); }
nav .spacer { flex: 1; }
nav .sep { color: rgba(255,255,255,.16); font-size: 12px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0 8px; }
.section-title { font-size: 25px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.section-title .idx {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid rgba(52,211,153,.4); padding: 3px 10px; border-radius: 999px;
  background: rgba(52,211,153,.08);
}
.section-sub { color: var(--text-dim); margin-bottom: 28px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero-logo{display:inline-flex;align-items:center;gap:10px;margin-bottom:18px;text-decoration:none}
.hero-logo .hl-ico{
  width:44px;height:44px;border-radius:13px;font-size:22px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(59,130,246,.32),rgba(167,139,250,.22));
  border:1px solid rgba(59,130,246,.55);
  box-shadow:0 4px 16px rgba(59,130,246,.3);
}
.hero-logo .hl-txt{font-size:17px;font-weight:800;color:var(--text);letter-spacing:.5px}
.hero-logo .hl-txt span{color:var(--accent-2)}

.hero .badge {
  display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--accent);
  border: 1px solid rgba(52,211,153,.4); border-radius: 999px; padding: 5px 16px; margin-bottom: 20px;
  background: rgba(52,211,153,.08);
}
.hero h1 {
  font-size: clamp(36px, 6.5vw, 60px); font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(120deg, #fff 10%, var(--accent) 40%, var(--accent-2) 70%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin: 16px auto 30px; max-width: 680px; color: var(--text-dim); font-size: 16.5px; }
.hero-stats { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.hero-stats .hs { text-align: center; }
.hero-stats .num { font-size: 26px; font-weight: 800; font-family: var(--mono); color: var(--accent-2); }
.hero-stats .lab { font-size: 12.5px; color: var(--text-dim); letter-spacing: 1px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(52,211,153,.4); background: var(--card-hover); }
a.card-link { text-decoration: none; color: inherit; display: block; }
.card .icon { font-size: 26px; margin-bottom: 10px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 13.8px; color: var(--text-dim); }
.card .tag-line { margin-top: 12px; font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* ---------- 徽章 / 标签 ---------- */
.tag {
  display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--card-border); color: var(--text-dim); margin: 2px 4px 2px 0;
  white-space: nowrap;
}
.tag.green { color: var(--accent); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); }
.tag.cyan { color: var(--accent-2); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.08); }
.tag.violet { color: var(--accent-3); border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.08); }
.tag.amber { color: var(--warn); border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.tag.red { color: var(--danger); border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }
.stars { color: var(--warn); font-size: 12.5px; letter-spacing: 2px; }
.dim { color: var(--text-dim); }

/* ---------- 时间线（学习路线） ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: .5;
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--accent);
}
.tl-item:nth-child(2)::before { border-color: var(--accent-2); }
.tl-item:nth-child(3)::before { border-color: var(--accent-3); }
.tl-item:nth-child(4)::before { border-color: var(--pink); }
.tl-item:nth-child(5)::before { border-color: var(--warn); }
.tl-item:nth-child(6)::before { border-color: var(--danger); }

.phase-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.phase-head h3 { font-size: 18px; }
.phase-head .dur {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid rgba(52,211,153,.4); padding: 2px 10px; border-radius: 999px;
}
.phase-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skill-chip {
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text);
}
.skill-chip::before { content: "▸ "; color: var(--accent); }
.outcome {
  font-size: 13.5px; color: var(--text-dim);
  border-left: 3px solid var(--accent-2); padding: 8px 14px; margin-top: 8px;
  background: rgba(34,211,238,.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.outcome b { color: var(--accent-2); }

/* ---------- 表格（软件页） ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--card-border); margin-bottom: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 13.8px; min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
th { background: rgba(52,211,153,.07); color: var(--accent); font-size: 12.5px; letter-spacing: 1px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.03); }
td a { color: var(--accent-2); text-decoration: none; }
td a:hover { text-decoration: underline; }
td .note { display: block; font-size: 12px; color: var(--text-dim); margin-top: 3px; }

/* ---------- 代码块 ---------- */
pre.code {
  background: #0a1220; border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: var(--mono); font-size: 13px; overflow-x: auto;
  color: #b8e6d8; line-height: 1.7; margin: 10px 0 18px;
}
pre.code .c { color: #5c6b8a; }

/* ---------- 提示框 ---------- */
.tip, .warn-box {
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 14px 0 20px; font-size: 14px;
}
.tip { background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.35); color: #c9f5e3; }
.warn-box { background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.35); color: #fbe3b8; }
.tip b, .warn-box b { color: var(--accent); }
.warn-box b { color: var(--warn); }

/* ---------- 复选框清单 ---------- */
.checklist { list-style: none; }
.checklist li { padding: 8px 0; border-bottom: 1px dashed var(--card-border); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.checklist li:last-child { border-bottom: none; }
.checklist input { margin-top: 5px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.checklist label { cursor: pointer; }
.checklist input:checked + label { color: var(--text-dim); text-decoration: line-through; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 72px; padding: 34px 24px; border-top: 1px solid var(--card-border);
  text-align: center; color: var(--text-dim); font-size: 13px;
}
footer .links { margin-bottom: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- 书单 ---------- */
.book-item { display: flex; gap: 16px; }
.book-item .b-no {
  font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--accent);
  min-width: 30px; text-align: center; opacity: .9;
}
.book-item h3 { font-size: 15.5px; margin-bottom: 4px; }
.book-item .meta { font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.book-item .why { font-size: 13.5px; color: var(--text); }
.book-item .why a { color: var(--accent-2); text-decoration: none; }
.book-item .why a:hover { text-decoration: underline; }
