/* ============================================================
   27山大研招 · 栏目样式
   与拾阶其他栏目同一套：760px 版心、墨青 #22546b、白卡 12px 圆角
   只写本栏目新增的组件，基础变量与页头页脚沿用 app.css
   ============================================================ */

/* ---------- 页头：六项站级导航在窄屏可横滑 ---------- */
.top nav {
  gap: 11px;
  font-size: 13px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 2px 0;
}
.top nav::-webkit-scrollbar { display: none; }
.top nav a { position: relative; padding-bottom: 2px; }
.top nav a.on { color: var(--brand); font-weight: 600; }
.top nav a.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---------- 面包屑与栏目内导航 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0 6px;
  font-size: 12px;
  color: var(--ink3);
}
.crumbs .sep { color: #b9c0c6; }
.crumbs .cur { color: var(--ink2); }
.crumbs a { color: var(--ink3); }

.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 13px;
  color: var(--ink3);
  padding: 6px 0 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.subnav a { color: var(--ink2); padding: 3px 2px; }
.subnav a.on { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--brand); }
.subnav i { font-style: normal; color: #c3c9ce; font-size: 11px; }

/* ---------- 首屏 ---------- */
.hero { padding: 8px 0 4px; }
.kicker {
  font-size: 12px;
  letter-spacing: .6px;
  color: var(--brand);
  margin: 0 0 6px;
}
.hero h1 {
  font-size: 24px;
  line-height: 1.38;
  letter-spacing: -.2px;
  margin: 0 0 8px;
}
.lead {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink2);
  margin: 0 0 14px;
}

.searchbar { display: flex; gap: 8px; }
.searchbar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.searchbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,84,107,.08); }
.searchbar button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
}
.searchbar button:active { background: var(--brand2); }
.quick { font-size: 12.5px; color: var(--ink3); margin: 10px 0 2px; }
.quick a { margin-right: 10px; white-space: nowrap; }

/* ---------- 数字块 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 10px 10px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -.3px;
}
.stat span { display: block; font-size: 11.5px; color: var(--ink2); margin-top: 3px; }
.stat i { display: block; font-style: normal; font-size: 10.5px; color: var(--ink3); margin-top: 4px; line-height: 1.4; }

/* ---------- 区块 ---------- */
.section { margin: 22px 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sec-head h2 { margin: 0 0 8px; }
.sec-note { font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.sub-h { font-size: 14px; margin: 16px 0 8px; color: var(--ink2); font-weight: 600; }
.sub-h::before { display: none; }

.page-head { padding: 4px 0 2px; }
.page-head h1 { margin: 0 0 6px; }
.mt { margin-top: 12px; }
.small.muted { font-size: 12px; }

/* ---------- 四入口 ---------- */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pick {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
}
.pick:active { border-color: var(--brand); }
.pick b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.45; margin-bottom: 4px; }
.pick span { display: block; font-size: 12px; color: var(--ink3); line-height: 1.6; }

/* ---------- 判断块 ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insight {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 12px 13px;
}
.insight h3 { font-size: 13.5px; margin: 0 0 6px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.insight p { font-size: 12.5px; line-height: 1.65; margin: 0; color: var(--ink3); }

/* ---------- 表格：单行紧凑，520px 不挤 ---------- */
.table-wrap { overflow-x: hidden; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 12.5px;
  table-layout: fixed;
}
.tbl th {
  background: #f7f8f6;
  color: var(--ink2);
  font-weight: 600;
  font-size: 11.5px;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl th.nw, .tbl td.nw { text-align: right; }
.tbl td {
  padding: 9px 8px;
  border-bottom: 1px solid #eff1ee;
  vertical-align: middle;
  color: var(--ink2);
  word-break: break-word;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.hl td { background: #f2f6f7; }
.tbl .mn a { color: var(--ink); font-weight: 600; }
.tbl .mn a:active { color: var(--brand); }

/* 五列口径：专业占大头，四个数字列等宽 */
.tbl.cmp th:nth-child(1), .tbl.cmp td:nth-child(1) { width: 47%; }
.tbl.cmp th:nth-child(2), .tbl.cmp td:nth-child(2),
.tbl.cmp th:nth-child(3), .tbl.cmp td:nth-child(3),
.tbl.cmp th:nth-child(4), .tbl.cmp td:nth-child(4) { width: 13.5%; }
.tbl.cmp th:nth-child(5), .tbl.cmp td:nth-child(5) { width: 12.5%; }

/* 六列口径：学院名占大头，五个数字列等宽 */
.tbl.cmp6 th:nth-child(1), .tbl.cmp6 td:nth-child(1) { width: 40%; }
.tbl.cmp6 th:nth-child(2), .tbl.cmp6 td:nth-child(2) { width: 9%; }
.tbl.cmp6 th:nth-child(3), .tbl.cmp6 td:nth-child(3),
.tbl.cmp6 th:nth-child(4), .tbl.cmp6 td:nth-child(4),
.tbl.cmp6 th:nth-child(5), .tbl.cmp6 td:nth-child(5) { width: 13%; }
.tbl.cmp6 th:nth-child(6), .tbl.cmp6 td:nth-child(6) { width: 12%; }

/* 下拉框补一个箭头，去掉原生外观后仍看得出是选择器 */
.filter-row select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237c8794'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  background: #eef1f2;
  color: var(--ink2);
}
.tag.hot { background: #fbeceb; color: #a8332a; }
.tag.warn { background: #f6e7e0; color: #96401f; }
.tag.warm { background: #fbf3e4; color: #8a5f1c; }
.tag.flat { background: #eef2ee; color: #4c6a4e; }
.tag.gray { background: #f0f1f2; color: var(--ink3); }

/* ---------- 筛选条 ---------- */
.filter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 10px 0 14px;
}
.filter-row { display: flex; gap: 8px; }
.filter-row input, .filter-row select {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}
.filter-row input:focus, .filter-row select:focus { border-color: var(--brand); outline: none; }
.filter-row button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}
.filter-row button:active { background: var(--brand2); }
.reset {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink3);
  font-size: 13px;
  background: #fff;
}

/* ---------- 详情页 ---------- */
.jd-head { padding: 2px 0 4px; }
.jd-head h1 { margin: 4px 0 4px; font-size: 22px; }
.jd-head h1 small { font-size: 12.5px; color: var(--ink3); font-weight: 400; margin-left: 6px; letter-spacing: .5px; }
.jd-sub { font-size: 13px; color: var(--ink2); margin: 0; }
.jd-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.jd-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.kv { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; margin: 0; }
.kv div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #eaede9; font-size: 13px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { flex: 0 0 88px; color: var(--ink3); font-size: 12.5px; }
.kv dd { margin: 0; flex: 1; color: var(--ink); line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: var(--ink2);
}
.chip b { color: #a8332a; font-size: 11.5px; }

.plain { margin: 6px 0; padding-left: 20px; }
.plain li { font-size: 13.5px; line-height: 1.75; color: var(--ink2); margin: 8px 0; }
.plain li b { color: var(--ink); }

/* ---------- 时间线 ---------- */
.timeline { border-left: 2px solid #dfe6e8; padding-left: 14px; margin: 10px 0 4px; }
.tl { position: relative; padding: 0 0 14px; }
.tl::before {
  content: "";
  position: absolute;
  left: -19px; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.tl b { font-size: 12px; color: var(--brand); letter-spacing: .5px; margin-right: 8px; }
.tl span { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.tl p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink3); }

/* ---------- 榜单 ---------- */
.rank { list-style: none; padding: 0; margin: 8px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank li { border-bottom: 1px solid #eff1ee; }
.rank li:last-child { border-bottom: 0; }
.rank a { display: flex; align-items: baseline; gap: 8px; padding: 10px 13px; color: var(--ink); font-size: 13.5px; }
.rank em { font-style: normal; font-size: 11px; color: var(--ink3); flex-shrink: 0; }
.rank span { margin-left: auto; font-size: 11.5px; color: var(--ink3); white-space: nowrap; }

.rel { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rel li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
}
.rel .n { font-size: 11px; color: var(--ink3); white-space: nowrap; }

/* ---------- 提示块 ---------- */
.note p { margin: 4px 0; font-size: 13px; }
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
  text-align: center;
}
.notice h1, .notice h2 { font-size: 16px; margin: 0 0 6px; }
.notice h1::before, .notice h2::before { display: none; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 14px;
  margin: 8px 4px 0;
}
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  margin: 8px 0;
}
.faq summary { font-size: 13.5px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--ink3); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq .ans { font-size: 12.5px; color: var(--ink2); line-height: 1.75; padding-top: 6px; }
.faq .ans p { margin: 4px 0; font-size: 12.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1fr; }
  .pick-grid { grid-template-columns: 1fr; }
  .rel { grid-template-columns: 1fr; }
  .hero h1 { font-size: 21px; }
  .lead { font-size: 14px; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .brand b { font-size: 18px; }
  .top nav { gap: 7px; font-size: 11.5px; letter-spacing: 0; }
  .top .wrap { gap: 6px; }
  .wrap { padding: 0 13px; }
  .tbl { font-size: 12px; }
  .tbl th { padding: 7px 6px; font-size: 11px; }
  .tbl td { padding: 8px 6px; }
  .tbl.cmp th:nth-child(1), .tbl.cmp td:nth-child(1) { width: 50%; }
  .tbl.cmp th:nth-child(2), .tbl.cmp td:nth-child(2),
  .tbl.cmp th:nth-child(3), .tbl.cmp td:nth-child(3),
  .tbl.cmp th:nth-child(4), .tbl.cmp td:nth-child(4) { width: 13%; }
  .tbl.cmp th:nth-child(5), .tbl.cmp td:nth-child(5) { width: 11%; }
  .tbl.cmp6 th:nth-child(1), .tbl.cmp6 td:nth-child(1) { width: 38%; }
  .tbl.cmp6 th:nth-child(2), .tbl.cmp6 td:nth-child(2) { width: 9%; }
  .tbl.cmp6 th:nth-child(3), .tbl.cmp6 td:nth-child(3),
  .tbl.cmp6 th:nth-child(4), .tbl.cmp6 td:nth-child(4),
  .tbl.cmp6 th:nth-child(5), .tbl.cmp6 td:nth-child(5) { width: 14%; }
  .tbl.cmp6 th:nth-child(6), .tbl.cmp6 td:nth-child(6) { width: 11%; }
  .stat b { font-size: 17px; }
  .jd-head h1 { font-size: 20px; }
  .kv dt { flex-basis: 76px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat { padding: 9px 7px; }
  .stat b { font-size: 16px; }
  .stat i { display: none; }
  .filter-row { flex-wrap: wrap; }
  .tbl.cmp th:nth-child(1), .tbl.cmp td:nth-child(1) { width: 46%; }
  .tbl.cmp th:nth-child(2), .tbl.cmp td:nth-child(2),
  .tbl.cmp th:nth-child(3), .tbl.cmp td:nth-child(3) { width: 14%; }
  .tbl.cmp th:nth-child(4), .tbl.cmp td:nth-child(4) { width: 13%; }
  .tbl.cmp th:nth-child(5), .tbl.cmp td:nth-child(5) { width: 13%; }
}

/* ---------- 微信内置浏览器细项 ---------- */
body.wx .searchbar button,
body.wx .filter-row button,
body.wx .btn,
body.wx .pick,
body.wx .chip,
body.wx .subnav a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* 微信里表格不因长英文/长代码撑破 */
body.wx .tbl { word-break: break-all; }

/* 轻微按压反馈，微信里点击更有触感 */
body.wx .pick:active,
body.wx .chip:active,
body.wx .rel li a:active,
body.wx .rank a:active { transform: scale(.99); transition: transform .12s ease; }

@media print {
  .top, .subnav, .foot, .filter, .searchbar, .bar { display: none !important; }
  .tbl { font-size: 10pt; }
}
