/* ============================================================
   KEWO DSE · home.css  站点首页（科目选择大厅）专属样式
   ============================================================ */

/* ---------- 首页 Hero ---------- */
.home-hero {
  background:
    radial-gradient(1000px 400px at 90% -20%, rgba(47,111,228,.14), transparent),
    radial-gradient(700px 320px at 0% 110%, rgba(200,162,75,.12), transparent),
    var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
  padding: 48px 0 40px;
  text-align: center;
}
.home-hero h1 { max-width: 680px; margin: 0 auto 12px; }
.home-hero .lead { max-width: 560px; margin: 0 auto; }
.home-hero .hero-cta-row { justify-content: center; }
@media (min-width: 769px) { .home-hero { padding: 88px 0 72px; } }

/* ---------- 科目大厅三卡 ---------- */
.hall-card {
  position: relative; overflow: hidden; padding: 24px;
  border: 1px solid var(--c-line); border-radius: var(--radius-l); background: #fff;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hall-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.hall-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--sc, var(--c-blue)); }
.hall-head { display: flex; align-items: center; gap: 12px; }
.hall-badge {
  width: 48px; height: 48px; border-radius: var(--radius-m); flex: none;
  background: color-mix(in srgb, var(--sc) 14%, #fff); color: var(--sc);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.hall-head h2 { font-size: 20px; }
.hall-head .hall-en { font-size: 12px; color: var(--c-text-2); font-weight: 500; }
.hall-slogan { font-size: 14px; color: var(--c-text-2); min-height: 2.8em; }
.hall-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hall-chips .chip { border: 1px solid color-mix(in srgb, var(--sc) 35%, #fff); color: var(--sc); background: color-mix(in srgb, var(--sc) 6%, #fff); }
.hall-card .hall-enter {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-radius: var(--radius-s);
  background: var(--sc); color: #fff; font-weight: 600; font-size: 15px;
  transition: filter .2s ease;
}
.hall-card .hall-enter:hover { filter: brightness(1.08); color: #fff; }
@media (min-width: 769px) { .hall-card { padding: 28px; } }

/* ---------- 30 秒速览横向卡 ---------- */
.overview-card { border: 1px solid var(--c-line); border-radius: var(--radius-l); background: #fff; overflow: hidden; }
.overview-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--c-line);
}
.overview-head .ov-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--c-primary); }
.ov-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.overview-head .ov-enter { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ov); display: inline-flex; align-items: center; gap: 4px; }
.overview-body { padding: 18px 20px 20px; }
.ov-mini-table { width: 100%; font-size: 13px; border: 1px solid var(--c-line); border-radius: var(--radius-s); overflow: hidden; display: block; }
.ov-mini-table table { min-width: 100%; }
.ov-mini-table th, .ov-mini-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.ov-mini-table th { background: var(--c-bg-soft); color: var(--c-primary); font-weight: 600; }
.ov-mini-table tr:last-child td { border-bottom: none; }
.ov-articles { margin-top: 14px; display: grid; gap: 8px; }
.ov-articles a {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text);
}
.ov-articles a::before { content: "▸"; color: var(--ov); flex: none; }
.ov-articles a:hover { color: var(--ov); }

/* ---------- 全科组合建议 ---------- */
.combo-steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 769px) { .combo-steps { grid-template-columns: repeat(3, 1fr); } }
.combo-step { position: relative; padding: 22px 22px 22px 64px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: #fff; }
.combo-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.combo-step h3 { font-size: 16px; margin-bottom: 6px; }
.combo-step p { font-size: 13px; color: var(--c-text-2); }
.combo-banner {
  margin-top: 24px; border-radius: var(--radius-l); padding: 28px 24px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.combo-banner h3 { color: #fff; font-size: 18px; }
.combo-banner p { font-size: 13px; opacity: .85; margin-top: 4px; }
.combo-banner .btn { background: var(--c-accent); color: #fff; flex: none; }
.combo-banner .btn:hover { background: var(--c-accent-deep); }
@media (min-width: 769px) { .combo-banner { padding: 32px 40px; } }

/* ---------- 首页矩阵位 ---------- */
.matrix-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.matrix-strip a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--c-line); border-radius: 999px;
  font-size: 14px; color: var(--c-text); background: #fff;
}
.matrix-strip a:hover { border-color: var(--c-accent); color: var(--c-accent-deep); }
