/* ============================================================
   灯塔志愿 · 同分去向查询 same-score.css v1
   墨绿 + 香槟金；仅本页使用，颜色全部走 style.css 的 CSS 变量
   ============================================================ */

.ss-wrap { padding-top: 108px; padding-bottom: 56px; max-width: 1120px; }

/* ---------- 页头 ---------- */
.ss-head { margin-bottom: 22px; }
.ss-head .badge { display: inline-block; margin-bottom: 12px; }
.ss-head h1 { font-size: 32px; line-height: 1.25; margin: 0 0 10px; color: var(--ink); font-weight: 800; }
.ss-head p { color: var(--muted); font-size: 15px; margin: 0; max-width: 720px; line-height: 1.7; }

/* ---------- 录入面板 ---------- */
.ss-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(11, 36, 25, .05);
}
.ss-grid {
  display: grid; gap: 16px 18px;
  grid-template-columns: 1.1fr 1fr 1.2fr auto auto auto;
  align-items: end;
}
.ss-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ss-field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.ss-field label small { font-weight: 400; color: var(--muted); }
.ss-field select,
.ss-field input {
  height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 15px; color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
  box-sizing: border-box;
}
.ss-field select:focus, .ss-field input:focus {
  border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(36, 115, 80, .12);
}
.ss-rank input { font-weight: 700; color: var(--navy-700); }
.ss-rank small { font-size: 12px; line-height: 1.4; color: var(--muted); min-height: 16px; }
.ss-rank small.ok { color: var(--safe); }
.ss-rank small.manual { color: var(--gold-500); font-weight: 700; }
.ss-rank small.warn { color: #b45309; }
.ss-go { padding-bottom: 1px; }
.ss-search { height: 42px; padding: 0 22px; white-space: nowrap; font-weight: 700; }

/* 科目 chips */
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font-size: 13.5px; cursor: pointer;
  transition: all .15s; line-height: 1;
}
.ss-chip:hover { border-color: var(--navy-500); color: var(--navy-600); }
.ss-chip.is-on {
  background: var(--navy-700); border-color: var(--navy-700); color: #f3efe4;
  font-weight: 700;
}
.ss-chips-sm .ss-chip { padding: 6px 13px; font-size: 13px; }

/* ---------- 筛选行 ---------- */
.ss-panel-filter { padding: 14px 22px; }
.ss-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ss-filter-row + .ss-filter-row { margin-top: 12px; }
.ss-filter-label { font-size: 13px; font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.ss-select {
  height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  font-size: 13.5px; color: var(--ink); background: #fff; outline: none; min-width: 130px;
}
.ss-kw { flex: 1; min-width: 180px; }

/* ---------- 统计条 ---------- */
.ss-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 4px 2px 14px; font-size: 13.5px; color: var(--muted); min-height: 30px;
}
.ss-summary b { color: var(--ink); }
.ss-pill {
  font-style: normal; border-radius: 999px; padding: 5px 13px; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.ss-pill b { color: inherit; }
.ss-pill small { font-weight: 400; opacity: .7; margin-left: 1px; }
.ss-pill:hover { border-color: var(--navy-500); }
.ss-pill.is-active { color: #fff; border-color: transparent; font-weight: 700; }
.ss-pill[data-tier="reach"].is-active { background: var(--rush); }
.ss-pill[data-tier="stable"].is-active { background: var(--steady); }
.ss-pill[data-tier="safe"].is-active { background: var(--safe); }
.ss-pill.ss-pill-all.is-active { background: var(--navy-700); }
.ss-src { margin-left: auto; font-style: normal; font-size: 12.5px; border-radius: 999px; padding: 5px 12px; }
.ss-src-official { background: rgba(5, 150, 105, .1); color: #047857; border: 1px solid rgba(5,150,105,.25); }
.ss-src-loading { background: rgba(36,115,80,.08); color: var(--navy-600); border: 1px solid rgba(36,115,80,.2); }

/* ---------- 分层结果 ---------- */
.ss-tier { margin-bottom: 22px; }
.ss-tier-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.ss-tier-head h3 { font-size: 17px; margin: 0; font-weight: 800; }
.ss-tier-head small { color: var(--muted); font-size: 13px; }
.ss-tier-head .ss-tier-desc { color: var(--muted); font-size: 12.5px; }
.ss-tier-reach .ss-tier-head h3 { color: var(--rush); }
.ss-tier-stable .ss-tier-head h3 { color: var(--steady); }
.ss-tier-safe .ss-tier-head h3 { color: var(--safe); }

.dcard {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(11, 36, 25, .04);
}
.ss-tier-reach .dcard { border-left-color: var(--rush); }
.ss-tier-stable .dcard { border-left-color: var(--steady); }
.ss-tier-safe .dcard { border-left-color: var(--safe); }

.dc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dc-name { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.dc-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dc-lv {
  font-style: normal; font-size: 11.5px; line-height: 1; padding: 3px 8px; border-radius: 5px;
  background: var(--bg-soft); color: var(--navy-700); border: 1px solid var(--line); font-weight: 700;
}
.dc-region { color: var(--muted); font-size: 13px; }
.dc-batch { font-size: 11.5px; color: var(--gold-500); border: 1px solid rgba(201,164,92,.4); border-radius: 5px; padding: 2px 7px; }

.dc-mid { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; flex-wrap: wrap; }
.dc-major {
  font-size: 14px; color: var(--ink); line-height: 1.5; flex: 1; min-width: 220px;
}
.dc-major-name { font-weight: 600; }
.dc-major-name.clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-more { border: none; background: none; color: var(--navy-600); font-size: 12.5px; cursor: pointer; padding: 0; }
.dc-req {
  flex: 0 0 auto; font-size: 12px; color: var(--navy-700); background: rgba(36,115,80,.08);
  border: 1px solid rgba(36,115,80,.18); border-radius: 6px; padding: 3px 9px; white-space: nowrap;
}
.dc-diff { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dc-diff b { font-size: 15px; }
.dc-diff.up { color: var(--rush); }
.dc-diff.down { color: var(--safe); }
.dc-diff small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* 备注标签（办学地点 / 专项计划 / 身体单科要求 / 包含方向） */
.dc-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dc-note {
  font-style: normal; font-size: 11.5px; line-height: 1.4; padding: 2px 8px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); white-space: nowrap;
}
.dc-note-loc { background: rgba(36,115,80,.06); border-color: rgba(36,115,80,.18); color: var(--navy-600); }
.dc-note-plan { background: rgba(212,175,106,.12); border-color: rgba(201,164,92,.4); color: #8f6f2c; font-weight: 600; }
.dc-note-req { background: rgba(225,29,72,.07); border-color: rgba(225,29,72,.25); color: #be123c; }
.dc-inc { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.dc-note-inc { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.22); color: #1d4ed8; }
.dc-inc-list {
  width: 100%; margin-top: 6px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; font-size: 12.5px; color: var(--ink); line-height: 1.7;
}

/* 加载更多 / 已到底 */
.ss-more {
  display: block; width: 100%; margin: 12px 2px 0; padding: 11px; border: 1px dashed var(--navy-500);
  background: rgba(36,115,80,.05); color: var(--navy-700); border-radius: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.ss-more:hover { background: rgba(36,115,80,.1); border-style: solid; }
.ss-end { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 2px 0; }

/* 卡片 → 智能筛选交叉链接 */
.dc-to-scr {
  display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--navy-600); text-decoration: none;
}
.dc-to-scr:hover { text-decoration: underline; }

/* 逐年分数表 */
.dc-years { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.dc-y {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; min-width: 118px;
  background: var(--bg);
}
.dc-y-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dc-y-head b { color: var(--ink); font-size: 13px; }
.dc-trend { font-size: 11px; font-weight: 700; }
.dc-trend.hot { color: var(--rush); }
.dc-trend.cool { color: var(--safe); }
.dc-y-line { font-size: 13px; color: var(--ink); margin-top: 3px; }
.dc-y-line b { font-size: 15px; }
.dc-y-line span { color: var(--muted); font-size: 12px; margin-left: 8px; }

/* ---------- 状态 / CTA / 提示 ---------- */
.ss-state {
  text-align: center; padding: 58px 20px; border: 1px dashed var(--line);
  border-radius: 16px; background: rgba(255,255,255,.6);
}
.ss-state-emoji { font-size: 38px; margin-bottom: 10px; }
.ss-state h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.ss-state p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.ss-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 16px; padding: 22px 26px; margin-top: 26px; flex-wrap: wrap;
}
.ss-cta-text h3 { color: var(--gold-300); margin: 0 0 6px; font-size: 17px; }
.ss-cta-text p { color: rgba(240, 224, 182, .82); margin: 0; font-size: 13.5px; line-height: 1.6; }

.ss-disclaimer {
  margin: 16px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.7;
  background: rgba(201,164,92,.07); border: 1px solid rgba(201,164,92,.22);
  border-radius: 10px; padding: 10px 14px;
}

.ss-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--navy-900); color: #f3efe4; font-size: 14px; padding: 11px 20px;
  border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.22); z-index: 200; max-width: 86vw;
  text-align: center;
}

.footer-scr { margin-top: 30px; padding: 26px 0; border-top: 1px solid var(--line); background: transparent; }
.footer-scr .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1120px; font-size: 13px; color: var(--muted); }
.footer-scr a { color: var(--navy-600); font-weight: 600; }

/* ---------- 暗色 ---------- */
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .ss-head h1 { color: #f2ead6; }
html[data-theme="dark"] .ss-panel,
html[data-theme="dark"] .dcard { background: #101c15; border-color: #22382c; box-shadow: none; }
html[data-theme="dark"] .ss-field label { color: #e7eee9; }
html[data-theme="dark"] .ss-field select,
html[data-theme="dark"] .ss-field input,
html[data-theme="dark"] .ss-select { background: #16261d; border-color: #2b4436; color: #e7eee9; }
html[data-theme="dark"] .ss-field select option { background: #16261d; }
html[data-theme="dark"] .ss-rank input { color: #f0e0b6; }
html[data-theme="dark"] .ss-chip { background: #16261d; border-color: #2b4436; color: #8ea397; }
html[data-theme="dark"] .ss-chip:hover { border-color: var(--gold-500); color: var(--gold-300); }
html[data-theme="dark"] .ss-pill { background: #101c15; border-color: #2b4436; color: #8ea397; }
html[data-theme="dark"] .ss-summary b { color: #e7eee9; }
html[data-theme="dark"] .dc-name { color: #f2ead6; }
html[data-theme="dark"] .dc-lv { background: #1d3126; border-color: #2b4436; color: #ecd9a8; }
html[data-theme="dark"] .dc-major { color: #e7eee9; }
html[data-theme="dark"] .dc-req { background: rgba(212,175,106,.1); border-color: rgba(201,164,92,.3); color: var(--gold-300); }
html[data-theme="dark"] .dc-y { background: #16261d; border-color: #22382c; }
html[data-theme="dark"] .dc-y-line { color: #e7eee9; }
html[data-theme="dark"] .dc-y-head b { color: #ecd9a8; }
html[data-theme="dark"] .dc-note { background: #1d3126; border-color: #2b4436; color: #8ea397; }
html[data-theme="dark"] .dc-note-loc { background: rgba(36,115,80,.18); color: #6ee7b7; }
html[data-theme="dark"] .dc-note-plan { background: rgba(212,175,106,.14); color: var(--gold-300); }
html[data-theme="dark"] .dc-note-req { background: rgba(225,29,72,.15); color: #fda4af; }
html[data-theme="dark"] .dc-note-inc { background: rgba(37,99,235,.18); color: #93c5fd; }
html[data-theme="dark"] .dc-inc-list { background: #16261d; border-color: #2b4436; color: #e7eee9; }
html[data-theme="dark"] .ss-more { background: rgba(36,115,80,.12); border-color: var(--gold-500); color: var(--gold-300); }
html[data-theme="dark"] .ss-more:hover { background: rgba(36,115,80,.22); }
html[data-theme="dark"] .ss-end { color: #8ea397; }
html[data-theme="dark"] .dc-to-scr { color: var(--gold-300); }
html[data-theme="dark"] .ss-state { background: #101c15; border-color: #2b4436; }
html[data-theme="dark"] .ss-state h3 { color: #f2ead6; }
html[data-theme="dark"] .footer-scr { border-color: #22382c; }
html[data-theme="dark"] .footer-scr a { color: var(--gold-300); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ss-grid { grid-template-columns: repeat(3, 1fr); }
  .ss-go { grid-column: 1 / -1; }
  .ss-search { width: 100%; }
}
@media (max-width: 720px) {
  .ss-wrap { padding-top: 92px; }
  .ss-head h1 { font-size: 25px; }
  .ss-grid { grid-template-columns: 1fr 1fr; }
  .ss-province, .ss-score, .ss-rank { grid-column: 1 / -1; }
  .ss-panel { padding: 16px; }
  .ss-src { margin-left: 0; }
  .ss-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 460px) {
  .ss-grid { grid-template-columns: 1fr; }
  .ss-field { grid-column: 1 / -1 !important; }
}
