/* ============================================================
   第25轮：全站版式规范 · 政务风视觉统一 + 电脑/手机双端适配
   原则：留白统一、层级清晰、重点突出、点击区舒适
   ============================================================ */
:root{
  --line-2:#EDF0F4;
  --line-3:#F4F6F9;
  --radius:6px;
  --radius-lg:10px;
  --shadow:0 1px 2px rgba(22,40,72,.04), 0 6px 18px rgba(22,40,72,.05);
  --shadow-hover:0 10px 28px rgba(22,40,72,.12);
  --gutter:16px;
  --hd-h:68px;
}
html{scroll-behavior:smooth}
body{
  background:#F5F6F8;
  font-size:15px;line-height:1.75;letter-spacing:.01em;color:#333;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
.wrap{max-width:1200px;padding:0 var(--gutter)}

/* ---------- 顶栏 / 导航：更稳重 ---------- */
.topbar{font-size:12.5px;letter-spacing:.02em}
.topbar .wrap{height:32px}
.topbar .links a{padding:0 10px}
.header{box-shadow:0 1px 0 var(--line),0 2px 10px rgba(22,40,72,.04)}
.header .wrap{height:var(--hd-h);gap:20px}
.logo .seal{width:42px;height:42px;font-size:14px;letter-spacing:2px;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.55),0 2px 6px rgba(199,0,11,.25)}
.logo h1{font-size:18.5px;letter-spacing:.6px;font-weight:700}
.logo small{font-size:10.5px;letter-spacing:1.4px;margin-top:1px}
.nav{gap:4px}
.nav>a{height:var(--hd-h);padding:0 14px;font-size:15.5px;font-weight:600;letter-spacing:.3px}
.nav>a.active::after{content:"";position:absolute;left:14px;right:14px;bottom:-3px;height:3px;border-radius:2px 2px 0 0;background:var(--red)}
.nav>a.active{border-bottom-color:transparent}

/* ---------- 通用按钮：方正、可点 ---------- */
.btn{border-radius:4px;font-weight:600;min-height:38px;padding:8px 18px;letter-spacing:.3px}
.btn-sm{min-height:30px;padding:5px 13px;font-size:13px;font-weight:500}
.btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(30,94,184,.25)}
.btn-red:focus-visible{box-shadow:0 0 0 3px rgba(199,0,11,.22)}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* ---------- 区块节奏：统一留白 ---------- */
.section{margin:38px auto;padding:0 var(--gutter)}
.sec-hd{align-items:center;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--line-2)}
.sec-hd h3{font-size:21px;font-weight:700;letter-spacing:.6px}
.sec-hd h3::before{width:4px;height:19px;border-radius:2px;background:linear-gradient(180deg,var(--red),#E23B24)}
.sec-hd .more{font-size:13px;padding:2px 0}
.sec-hd .more::after{content:"›";margin-left:2px}

/* ---------- 卡片：细边框 + 极轻阴影，政务干净感 ---------- */
.panel,.mod-card,.tool-card,.quiz-item,.stat,.exam-card,.report-card,.login-box{
  border:1px solid var(--line-2);box-shadow:var(--shadow)
}
.panel{padding:22px;border-radius:var(--radius)}
.mod-card{border-top-width:4px;border-radius:var(--radius);padding:22px 20px}
.mod-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.mod-card h4{font-size:16.5px;font-weight:700;letter-spacing:.3px}
.tool-card{padding:18px}
.tool-card:hover{outline:none;border-color:rgba(30,94,184,.45);box-shadow:var(--shadow-hover)}
.tool-card h5{font-size:14.5px;font-weight:700}

/* ---------- 资讯列表：标题为主、信息为辅 ---------- */
.news-item{padding:15px 4px}
.news-item h4{font-size:15.5px;font-weight:600;line-height:1.6;letter-spacing:.2px}
.news-item p{font-size:13px;line-height:1.65;color:#7B8494;margin-top:2px}
.news-item .date{border:1px solid var(--line-2);background:#FBFCFE;min-width:56px}
.news-item .date b{font-size:17px}
.side-list li{font-size:14px;line-height:1.65;padding:11px 2px}
.notice-bar .wrap{height:46px}
.notice-bar .marquee,.notice-bar .marquee-inner{height:46px}
.notice-bar .marquee-inner{line-height:46px}
.notice-bar .tag{font-size:12px;padding:3px 11px;border-radius:2px;letter-spacing:2px}

/* ---------- 表格：更强的可读性 ---------- */
.table-box{border-radius:var(--radius);overflow-x:auto;-webkit-overflow-scrolling:touch}
.tb th{font-size:13px;font-weight:700;letter-spacing:.4px;padding:11px 12px;
  background:#F2F6FC;color:#1B4E96;border-bottom:1px solid #E1EAF6}
.tb td{font-size:13.5px;padding:11px 12px;color:#5A6272}
.tb tbody tr:nth-child(even) td{background:#FBFCFE}
.tb tbody tr:hover td{background:#F5F9FF}
.tb .em{color:var(--red);font-weight:700}
.dan-code{font-size:12px;color:#8A9099;font-weight:400;margin-right:7px;font-variant-numeric:tabular-nums}

/* ---------- 表单：统一高度与焦点态 ---------- */
.form input[type=text],.form input[type=password],.form input[type=number],.form select,.form textarea,
.filter-bar input[type=text],.filter-bar select,.lg-row input{
  border-radius:4px;min-height:40px;border-color:#E1E5EB;background:#fff;transition:border-color .15s,box-shadow .15s
}
.form input:focus,.form select:focus,.form textarea:focus,
.filter-bar input:focus,.filter-bar select:focus,.lg-row input:focus{
  border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,94,184,.10)
}
.form label{font-size:13.5px;color:#4A5262;letter-spacing:.2px}
.filter-bar{gap:10px}
.filter-bar input[type=text]{flex:1 1 200px}

/* ---------- 文章正文：政务阅读体验 ---------- */
.article{padding:36px 42px;border:1px solid var(--line-2)}
.article h1{font-size:25px;line-height:1.55;letter-spacing:.4px;font-weight:700}
.article .body{font-size:15.5px;line-height:1.95;color:#3C3F45}
.article .body p{margin-bottom:16px}
.article .body h4{font-size:16px;font-weight:700;padding-left:10px;border-left:3px solid var(--red)}

/* ---------- 页头 / 面包屑 ---------- */
.crumbs{font-size:12.5px;padding:18px 0 0;letter-spacing:.2px}
.crumbs a{color:#8A9099}
.page-hd{padding:38px 0;margin-bottom:26px;position:relative;overflow:hidden}
.page-hd::after{content:"";position:absolute;right:-40px;top:-40px;width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.06)}
.page-hd h2{font-size:26px;font-weight:700;letter-spacing:2px}
.page-hd p{font-size:13.5px;letter-spacing:.5px}

/* ---------- 数据统计 ---------- */
.stat{padding:20px 16px}
.stat b{font-size:27px;font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.stat span{font-size:12.5px;letter-spacing:.3px}

/* ---------- 答题 / 测评 ---------- */
.qnav{width:36px;height:36px;border-radius:4px;font-size:13px}
.quiz-item{padding:24px}
.quiz-item h4{font-size:16px;line-height:1.7;font-weight:600}
.quiz-item .opt{padding:12px 15px;border-radius:4px;font-size:14.5px;line-height:1.65}
.explain{border-radius:0 4px 4px 0;font-size:13px;line-height:1.8}

/* ---------- 后台 ---------- */
.admin-body{grid-template-columns:216px 1fr;gap:22px}
.admin-menu a{padding:12px 18px;font-size:13.5px;letter-spacing:.2px}
.admin-menu a.on{font-weight:700}
.login-box{max-width:396px;padding:34px 32px 26px;border-radius:var(--radius-lg)}

/* ---------- 页脚 ---------- */
.footer{background:#262A31;margin-top:60px;font-size:13px;line-height:1.9}
.footer .wrap{padding:38px var(--gutter) 26px}
.footer .cols{gap:30px}
.footer h5{font-size:14.5px;letter-spacing:.5px;padding-left:11px;position:relative;margin-bottom:14px}
.footer h5::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:2px;background:var(--red)}
.footer .btm{line-height:2.1;font-size:12.5px}

/* ============================================================
   平板（≤900px）
   ============================================================ */
@media(max-width:900px){
  :root{--gutter:16px}
  .section{margin:30px auto}
  .sec-hd h3{font-size:19px}
  .sec-hd h3::before{height:17px}
  .slides{height:240px}
  .slide h2{font-size:24px;letter-spacing:1px}
  .slide p{font-size:14px}
  .slide .btn{min-height:36px}
  .article{padding:26px 22px}
  .article h1{font-size:21px}
  .article .body{font-size:15px}
  .stat b{font-size:24px}
  .admin-menu{overflow-x:auto;scrollbar-width:none;border-radius:var(--radius)}
  .admin-menu::-webkit-scrollbar{display:none}
  .admin-menu a{border-left:none;border-bottom:3px solid transparent;padding:11px 15px}
}

/* ============================================================
   手机（≤720px）
   ============================================================ */
@media(max-width:720px){
  :root{--gutter:14px;--hd-h:58px}
  body{font-size:14.5px;line-height:1.72}
  .topbar .wrap>span:first-child{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .wrap{height:30px}
  .header .wrap{height:var(--hd-h);gap:10px}
  .logo .seal{width:36px;height:36px;font-size:12px;letter-spacing:1px}
  .logo h1{font-size:15px;letter-spacing:.2px}
  .logo small{font-size:9px;letter-spacing:.8px}
  .hdr-acts{gap:6px}
  .nav>a{height:var(--hd-h)}
  .mobile-nav a{padding:14px 18px;font-size:15px}
  .mobile-nav a.sub{padding-left:36px;font-size:14px}

  .section{margin:22px auto}
  .sec-hd{margin-bottom:12px;padding-bottom:8px}
  .sec-hd h3{font-size:17.5px;gap:8px}
  .sec-hd h3::before{width:3px;height:16px}
  .sec-hd .more{font-size:12px}
  .panel{padding:16px}
  .mod-card{padding:18px 16px;border-top-width:3px}
  .mod-card h4{font-size:15.5px}
  .tool-card{padding:15px 14px;gap:12px}

  /* 轮播：文字不压边、按钮可点 */
  .slides{height:200px}
  .slide .inner{padding:0 var(--gutter)}
  .slide h2{font-size:19px;letter-spacing:.5px;line-height:1.45}
  .slide p{font-size:12.5px;margin-top:6px;line-height:1.6;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .slide .btn{margin-top:14px;min-height:34px;font-size:13px}
  .dots{bottom:10px;gap:6px}
  .dots i{width:20px;height:4px}

  /* 公告条 */
  .notice-bar .wrap{height:42px;gap:8px}
  .notice-bar .marquee,.notice-bar .marquee-inner{height:42px}
  .notice-bar .marquee-inner{line-height:42px}
  .notice-bar a{font-size:13px}

  /* 资讯列表 */
  .news-item{padding:13px 2px;gap:10px}
  .news-item h4{font-size:14.5px}
  .news-item p{font-size:12.5px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  /* 筛选栏：整行堆叠，点击区更大 */
  .filter-bar{gap:8px}
  .filter-bar input[type=text],.filter-bar input[type=number],.filter-bar select{flex:1 1 100%;width:100%;min-width:0;max-width:none!important}
  .form input[type=text],.form input[type=password],.form input[type=number],.form select,.form textarea,
  .filter-bar input[type=text],.filter-bar select,.lg-row input{min-height:44px;font-size:15px}
  .grid2,.grid4{grid-template-columns:1fr}

  /* 按钮：主操作整行更好按 */
  .acts{gap:8px;flex-wrap:wrap}
  .acts .btn{flex:1 1 auto}
  .btn{min-height:40px}

  /* 表格 → 卡片 */
  .tb tr{margin-bottom:10px;padding:6px 0;box-shadow:0 1px 2px rgba(22,40,72,.04)}
  .tb td{padding:7px 13px;font-size:13.5px;line-height:1.6;align-items:flex-start;text-align:right;gap:10px}
  .tb td::before{min-width:76px;flex-shrink:0;text-align:left;color:#8A9099;font-size:12px;line-height:1.9}
  .tb td[colspan]{display:block;text-align:left}

  /* 单招院校卡：收起时仅一行 = 代号 + 校名 + 类别标签，年份列隐藏（展开详情可见） */
  .dan-code{font-size:12px;color:#8A9099;font-weight:400;margin-right:7px;font-variant-numeric:tabular-nums}
  .tb tr.dan-p{display:flex;align-items:center;gap:8px;padding:13px 14px}
  .tb tr.dan-p td{display:block;padding:0;border:none;text-align:left;flex:1;min-width:0;line-height:1.5}
  .tb tr.dan-p td::before{content:none}
  .tb tr.dan-p td.dan-yr{display:none}
  .tb tr.dan-p td.dan-cat{flex:none}
  .tb tr.dan-p + tr td[colspan]{padding:0}

  /* 文章 */
  .article{padding:20px 16px}
  .article h1{font-size:19px;line-height:1.6}
  .article .body{font-size:15px;line-height:1.9}
  .article .art-meta{gap:10px;font-size:12px}

  .page-hd{padding:26px 0;margin-bottom:18px}
  .page-hd h2{font-size:20px;letter-spacing:1px}
  .page-hd p{font-size:12.5px}

  /* 统计卡 2 列 */
  .stat-grid{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:16px 10px}
  .stat b{font-size:22px}
  .stat span{font-size:12px;line-height:1.5}

  /* 答题 */
  .quiz-item{padding:16px}
  .quiz-item h4{font-size:15px;line-height:1.7}
  .quiz-item .opt{padding:12px 13px;font-size:14.5px}
  .qnav{width:38px;height:38px;font-size:13.5px}
  .qnav-box{gap:6px}
  .exam-card{padding:15px}
  .exam-card h4{font-size:15px}

  /* 后台菜单横向滚动常驻 */
  .admin-body{gap:12px}
  .admin-menu{position:sticky;top:calc(var(--hd-h) + 6px);z-index:20;display:flex;overflow-x:auto;
    box-shadow:0 4px 12px rgba(22,40,72,.08)}
  .admin-menu a{white-space:nowrap;border-bottom-width:3px}

  /* 登录弹窗 */
  .login-mask{padding:12px;align-items:flex-start;padding-top:12vh}
  .login-box{padding:24px 18px 18px}
  .login-tt{font-size:19px}
  .login-sub{margin:4px 0 18px;font-size:12.5px}

  /* 页脚 */
  .footer{margin-top:36px}
  .footer .wrap{padding:28px var(--gutter) 20px}
  .footer .cols{grid-template-columns:1fr;gap:20px;padding-bottom:18px}
  .footer h5{font-size:14px;margin-bottom:10px}
  .footer .btm{font-size:11.5px;line-height:2}

  /* 志愿填报工作台 */
  .bench-hd{gap:10px}
  .bench-tabs{width:100%}
  .bench-tabs .bt{flex:1;padding:10px 8px;text-align:center}
  .chip-row .cl{width:100%}
  .confirm-tb td{padding:10px 12px;font-size:14px}
  .zyt-side{max-height:none}
  .zyt-side .zyt-list{max-height:46vh}
}

/* ============================================================
   小屏手机（≤420px）
   ============================================================ */
@media(max-width:420px){
  .logo small{display:none}
  .slide h2{font-size:17px}
  .slide p{display:none}
  .stat-grid{grid-template-columns:1fr 1fr;gap:8px}
  .stat b{font-size:20px}
  .tb td::before{min-width:66px}
  .qnav{width:36px;height:36px}
}

/* ---------- 无障碍 / 动效偏好 ---------- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
a:focus-visible,button:focus-visible{outline:2px solid rgba(30,94,184,.55);outline-offset:2px}

/* ---------- 顶栏用户状态胶囊 ---------- */
.u-chip{display:inline-flex;align-items:center;gap:7px;background:#FDF2F2;border:1px solid #F6DADA;
  color:var(--red);border-radius:999px;padding:4px 12px 4px 6px;font-size:13px;max-width:230px}
.u-chip .u-av{width:22px;height:22px;border-radius:50%;background:#fff;display:inline-flex;
  align-items:center;justify-content:center;font-size:12px;flex-shrink:0}
.u-chip .u-nm{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u-chip .u-ph{color:#A9706F;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.u-out{font-size:12.5px;color:#999;white-space:nowrap}
.u-out:hover{color:var(--red)}
@media(max-width:900px){
  .u-chip{max-width:168px;padding:3px 10px 3px 5px;font-size:12.5px}
  .u-chip .u-ph{display:none}
}
@media(max-width:420px){
  .u-chip .u-nm{max-width:74px}
  .u-out{display:none}
}

/* ---------- 修复：顶栏欢迎语 nowrap 撑宽页面 ---------- */
.topbar .wrap>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .links{flex-shrink:0}
@media(max-width:720px){
  body{overflow-x:hidden}
  .topbar .links a{padding:0 6px}
}

/* ---------- 模块二级页两栏：功能服务·模考（左，主栏） | 政策资讯+通知公告（右，侧栏） ---------- */
.mod2{display:grid;grid-template-columns:7.2fr 4.8fr;gap:20px;align-items:start}
.mod2>.panel,.mod2 .mod-side{min-width:0}
.mod2 .mod-side .panel+.panel{margin-top:20px}
.mod2 .mod-main{padding-bottom:6px}
/* 功能服务大卡片：第102轮重排 —— 自适应均匀网格，标题最多两行，卡高统一 */
.mod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:13px}
.svc-card{position:relative;display:flex;align-items:center;gap:13px;padding:14px 16px;min-height:76px;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.svc-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue);opacity:0;transition:opacity .18s ease}
.svc-card:hover::before{opacity:1}
.svc-card .ic{flex:none;width:46px;height:46px;font-size:23px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--blue-bg)}
.svc-card:nth-child(4n+2) .ic{background:var(--orange-bg)}
.svc-card:nth-child(4n+3) .ic{background:#FDECEC}
.svc-card:nth-child(4n) .ic{background:#E8F5EE}
.svc-card .tx{flex:1;min-width:0}
.svc-card .tx h5{font-size:14.5px;color:var(--ink);margin:0 0 3px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.svc-card .tx p{font-size:12.5px;color:var(--ink2);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svc-card .arr{flex:none;color:var(--ink3);font-size:20px;line-height:1;transition:transform .18s ease,color .18s ease}
.svc-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(30,60,110,.12);border-color:var(--blue)}
.svc-card:hover .arr{transform:translateX(3px);color:var(--blue)}
.svc-count{font-size:12px;color:var(--ink2);font-weight:400;margin-left:10px}
/* 后台：模块与功能服务管理 */
.mod-man{border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin-bottom:14px;background:#fff}
.mod-man .mm-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.mod-man .mm-hd b{font-size:15px;color:var(--ink)}
.mod-man .mm-pg{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;padding:8px 12px;background:var(--blue-bg);border-radius:6px}
.mod-man .mm-pg b{font-size:13px;color:var(--ink)}
.mod-man .mm-pg a{font-size:12.5px}
@media(max-width:1000px){
  .mod2{grid-template-columns:1fr;gap:16px}
}
@media(max-width:720px){
  .mod-grid{gap:10px}
  .svc-card{padding:12px 13px;min-height:66px}
  .svc-card .ic{width:40px;height:40px;font-size:20px}
  .svc-card .tx h5{font-size:13.5px}
  .svc-card .tx p{font-size:11.5px}
}
@media(max-width:480px){
  .mod-grid{grid-template-columns:1fr}
}

/* ---------- 考研资讯 · 2026年研究生招生计划查询 ---------- */
.gs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gs-card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px 16px;text-decoration:none;display:block;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.gs-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(30,60,110,.12);border-color:var(--blue)}
.gs-card .gs-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.gs-card .gs-top b{font-size:15px;color:var(--ink)}
.gs-card .gs-loc{flex:none;font-size:12px;color:var(--ink3)}
.gs-card .gs-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px;min-height:22px}
.gs-card .gs-tags .tag{font-size:11px}
.gs-card .gs-stat{font-size:12.5px;color:var(--ink2)}
.gs-head{margin-bottom:20px}
.gs-headrow{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:center}
.gs-nums{display:flex;gap:26px}
.gs-nums>div{text-align:center}
.gs-nums b{display:block;font-size:24px;color:var(--red);font-variant-numeric:tabular-nums}
.gs-nums span{font-size:12px;color:var(--ink3)}
.gpd{padding:4px 2px}
.gpd-sec{margin-bottom:12px}
.gpd-sec>b{display:block;font-size:13.5px;color:var(--ink);margin-bottom:8px}
.g-subjs{display:flex;flex-wrap:wrap;gap:6px}
.g-subj{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:var(--blue-bg);border-radius:5px;font-size:12.5px;color:var(--ink)}
.g-subj b{color:var(--blue);font-weight:600}
.g-scheme{display:flex;align-items:flex-start;gap:8px;margin-bottom:6px}
.g-scheme>b{flex:none;font-size:12.5px;color:var(--red);padding-top:5px}
.gpd-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.gpd-row>td{background:#FAFBFD}
.gpd-row table.tb{margin:8px 0}
@media(max-width:1000px){.gs-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.gs-grid{grid-template-columns:1fr}.gs-nums{gap:16px}}

/* 考研查询：点院校名称 → 招录信息就地展开在该院校下方 */
.gs-card .gs-stat{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gs-more{flex:none;font-size:12px;color:var(--blue);font-weight:600;white-space:nowrap}
.gs-item{min-width:0}
.gs-item.open{grid-column:1/-1}
.gs-item.open>.gs-card{border-radius:10px 10px 0 0;border-color:var(--red);border-bottom-color:transparent;
  box-shadow:none;background:#FFFDFD;transform:none}
.gs-item.open>.gs-card:hover{transform:none;box-shadow:none}
.gs-card.on .gs-top b{color:var(--red)}
.gs-exp{border:2px solid var(--red);border-top:0;border-radius:0 0 10px 10px;margin:0 0 2px;background:#fff}

/* ---------- 外嵌系统页（学习升学测评平台 iframe） ---------- */
.embed-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.embed-wrap{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(30,60,110,.08);overflow:hidden;height:calc(100vh - 250px);min-height:600px;position:relative}
.embed-wrap iframe{width:100%;height:100%;border:0;display:block;background:#fff}
/* 测评系统加载骨架：iframe 就绪前给家长/考生明确反馈，避免「点开没反应」的卡顿感 */
.embed-skel{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:linear-gradient(160deg,#F6F9FE,#EEF4FB);color:var(--ink2,#445266);font-size:15px;font-weight:600;pointer-events:none;z-index:2}
.embed-skel span{font-size:12px;font-weight:400;color:var(--ink3,#8A97A8)}
.embed-skel-ic{font-size:40px;animation:embedPulse 1.4s ease-in-out infinite}
@keyframes embedPulse{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.12);opacity:1}}
@media(max-width:720px){
  .embed-wrap{height:calc(100vh - 210px);min-height:480px;border-radius:8px}
}

/* ================= 第40轮：模考按科目分类 / 题号+作答内容 / 分段题干 ================= */
/* 题干与选项保留表格分段 */
.q-stem{white-space:pre-wrap;word-break:break-word;line-height:1.95;font-size:16px}
.q-stem br{content:"";display:block;margin:2px 0}
.opt-t{display:block;white-space:pre-wrap;line-height:1.8;padding-right:56px;word-break:break-word}
.opt{position:relative}
.opt-multi{position:absolute;right:12px;top:12px;font-size:11.5px;color:#9aa6bf;border:1px solid #e3eaf7;border-radius:4px;padding:0 5px;background:#f7faff}
/* 多空填空 */
.blank-hint{margin:0 0 10px;font-size:12.5px;color:#6b7896;background:#f5f9ff;border:1px solid #e6eefb;border-radius:6px;padding:7px 10px}
.blank-hint b{color:var(--red)}
.blank-row{margin-bottom:10px}
.blank-row label{display:block;font-size:12.5px;color:#5d6b85;margin-bottom:5px;font-weight:600}
.short-n{float:right;font-size:12px;color:#9aa6bf;font-weight:400}
/* 作答页：科目页签 */
.subj-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.subjtab .subj-done{margin-left:6px;font-size:11.5px;opacity:.75}
/* 科目分类页 */
.exam-subj-wrap{padding:20px 22px}
.exam-subj-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.exam-subj-hd b{font-size:13px;color:#5d6b85;font-weight:600}
.subj-mods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.subj-mod{border:1px solid #e6edfb;border-radius:12px;padding:16px 16px 14px;background:#fff;cursor:pointer;
  transition:border-color .18s,box-shadow .18s,transform .18s;position:relative;overflow:hidden}
.subj-mod:hover{border-color:#bcd6ff;box-shadow:0 10px 24px rgba(26,123,224,.12);transform:translateY(-2px)}
.subj-mod.done{border-color:#bfe6cf;background:#f7fdf9}
.sm-hd{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.sm-hd b{font-size:18px;color:#10203c}
.sm-n{font-size:12.5px;color:#8a94ad}
.sm-bar{height:6px;border-radius:99px;background:#eef3fb;margin:12px 0 8px;overflow:hidden}
.sm-bar i{display:block;height:100%;background:linear-gradient(90deg,#41a8ff,#1a7be0);border-radius:99px}
.subj-mod.done .sm-bar i{background:linear-gradient(90deg,#34c759,#1f9d4d)}
.sm-meta{font-size:12.5px;color:#6b7896}
.sm-meta b{color:#1a7be0}
.sm-go{margin-top:10px;font-size:12.5px;color:var(--blue);font-weight:600}
.subj-detail{margin-top:18px;border-top:1px dashed #e6edfb;padding-top:16px}
.sd-empty{margin:0;font-size:13px;color:#9aa6bf;text-align:center;padding:14px 0}
.sd-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.sd-hd b{font-size:15px;color:#10203c}
.sd-hd span{font-size:12.5px;color:#6b7896}
.ans-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ans-row{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #eef2fa;border-radius:9px;
  background:#fcfdff;text-decoration:none;color:inherit;min-width:0;transition:border-color .16s,background .16s}
.ans-row:hover{border-color:#bcd6ff;background:#f6faff}
.ans-row.on{background:#f6fbff;border-color:#d8e9ff}
.ar-no{flex:none;width:26px;height:26px;border-radius:7px;background:#eef3fb;color:#5d6b85;font-size:12.5px;
  font-weight:700;display:grid;place-items:center}
.ans-row.on .ar-no{background:#1a7be0;color:#fff}
.ar-type{flex:none;font-size:11.5px;color:#8a94ad;border:1px solid #e9eefa;border-radius:4px;padding:0 4px}
.ar-stem{flex:1;min-width:0;font-size:12.5px;color:#5d6b85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ar-ans{flex:none;font-size:12.5px;color:#9aa6bf;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ans-row.on .ar-ans{color:#1a7be0;font-weight:600}
.sd-tip{margin:12px 0 0;font-size:12px;color:#9aa6bf;line-height:1.8}
@media(max-width:1000px){
  .subj-mods{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ans-rows{grid-template-columns:1fr}
}
@media(max-width:640px){
  .exam-subj-wrap{padding:14px}
  .subj-mods{grid-template-columns:1fr}
  .q-stem{font-size:15px;line-height:1.9}
  .opt-t{padding-right:0}
  .sm-hd b{font-size:16px}
}

/* ============================================================
   范围切换（答题页 / 科目分类页 / 成绩单 / 错题本 每页都有）
   ============================================================ */
.range-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #e6edfb;
  border-radius:12px;padding:10px 12px;margin:12px 0}
.range-bar .rb-lb{font-size:13px;font-weight:700;color:#10203c;flex:none}
.range-bar .rb-tip{font-size:12px;color:#8a94ad;margin-left:auto;line-height:1.5}
.range-bar .rb-tip b{color:#C7000B}
.range-btn{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;border:1px solid #e2e9f6;
  background:#f8faff;color:#31405c;border-radius:9px;padding:6px 12px;font-size:13px;font-weight:600;
  cursor:pointer;line-height:1.3;font-family:inherit;transition:border-color .16s,background .16s,box-shadow .16s,color .16s}
.range-btn i{font-style:normal;font-size:11px;font-weight:400;color:#8a94ad}
.range-btn:hover{border-color:#bcd6ff;background:#f2f7ff}
.range-btn.on{background:linear-gradient(135deg,#C7000B,#e0393f);border-color:#C7000B;color:#fff;box-shadow:0 6px 14px rgba(199,0,11,.18)}
.range-btn.on i{color:rgba(255,255,255,.85)}

/* 分数积分面板：整卷总分 + 单科分数 */
.score-panel{background:#fff;border:1px solid #e6edfb;border-radius:14px;padding:16px 18px;margin:0 0 16px;
  box-shadow:0 6px 18px rgba(16,32,60,.04)}
.sp-hd{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.sp-hd h3{font-size:16px;margin:0;color:#10203c}
.sp-hd span{font-size:12.5px;color:#8a94ad}
.sp-hd span b{color:#C7000B;font-size:14px}
.sp-total{display:flex;align-items:baseline;gap:8px;padding-bottom:12px;border-bottom:1px dashed #e6edfb;margin-bottom:12px}
.sp-total b{font-size:38px;line-height:1;color:#C7000B;font-weight:800;font-variant-numeric:tabular-nums}
.sp-total span{font-size:15px;color:#6b7896;font-weight:600}
.sp-total em{font-style:normal;font-size:12px;color:#8a94ad;margin-left:auto;align-self:center;
  background:#fff6f6;color:#C7000B;border-radius:99px;padding:4px 10px;font-weight:600}
.sp-subs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sp-sub{border:1px solid #eef2fa;border-radius:10px;padding:10px 12px;background:#fcfdff;min-width:0}
.sp-sub-hd{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.sp-sub-hd b{font-size:15px;color:#10203c}
.sp-sub-hd span{font-size:13px;color:#C7000B;font-weight:700;white-space:nowrap}
.sp-sub-hd i{font-style:normal;font-variant-numeric:tabular-nums}
.sp-bar{height:6px;border-radius:99px;background:#eef3fb;margin:8px 0 6px;overflow:hidden}
.sp-bar i{display:block;height:100%;background:linear-gradient(90deg,#1a7be0,#5aa9f7);border-radius:99px;transition:width .3s}
.sp-meta{font-size:12px;color:#6b7896}

/* 错题本按科目分类 */
.wrong-grp{margin-bottom:22px}
.wg-hd{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:8px 12px;border-left:4px solid #C7000B;
  background:#fff6f6;border-radius:0 8px 8px 0;flex-wrap:wrap}
.wg-hd b{font-size:16px;color:#10203c}
.wg-n{font-size:12.5px;color:#C7000B;font-weight:600}
.ar-pt{font-size:11.5px;color:#8a94ad;flex:none;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}

@media(max-width:900px){
  .sp-subs{grid-template-columns:1fr}
}
@media(max-width:640px){
  .range-bar{padding:9px 10px;gap:6px}
  .range-bar .rb-tip{margin-left:0;width:100%}
  .range-btn{padding:6px 9px;font-size:12.5px}
  .sp-total b{font-size:32px}
  .score-panel{padding:14px}
  .wg-hd .btn{margin-left:0 !important}
}

/* ============================================================
   答题卡题号：卷面原题号 + 科目配色（语文红/数学蓝/英语绿/其他灰）
   分卷(单科范围)与总卷(全卷范围)同一套题号规则，切换为局部更新不卡顿
   ============================================================ */
.qnav{--c:#8a94ad;--cd:#5b657c}
.qn-c0{--c:#C7000B;--cd:#8f0008}
.qn-c1{--c:#1a7be0;--cd:#0f5cb0}
.qn-c2{--c:#1f9d4d;--cd:#146f36}
.qn-c3{--c:#6b7896;--cd:#49536b}
.qnav{border-color:var(--c);color:var(--c);font-weight:600}
.qnav:hover{background:#f6f9ff}
.qnav.done{background:var(--c);border-color:var(--c);color:#fff}
.qnav.on{background:var(--cd);border-color:var(--cd);color:#fff;box-shadow:0 3px 8px rgba(16,32,60,.22);transform:scale(1.1)}
.subj-dot{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;vertical-align:1px;background:var(--c)}
.subjtab .subj-dot{margin-right:4px}
.ar-no.qn-c0{color:#C7000B;border-color:#f3c2c5;background:#fff5f5}
.ar-no.qn-c1{color:#1a7be0;border-color:#bcd6ff;background:#f5faff}
.ar-no.qn-c2{color:#1f9d4d;border-color:#bfe6cf;background:#f6fdf9}
.ar-no.qn-c3{color:#6b7896;border-color:#dde3ee;background:#f8fafd}

/* 分卷答题卡：其他科目题号灰显虚线框（保留科目色相），点击自动切换到该科目 */
.qnav.mut{opacity:.32;border-style:dashed;cursor:pointer}
.qnav.mut:hover{opacity:.75}
.qnav.mut.done{background:var(--c);border-color:var(--c);color:#fff}

/* ============================================================
   全站悬浮「‹ 返回上一页」键：首页自动隐藏，其余每一级页面都显示
   ============================================================ */
/* 第320轮：返回键重设计（渐变胶囊+圆形箭头徽章+拖动把手，与专家版同款）+ 可上下拖动 */
#gBackBtn{position:fixed;right:var(--fab-clip, 0px);top:52%;z-index:960;display:none;align-items:center;gap:7px;
  height:46px;padding:0 18px 0 10px;border:none;border-radius:24px 0 0 24px;cursor:pointer;
  background:linear-gradient(135deg,#E53943 0%,#C7000B 52%,#9B0007 100%);color:#fff;
  font-size:15px;font-weight:700;font-family:inherit;letter-spacing:2px;
  box-shadow:-4px 6px 16px rgba(170,10,10,.38),inset 0 1px 0 rgba(255,255,255,.30),inset -1px -1px 0 rgba(0,0,0,.12);
  transition:box-shadow .18s,filter .18s;touch-action:none;user-select:none;-webkit-user-select:none;
  -webkit-tap-highlight-color:transparent}
#gBackBtn .gbk-ic{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.26);box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
  display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1;font-weight:600;padding-right:3px;flex-shrink:0}
#gBackBtn .gbk-grip{display:flex;flex-direction:column;gap:2px;flex-shrink:0}
#gBackBtn .gbk-grip i{width:12px;height:1.5px;border-radius:1px;background:rgba(255,255,255,.55)}
#gBackBtn:hover{filter:brightness(1.06);box-shadow:-4px 6px 18px rgba(170,10,10,.44),inset 0 1px 0 rgba(255,255,255,.30)}
#gBackBtn:active{filter:brightness(1.1)}
@media(max-width:640px){#gBackBtn{height:42px;padding:0 14px 0 8px;font-size:14px;letter-spacing:1px}
  #gBackBtn .gbk-ic{width:21px;height:21px;font-size:15px}
  #gBackBtn .gbk-grip i{width:10px}}

/* ============================================================
   手机端全面优化（≤720px / ≤480px）：字号、换行、留白、栅格
   ============================================================ */
@media(max-width:720px){
  /* 全局排版：稍大正文 + 更舒展行高，长词/链接可断行不撑破布局 */
  body{font-size:15px;line-height:1.65;-webkit-text-size-adjust:100%}
  h2{font-size:20px !important}
  h3{font-size:16px}
  .wrap{padding-left:12px;padding-right:12px}
  .section{margin:18px 0}
  .panel{padding:14px}
  /* 长英文/数字/链接断行，防止横向溢出 */
  .q-stem,.opt-t,.explain,.ar-stem,.ans-row,.sd-tip,.p-explain,.article p,.article li,.tool-card p,
  .news-item,.notice-bar,.marquee-inner,.mod-card p,.sp-meta,.wg-hd,.range-bar,.crumbs{
    overflow-wrap:anywhere;word-break:break-word}
  /* 首页：热门工具/模块 2 列更紧凑，卡片文字两行截断 */
  .module-grid,.tool-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .tool-card{padding:11px 10px;gap:8px}
  .tool-card .ic{width:34px;height:34px;font-size:17px;flex:none}
  .tool-card h5{font-size:13.5px;line-height:1.35}
  .tool-card p{font-size:11.5px;color:var(--ink3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
  .mod-card{padding:14px 12px}
  .mod-card h4{font-size:15px}
  .mod-card p{font-size:12px}
  .mod-card .cnt{font-size:11px}
  /* 头图与公告栏 */
  .slides{height:190px}
  .slide h2{font-size:19px}
  .slide p{font-size:12.5px}
  .notice-bar{font-size:13px;padding:8px 0}
  /* 题号答题卡与题区 */
  .qnav{width:30px;height:30px;font-size:12px;border-radius:5px}
  .qnav-box{gap:5px}
  .quiz-item{padding:14px 13px}
  .q-stem{font-size:15px;line-height:1.7}
  .opt{padding:10px 12px}
  .opt-t{font-size:14px;line-height:1.65}
  .blank-row{flex-wrap:wrap}
  .blank-row input{width:100%;margin-top:4px}
  textarea{font-size:14px}
  /* 范围条 / 成绩 / 错题本 */
  .range-bar .rb-lb{font-size:12px}
  .range-btn{flex:1 1 21%;min-width:0;padding:6px 7px;font-size:12.5px;text-align:center;align-items:center}
  .range-btn i{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sp-total b{font-size:30px}
  .sp-sub{padding:9px 10px}
  .sp-sub-hd b{font-size:14px}
  .wg-hd{font-size:14px}
  .wg-hd .btn{width:100%;margin-top:6px}
  .ans-row{font-size:13px}
  .ar-ans{max-width:38%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ar-pt{display:none}
  /* 表格：小屏缩小字号，仍可横向滚动 */
  table.tb{font-size:12.5px}
  table.tb th,table.tb td{padding:8px 7px}
  /* 统计栅格 / 面包屑 / 页脚 */
  .stat-grid{gap:10px}
  .crumbs{font-size:12px}
  .footer .cols{grid-template-columns:1fr}
  .btn{font-size:13.5px}
  .btn-sm{font-size:12.5px;padding:6px 10px}
}
@media(max-width:480px){
  .tool-card h5{font-size:13px}
  .sp-subs{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr 1fr}
  /* 范围条四键一行：窄屏再压缩 */
  .range-bar{padding:8px 8px}
  .range-bar .rb-lb{font-size:11px}
  .range-btn{padding:5px 4px;font-size:12px;border-radius:8px}
  .range-btn i{font-size:9.5px}
}

/* ---------- 第50轮：辅助作答（图片/语音）+ 多问简答 ---------- */
.ans-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:9px 12px;background:#F8FAFD;border:1px dashed #D9E4F2;border-radius:8px}
.at-lb{font-size:13px;color:var(--ink2)}
.at-tip{font-size:12px;color:var(--ink3)}
.ans-imgs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.ans-img-wrap{position:relative;display:inline-block}
.ans-img{width:76px;height:76px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#eee);cursor:zoom-in;background:#fff}
.ans-img-x{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;font-size:11px;font-style:normal;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.blank-row-ta{align-items:flex-start}
.blank-row-ta textarea{flex:1;min-width:0}
@media(max-width:720px){
  .ans-img{width:64px;height:64px}
  .at-tip{width:100%}
}

/* ---------- 第49轮：题库双模块（单招题库/高考题库） ---------- */
.bank-mod{border:1px solid var(--line,#eee);border-radius:12px;overflow:hidden;margin-bottom:4px}
.bm-hd{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(135deg,#FFF7F2,#FDF0E9);border-bottom:1px solid #F5E3D5}
.bank-mod + .bank-mod .bm-hd,.bank-mod.gk .bm-hd{background:linear-gradient(135deg,#F2F7FF,#E9F1FC);border-bottom-color:#DCE8F7}
.bm-ic{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.06);flex:none}
.bm-tt{display:flex;flex-direction:column;min-width:0}
.bm-tt b{font-size:15.5px;color:var(--ink,#333)}
.bm-tt span{font-size:12.5px;color:var(--ink3,#999);margin-top:2px}
.bank-mod .table-box{border:none;border-radius:0}
/* 高考题库按科目划分的子分组 */
.gk-sub{padding:10px 14px 4px;border-bottom:1px dashed var(--line,#eee)}
.gk-sub:last-child{border-bottom:none}
.gk-sub-hd{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.gk-sub-hd .tag{font-size:12.5px;padding:2px 10px}
.gk-sub-hd span:last-child{font-size:12.5px;color:var(--ink3,#999)}
.gk-sub .table-box{border:1px solid #F0F0F0;border-radius:8px}
@media(max-width:720px){
  .gk-sub{padding:8px 10px 2px}
}
/* 宽表格（省控线/一分一段）手机端保持表格+横向滚动，不转卡片 */
@media(max-width:720px){
  .tb-wide thead{display:table-header-group}
  .tb-wide tr{display:table-row;background:#fff;margin:0;border:none;border-radius:0;padding:0}
  .tb-wide td{display:table-cell;justify-content:normal;border-bottom:1px solid #F0F0F0;padding:9px 8px}
  .tb-wide td::before{content:none}
  .tb-wide td.em{white-space:nowrap}
}
@media(max-width:720px){
  .bm-hd{padding:10px 12px}
  .bm-ic{width:32px;height:32px;font-size:17px}
  .bm-tt b{font-size:14.5px}
  .bm-tt span{font-size:12px}
}

/* ---------- 登录方式切换（手机号 / 邮箱，云端账号） ---------- */
.lg-tabs{display:flex;gap:8px;margin:-6px 0 16px}
.lg-tab{flex:1;padding:9px 0;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:14px;color:var(--ink2);cursor:pointer;transition:.15s}
.lg-tab:hover{border-color:var(--red);color:var(--red)}
.lg-tab.on{border-color:var(--red);color:#fff;background:var(--red);font-weight:600}

/* ---------- 手机端题库：卡片只保留试卷名与操作，隐藏分类/年份/形式 ---------- */
@media (max-width:720px){
  .tb .bk-x{display:none !important}
}

/* ---------- 后台题库编辑：公式符号工具条（第63轮） ---------- */
.sym-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; padding: 8px 10px; background: var(--blue-bg, #F0F6FF); border-radius: 8px; }
.sym-lb { font-size: 12px; color: var(--ink2); font-weight: 600; margin-right: 4px; }
.sym-btn { min-width: 30px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink); }
.sym-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 富文本题干编辑器（第64轮，第97轮重排工具条 + 段落排版） ---------- */
.rte-wrap { margin: 6px 0 10px; }
.rte-bar { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; background: #F5F7FA; border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; }
.rte-row { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.rte-row + .rte-row { border-top: 1px dashed #E1E7F0; padding-top: 4px; }
.rte-lb { font-size: 11.5px; color: var(--ink3); margin-right: 2px; letter-spacing: .5px; flex: none; }
.rte-btn { min-width: 28px; height: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; font-size: 13px; line-height: 1; color: var(--ink); font-family: inherit; }
.rte-btn:hover { background: #E8EEF7; border-color: var(--line); }
.rte-btn.b { font-weight: 700; } .rte-btn.i { font-style: italic; font-family: Georgia, serif; } .rte-btn.u { text-decoration: underline; } .rte-btn.s { text-decoration: line-through; }
.rte-btn sup { font-size: 10px; } .rte-btn sub { font-size: 10px; }
/* 段落排版按钮：文字标签，老师一眼能认 */
.rte-btn.al { min-width: 46px; font-size: 12px; }
.rte-btn.ind { min-width: 74px; font-size: 12px; }
.rte-sym { min-width: 26px; font-size: 13px; }
.rte-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; flex: none; }
.rte-dot:hover { transform: scale(1.15); }
.rte-bar select { height: 26px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 12px; color: var(--ink); }
.rte-sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; flex: none; }
/* 单题「保存本题」大按钮：醒目易点 */
.eq-save-big { flex: 1; max-width: 320px; min-height: 46px; border: none; border-radius: 10px; background: linear-gradient(135deg, #D93025, #B3261E); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 1px; cursor: pointer; box-shadow: 0 3px 10px rgba(217,48,37,.35); transition: .15s; }
.eq-save-big:hover { filter: brightness(1.08); transform: translateY(-1px); }
.eq-save-big:active { transform: translateY(0); }
.rte { min-height: 64px; max-height: 320px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: #fff; font-size: 14px; line-height: 1.7; color: var(--ink); outline: none; word-break: break-word; }
.rte:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26,115,232,.12); }
.rte:empty::before { content: attr(data-ph); color: #9AA6B5; pointer-events: none; }
.rte > div { min-height: 1.7em; }
.rte-inline { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.rte-inline .rte { min-height: 38px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); flex: 1; }

/* ---------- 单招院校/专业查询（第66轮） ---------- */
.dan-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; color: var(--ink2); transition: .15s; user-select: none; }
.dan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dan-chip i { font-style: normal; font-size: 11px; background: rgba(0,0,0,.06); border-radius: 999px; padding: 0 6px; line-height: 16px; color: var(--ink3); }
.dan-chip.on i { background: var(--blue); color: #fff; }
.dan-chip input { accent-color: var(--blue); margin: 0; cursor: pointer; }
.dan-chip:hover { border-color: var(--blue); color: var(--blue); }
.dan-chip.on { border-color: var(--blue); background: var(--blue-bg, #F0F6FF); color: var(--blue); font-weight: 600; }
.dan-chip-off { opacity: .45; cursor: not-allowed; }
.dan-cat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.dan-cat:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); }
.dan-cat b { font-size: 14px; color: var(--ink); }
.dan-cat span { font-size: 12px; color: var(--ink3); }
.tb tr.on td { background: #F0F6FF; }

/* ---------- 首页热门工具：简洁卡片（第66/67轮） ---------- */
.tool-grid { gap: 14px; }
.tool-card { padding: 16px 16px 14px; gap: 10px; position: relative; align-items: center; min-width: 0; }
.tool-card > div { min-width: 0; flex: 1; overflow: hidden; }
.tool-card .ic { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.tool-card h5 { font-size: 15px; margin-bottom: 2px; line-height: 1.3; }
.tool-card p { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.tool-card::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink3); opacity: .5; font-size: 18px; font-weight: 700; transition: .15s; }
.tool-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(3px); color: var(--blue); }

/* ============================================================
   首页四大模块卡 · 重设计（主题色顶条+渐变图标底+副标签+服务入口行）
   mc1 高考升学=政务红  mc2 高职分类=科技蓝  mc3 大学规划=暖橙  mc4 生涯测评=雅紫
   ============================================================ */
.mod-card{--mc:var(--blue);--mc-bg:#EAF2FB;--mc-rg:rgba(30,94,184,.12);
  position:relative;overflow:hidden;border-top:none;border-radius:16px;
  padding:26px 22px 18px;box-shadow:0 2px 14px rgba(30,60,120,.08);
  transition:transform .28s,box-shadow .28s}
.mod-card::before{content:"";position:absolute;left:0;top:0;right:0;height:5px;
  background:var(--mc);
  background:linear-gradient(90deg,var(--mc),color-mix(in srgb,var(--mc) 62%,#fff))}
.mod-card::after{content:"";position:absolute;right:-34px;top:-34px;width:120px;height:120px;
  border-radius:50%;background:var(--mc-rg);pointer-events:none}
.mod-card.mc1{--mc:var(--red);--mc-bg:#FDECEC;--mc-rg:rgba(199,0,11,.09)}
.mod-card.mc2{--mc:var(--blue);--mc-bg:#EAF2FB;--mc-rg:rgba(30,94,184,.10)}
.mod-card.mc3{--mc:var(--orange);--mc-bg:#FFF4E8;--mc-rg:rgba(245,130,32,.11)}
.mod-card.mc4{--mc:#7C5CC4;--mc-bg:#F1ECFA;--mc-rg:rgba(124,92,196,.10)}
.mod-card .ic{width:56px;height:56px;border-radius:16px;font-size:28px;
  background:var(--mc-bg);box-shadow:inset 0 0 0 1.5px var(--mc-rg);
  box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--mc) 22%,transparent);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;position:relative}
.mod-card h4{font-size:18px;font-weight:700;color:var(--ink);line-height:1.35;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.mod-card .mtag{font-style:normal;font-size:12px;font-weight:600;color:var(--mc);
  background:var(--mc-bg);border-radius:999px;padding:2.5px 10px;white-space:nowrap;
  box-shadow:inset 0 0 0 1px var(--mc-rg);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mc) 18%,transparent)}
.mod-card p{font-size:13px;color:var(--ink3);line-height:1.65;min-height:43px}
.mod-card .cnt{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line);
  display:flex;align-items:center;gap:7px;font-size:12.5px;position:relative}
.mod-card .cnt b{color:var(--ink2);font-weight:600}
.mod-card .cnt em{font-style:normal;font-size:12px;font-weight:600;color:var(--mc);
  background:var(--mc-bg);border-radius:999px;padding:1px 9px}
.mod-card .cnt .arr{margin-left:auto;font-size:18px;font-weight:700;color:var(--mc);
  transition:transform .25s;line-height:1}
.mod-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px var(--mc-rg),0 4px 12px rgba(30,60,120,.08)}
.mod-card:hover .cnt .arr{transform:translateX(5px)}
@media(min-width:721px){
  .module-grid{gap:20px}
}
/* 手机端：双列紧凑卡，图标缩小、简介两行截断，保持可识别 */
@media(max-width:720px){
  .module-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .mod-card{padding:14px 12px 12px;border-radius:14px}
  .mod-card::before{height:4px}
  .mod-card::after{width:80px;height:80px;right:-24px;top:-24px}
  .mod-card .ic{width:40px;height:40px;border-radius:12px;font-size:20px;margin-bottom:10px}
  .mod-card h4{font-size:15px;gap:6px;margin-bottom:2px}
  .mod-card .mtag{font-size:10.5px;padding:1.5px 7px}
  /* 手机端更简洁：隐藏简介（截断的省略号很乱）与「政策资讯·通知公告」折行文字 */
  .mod-card p{display:none}
  .mod-card .cnt b{display:none}
  .mod-card .cnt{margin-top:8px;padding-top:8px;font-size:11px;gap:5px;justify-content:space-between}
  .mod-card .cnt em{font-size:10.5px;padding:1px 7px}
  .mod-card .cnt .arr{font-size:15px;margin-left:0}
}
@media(max-width:360px){
  .mod-card h4{font-size:14px}
}

/* ---------- 单招题库桌面端：年份更突出 + 试卷名称显示全（手机端保持大徽标+精简名） ---------- */
.tb .bk-full{display:inline}
.tb tr.bk-on .bk-nm{display:none}
.tb td.bk-yr{font-size:19px;font-weight:800;color:var(--red);
  font-variant-numeric:tabular-nums;letter-spacing:.5px}
.tb td.bk-yr span{display:inline-block;background:#FDECEC;border-radius:8px;padding:2px 11px;line-height:1.35}
@media(max-width:720px){
  .tb .bk-full{display:none}
  .tb tr.bk-on .bk-nm{display:inline}
  .tb td.bk-yr{font-size:inherit;font-weight:inherit;color:inherit;letter-spacing:normal}
}

/* ---------- 升学课堂（原专业类视频学习，vs-） ---------- */
.vs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
/* 首页「升学课堂」区块：一行 4 张视频卡（第227轮） */
.home-vs{grid-template-columns:repeat(4,1fr);gap:14px}
.home-vs .vs-cover{height:110px}
@media(max-width:1100px){.home-vs{grid-template-columns:repeat(2,1fr)}}
.vs-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 12px rgba(30,60,120,.08);
  transition:transform .25s,box-shadow .25s;display:block}
.vs-card:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(30,60,120,.14)}
.vs-cover{position:relative;height:132px;background:linear-gradient(135deg,#2b3a55,#1E5EB8 60%,#3E7BD6);
  display:flex;align-items:center;justify-content:center}
.vs-card:nth-child(3n+2) .vs-cover{background:linear-gradient(135deg,#4a2b55,#7C5CC4 60%,#9B7FE0)}
.vs-card:nth-child(3n) .vs-cover{background:linear-gradient(135deg,#55341f,#C75B00 60%,#E68A3C)}
.vs-play{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--red);
  display:flex;align-items:center;justify-content:center;font-size:20px;padding-left:5px;
  box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .25s}
.vs-card:hover .vs-play{transform:scale(1.12)}
.vs-tag{position:absolute;top:10px;left:10px;font-size:11px;color:#fff;background:rgba(0,0,0,.35);
  border-radius:999px;padding:2px 9px;letter-spacing:1px}
.vs-body{padding:13px 14px 12px}
.vs-body h4{font-size:15.5px;font-weight:700;color:var(--ink);line-height:1.4;margin-bottom:5px}
.vs-body p{font-size:12.5px;color:var(--ink3);line-height:1.6;min-height:38px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vs-meta{font-size:11.5px;color:var(--ink3);display:block;margin-top:6px}
@media(max-width:720px){
  .vs-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .vs-cover{height:96px}
  .home-vs{gap:10px}
  .home-vs .vs-cover{height:96px}
  .vs-play{width:40px;height:40px;font-size:16px}
  .vs-body{padding:10px 11px 10px}
  .vs-body h4{font-size:13.5px}
  .vs-body p{font-size:11.5px;min-height:0;-webkit-line-clamp:1}
  .vs-meta{font-size:10.5px}
}

/* 视频卡：真实封面帧 + 时长角标 + 播放按钮层级 */
.vs-cover .vs-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.vs-cover .vs-play{z-index:2;position:relative}
.vs-cover .vs-tag{z-index:2}
.vs-dur{position:absolute;right:8px;bottom:8px;z-index:2;font-size:11px;color:#fff;
  background:rgba(0,0,0,.6);border-radius:5px;padding:1px 6px;font-variant-numeric:tabular-nums}
/* 播放页：兼容性提示 */
#vsWarn b{color:inherit}

/* ---------- 视频学习页：返回上一级按钮条 ---------- */
.vs-topbar{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.vs-back{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;
  color:var(--ink2);background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:7px 16px 7px 12px;box-shadow:0 1px 4px rgba(30,60,120,.06);transition:all .2s;line-height:1}
.vs-back:hover{color:var(--red);border-color:var(--red);background:#FFF7F7;transform:translateX(-2px)}
.vs-cnt{font-size:12.5px;color:var(--ink3)}
@media(max-width:720px){
  .vs-topbar{margin-bottom:12px;gap:10px}
  .vs-back{font-size:12.5px;padding:6px 14px 6px 10px}
  .vs-cnt{font-size:11.5px}
}

/* ---------- 试题编辑器增强（第95轮）：按钮态高亮 + 学员端效果预览 ---------- */
.rte-btn.on { background: #E3EDFB; border-color: #C3D9F7; color: var(--blue); box-shadow: inset 0 0 0 1px #C3D9F7; }
.rte-prev-box { margin: -4px 0 12px; border: 1px dashed #D9E2EE; border-radius: 8px; background: #FAFCFF; padding: 8px 12px 10px; }
.rte-prev-lb { display: inline-block; font-size: 11.5px; color: var(--ink3); margin-bottom: 4px; letter-spacing: .3px; }
.rte-prev { font-size: 14px; line-height: 1.75; color: var(--ink); word-break: break-word; }
.rte-prev img { max-width: 100%; height: auto; }
.rte-prev .rte-prev-empty { color: #9AA6B5; font-size: 12.5px; }
.rte-prev b, .rte-prev strong { font-weight: 700; }
.rte-prev u { text-decoration: underline; }
@media(max-width:720px){ .rte-bar{gap:2px;padding:5px 6px} .rte-btn{min-width:26px;padding:0 4px} }

/* ---------- 后台内容管理：分板块分组 + 上下调序（第103轮） ---------- */
.ngrp { margin-bottom: 6px; }
.ngrp + .ngrp { margin-top: 14px; }
.ngrp-hd { display: flex; align-items: center; gap: 9px; padding: 10px 4px 8px; border-bottom: 2px solid #EEF2F8; }
.ngrp-ic { width: 28px; height: 28px; border-radius: 8px; background: #E8F1FE; color: #1A6FE0;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ngrp-hd b { font-size: 14.5px; color: var(--ink); }
.ngrp-hd em { font-style: normal; font-size: 12px; color: #1A6FE0; background: #EAF3FF;
  border-radius: 99px; padding: 2px 10px; }
.nord { white-space: nowrap; }
.nord-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px;
  margin-right: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  color: var(--blue); font-size: 13px; text-decoration: none; transition: .15s; }
.nord-btn:hover { background: #EAF3FF; border-color: #BBD6F7; }
.nord-btn.off { color: #C2CBD6; pointer-events: none; background: #F7F9FC; }
@media(max-width:720px){
  .ngrp-hd b { font-size: 13.5px; }
  .nord-btn { width: 30px; height: 28px; }
}

/* ============================================================
   第135轮：分类单招题库 —— 手机端排版优化
   目标：类别标签一行放下、筛选区两行收口、模块头带数量徽标、
        试卷行更紧凑不挤压、悬浮返回键不挡操作
   ============================================================ */
/* 模块头右侧数量徽标（桌面端也生效，替代原来拼在描述里的「· 共 N 套」） */
.bm-n{margin-left:auto;flex:none;font-style:normal;font-size:12px;font-weight:700;
  font-variant-numeric:tabular-nums;color:#C7000B;background:#fff;border:1px solid #F3D9D4;
  border-radius:999px;padding:3px 10px;white-space:nowrap}
.bank-mod.gk .bm-n{color:#1E5EB8;border-color:#DCE8F7}

@media(max-width:720px){
  /* —— 类别标签：三颗等分一行，不再出现「2+1」掉行；字号加大更凸显 —— */
  .bank-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
  .bank-tab{justify-content:center;min-width:0;white-space:nowrap;
    padding:11px 2px;font-size:15px;font-weight:700;gap:4px;border-radius:10px}
  .bank-tab i{font-size:12px;padding:0 6px;line-height:1.7}

  /* —— 筛选区（仅题库页 .bk-filter）：搜索独占一行，年份 + 分享对半分，整体从 3 行压到 2 行 —— */
  .bk-filter{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
  .bk-filter input[type=text]{grid-column:1/-1;min-height:42px;font-size:14px;border-radius:8px}
  .bk-filter select{min-height:42px;font-size:13.5px;border-radius:8px;width:100%}
  .bk-filter .btn{min-height:42px;width:100%;font-size:13.5px;border-radius:8px;
    display:inline-flex;align-items:center;justify-content:center}

  /* —— 模块头：图标缩小，描述两行截断，数量放右侧徽标 —— */
  .bm-hd{padding:10px 11px;gap:8px}
  .bm-ic{width:30px;height:30px;font-size:16px;border-radius:8px}
  .bm-tt{flex:1}
  .bm-tt b{font-size:14.5px;line-height:1.35}
  .bm-tt span{font-size:11.5px;line-height:1.5;margin-top:2px;display:-webkit-box;
    -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .bm-n{font-size:11px;padding:2px 8px}

  /* —— 试卷行：年份块与按钮收紧，长标题两行截断而不是挤成省略号 —— */
  .tb tr.bk-on{padding:8px 10px;gap:8px;margin-bottom:6px;border-radius:10px}
  .tb tr.bk-on .bk-year{font-size:14.5px;padding:4px 7px;border-radius:7px;min-width:48px;
    text-align:center;letter-spacing:.2px;box-shadow:0 1px 4px rgba(199,0,11,.18)}
  .tb tr.bk-on .bk-nm{font-size:13px;line-height:1.35;white-space:normal;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .tb tr.bk-on .bk-a{gap:5px}
  .tb tr.bk-on .bk-a .btn{padding:7px 10px;font-size:12px;border-radius:7px;min-height:34px}

  /* 说明文案略收紧，避免一屏塞不下列表 */
  .section>p{font-size:12.5px !important;line-height:1.6 !important}
}

@media(max-width:480px){
  .bank-tab{font-size:14px;padding:10px 1px}
  .bank-tab i{font-size:11.5px;padding:0 5px}
  .tb tr.bk-on .bk-a .btn{padding:7px 9px}
}

/* —— 悬浮「‹ 返回」键（第320轮改顶部纵向定位可拖动，仅保留 #app 底部安全区） —— */
@media(max-width:640px){
  #app{padding-bottom:56px}
}

/* —— 窄屏顶栏：站名不再被「…」截断，账号胶囊收窄 —— */
@media(max-width:480px){
  .header .wrap{gap:8px}
  .logo{gap:8px;min-width:0}
  .logo .seal{width:32px;height:32px;font-size:12px;letter-spacing:0}
  .logo h1{font-size:13.5px;letter-spacing:0;max-width:58vw}
  .u-chip{max-width:86px;padding:2px 6px 2px 3px;font-size:11.5px;gap:3px}
  .u-chip .u-nm{max-width:56px}
  .u-chip .u-role{display:none}
  .u-chip .u-ph{display:none}
  .hamburger{width:34px}
}

/* ========== 第244轮（v241）：全局字号放大层 —— 电脑端 + 手机端整体字号调大（置于文件末尾保证级联生效） ========== */
body{font-size:16px}
input,select,textarea{font-size:15px}
.topbar{font-size:13.5px}
.chip{font-size:14px}
.chip-row .cl{font-size:14px}
.footer{font-size:14px}
.sec-hd h3{font-size:23.5px}
.sec-hd .more{font-size:14px}
.tool-item{font-size:14.5px}
.news2-list li a{font-size:15.5px}
/* 首页四大模块卡 */
.mod-tile{font-size:17px}
.mod-tile small{font-size:13px}
/* 智能填报卡 */
.smh-hd b{font-size:18px}
.smh-hd small{font-size:13px}
.sm-f label{font-size:14px}
.sm-in input{font-size:15px}
.sm-in input::placeholder{font-size:12.5px}
.sm-in i{font-size:13.5px}
.sm-subj{font-size:14.5px}
.sm-subj-ar{font-size:12px}
.sm-rad{font-size:13.5px}
.sm-err{font-size:13px}
.hm-pop-hd b{font-size:17px}
.hm-pop-sec > label{font-size:14px}
/* 升学课堂视频卡 */
.vs-body h4{font-size:17px}
.vs-body p{font-size:13.5px}
.vs-meta{font-size:12.5px}
/* 桌面端页头（手机端页头保持紧凑，不放大） */
@media(min-width:961px){
  .logo h1{font-size:20px}
  .logo small{font-size:12px}
  .nav>a{font-size:17px}
}
/* 手机端同步放大 */
@media(max-width:960px){
  .mod-tile{font-size:16px}
  .mod-tile small{font-size:12.5px}
  .sm-f label{font-size:13.5px}
  .sm-in input{font-size:15px}
  .tool-item{font-size:13px}
}
@media(max-width:720px){
  .vs-body h4{font-size:15px}
  .vs-body p{font-size:12.5px}
}
@media(max-width:640px){
  .mod-tile{font-size:15.5px}
  .tool-item{font-size:12.5px}
  .news2-list li a{font-size:14.5px}
  .topbar{font-size:12.5px}
}
