/* =============================================================================
 * 院校模块公共样式（频道页 /schools/ · 子分类页 · 详情页 共用）
 * 与网址 / 期刊频道页同源风格：1200 居中 · 白卡片 · 悬浮上移。
 * 主色通过 CSS 变量注入：在 .chan-wrap 上设置 --chan-accent / --chan-accent-dark。
 * ========================================================================== */

.chan-wrap { min-height: 100vh; display: flex; flex-direction: column; --chan-accent: #1b5bd5; --chan-accent-dark: #16489f; }
.cw { width: 1200px; max-width: calc(100% - 24px); margin: 0 auto; }
.chan-main { flex: 1; padding: 20px 0 40px; }

/* ---- 横幅（频道页） ---- */
.chan-hero { position: relative; overflow: hidden; border-radius: 14px; padding: 30px 32px; margin-bottom: 16px; background: linear-gradient(120deg, var(--chan-accent), var(--chan-accent-dark)); color: #fff; box-shadow: 0 10px 26px rgba(27,91,213,.22); }
.chan-hero::after { content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.10); }
.chan-hero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .5px; position: relative; z-index: 1; }
.chan-hero .sub { margin-top: 8px; font-size: 14px; opacity: .92; position: relative; z-index: 1; }
.chan-hero .stats { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.chan-hero .stat { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); border-radius: 20px; padding: 5px 14px; font-size: 13px; }
.chan-hero .stat b { font-size: 15px; }

/* ---- 筛选工具条 ---- */
.jf-bar { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 14px 18px; margin-bottom: 16px; }
.jf-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.jf-row + .jf-row { border-top: 1px dashed #eef0f3; }
.jf-lb { flex: 0 0 auto; font-size: 13px; color: #9aa0a8; padding-top: 6px; min-width: 56px; }
.jf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.jf-chip { display: inline-flex; align-items: center; font-size: 13px; color: #555; background: #f5f6f8; border: 1px solid #eceef1; border-radius: 15px; padding: 4px 14px; cursor: pointer; transition: all .15s; user-select: none; }
.jf-chip:hover { color: var(--chan-accent); border-color: #cddbf5; background: #f4f8ff; }
.jf-chip.on { color: #fff; background: var(--chan-accent); border-color: var(--chan-accent); }
.jf-search { position: relative; margin-left: auto; }
.jf-search input { height: 34px; width: 240px; max-width: 46vw; border: 1px solid #e2e5ea; border-radius: 8px; padding: 0 34px 0 12px; font-size: 13px; outline: none; transition: border-color .15s; }
.jf-search input:focus { border-color: var(--chan-accent); }
.jf-search svg { position: absolute; right: 11px; top: 9px; width: 15px; height: 15px; color: #b6bcc4; }

/* ---- 类型快捷导航 ---- */
.chan-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chan-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #555; background: #fff; border: 1px solid #eceef1; text-decoration: none; transition: all .15s; }
.chan-nav a .nv-ic { color: #b3b8c0; display: inline-flex; transition: color .15s; }
.chan-nav a:hover { color: var(--chan-accent); border-color: #cddbf5; background: #f4f8ff; }
.chan-nav a:hover .nv-ic { color: var(--chan-accent); }

/* ---- 分类区块卡片 ---- */
.chan-sec { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 18px 20px 20px; margin-bottom: 16px; scroll-margin-top: 14px; }
.chan-sec-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f2f3f5; margin-bottom: 16px; }
.chan-sec-ico { width: 42px; height: 42px; min-width: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--chan-accent), var(--chan-accent-dark)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 10px rgba(27,91,213,.22); }
.chan-sec-ico svg { width: 24px; height: 24px; }
.chan-sec-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chan-sec-tt .nm { font-size: 17px; font-weight: 700; color: #222; letter-spacing: .3px; }
.chan-sec-tt .ct { font-size: 12px; color: #9aa0a8; }
.chan-sec-tt .ct b { color: #f25d30; margin: 0 2px; }
.chan-sec-more { margin-left: auto; flex-shrink: 0; font-size: 13px; color: #9aa0a8; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; padding: 5px 10px; border-radius: 7px; transition: all .15s; }
.chan-sec-more:hover { color: var(--chan-accent); background: #f4f8ff; }
.chan-sec-more svg { width: 14px; height: 14px; }

/* ---- 院校卡片网格 ---- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uc-card { display: flex; gap: 13px; padding: 13px; border: 1px solid #eef0f3; border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.uc-card:hover { border-color: #cddbf5; box-shadow: 0 8px 20px rgba(27,91,213,.12); transform: translateY(-2px); }
.uc-card.uc-static { cursor: default; }
.uc-card.uc-static:hover { transform: none; box-shadow: none; border-color: #eef0f3; }

.uc-badge { width: 56px; height: 56px; min-width: 56px; border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 3px 8px rgba(0,0,0,.16); }
.uc-bd-tx { color: #fff; font-size: 14px; font-weight: 800; text-align: center; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.3); word-break: break-all; }
.uc-rank { position: absolute; right: 0; bottom: 0; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.32); padding: 0 5px; border-top-left-radius: 6px; line-height: 15px; }

.uc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.uc-name { font-size: 15px; font-weight: 700; color: #262b33; line-height: 1.35; }
.uc-name .nm-tx { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.uc-card:hover .uc-name { color: var(--chan-accent); }
.uc-en { font-size: 11.5px; color: #b6bcc4; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-meta { font-size: 12px; color: #9aa0a8; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.uc-tag { font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 10px; white-space: nowrap; border: 1px solid transparent; }
.uc-tag.t985 { color: #b3261e; background: #fdecea; border-color: #f7c8c3; }
.uc-tag.t211 { color: #1a63c4; background: #eaf2ff; border-color: #cfe0fb; }
.uc-tag.tsyl { color: #ad6800; background: #fff7e0; border-color: #ffe08a; }

/* ---- 空态 ---- */
.chan-empty { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); text-align: center; padding: 70px 20px; color: #b0b4bb; }
.chan-empty .ce-ico { font-size: 44px; margin-bottom: 12px; }
.chan-empty h2 { margin: 0 0 6px; font-size: 19px; color: #444; }
.chan-empty p { margin: 0; font-size: 14px; }
.chan-empty a { color: var(--chan-accent); text-decoration: none; }
.jf-noresult { display: none; text-align: center; color: #b0b4bb; font-size: 14px; padding: 40px 0; }

/* =============================================================================
 * 面包屑（子分类页 / 详情页）
 * ========================================================================== */
.sc-crumb { font-size: 13px; color: #9aa0a8; padding: 4px 0 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sc-crumb a { color: #7a828c; text-decoration: none; transition: color .15s; }
.sc-crumb a:hover { color: var(--chan-accent); }
.sc-crumb .sep { color: #d5d9df; margin: 0 6px; }
.sc-crumb .cur { color: var(--chan-accent); font-weight: 600; }

/* =============================================================================
 * 子分类页（某一类型院校列表）
 * ========================================================================== */
.sc-hero { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 22px 24px; margin-bottom: 16px; }
.sc-hero-top { display: flex; align-items: center; gap: 15px; }
.sc-hero-ico { width: 52px; height: 52px; min-width: 52px; border-radius: 13px; background: linear-gradient(135deg, var(--chan-accent), var(--chan-accent-dark)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 5px 12px rgba(27,91,213,.22); }
.sc-hero-ico svg { width: 28px; height: 28px; }
.sc-hero-meta h1 { margin: 0; font-size: 23px; font-weight: 800; color: #222; letter-spacing: .5px; }
.sc-hero-meta .sub { font-size: 13px; color: #9aa0a8; margin-top: 5px; }
.sc-hero-meta .sub b { color: #f25d30; margin: 0 2px; }
.sc-sibs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f2f3f5; }
.sc-sib { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #555; background: #f5f7fa; border: 1px solid #eceef1; text-decoration: none; transition: all .15s; }
.sc-sib:hover { color: var(--chan-accent); border-color: #cddbf5; background: #f4f8ff; }
.sc-sib.on { color: #fff; background: var(--chan-accent); border-color: var(--chan-accent); }
.sc-panel { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 18px 20px 20px; }
.sc-panel-head { font-size: 15px; font-weight: 700; color: #222; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #f2f3f5; display: flex; align-items: center; gap: 8px; }
.sc-panel-head::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--chan-accent); }

/* =============================================================================
 * 院校详情页
 * ========================================================================== */
.sd-hero { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 26px 28px; margin-bottom: 16px; }
.sd-top { display: flex; gap: 20px; align-items: flex-start; }
.sd-badge { width: 90px; height: 90px; min-width: 90px; border-radius: 18px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 6px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.sd-badge .tx { color: #fff; font-size: 22px; font-weight: 800; text-align: center; line-height: 1.15; text-shadow: 0 1px 4px rgba(0,0,0,.3); word-break: break-all; }
.sd-badge .rk { position: absolute; right: 0; bottom: 0; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.34); padding: 1px 8px; border-top-left-radius: 8px; }
.sd-meta { flex: 1; min-width: 0; }
.sd-name { font-size: 26px; font-weight: 800; color: #1f2530; margin: 2px 0 0; letter-spacing: .5px; }
.sd-en { font-size: 14px; color: #9aa0a8; margin-top: 5px; }
.sd-motto { font-size: 13.5px; color: #7a828c; margin-top: 8px; font-style: italic; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.sd-tag { font-size: 12.5px; font-weight: 600; line-height: 24px; padding: 0 13px; border-radius: 14px; border: 1px solid transparent; }
.sd-tag.t985 { color: #b3261e; background: #fdecea; border-color: #f7c8c3; }
.sd-tag.t211 { color: #1a63c4; background: #eaf2ff; border-color: #cfe0fb; }
.sd-tag.tsyl { color: #ad6800; background: #fff7e0; border-color: #ffe08a; }
.sd-tag.type { color: #5a6472; background: #f2f4f7; border-color: #e6e9ef; }

.sd-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #eef0f4; }
.sd-stat { display: flex; flex-direction: column; gap: 3px; }
.sd-stat .v { font-size: 19px; font-weight: 800; color: #1f2530; }
.sd-stat .v.accent { color: var(--chan-accent); }
.sd-stat .k { font-size: 12px; color: #9aa0a8; }

.sd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 30px; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: .5px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.sd-btn-primary { background: var(--chan-accent); color: #fff; box-shadow: 0 4px 12px rgba(27,91,213,.28); }
.sd-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27,91,213,.34); }
.sd-btn-ghost { background: #fff; color: #555; border-color: #e2e5ea; }
.sd-btn-ghost:hover { color: var(--chan-accent); border-color: var(--chan-accent); background: #f4f8ff; }
.sd-btn svg { width: 17px; height: 17px; }

.sd-panel { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 20px 24px 22px; margin-bottom: 16px; }
.sd-panel-head { font-size: 16px; font-weight: 700; color: #222; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #f2f3f5; display: flex; align-items: center; gap: 9px; }
.sd-panel-head::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--chan-accent); }
.sd-desc { font-size: 14.5px; color: #4a5461; line-height: 1.9; }

.sd-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.sd-info .row { display: flex; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #f4f5f7; font-size: 14px; }
.sd-info .row .k { flex: 0 0 78px; color: #9aa0a8; }
.sd-info .row .v { flex: 1; min-width: 0; color: #333; word-break: break-all; }
.sd-info .row .v a { color: var(--chan-accent); text-decoration: none; }
.sd-info .row .v a:hover { text-decoration: underline; }

/* 同类型院校（相关） */
.sd-rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sd-rel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eef0f3; border-radius: 10px; text-decoration: none; background: #fff; transition: all .15s; min-width: 0; }
.sd-rel:hover { border-color: #cddbf5; box-shadow: 0 6px 16px rgba(27,91,213,.10); transform: translateY(-2px); }
.sd-rel-bd { width: 40px; height: 40px; min-width: 40px; border-radius: 9px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.sd-rel-bd .tx { color: #fff; font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.3); word-break: break-all; }
.sd-rel-nm { min-width: 0; }
.sd-rel-nm .n { font-size: 13.5px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-rel:hover .sd-rel-nm .n { color: var(--chan-accent); }
.sd-rel-nm .p { font-size: 11.5px; color: #9aa0a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 详情页未找到 */
.sd-notfound { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); text-align: center; padding: 70px 20px; color: #b0b4bb; }
.sd-notfound .ic { font-size: 44px; margin-bottom: 12px; }
.sd-notfound h2 { margin: 0 0 8px; font-size: 20px; color: #444; }
.sd-notfound a { color: var(--chan-accent); text-decoration: none; font-weight: 600; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } .sd-rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .chan-hero { padding: 24px 20px; }
  .chan-hero h1 { font-size: 22px; }
  .jf-search { margin-left: 0; flex-basis: 100%; }
  .jf-search input { width: 100%; max-width: 100%; }
  .sd-top { flex-direction: column; }
  .sd-info { grid-template-columns: 1fr; }
  .sd-name { font-size: 22px; }
}
@media (max-width: 520px) { .uc-grid { grid-template-columns: 1fr; } .sd-rel-grid { grid-template-columns: 1fr; } }
