/* 九学段一条线：品牌主线页与首页品牌带共用 */
.line-page,
.line-hero,
.line-stage-section,
.line-wave-section,
.line-sim-section,
.line-coverage {
  --line-deep: #0b1f3a;
  --line-sea: #0e7490;
  --line-sky: #7dd3fc;
}

/* ---------- Hero ---------- */
.line-hero {
  position: relative;
  overflow: hidden;
  margin: 26px 0 34px;
  padding: 46px 46px 38px;
  border-radius: 26px;
  background:
    radial-gradient(620px 260px at 88% 0%, rgba(125, 211, 252, 0.22), transparent 68%),
    radial-gradient(520px 300px at 4% 100%, rgba(14, 116, 144, 0.34), transparent 70%),
    linear-gradient(135deg, #0b1f3a 0%, #123b5a 58%, #0e7490 100%);
  color: #f8fbff;
  box-shadow: 0 24px 56px rgba(11, 31, 58, 0.22);
}
.line-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -72px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.04), 0 0 0 68px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
.line-hero > * { position: relative; z-index: 1; }
.line-hero .eyebrow { color: var(--line-sky); letter-spacing: 0.18em; }
.line-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-family: "Songti SC", "STSongti-SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.line-hero h1 em { color: var(--line-sky); font-style: normal; }
.line-hero-sub {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(248, 251, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.85;
}
.line-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.line-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(248, 251, 255, 0.76);
  font-size: 0.8rem;
}
.line-hero-stats strong {
  color: #fff;
  font-family: "Songti SC", "STSongti-SC", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1;
}
.line-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.line-hero-actions .btn-learn {
  background: #f8fbff;
  color: var(--line-deep);
  border-color: #f8fbff;
}
.line-hero-actions .btn-learn:hover { background: var(--line-sky); border-color: var(--line-sky); }
.line-ghost-link { color: var(--line-sky); font-weight: 600; }
.line-ghost-link:hover { color: #fff; text-decoration: none; }
.line-hero-note { margin: 16px 0 0; color: rgba(248, 251, 255, 0.58); font-size: 0.82rem; }

/* ---------- 通用小节头 ---------- */
.line-stage-section,
.line-wave-section,
.line-sim-section,
.line-coverage { margin: 40px 0; scroll-margin-top: 24px; }
.line-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}
.line-section-head h2 {
  margin: 4px 0 0;
  font-family: "Songti SC", "STSongti-SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.line-section-head p { margin: 0; color: var(--ui-ink-soft, #33475f); font-size: 0.94rem; line-height: 1.8; }
.line-section-head .eyebrow { color: var(--ui-cyan, #0e7490); font-weight: 700; letter-spacing: 0.13em; }

/* ---------- 九站 ---------- */
.stage-rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(132px, 1fr));
  overflow-x: auto;
  padding: 4px 2px 14px;
  gap: 0;
  scrollbar-width: thin;
}
.stage-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 16px 14px 14px;
  border-top: 2px solid var(--ui-line-strong, #c7d4e4);
  color: var(--ui-ink, #13243a);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.stage-stop::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ui-line-strong, #c7d4e4);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.stage-stop:hover {
  border-top-color: var(--ui-blue, #1d4ed8);
  background: #f8fbff;
  text-decoration: none;
  transform: translateY(-2px);
}
.stage-stop:hover::before { background: var(--ui-blue, #1d4ed8); border-color: var(--ui-blue, #1d4ed8); }
.stage-stop-tool { border-top-style: dashed; background: #f8fafc; }
.stage-stop-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 12px; }
.stage-index { color: #8aa0b6; font-size: 0.72rem; letter-spacing: 0.08em; }
.stage-role { color: var(--ui-cyan, #0e7490); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.stage-stop strong { font-size: 1.08rem; line-height: 1.3; }
.stage-eyebrow { margin-top: 3px; color: var(--ui-amber, #b45309); font-size: 0.75rem; font-weight: 600; }
.stage-title { margin-top: 5px; color: var(--ui-ink-soft, #33475f); font-size: 0.82rem; line-height: 1.55; }
.stage-count { margin-top: auto; padding-top: 12px; color: #6b7f95; font-size: 0.72rem; }
.stage-stop-tool .stage-role { color: #64748b; }
.stage-stop-tool:hover { border-top-color: #64748b; }

/* ---------- 波次题组 ---------- */
.line-wave-s2 { padding-top: 8px; border-top: 1px solid var(--ui-line, #dbe4ef); }
.wave-group {
  margin: 26px 0 34px;
  padding: 22px 22px 20px;
  border: 1px solid var(--ui-line, #dbe4ef);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 45, 74, 0.05);
}
.wave-group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wave-label { margin: 0 0 4px; color: var(--ui-cyan, #0e7490); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; }
.wave-group-head h3 { margin: 0; font-family: "Songti SC", "STSongti-SC", Georgia, serif; font-size: 1.35rem; line-height: 1.35; }
.wave-group-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.wave-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--ui-blue, #1d4ed8);
  font-size: 0.74rem;
  font-weight: 700;
}
.wave-blurb { margin: 8px 0 18px; color: #4b5f77; font-size: 0.88rem; line-height: 1.75; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ui-line, #dbe4ef);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.featured-card:hover {
  transform: translateY(-2px);
  border-color: #b9cde3;
  box-shadow: 0 16px 34px rgba(18, 45, 74, 0.1);
}
.featured-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9.8;
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  background: #fbfdff;
}
.featured-figure img { width: 100%; height: 100%; object-fit: contain; }
.featured-figure-empty { color: #8aa0b6; font-size: 0.8rem; }
.figure-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.82);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.featured-body { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 14px; }
.featured-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 7px; color: #60758b; font-size: 0.69rem; }
.featured-meta span { padding: 1px 6px; border-radius: 4px; background: #f1f6fb; }
.featured-card h4 { margin: 0 0 7px; font-size: 0.94rem; line-height: 1.55; font-weight: 600; }
.featured-card h4 a { color: var(--ui-ink, #13243a); }
.featured-card h4 a:hover { color: var(--ui-blue, #1d4ed8); text-decoration: none; }
.featured-source { margin: 0 0 10px; color: #8aa0b6; font-size: 0.7rem; }
.featured-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed #e6eef6; }
.analysis-chip { color: var(--ui-cyan, #0e7490); font-size: 0.7rem; font-weight: 600; }
.featured-foot a { color: var(--ui-blue, #1d4ed8); font-size: 0.74rem; font-weight: 600; white-space: nowrap; }

/* ---------- 仿真 ---------- */
.line-sim-section { padding-top: 28px; border-top: 1px solid var(--ui-line, #dbe4ef); }
.line-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
}
.line-sim-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--ui-line, #dbe4ef);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 45, 74, 0.04);
}
.line-sim-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.line-sim-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef5ff;
  color: var(--ui-blue, #1d4ed8);
  font-family: "Songti SC", "STSongti-SC", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
}
.exam-chip { padding: 3px 8px; border-radius: 999px; background: #e7f7f0; color: #047857; font-size: 0.66rem; font-weight: 700; }
.line-sim-card h3 { margin: 0 0 5px; font-size: 1.02rem; line-height: 1.45; }
.line-sim-card h3 a { color: var(--ui-ink, #13243a); }
.line-sim-card h3 a:hover { color: var(--ui-blue, #1d4ed8); text-decoration: none; }
.line-sim-module { margin: 0 0 8px; color: #7a8fa4; font-size: 0.7rem; }
.line-sim-tagline { margin: 0 0 12px; color: #4b5f77; font-size: 0.79rem; line-height: 1.65; }
.line-sim-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed #e6eef6; color: #7a8fa4; font-size: 0.69rem; }
.line-sim-foot a { color: var(--ui-cyan, #0e7490); font-weight: 600; white-space: nowrap; }

/* ---------- 管理员覆盖 ---------- */
.line-coverage {
  padding: 20px 22px 22px;
  border: 1px dashed #c7d4e4;
  border-radius: 18px;
  background: #f8fafc;
}
.line-coverage .line-section-head { margin-bottom: 12px; }
.line-coverage .line-section-head .eyebrow { color: #64748b; }
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.coverage-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.coverage-card.is-ready { border-color: #a7e3c6; background: #f3fbf7; }
.coverage-card span { display: block; color: #64748b; font-size: 0.72rem; }
.coverage-card strong { display: inline-block; margin: 2px 0; font-size: 1.25rem; line-height: 1; }
.coverage-card small { margin-left: 2px; color: #94a3b8; font-size: 0.7rem; }
.coverage-card em { display: block; color: #94a3b8; font-size: 0.66rem; font-style: normal; }
.coverage-card.is-ready em { color: #047857; }

/* ---------- 首页品牌带 ---------- */
.home-line-band {
  margin: 28px 0 6px;
  padding: 22px 24px 20px;
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background:
    radial-gradient(560px 220px at 92% -10%, rgba(14, 116, 144, 0.1), transparent 70%),
    linear-gradient(120deg, #ffffff, #f3f8ff 60%, #ecf8fb);
  box-shadow: 0 14px 32px rgba(18, 45, 74, 0.07);
}
.home-line-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.home-line-head h2 {
  margin: 3px 0 0;
  font-family: "Songti SC", "STSongti-SC", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.3;
}
.home-line-head p { max-width: 640px; margin: 5px 0 0; color: #51677d; font-size: 0.86rem; line-height: 1.7; }
.home-line-head .eyebrow { color: var(--ui-cyan, #0e7490); font-weight: 700; letter-spacing: 0.12em; }
.home-line-link { flex: none; padding: 7px 12px; border-radius: 999px; background: #0b1f3a; color: #fff; font-size: 0.76rem; font-weight: 600; }
.home-line-link:hover { background: #0e7490; color: #fff; text-decoration: none; }
.home-line-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.home-line-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #d7e5f2;
  border-radius: 999px;
  background: #fff;
  color: #33475f;
  font-size: 0.72rem;
}
.home-line-chip b { color: #98aabd; font-size: 0.64rem; font-weight: 600; }
.home-line-chip:hover { border-color: #1d4ed8; color: #1d4ed8; text-decoration: none; }
.home-line-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; color: #60758b; font-size: 0.75rem; }
.home-line-meta strong { color: #0e7490; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .line-hero { padding: 34px 30px 30px; border-radius: 22px; }
  .line-section-head { grid-template-columns: 1fr; gap: 8px; }
  .line-section-head p { max-width: none; }
  .featured-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
  .line-hero { margin-top: 18px; padding: 28px 22px 24px; }
  .line-hero h1 { font-size: 2.25rem; }
  .line-hero-sub { font-size: 0.92rem; }
  .line-hero-stats span { padding: 6px 10px; }
  .line-hero-stats strong { font-size: 1.15rem; }
  .line-hero-actions { align-items: stretch; flex-direction: column; }
  .line-hero-actions .btn-learn { text-align: center; }
  .stage-rail { grid-template-columns: repeat(9, 156px); }
  .stage-stop { min-height: 174px; }
  .wave-group { margin: 18px 0 26px; padding: 16px 14px 14px; border-radius: 16px; }
  .wave-group-head { flex-direction: column; gap: 8px; }
  .wave-group-meta { align-items: flex-start; flex-direction: row; }
  .featured-grid { grid-template-columns: 1fr; }
  .line-sim-grid { grid-template-columns: 1fr; }
  .home-line-band { padding: 18px 16px 16px; }
  .home-line-head { flex-direction: column; gap: 10px; }
  .home-line-link { align-self: flex-start; }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .line-hero h1 { font-size: 2rem; }
  .line-hero-stats { gap: 6px; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}
