/* ========== school.css — 院校详情页 ========== */

.sh-wrap { padding: 28px 16px 60px; max-width: 1040px; }

/* 空态 / 错误态 */
.sh-state {
  text-align: center; padding: 80px 20px; color: var(--muted);
}
.sh-state .sh-loader {
  width: 32px; height: 32px; margin: 0 auto 16px;
  border: 3px solid var(--line); border-top-color: var(--navy-500);
  border-radius: 50%; animation: sh-spin .8s linear infinite;
}
@keyframes sh-spin { to { transform: rotate(360deg); } }
.sh-error p { margin-bottom: 20px; color: var(--ink-2); font-size: 15px; }

/* 面包屑 */
.sh-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 18px; font-size: 13px; color: var(--muted);
}
.sh-back {
  color: var(--navy-600); text-decoration: none; font-weight: 500;
}
.sh-back:hover { color: var(--navy-800); text-decoration: underline; }
.sh-prov-badge, .sh-track-badge {
  background: var(--bg-soft); color: var(--navy-700);
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
}

/* 院校头卡 */
.sh-hero {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  border-radius: var(--radius); padding: 28px 30px; color: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.sh-hero::after {
  content: ''; position: absolute; top: -60px; right: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(240,224,182,.28) 0%, transparent 70%);
  pointer-events: none;
}
.sh-hero-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 18px; }
.sh-name {
  font-size: 30px; font-weight: 700; margin: 0; color: #fff;
  letter-spacing: -.5px; line-height: 1.2;
}
.sh-code { font-size: 13px; color: rgba(240,224,182,.75); background: rgba(255,255,255,.1);
  padding: 4px 12px; border-radius: 20px; }
.sh-hero-sub {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px; color: rgba(255,255,255,.85);
}
.sh-region { font-weight: 500; }
.sh-note { opacity: .8; }
.sh-hero-tags {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px;
}
.sh-tag {
  background: rgba(240,224,182,.18); color: var(--gold-300);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid rgba(240,224,182,.28);
}

/* profile 四卡片 */
.sh-profile {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px;
}
.sh-pc {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.sh-pc span { font-size: 12px; color: var(--muted); }
.sh-pc b { font-size: 18px; font-weight: 700; color: var(--navy-800); }

/* 用户位次参考 */
.sh-ref {
  background: linear-gradient(135deg, rgba(212,175,106,.12), rgba(212,175,106,.04));
  border: 1px solid rgba(212,175,106,.3); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px;
}
.sh-ref-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.sh-ref-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.sh-ref-value { font-size: 18px; font-weight: 700; color: var(--navy-800); }
.sh-ref-sub { font-size: 13px; color: var(--muted); }

/* 年份 tab */
.sh-years {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.sh-yr {
  border: 1.5px solid var(--line); background: var(--white);
  color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 7px 18px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.sh-yr:hover { color: var(--navy-700); border-color: var(--navy-500); }
.sh-yr.is-on {
  background: var(--navy-700); border-color: var(--navy-700); color: #fff;
}

/* 专业表 */
.sh-table-sec {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px;
  overflow: hidden;
}
.sh-table-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  padding: 18px 22px 12px; border-bottom: 1px solid var(--line);
}
.sh-table-head h3 { margin: 0; font-size: 16px; color: var(--navy-800); }
.sh-table-meta { font-size: 12px; color: var(--muted); }
.sh-table-wrap { overflow-x: auto; }
.sh-table {
  width: 100%; border-collapse: collapse; font-size: 13px; min-width: 780px;
}
.sh-table thead { background: var(--bg-soft); }
.sh-table th {
  padding: 10px 10px; text-align: left; font-weight: 600; font-size: 12px;
  color: var(--navy-800); white-space: nowrap; border-bottom: 2px solid var(--line);
}
.sh-table td {
  padding: 10px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2);
  vertical-align: top;
}
.sh-table tbody tr:hover { background: var(--bg-soft); }
.sh-table tbody tr.is-chong { border-left: 3px solid #e07b3c; }
.sh-table tbody tr.is-wen  { border-left: 3px solid #2b8a5e; }
.sh-table tbody tr.is-bao  { border-left: 3px solid #2d6ab0; }
.sh-table tbody tr.is-di   { border-left: 3px solid #6b7c8a; }
.sh-table tr.sh-empty td { text-align: center; color: var(--muted); padding: 40px; }
.c-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.c-name { font-weight: 500; color: var(--navy-900); min-width: 180px; max-width: 320px; }
.c-req { white-space: nowrap; }
.c-score, .c-rank, .c-avg { font-variant-numeric: tabular-nums; }
.c-rank { white-space: nowrap; }
.c-tier { text-align: center; white-space: nowrap; }

/* tier tag */
.sh-tier {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.sh-tier.is-chong { background: rgba(224,123,60,.14); color: #b95a22; }
.sh-tier.is-wen  { background: rgba(43,138,94,.14);  color: #1f704a; }
.sh-tier.is-bao  { background: rgba(45,106,176,.14); color: #22588a; }
.sh-tier.is-di   { background: rgba(107,124,138,.14);color: #4d5d6b; }

/* 免责 */
.sh-disclaimer {
  margin: 14px 22px 18px; font-size: 12px; color: var(--muted);
  line-height: 1.75;
}

/* CTA 三连 */
.sh-cta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px;
}
.sh-cta-card {
  display: block; background: var(--white); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 18px 20px; text-decoration: none; color: inherit;
  transition: all .18s; box-shadow: var(--shadow-sm);
}
.sh-cta-card:hover {
  border-color: var(--navy-500); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11,36,25,.1);
}
.sh-cta-card b { display: block; font-size: 14px; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.sh-cta-card span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .sh-profile { grid-template-columns: repeat(2, 1fr); }
  .sh-cta { grid-template-columns: 1fr; }
  .sh-name { font-size: 24px; }
  .sh-hero { padding: 22px 20px; }
}
@media (max-width: 520px) {
  .sh-profile { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sh-pc { padding: 12px; }
  .sh-pc b { font-size: 16px; }
  .sh-table-head { padding: 14px 16px; }
  .sh-disclaimer { margin: 12px 16px 16px; }
}

/* ===== 暗色模式 ===== */
html[data-theme="dark"] .sh-name { color: #f2ead6; }
html[data-theme="dark"] .sh-hero {
  background: linear-gradient(135deg, #0b2419, #071a12);
  border: 1px solid rgba(240,224,182,.1);
}
html[data-theme="dark"] .sh-pc {
  background: #101c15; border-color: #22382c;
}
html[data-theme="dark"] .sh-pc b { color: #f2ead6; }
html[data-theme="dark"] .sh-pc span { color: #8ea397; }
html[data-theme="dark"] .sh-ref {
  background: rgba(212,175,106,.08); border-color: rgba(212,175,106,.25);
}
html[data-theme="dark"] .sh-ref-value { color: #f2ead6; }
html[data-theme="dark"] .sh-ref-sub { color: #8ea397; }
html[data-theme="dark"] .sh-yr {
  background: #101c15; border-color: #22382c; color: #8ea397;
}
html[data-theme="dark"] .sh-yr:hover { color: #ecd9a8; border-color: #d4af6a; }
html[data-theme="dark"] .sh-yr.is-on {
  background: #d4af6a; border-color: #d4af6a; color: #0b2419;
}
html[data-theme="dark"] .sh-table-sec {
  background: #101c15; border-color: #22382c;
}
html[data-theme="dark"] .sh-table thead { background: #16261d; }
html[data-theme="dark"] .sh-table th { color: #ecd9a8; border-bottom-color: #2b4436; }
html[data-theme="dark"] .sh-table td { color: #c4d2c9; border-bottom-color: #22382c; }
html[data-theme="dark"] .sh-table tbody tr:hover { background: #16261d; }
html[data-theme="dark"] .sh-table tbody tr.is-chong { border-left-color: #e07b3c; }
html[data-theme="dark"] .sh-table tbody tr.is-wen  { border-left-color: #5cc59a; }
html[data-theme="dark"] .sh-table tbody tr.is-bao  { border-left-color: #4e94d9; }
html[data-theme="dark"] .sh-table tbody tr.is-di   { border-left-color: #6b7c8a; }
html[data-theme="dark"] .c-code { color: #8ea397; }
html[data-theme="dark"] .c-name { color: #f2ead6; }
html[data-theme="dark"] .sh-tier.is-chong { background: rgba(224,123,60,.2); color: #ff9a5c; }
html[data-theme="dark"] .sh-tier.is-wen  { background: rgba(43,138,94,.2);  color: #5cc59a; }
html[data-theme="dark"] .sh-tier.is-bao  { background: rgba(78,148,217,.2); color: #7fb6e8; }
html[data-theme="dark"] .sh-tier.is-di   { background: rgba(107,124,138,.2);color: #a8b6c1; }
html[data-theme="dark"] .sh-disclaimer { color: #8ea397; }
html[data-theme="dark"] .sh-prov-badge, html[data-theme="dark"] .sh-track-badge {
  background: #16261d; color: #ecd9a8;
}
html[data-theme="dark"] .sh-back { color: #ecd9a8; }
html[data-theme="dark"] .sh-cta-card {
  background: #101c15; border-color: #22382c;
}
html[data-theme="dark"] .sh-cta-card:hover { border-color: #d4af6a; }
html[data-theme="dark"] .sh-cta-card b { color: #f2ead6; }
