/* 江西中职择校助手 · 静态内容页样式（学校库 / 学校详情 / 官方名单 / 专业页） */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f2f6f9;
  color: #1b2a38;
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: #0b6b5b; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* 顶部导航 */
.site-header {
  background: linear-gradient(135deg, #12395f 0%, #0d2c4b 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(15, 23, 42, .16);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: 10px; color: #9fc3d9; font-weight: 400; letter-spacing: .3px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #12395f;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto;
  object-fit: contain; padding: 2px;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #dbe8f5; font-size: 14px; padding: 7px 10px; border-radius: 9px; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }

/* 页面 */
.page { padding: 18px 0 46px; }
.crumb { font-size: 13px; color: #64748b; margin: 0 0 12px; line-height: 1.9; }
.crumb a { color: #0b6b5b; }
.crumb span { color: #334155; }

.hero {
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}
.hero h1 { font-size: 28px; line-height: 1.42; margin: 0 0 10px; color: #0f2d4a; letter-spacing: .2px; }
.hero .sub { color: #475569; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; }
.hero .sub .material-icons { font-size: 19px; color: #12395f; flex: 0 0 auto; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600;
  background: #eef4f9; color: #334155; border: 1px solid transparent; white-space: nowrap;
}
.badge.green { background: #e7f7ef; color: #0b6b5b; border-color: #c9ecdc; }
.badge.blue { background: #e8f1fd; color: #1d4ed8; border-color: #d3e4fb; }
.badge.gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.badge.amber { background: #fff7e6; color: #b45309; border-color: #fde7bd; }
.badge.red { background: #fef2f2; color: #b91c1c; border-color: #fbd5d5; }
.badge.purple { background: #f5edff; color: #7e22ce; border-color: #e9d5ff; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 650;
  border: 1px solid transparent; cursor: pointer; line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn .material-icons { font-size: 18px; }
.btn-primary { background: #12395f; color: #fff; }
.btn-primary:hover { background: #0d2c4b; }
.btn-green { background: #0b6b5b; color: #fff; }
.btn-green:hover { background: #085548; }
.btn-ghost { background: #fff; color: #12395f; border-color: #d7e2ec; }
.btn-ghost:hover { background: #f8fbfd; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 20px; align-items: start; }
.card {
  background: #fff; border: 1px solid #e3ebf2; border-radius: 16px;
  padding: 20px 22px; box-shadow: 0 5px 20px rgba(15, 23, 42, .045); margin-bottom: 18px;
}
.card h2 { font-size: 18px; margin: 0 0 12px; color: #0f2d4a; display: flex; align-items: center; gap: 8px; }
.card h2 .material-icons { font-size: 20px; color: #0b6b5b; }
.card h3 { font-size: 15px; margin: 18px 0 8px; color: #0f2d4a; }
.card p { margin: 0 0 12px; color: #334155; }
.card p:last-child { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e8eef4; border-radius: 12px; overflow: hidden; border: 1px solid #e8eef4; }
.fact { background: #fff; padding: 12px 14px; min-width: 0; }
.fact .k { font-size: 12px; color: #64748b; margin-bottom: 2px; }
.fact .v { font-size: 15px; font-weight: 650; color: #1e293b; word-break: break-word; }
.fact .v small { font-weight: 400; color: #94a3b8; }
.school-ad-cell { padding: 8px !important; background: #f8fafc !important; }
.school-ad-cell a { display: block; line-height: 0; }
.school-ad-cell img { width: 100%; height: 112px; object-fit: cover; border-radius: 9px; display: block; }
.school-ad-live { position: relative; display: block; line-height: 0; border-radius: 9px; overflow: hidden; }
.school-ad-countdown { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 2px; background: rgba(15,23,42,.72); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 5px; padding: 2px 5px; font: 700 9px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .1px; box-shadow: 0 2px 7px rgba(0,0,0,.28); z-index: 3; pointer-events: none; white-space: nowrap; opacity: .94; text-shadow: 0 1px 2px rgba(0,0,0,.35); will-change: left,top; }
.school-ad-countdown b { font-size: 9px; color: #ffd166; }
.school-ad-countdown.urgent { animation: jxzzAdBlink 1.6s ease-in-out infinite; }
.official-title { display: inline; }
.official-year { display: inline; }
@media (max-width: 640px) {
  .page-title .official-year { display: block; text-align: center; font-size: 22px; line-height: 1.4; }
  .page-title .official-title { display: block; text-align: center; font-size: clamp(14px, 4.1vw, 16px); line-height: 1.5; margin-top: 2px; white-space: nowrap; letter-spacing: -.1px; }
}
@keyframes jxzzAdBlink { 0%,100%{ opacity:.94; } 50%{ opacity:.55; } }
.school-ad-empty { height: 112px; border: 1px dashed #cbd5e1; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #94a3b8; background: linear-gradient(135deg, #f8fafc, #eef6f3); text-align: center; }
.school-ad-empty .material-icons { font-size: 22px; color: #0b6b5b; opacity: .75; }
.school-ad-empty strong { font-size: 13px; color: #64748b; font-weight: 600; }
.school-ad-empty small { font-size: 11px; color: #94a3b8; }

.warn { border: 1px solid #fbd5d5; border-left: 4px solid #dc2626; background: #fff7f7; border-radius: 12px; padding: 14px 16px; color: #7f1d1d; font-size: 14px; }
.warn strong { color: #b91c1c; }
.note { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 12px 14px; color: #64748b; font-size: 13px; }

.prose p { margin: 0 0 12px; text-align: justify; color: #334155; text-indent: 2em; }
.card p, .aside p, .note, .page-title p { text-indent: 2em; }
.prose p:last-child { margin-bottom: 0; }
.major-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.major-tag { background: #eef6ff; color: #1d4ed8; border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.major-tag.green { background: #eaf7f1; color: #0b6b5b; }

/* 学校列表 */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.list-head h2 { margin: 0; }
.list-head .count { color: #64748b; font-size: 13px; }
.school-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed #e6edf3; }
.school-row:last-child { border-bottom: 0; }
.school-row .left { min-width: 0; }
.school-row .name { font-weight: 700; color: #12395f; font-size: 16px; line-height: 1.5; }
.school-row .name:hover { color: #0b6b5b; }
.school-row .meta { font-size: 13px; color: #64748b; margin-top: 3px; line-height: 1.7; }
.school-row .right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.school-row .arrow { color: #94a3b8; font-size: 20px; }

/* 首页/城市/专业统计 */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.stat { background: #f8fbfd; border: 1px solid #e3ebf2; border-radius: 12px; padding: 12px 14px; }
.stat strong { display: block; font-size: 22px; color: #12395f; line-height: 1.2; }
.stat span { font-size: 12.5px; color: #64748b; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.city-chips a { background: #fff; border: 1px solid #dbe6ee; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #33544e; }
.city-chips a:hover { background: #f0f7f5; text-decoration: none; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dbe6ee; border-radius: 12px; padding: 9px 12px; margin: 16px 0 4px; }
.search-box .material-icons { color: #94a3b8; font-size: 20px; }
.search-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; color: #1e293b; background: transparent; min-width: 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 6px; font-size: 19px; color: #0f2d4a; font-weight: 800; }
.section-title .material-icons { font-size: 21px; color: #0b6b5b; }
.section-sub { color: #64748b; font-size: 13px; margin: 0 0 12px; }

/* 专业卡片 */
.major-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.major-card { display: block; background: #fff; border: 1px solid #e3ebf2; border-radius: 14px; padding: 15px 16px; color: #1e293b; box-shadow: 0 3px 14px rgba(15, 23, 42, .03); }
.major-card:hover { border-color: #b9d8d1; box-shadow: 0 8px 22px rgba(11, 107, 91, .10); text-decoration: none; transform: translateY(-1px); }
.major-card .n { font-size: 16px; font-weight: 700; color: #12395f; }
.major-card .c { font-size: 13px; color: #0b6b5b; margin-top: 5px; font-weight: 650; }
.major-card .d { font-size: 12.5px; color: #94a3b8; margin-top: 4px; }

/* 侧栏 */
.aside .card { padding: 18px 18px; }
.aside .card h2 { font-size: 16px; }
.side-cta { background: linear-gradient(135deg, #12395f, #0b6b5b); color: #fff; border: 0; }
.side-cta h2, .side-cta p { color: #fff; }
.side-cta h2 .material-icons { color: #fff; }
.side-cta p { font-size: 13px; color: #e2eef7; }
.side-cta .btn { background: #fff; color: #12395f; margin-top: 6px; }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e6edf3; font-size: 14px; color: #20343a; line-height: 1.5; }
.side-list a:last-child { border-bottom: 0; }
.side-list a span:last-child { color: #94a3b8; font-size: 12px; flex: 0 0 auto; }

/* 页脚 */
.site-footer { background: #0f2d4a; color: #b9c9d8; font-size: 13px; line-height: 1.8; padding: 28px 0; margin-top: 10px; }
.site-footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #dbe8f5; }
.site-footer .foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer .copy { color: #8fa5b8; font-size: 12px; }

/* 排行/索引页大标题 */
.page-title { background: #fff; border: 1px solid #e3ebf2; border-radius: 18px; padding: 24px 26px; box-shadow: 0 8px 28px rgba(15, 23, 42, .05); }
.page-title h1 { margin: 0 0 8px; font-size: 27px; line-height: 1.4; color: #0f2d4a; }
.page-title p { margin: 0; color: #475569; font-size: 14px; }

/* 目录锚点 */
.city-section { scroll-margin-top: 78px; }
.totop { position: fixed; right: 18px; bottom: 22px; z-index: 30; width: 42px; height: 42px; border-radius: 50%; background: #12395f; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); }
.totop:hover { text-decoration: none; background: #0b6b5b; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .major-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .site-header .wrap { min-height: 54px; gap: 8px; align-items: flex-start; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
  .brand { font-size: 15px; }
  .brand .logo { width: 30px; height: 30px; font-size: 19px; }
  .site-nav a { font-size: 12px; padding: 5px 7px; }
  .page { padding-top: 12px; }
  .hero { padding: 18px 16px; border-radius: 15px; }
  .hero h1 { font-size: 21px; }
  .card { padding: 16px; border-radius: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .major-grid { grid-template-columns: 1fr; }
  .school-row { flex-direction: column; gap: 6px; }
  .school-row .right { flex-direction: row; align-items: center; }
  .site-footer .wrap { flex-direction: column; }
  .actions { flex-direction: column; }
  .actions .btn { flex: none; width: 100%; justify-content: center; }
}

/* 学校广告位手机端：整行显示，避免只露出中间一截 */
@media (max-width: 640px) {
  .school-ad-cell { grid-column: 1 / -1 !important; }
  .school-ad-cell img { width: 100% !important; height: auto !important; aspect-ratio: 640 / 200; object-fit: cover; }
  .school-ad-empty { height: auto !important; aspect-ratio: 640 / 200; }
}

/* 学校专业/住宿表：手机端卡片化 + 简介段首 */
.brochure-intro-p{text-indent:0!important;margin:0 0 12px!important;line-height:2!important;text-align:justify}
@media(max-width:640px){
 .major-fee-table thead,.dorm-fee-table thead{display:none!important}
 .major-fee-table,.dorm-fee-table,.major-fee-table tbody,.dorm-fee-table tbody{display:block!important;width:100%!important}
 .major-fee-table tr,.dorm-fee-table tr{display:block!important;border:1px solid #e3ebf2;border-radius:9px;margin:0 0 7px;background:#fff;overflow:hidden}
 .major-fee-table td,.dorm-fee-table td{display:flex!important;justify-content:space-between;gap:10px;border:0!important;border-bottom:1px dashed #edf2f5!important;padding:7px 9px!important}
 .major-fee-table td:last-child,.dorm-fee-table td:last-child{border-bottom:0!important}
 .major-fee-table td::before,.dorm-fee-table td::before{content:attr(data-label);font-weight:700;color:#64748b;flex:none}
}

.major-fee-table td a{color:#0b6b5b;text-decoration:none}
.major-fee-table td a:hover{text-decoration:underline}

.copyright-footer{background:#0f1f33!important;color:#fff!important;padding:18px 14px calc(18px + env(safe-area-inset-bottom,0px))!important;font-size:12.5px!important;line-height:1.9!important;margin-top:24px}
.copyright-footer .wrap{max-width:1000px;margin:0 auto;text-align:center}
.copyright-footer p{color:#fff!important;font-size:12.5px!important;line-height:1.9!important;margin:3px 0!important;opacity:1!important}
.copyright-footer a{color:#fff!important}
