/*
Theme Name: BRSX 国际免联考硕博招生网
Theme URI: https://buruiedu.com
Description: 国际免联考硕博招生网专用子主题（GeneratePress 子主题）。内置院校库/专业库列表、结构化数据、面包屑、内链增强与 SEO/GEO 优化。
Author: 国际免联考硕博招生网
Template: generatepress
Version: 1.0.0
Text Domain: brsx
*/

/* ============ 品牌变量 ============ */
:root{
  --brsx-navy:#0e3a63;
  --brsx-navy-d:#092a49;
  --brsx-navy-l:#1b5288;
  --brsx-gold:#c39b47;
  --brsx-gold-l:#f6efdf;
  --brsx-red:#c8372d;
  --brsx-ink:#1f2933;
  --brsx-gray:#5b6775;
  --brsx-line:#e3e8ee;
  --brsx-bg:#f6f8fa;
  --brsx-white:#ffffff;
  --brsx-radius:10px;
  --brsx-shadow:0 2px 10px rgba(14,58,99,.07);
  --brsx-shadow-h:0 8px 24px rgba(14,58,99,.13);
}

/* ============ 基础 ============ */
body{
  color:var(--brsx-ink);
  font-size:16px;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
}
body,button,input,select,textarea{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}
.brsx-wrap{max-width:1180px;margin:0 auto;padding:0 18px}
.brsx-wrap--narrow{max-width:820px}
html,body{overflow-x:hidden}
/* 让区块突破主题内容容器，铺满整屏 */
.brsx-full{
  width:100vw;max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
a{color:var(--brsx-navy-l)}
a:hover{color:var(--brsx-navy)}

/* 正文排版（院校/专业详情） */
.brsx-article h2{
  font-size:24px;line-height:1.5;margin:34px 0 14px;padding-left:14px;
  border-left:5px solid var(--brsx-gold);color:var(--brsx-navy-d);font-weight:700;
}
.brsx-article h3{
  font-size:19px;margin:26px 0 10px;color:var(--brsx-navy);font-weight:600;line-height:1.55;
}
.brsx-article h4{font-size:17px;margin:20px 0 8px;color:var(--brsx-navy)}
.brsx-article p{margin:0 0 15px}
.brsx-article ul,.brsx-article ol{margin:0 0 16px;padding-left:22px}
.brsx-article li{margin-bottom:9px}
.brsx-article ol>li::marker{color:var(--brsx-gold);font-weight:700}
.brsx-article blockquote{
  margin:18px 0;padding:14px 18px;background:var(--brsx-gold-l);
  border-left:4px solid var(--brsx-gold);border-radius:0 8px 8px 0;
  color:#6a5529;font-size:15px;
}
.brsx-article blockquote p{margin:0}
.brsx-article table{
  width:100%;border-collapse:collapse;margin:18px 0;font-size:15px;
  border:1px solid var(--brsx-line);border-radius:var(--brsx-radius);overflow:hidden;
}
.brsx-article th{
  background:var(--brsx-navy);color:#fff;padding:11px 13px;text-align:left;font-weight:600;
}
.brsx-article td{padding:10px 13px;border-top:1px solid var(--brsx-line);background:#fff}
.brsx-article tr:nth-child(even) td{background:#fafbfc}
.brsx-article img{max-width:100%;height:auto;border-radius:8px}
.brsx-article a{text-decoration:underline;text-underline-offset:2px}

/* ============ 面包屑 ============ */
.brsx-crumb{
  font-size:13px;color:var(--brsx-gray);padding:12px 0;line-height:1.7;
  border-bottom:1px solid var(--brsx-line);margin-bottom:22px;
}
.brsx-crumb a{color:var(--brsx-gray);text-decoration:none}
.brsx-crumb a:hover{color:var(--brsx-navy);text-decoration:underline}
.brsx-crumb span.sep{margin:0 7px;color:#b9c2cc}

/* ============ 页头 Hero ============ */
.brsx-hero{
  background:linear-gradient(135deg,var(--brsx-navy-d) 0%,var(--brsx-navy) 55%,var(--brsx-navy-l) 100%);
  color:#fff;padding:58px 0 52px;position:relative;overflow:hidden;
}
.brsx-hero::after{
  content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;
  background:radial-gradient(circle,rgba(195,155,71,.28) 0%,transparent 68%);border-radius:50%;
}
.brsx-hero .brsx-wrap{position:relative;z-index:2}
.brsx-hero h1{color:#fff;font-size:33px;line-height:1.35;margin:0 0 14px;font-weight:700}
.brsx-hero p{color:#d6e2ef;font-size:16.5px;margin:0 0 22px;max-width:720px;line-height:1.8}
.brsx-hero .brsx-hero-btns{display:flex;gap:12px;flex-wrap:wrap}
.brsx-btn{
  display:inline-block;padding:12px 26px;border-radius:8px;font-size:16px;font-weight:600;
  text-decoration:none!important;transition:.2s;border:2px solid transparent;
}
.brsx-btn--gold{background:var(--brsx-gold);color:#3a2c07}
.brsx-btn--gold:hover{background:#d5ad5c;color:#3a2c07;transform:translateY(-1px)}
.brsx-btn--ghost{border-color:rgba(255,255,255,.55);color:#fff}
.brsx-btn--ghost:hover{background:rgba(255,255,255,.14);color:#fff}
.brsx-btn--navy{background:var(--brsx-navy);color:#fff}
.brsx-btn--navy:hover{background:var(--brsx-navy-d);color:#fff}

/* ============ 数据条 ============ */
.brsx-stats{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:1px;background:var(--brsx-line);border-radius:var(--brsx-radius);overflow:hidden;
  margin:-30px auto 0;position:relative;z-index:3;box-shadow:var(--brsx-shadow);
}
.brsx-stat{background:#fff;padding:20px 14px;text-align:center}
.brsx-stat b{display:block;font-size:27px;color:var(--brsx-navy);line-height:1.25;font-weight:700}
.brsx-stat span{font-size:13.5px;color:var(--brsx-gray)}

/* ============ 区块 ============ */
.brsx-sec{padding:48px 0}
.brsx-sec--gray{background:var(--brsx-bg)}
.brsx-sec-title{text-align:center;margin:0 0 8px;font-size:26px;color:var(--brsx-navy-d);font-weight:700}
.brsx-sec-sub{text-align:center;color:var(--brsx-gray);margin:0 0 30px;font-size:15px}

/* ============ 列表筛选 ============ */
.brsx-filter{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;
  margin:0 0 22px;
}
.brsx-filter__label{font-size:13.5px;color:var(--brsx-gray);margin-right:2px}
.brsx-chip{
  border:1px solid var(--brsx-line);background:#fff;color:var(--brsx-gray);
  padding:6px 15px;border-radius:999px;font-size:14px;cursor:pointer;transition:.18s;line-height:1.6;
}
.brsx-chip:hover{border-color:var(--brsx-navy-l);color:var(--brsx-navy)}
.brsx-chip.is-on{background:var(--brsx-navy);border-color:var(--brsx-navy);color:#fff;font-weight:600}
.brsx-search{
  width:100%;max-width:340px;padding:10px 15px;border:1px solid var(--brsx-line);
  border-radius:999px;font-size:15px;outline:none;margin:0 auto 18px;display:block;
}
.brsx-search:focus{border-color:var(--brsx-navy-l)}
.brsx-count{text-align:center;color:var(--brsx-gray);font-size:14px;margin-bottom:18px}

/* ============ 卡片网格 ============ */
.brsx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:16px}
.brsx-grid--4{grid-template-columns:repeat(auto-fill,minmax(215px,1fr))}
.brsx-card{
  background:#fff;border:1px solid var(--brsx-line);border-radius:var(--brsx-radius);
  padding:18px 18px 15px;transition:.2s;display:flex;flex-direction:column;
}
.brsx-card:hover{box-shadow:var(--brsx-shadow-h);transform:translateY(-2px);border-color:#cfd9e4}
.brsx-card__top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:9px}
.brsx-card__name{font-size:17px;font-weight:700;color:var(--brsx-navy-d);margin:0;line-height:1.5}
.brsx-card__name a{color:inherit;text-decoration:none}
.brsx-card__name a:hover{color:var(--brsx-navy-l)}
.brsx-card__name a::after{content:"";position:absolute;inset:0}
.brsx-card{position:relative}
.brsx-tag{
  flex:0 0 auto;font-size:12px;padding:2.5px 9px;border-radius:4px;font-weight:600;white-space:nowrap;
}
.brsx-tag--l1{background:#fdeceb;color:#b3271c}
.brsx-tag--l2{background:#fff4e0;color:#96650c}
.brsx-tag--l3{background:#eaf3fd;color:#1a5f9e}
.brsx-tag--country{background:#eef2f6;color:#4a5c6e}
.brsx-card__meta{font-size:13.5px;color:var(--brsx-gray);line-height:1.95;margin:0}
.brsx-card__meta em{font-style:normal;color:#8b97a4;display:inline-block;min-width:56px}
.brsx-card__meta strong{color:var(--brsx-ink);font-weight:600}
.brsx-card__desc{
  font-size:13.5px;color:var(--brsx-gray);margin:9px 0 0;line-height:1.75;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.brsx-empty{text-align:center;color:var(--brsx-gray);padding:40px 0;display:none}

/* 分页/更多 */
.brsx-more{text-align:center;margin-top:26px}
.brsx-more button{
  background:#fff;border:1px solid var(--brsx-line);color:var(--brsx-navy);
  padding:11px 34px;border-radius:8px;font-size:15px;cursor:pointer;font-weight:600;
}
.brsx-more button:hover{border-color:var(--brsx-navy-l);background:#f7fafd}

/* ============ 内链块 ============ */
.brsx-rel{
  margin:34px 0 0;padding:22px;background:var(--brsx-bg);
  border:1px solid var(--brsx-line);border-radius:var(--brsx-radius);
}
.brsx-rel h3{
  margin:0 0 14px!important;font-size:17px!important;color:var(--brsx-navy-d)!important;
  padding-bottom:10px;border-bottom:1px solid var(--brsx-line);
}
.brsx-rel ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:7px}
.brsx-rel li{margin:0;font-size:14.5px;line-height:1.7}
.brsx-rel li::before{content:"›";color:var(--brsx-gold);font-weight:700;margin-right:7px}
.brsx-rel a{text-decoration:none}
.brsx-rel a:hover{text-decoration:underline}

/* ============ FAQ ============ */
.brsx-faq{border-top:1px solid var(--brsx-line)}
.brsx-faq__item{border-bottom:1px solid var(--brsx-line)}
.brsx-faq__q{
  width:100%;text-align:left;background:none;border:0;padding:17px 30px 17px 0;position:relative;
  font-size:16.5px;font-weight:600;color:var(--brsx-navy-d);cursor:pointer;line-height:1.65;
}
.brsx-faq__q::before{content:"Q ";color:var(--brsx-gold);font-weight:700}
.brsx-faq__q::after{
  content:"+";position:absolute;right:4px;top:50%;transform:translateY(-50%);
  color:var(--brsx-gray);font-size:22px;font-weight:400;transition:.2s;
}
.brsx-faq__item.is-open .brsx-faq__q::after{content:"−";color:var(--brsx-navy)}
.brsx-faq__a{display:none;padding:0 34px 18px 0;color:#3d4a57;font-size:15.5px;line-height:1.9}
.brsx-faq__item.is-open .brsx-faq__a{display:block}
.brsx-faq__a p:last-child{margin-bottom:0}

/* ============ CTA ============ */
.brsx-cta{
  background:linear-gradient(135deg,var(--brsx-navy) 0%,var(--brsx-navy-l) 100%);
  color:#fff;border-radius:var(--brsx-radius);padding:30px 28px;margin:34px 0 0;
  display:flex;gap:24px;flex-wrap:wrap;align-items:center;justify-content:space-between;
}
.brsx-cta__txt{flex:1 1 380px}
.brsx-cta__txt h3{color:#fff!important;margin:0 0 8px!important;font-size:20px!important;border:0!important;padding:0!important}
.brsx-cta__txt p{color:#cfdcea;margin:0;font-size:14.5px;line-height:1.8}
.brsx-cta__act{flex:0 0 auto;display:flex;flex-direction:column;gap:9px;min-width:236px}
.brsx-cta__act .brsx-btn{text-align:center;padding:11px 22px;font-size:15.5px}
.brsx-cta__tel{color:#e8d9b6!important;font-size:14px;text-align:center;text-decoration:none}
.brsx-cta__tel b{color:#fff;font-size:16px;letter-spacing:.3px}

/* ============ 首页特色 ============ */
.brsx-feat{display:grid;grid-template-columns:repeat(auto-fit,minmax(238px,1fr));gap:16px}
.brsx-feat__i{
  background:#fff;border:1px solid var(--brsx-line);border-radius:var(--brsx-radius);padding:22px 20px;
}
.brsx-feat__i .n{
  display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;
  background:var(--brsx-gold-l);color:#8a6a1e;border-radius:8px;font-weight:700;margin-bottom:11px;font-size:15px;
}
.brsx-feat__i h3{margin:0 0 7px;font-size:16.5px;color:var(--brsx-navy-d)}
.brsx-feat__i p{margin:0;font-size:14px;color:var(--brsx-gray);line-height:1.8}

.brsx-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;counter-reset:s}
.brsx-step{background:#fff;border:1px solid var(--brsx-line);border-radius:var(--brsx-radius);padding:20px 18px;position:relative}
.brsx-step::before{
  counter-increment:s;content:counter(s);
  display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;
  background:var(--brsx-navy);color:#fff;border-radius:50%;font-weight:700;font-size:14px;margin-bottom:10px;
}
.brsx-step h3{margin:0 0 6px;font-size:16px;color:var(--brsx-navy-d)}
.brsx-step p{margin:0;font-size:14px;color:var(--brsx-gray);line-height:1.78}

/* 城市页 */
.brsx-city-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:11px;margin-top:14px}
.brsx-city-links a{
  display:block;text-align:center;padding:15px 10px;background:#fff;border:1px solid var(--brsx-line);
  border-radius:var(--brsx-radius);text-decoration:none;font-weight:600;color:var(--brsx-navy);font-size:15.5px;
}
.brsx-city-links a:hover{border-color:var(--brsx-navy-l);box-shadow:var(--brsx-shadow)}
.brsx-city-links a small{display:block;font-weight:400;color:var(--brsx-gray);font-size:12.5px;margin-top:3px}

/* 内容页表格滚动 */
.brsx-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ============ 咨询表单 ============ */
.brsx-form{background:#fff;border:1px solid var(--brsx-line);border-radius:var(--brsx-radius);padding:24px;margin-top:18px}
.brsx-form__row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.brsx-form label{display:block;font-size:14.5px;font-weight:600;color:var(--brsx-navy-d);margin-bottom:14px}
.brsx-form label i{color:var(--brsx-red);font-style:normal}
.brsx-form input[type=text],.brsx-form input[type=tel],.brsx-form input[type=email],
.brsx-form select,.brsx-form textarea{
  display:block;width:100%;margin-top:6px;padding:10px 13px;border:1px solid var(--brsx-line);
  border-radius:8px;font-size:15px;font-weight:400;color:var(--brsx-ink);background:#fff;outline:none;
  font-family:inherit;transition:.18s;
}
.brsx-form input:focus,.brsx-form select:focus,.brsx-form textarea:focus{border-color:var(--brsx-navy-l);box-shadow:0 0 0 3px rgba(27,82,136,.1)}
.brsx-form textarea{resize:vertical}
.brsx-form__full{grid-column:1/-1}
.brsx-form__tip{font-size:13px;color:var(--brsx-gray);margin:4px 0 14px;line-height:1.7}
.brsx-form__btn{width:100%;border:0;cursor:pointer;font-family:inherit}
.brsx-hp{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}
.brsx-notice{padding:14px 18px;border-radius:8px;margin-bottom:18px;font-size:15px;line-height:1.8}
.brsx-notice--ok{background:#eaf7ee;border:1px solid #bfe3ca;color:#1c6b36}
.brsx-notice--err{background:#fdeceb;border:1px solid #f3c3bf;color:#a8271c}

/* ============ 顶部联系条 ============ */
.brsx-topbar{background:var(--brsx-navy-d);color:#c6d5e6;font-size:13px;line-height:1.6;padding:7px 0}
.brsx-topbar .brsx-wrap{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center}
.brsx-topbar a{color:#f0d9a8;text-decoration:none;font-weight:600}
.brsx-topbar a:hover{color:#fff;text-decoration:underline}
.brsx-topbar__c{white-space:nowrap}

/* ============ 通用页头 ============ */
.brsx-main{min-height:50vh}
.brsx-pagehead{background:linear-gradient(135deg,#f2f6fa 0%,#e8eff7 100%);border-bottom:1px solid var(--brsx-line);padding:30px 0 26px}
.brsx-pagehead .brsx-h1{margin:0;font-size:28px;line-height:1.45;color:var(--brsx-navy-d);font-weight:700}
.brsx-h1{margin:0 0 12px;font-size:30px;line-height:1.45;color:var(--brsx-navy-d);font-weight:700}
.brsx-article{padding:26px 0 46px}
.brsx-postmeta{color:var(--brsx-gray);font-size:14px;margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid var(--brsx-line)}

/* 隐藏主题自带侧边栏与多余区块 */
.brsx-no-sidebar #right-sidebar,
.brsx-no-sidebar #left-sidebar,
.brsx-no-sidebar .sidebar,
.brsx-no-sidebar #secondary{display:none!important}
/* GeneratePress 主容器在无侧栏时改为块级，避免 flex 项被内容撑宽导致横向溢出 */
.brsx-no-sidebar .grid-container{display:block!important}
.brsx-no-sidebar #primary,
.brsx-no-sidebar .content-area{
  width:100%!important;max-width:100%!important;min-width:0!important;
  flex:1 1 100%!important;float:none!important;margin:0!important;
}
.brsx-no-sidebar #main{max-width:100%;overflow-x:clip}

/* ============ 响应式 ============ */
@media (max-width:768px){
  body{font-size:15.5px}
  .brsx-hero{padding:38px 0 34px}
  .brsx-hero h1{font-size:25px}
  .brsx-hero p{font-size:15.5px}
  .brsx-sec{padding:34px 0}
  .brsx-sec-title{font-size:22px}
  .brsx-article h2{font-size:20.5px;margin:26px 0 12px}
  .brsx-article h3{font-size:17.5px}
  .brsx-grid,.brsx-grid--4{grid-template-columns:1fr}
  .brsx-stats{grid-template-columns:repeat(2,1fr);margin-top:-16px}
  .brsx-stat b{font-size:22px}
  .brsx-cta{padding:22px 18px}
  .brsx-rel ul{grid-template-columns:1fr}
  .brsx-form{padding:18px 16px}
  .brsx-form__row{grid-template-columns:1fr;gap:0}
  .brsx-city-links{grid-template-columns:repeat(2,1fr)}
  .brsx-steps{grid-template-columns:1fr}
  .brsx-feat{grid-template-columns:1fr}
}
@media print{
  .brsx-cta,.brsx-crumb,.brsx-filter,.brsx-search,.brsx-more{display:none!important}
}

/* ============ 满宽铺排修正 ============ */
.brsx-article__body{box-sizing:border-box;padding:0}
.brsx-article{padding:26px 0 46px}

/* =========================================================
 * 栅格留白修复（2026-10-06）
 * 原问题：栅格一律用 repeat(auto-fit,minmax(Npx,1fr))，列数由容器宽自动推导，
 *        卡片数无法整除列数时，最后一行必然留下空格（首页 4/5/6 条反馈的三处留白）。
 * 修法：给这几处指定「能整除卡片数」的显式列数，桌面端不再留空，
 *        平板降为 2 列，手机仍为 1 列，不影响窄屏可读性。
 * ======================================================= */

/* 第4条：首页「为什么在职人士选择免联考硕博」6 个特色卡 → 3 列 × 2 行满 */
@media (min-width: 1025px) {
  .brsx-feat { grid-template-columns: repeat(3, 1fr); }
}

/* 第5条：首页「热门免联考招生院校」8 张卡 → 4 列 × 2 行满 */
@media (min-width: 1025px) {
  .brsx-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* 第6条：首页「免联考硕博申请流程」6 个步骤 → 3 列 × 2 行满 */
@media (min-width: 1025px) {
  .brsx-steps { grid-template-columns: repeat(3, 1fr); }
}

/* 平板 2 列 */
@media (min-width: 769px) and (max-width: 1024px) {
  .brsx-feat,
  .brsx-steps,
  .brsx-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 第3条：院校/专业详情页两侧留白 ----
 * 根因：page.php 对未标记 _brsx_wide 的页面套了 .brsx-wrap--narrow（max-width:820px），
 *       而内容区本身就有 1180px，导致两侧各留约 130px 空白。
 * 修法：详情页正文容器放宽到 1120px；「项目速览」表格这类信息密集区改双栏，
 *       左边表格、右边跟随正文，充分吃掉横向空间。 */
.brsx-wrap--narrow.brsx-article__body { max-width: 1120px; }

/* 详情页：让宽表格铺满可用宽度 */
.brsx-article__body .brsx-tablewrap { max-width: none; }
.brsx-article__body .brsx-tablewrap table { width: 100%; }

/* 有表格的页面：表格与后续内容并排（表格列窄、右侧放说明文字） */
@media (min-width: 1025px) {
  .brsx-article__body:has(.brsx-tablewrap) .brsx-section__body {
    display: grid;
    grid-template-columns: minmax(360px, 42%) 1fr;
    gap: 0 32px;
    align-items: start;
  }
  .brsx-article__body:has(.brsx-tablewrap) .brsx-tablewrap { grid-column: 1; }
  .brsx-article__body:has(.brsx-tablewrap) .brsx-tablewrap + * { grid-column: 2; grid-row: 1 / span 99; }
}

/* ---- 第7条：城市分站页两侧留白 ----
 * 城市页原本只有 1 个 H2、0 个 H3（见下一条内容侧修复），
 * 版式上把城市卡片放大占满，并给首屏加内边距，避免内容窄成一条。 */
@media (min-width: 769px) {
  .brsx-city-links { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
  .brsx-city-links a { padding: 16px 18px; }
}

/* ============================================================
 * 母版图系统 v1.0 — 12 张学院古典风母版图 + CSS 滤镜差异化
 * 设计要点：
 *   1. 图片走 uploads/brsx-masters/ 直引，不进媒体库（装饰用途，无需附件管理）
 *   2. 滤镜分两层：全站基线（统一质感）+ 单图微调（消除色调/明度差）
 *   3. 文字可读性优先：图片层 filter，图外单独铺暗化遮罩，滤镜绝不污染遮罩颜色
 *   4. 懒加载：非首屏横幅用 data-src + IntersectionObserver
 * ============================================================ */

/* ---- 全站统一基线滤镜：轻微降饱和 + 提对比 + 一丝暖调 ---- */
.brsx-mimg{filter:saturate(.95) contrast(1.02) sepia(.06)}
.brsx-mimg--01{filter:saturate(.95) contrast(1.02) sepia(.06) brightness(1.02)}
.brsx-mimg--02{filter:saturate(.95) contrast(1.02) sepia(.22) saturate(1.05)}
.brsx-mimg--03{filter:saturate(1.02) contrast(1.06) saturate(1.08)}
.brsx-mimg--04{filter:saturate(.95) contrast(1.02) sepia(.06) brightness(1.03)}
.brsx-mimg--05{filter:saturate(.95) contrast(1.05) sepia(.06)}
.brsx-mimg--06{filter:saturate(1.05) contrast(1.08) brightness(.95)}
.brsx-mimg--07{filter:saturate(.99) contrast(1.02) sepia(.06) brightness(1.01)}
.brsx-mimg--08{filter:saturate(.77) contrast(1.02) sepia(.16) brightness(.98)}
.brsx-mimg--09{filter:saturate(.855) contrast(.95) sepia(.06) brightness(1.12)}
.brsx-mimg--10{filter:saturate(.95) contrast(1.10) sepia(.06) brightness(.92)}
.brsx-mimg--11{filter:saturate(.855) contrast(1.02) sepia(.25)}
.brsx-mimg--12{filter:saturate(.95) contrast(.98) sepia(.06) brightness(1.02)}

/* ---- 变量注入容器：把图片 URL 交给伪元素，避免 filter 污染遮罩 ---- */
/*
 * ⚠️ hero 三层全部用真实元素（.brsx-hero__img / __scrim / __glow），不用伪元素。
 *    原因：父主题 .brsx-hero::after 是「右上角 420x420 金色光晕圆」，
 *    与我们抢同一个伪元素。两条规则特异度相同(0,1,1)，按文档顺序互相覆盖，
 *    实测踩过两个坑：
 *      ① 遮罩层不渲染 → hero 变浅色实景图，h1/副标题完全看不清
 *      ② 图片层不显示 → hero 退回纯深蓝渐变
 *    真实元素 + 独立 class 彻底隔离，不依赖加载顺序，也不用 !important。
 */
.brsx-hero--img{position:relative;background:#0d2a4d;overflow:hidden}
.brsx-hero--img .brsx-hero__img{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:0;object-fit:cover;object-position:center 42%;
  transform:scale(1.04);
  filter:saturate(.95) contrast(1.02) sepia(.06) brightness(1.03);
}
.brsx-hero--img .brsx-hero__scrim{
  position:absolute;inset:0;z-index:1;display:block;
  background:
    linear-gradient(100deg,rgba(7,21,40,.95) 0%,rgba(7,21,40,.90) 38%,rgba(7,21,40,.76) 66%,rgba(7,21,40,.56) 100%),
    linear-gradient(180deg,rgba(7,21,40,.50) 0%,rgba(7,21,40,.28) 45%,rgba(7,21,40,.58) 100%);
}
.brsx-hero--img .brsx-hero__glow{
  position:absolute;right:-120px;top:-120px;width:420px;height:420px;z-index:2;
  display:block;
  background:radial-gradient(circle,rgba(195,155,71,.20) 0%,transparent 68%);border-radius:50%;
  pointer-events:none;
}
.brsx-hero--img>.brsx-wrap{position:relative;z-index:3}
/* 实景图变浅后，副标题灰字对比度不够，这里提亮并加字重 */
.brsx-hero--img .brsx-wrap p{color:#e8eef6;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.brsx-hero--img .brsx-wrap h1{text-shadow:0 2px 8px rgba(0,0,0,.32)}
/*
 * ⚠️ 遮罩必须足够深：原 hero 是纯深蓝渐变 + 白字，换成浅色实景图后
 *    白字会糊在浅背景上。实测 rgba(...,.58) 不够，这里给到 .94 → .52 的横向渐变。
 * ⚠️ 原 .brsx-hero::after 是右上角金色光晕圆，本规则用 ::after 做遮罩会把它覆盖，
 *    改用独立元素 .brsx-hero__glow 承载光晕。
 * ⚠️ glow 必须挂在 .brsx-hero--img 自身（position:absolute 相对最近定位祖先），
 *    且用 right/top 负偏移出屏；曾误挂在 .brsx-wrap 内导致出现深色圆突刺。
 */
/*
 * ⚠️ 必须 !important：父主题 .brsx-hero::after 是「右上角 420x420 金色光晕圆」，
 *    与本遮罩层用的是同一个伪元素。两条规则特异度相同(0,1,1)，
 *    后者按文档顺序覆盖前者 —— 一旦父主题规则排在我们之后就失效，
 *    表现为：遮罩不渲染（hero 变成浅色实景图，文字看不清）
 *            或残留成 420x420 定位方块（hero 左侧一块深色圆突刺）。
 *    所以这里对所有关键属性加 !important，不依赖加载顺序。
 */
.brsx-hero.brsx-hero--img::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  right:auto !important;top:auto !important;
  width:auto !important;height:auto !important;
  border-radius:0 !important;
  pointer-events:none !important;
  background:
    linear-gradient(100deg,rgba(7,21,40,.96) 0%,rgba(7,21,40,.92) 38%,rgba(7,21,40,.80) 66%,rgba(7,21,40,.62) 100%),
    linear-gradient(180deg,rgba(7,21,40,.55) 0%,rgba(7,21,40,.32) 45%,rgba(7,21,40,.62) 100%) !important;
}
.brsx-hero--img .brsx-hero__glow{
  position:absolute;right:-120px;top:-120px;width:420px;height:420px;z-index:2;
  display:block;
  background:radial-gradient(circle,rgba(195,155,71,.20) 0%,transparent 68%);border-radius:50%;
  pointer-events:none;
}
.brsx-hero--img>.brsx-wrap{position:relative;z-index:3}
/* 实景图变浅后，副标题灰字对比度不够，这里提亮并加字重 */
.brsx-hero--img .brsx-wrap p{color:#e8eef6;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.brsx-hero--img .brsx-wrap h1{text-shadow:0 2px 8px rgba(0,0,0,.32)}

/* ---- 内容横幅（schools / majors / city 页）---- */
/*
 * ⚠️ 注入位置视页面而异：
 *    - 城市子页 /city/beijing/ 在 <div class="brsx-wrap brsx-wrap--narrow brsx-article__body"> 内
 *    - 索引页   /city/          在无宽度约束的 <div class="brsx-article__body"> 内
 *    后者靠内容自适应宽度，figure 会被压成最小值（实测被压到 285px）。
 *    所以横幅必须显式 width:100%，并在无 wrap 的页面给上限宽居中。
 */
.brsx-mbanner{
  position:relative;overflow:hidden;border-radius:12px;
  width:100%;max-width:1144px;margin:0 auto 28px;background:#0d2a4d;
  box-shadow:0 2px 14px rgba(13,42,77,.10);
}
/*
 * 已在 brsx-wrap 容器内的页面不再二次收窄，保持与正文对齐。
 * ⚠️ 必须排除「自己被撑成通栏、但内部子元素仍带 brsx-wrap」的那种页（如 /city/），
 *    否则这里的 max-width:none 会让横幅跟着铺满，与其他区块宽度不一致。
 */
.brsx-wrap .brsx-mbanner{max-width:none;margin-left:0;margin-right:0}
.brsx-article__body:not(.brsx-wrap) .brsx-mbanner{
  max-width:1144px;margin-left:auto;margin-right:auto;
}
@media (min-width:769px){
  .brsx-mbanner{margin-bottom:32px}
}
.brsx-mbanner img{
  display:block;width:100%;height:clamp(158px,21vw,222px);
  object-fit:cover;object-position:center 45%;
}
.brsx-mbanner__scrim{
  position:absolute;inset:0;z-index:2;display:block;
  background:linear-gradient(96deg,rgba(8,24,44,.92) 0%,rgba(8,24,44,.80) 46%,rgba(8,24,44,.50) 100%);
}
.brsx-mbanner__cap{
  position:absolute;inset:0;z-index:3;display:flex;
  flex-direction:column;justify-content:center;
  padding:0 clamp(20px,4vw,42px);color:#fff;pointer-events:none;
}
.brsx-mbanner__cap h2{
  color:#fff;font-size:clamp(20px,2.6vw,27px);line-height:1.35;
  margin:0 0 8px;font-weight:700;letter-spacing:.2px;
}
.brsx-mbanner__cap p{
  color:#cfdcea;font-size:15px;line-height:1.75;margin:0;max-width:640px;
}
.brsx-mbanner__cap .brsx-mbanner__eyebrow{
  display:inline-block;font-size:12.5px;letter-spacing:1.6px;
  color:var(--brsx-gold);text-transform:uppercase;margin-bottom:9px;font-weight:600;
}

/* ---- 页面底纹（about / faq）：低透明度几何纹样 ---- */
.brsx-texture{
  position:relative;isolation:isolate;
}
.brsx-texture::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background-image:url("/wp-content/uploads/brsx-masters/12-800.webp");
  background-size:cover;background-position:center;
  opacity:.055;filter:saturate(.7) contrast(.9);
  pointer-events:none;
}

/* ---- 城市卡片配图轮换 ---- */
.brsx-citycard{
  position:relative;overflow:hidden;border-radius:10px;
  display:block;text-decoration:none!important;min-height:132px;
  background:#0d2a4d;isolation:isolate;
}
.brsx-citycard img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;
  filter:saturate(.9) contrast(1.05) sepia(.08) brightness(.94);
  transition:transform .45s ease;
}
.brsx-citycard:hover img{transform:scale(1.05)}
.brsx-citycard::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(160deg,rgba(8,24,44,.80) 0%,rgba(8,24,44,.58) 100%);
}
.brsx-citycard__body{
  position:relative;z-index:2;padding:20px 18px;color:#fff;
}
.brsx-citycard__body strong{
  display:block;color:#fff;font-size:18px;margin-bottom:6px;font-weight:700;
}
.brsx-citycard__body span{color:#cfdcea;font-size:13.5px;line-height:1.65}

/*
 * ⚠️ /city/ 索引页的容器塌缩（既有 bug，本次配图上线时暴露）—— 修在 main 上，不是子容器。
 *
 * 真实成因链（Playwright 量出来的祖先链）：
 *    div.site-content          display:flex, w=1200
 *      └ main#main.brsx-main   display:block, w=383   ← 没有 flex:1
 *          └ article.brsx-article   w=383
 *              └ div.brsx-article__body  w=383
 *    .site-content 是 flex 容器，main 作为 flex item 默认 flex:0 1 auto，
 *    宽度由内容决定；main 里又全是 .brsx-full（width:100vw + calc(50% - 50vw)），
 *    shrink-to-fit 之下内容反噬，main 塌成 383px，
 *    于是 calc(50% - 50vw) 的 50% 基准也是错的 → .brsx-full margin-left -528px，
 *    H1 左边距 -260px（标题移出屏幕左侧），横幅被压到 383px。
 *    城市子页因为 .brsx-article__body 自带 brsx-wrap--narrow（max-width:1120px）
 *    给出了确定的宽度上限，main 才没塌。
 *
 * 解法：给 main 补 flex:1 + min-width:0，让它作为 flex item 正常占满剩余空间。
 *
 * ⚠️ 试过但更糟的方案（别再试，全在子容器 brsx-article__body 上做）：
 *    ① max-width + width:100%          → shrink-to-fit 下 max-width 只是上限，容器仍塌成 419px
 *    ② 容器也设 100vw + calc(50%-50vw)  → 双重负偏移（left -452px）
 *    ③ > *:not(.brsx-full) 加定宽       → 这些元素成唯一定宽内容，容器又塌回 419px
 *    ④ :has(> .brsx-full) 精确作用域    → 误伤 /schools/ /majors/，整体右移 100px
 *    根因：flex item 的塌缩必须从 flex item 自己（main）上修，
 *          在它的后代上做任何宽度约束都改变不了 flex 布局的分配结果。
 */
main.brsx-main{flex:1 1 auto;min-width:0}

/* ---- 移动端优化：横幅压扁，避免首屏被图吃掉 ---- */
@media (max-width:768px){
  .brsx-hero--img::before{background-position:center 38%}
  .brsx-mbanner img{height:140px}
  .brsx-mbanner__cap{padding:0 18px}
  .brsx-mbanner__cap h2{font-size:19px;margin-bottom:5px}
  .brsx-mbanner__cap p{font-size:13.5px;line-height:1.65}
  .brsx-citycard{min-height:112px}
}

/* ---- 无障碍：尊重减少动效偏好 ---- */
@media (prefers-reduced-motion:reduce){
  .brsx-citycard img,.brsx-citycard:hover img{transition:none;transform:none}
}
/* ============================================================
 * 资讯列表（[brsx_news_list]）v1.0
 * ============================================================ */
.brsx-news-list{display:grid;gap:16px;margin:26px 0}
.brsx-news-item{
  background:#fff;border:1px solid var(--brsx-line,#e5e9ef);
  border-radius:12px;padding:22px 24px;position:relative;
  transition:border-color .2s,box-shadow .2s,transform .2s;
}
.brsx-news-item:hover{
  border-color:rgba(20,63,110,.28);
  box-shadow:0 4px 18px rgba(13,42,77,.08);
  transform:translateY(-1px);
}
.brsx-news-item h3{margin:0 0 8px;font-size:19px;line-height:1.5;font-weight:700}
.brsx-news-item h3 a{color:var(--brsx-navy,#143f6e);text-decoration:none}
.brsx-news-item h3 a:hover{color:var(--brsx-navy-l,#1d5a9e);text-decoration:underline}
.brsx-news-item__meta{
  font-size:13px;color:var(--brsx-gray,#6b7684);margin-bottom:10px;
  display:flex;align-items:center;gap:8px;
}
.brsx-news-item__meta::before{
  content:"";width:3px;height:3px;border-radius:50%;
  background:var(--brsx-gold,#c39b47);display:inline-block;
}
.brsx-news-item__ex{
  margin:0 0 14px;font-size:15px;line-height:1.8;
  color:#48525f;
}
.brsx-news-item__more{
  display:inline-block;font-size:14px;font-weight:600;
  color:var(--brsx-gold,#a67c1f);
}
.brsx-news-item__more::after{content:" →";font-family:inherit}
.brsx-news-item__more:hover{text-decoration:underline}
.brsx-news-empty{
  padding:40px 20px;text-align:center;color:var(--brsx-gray,#6b7684);
  background:#f7f9fb;border:1px dashed var(--brsx-line,#e5e9ef);border-radius:12px;
}
@media (max-width:768px){
  .brsx-news-item{padding:18px 16px}
  .brsx-news-item h3{font-size:17px}
  .brsx-news-item__ex{font-size:14px;line-height:1.75}
}
