:root{
  --blue:#2f80ff; --blue2:#73b7ff; --deep:#123b73; --bg:#eef6ff; --card:#fff;
  --text:#172033; --muted:#6d7b91; --line:#dce9f7; --soft:#f6fbff;
  --green:#17a673; --orange:#ff9f1c; --red:#ef476f; --shadow:0 18px 50px rgba(47,128,255,.13);
  --radius:24px;
}
*{box-sizing:border-box}
body{
  margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:var(--text);
  background:radial-gradient(circle at 20% 10%,rgba(115,183,255,.32),transparent 28%),
    radial-gradient(circle at 86% 12%,rgba(255,214,102,.26),transparent 25%),
    linear-gradient(180deg,#f9fcff 0%,var(--bg) 100%);
  min-height:100vh;
}
button,input,textarea,select{font-family:inherit}
button{cursor:pointer}
.app{max-width:1180px;margin:0 auto;padding:18px 16px 52px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--blue),var(--blue2));display:grid;place-items:center;color:#fff;font-weight:1000;box-shadow:0 12px 28px rgba(47,128,255,.22)}
.brand-title{font-weight:900;color:var(--deep);font-size:18px}
.brand-sub{font-size:12px;color:var(--muted);margin-top:3px}
.pill{border:1px solid #d9e9fb;background:rgba(255,255,255,.78);color:#426489;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800}
.card{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.94);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(12px)}
.hero{padding:28px;margin-bottom:16px;overflow:hidden;position:relative}
.hero:after{content:"";position:absolute;right:-80px;top:-100px;width:280px;height:280px;border-radius:50%;background:linear-gradient(135deg,rgba(47,128,255,.14),rgba(255,214,102,.25))}
.hero h1{position:relative;z-index:1;margin:12px 0 10px;font-size:36px;line-height:1.15;color:var(--deep);letter-spacing:-.8px}
.hero p{position:relative;z-index:1;color:var(--muted);font-size:15px;line-height:1.85;max-width:780px;margin:0}
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.level-card{padding:24px;min-height:230px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;text-align:left;border:0}
.level-card:after{content:"";position:absolute;right:-55px;bottom:-65px;width:200px;height:200px;border-radius:50%;background:rgba(47,128,255,.09)}
.level-card h2{font-size:28px;margin:0 0 10px;color:var(--deep)}
.level-card p{color:var(--muted);line-height:1.75;margin:0;max-width:430px}
.level-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.level-meta span{background:#f2f8ff;border:1px solid #dceaff;border-radius:999px;padding:7px 10px;font-size:12px;color:#3c628f;font-weight:800}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.primary,.ghost,.back-btn,.small-btn{border:0;border-radius:16px;font-weight:900;transition:.18s ease}
.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:white;padding:13px 18px;box-shadow:0 14px 26px rgba(47,128,255,.24)}
.ghost,.back-btn,.small-btn{background:#f4f9ff;border:1px solid #dceaff;color:#31547d;padding:12px 16px}
.primary:hover,.ghost:hover,.back-btn:hover,.small-btn:hover{transform:translateY(-1px)}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.page-head h1{margin:0;color:var(--deep);font-size:28px}
.breadcrumb{color:var(--muted);font-size:13px;margin-bottom:6px}
.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.module-card{padding:22px;text-align:left;border:0;min-height:170px}
.module-card h2{margin:0 0 10px;color:var(--deep);font-size:24px}
.module-card p{margin:0;color:var(--muted);line-height:1.75}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.chip{border:1px solid #d9e9fb;background:#fff;color:#52647d;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}
.chip.active{background:var(--deep);color:#fff;border-color:transparent}
.question-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.q-card{padding:16px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:20px;box-shadow:0 10px 24px rgba(23,59,120,.05);min-height:155px}
.q-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.q-card h3{margin:0;color:#1e3557;font-size:16px;line-height:1.45}
.tag{white-space:nowrap;background:#fff3d6;color:#9a6100;border:1px solid #ffe4a5;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}
.q-card p{color:var(--muted);font-size:13px;line-height:1.65;margin:10px 0 12px}
.q-foot{display:flex;gap:7px;flex-wrap:wrap}
.q-foot span{background:#f5f9ff;border:1px solid #e1efff;color:#46698e;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800}
.practice-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.task-box,.answer-box,.result-box{padding:22px}
.task-box h2,.answer-box h2,.result-box h2{margin:0 0 12px;color:var(--deep)}
.prompt{white-space:pre-line;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid var(--line);border-radius:18px;padding:16px;color:#30435c;line-height:1.85;font-size:15px}
.visual{margin-bottom:12px;border:1px solid #dceaff;background:#f8fbff;border-radius:18px;padding:15px}
.picture-card{display:flex;gap:12px;align-items:flex-start}
.picture-icon{min-width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#dcebff,#fff5d6);display:grid;place-items:center;font-size:26px}
.picture-card p{margin:0;color:#425a75;line-height:1.75}
.chart-wrap{height:190px;display:flex;align-items:end;gap:10px;padding:12px 8px 4px;border-radius:14px;background:#fff}
.bar-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.bar{width:100%;max-width:42px;background:linear-gradient(180deg,var(--blue2),var(--blue));border-radius:10px 10px 4px 4px;min-height:18px}
.bar-label{font-size:11px;color:#5b6d82;white-space:nowrap;max-width:64px;overflow:hidden;text-overflow:ellipsis}
.bar-value{font-size:11px;color:#183d70;font-weight:900}
textarea{width:100%;min-height:330px;border:1px solid #d8e6f7;border-radius:20px;outline:none;padding:16px;font-size:16px;line-height:1.8;resize:vertical;background:#fff;color:var(--text)}
textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(47,128,255,.1)}
.answer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.counter{font-size:13px;color:var(--muted)}
.counter b{color:var(--deep)}
.loading{display:none;align-items:center;gap:10px;color:#31547d;font-weight:900;margin-top:12px}
.loading.show{display:flex}
.spinner{width:18px;height:18px;border:3px solid #d7e8ff;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.result-hero{display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:center;margin-bottom:14px}
.score-card{border:1px solid #dfefff;background:linear-gradient(135deg,#eaf4ff,#fff8df);border-radius:22px;padding:18px;text-align:center}
.score-card strong{font-size:42px;color:var(--blue);line-height:1}
.score-card span{display:block;color:var(--muted);font-size:12px;margin-top:6px;font-weight:800}
.comment{color:#44566d;line-height:1.85;margin:0}
.score-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0}
.score-mini{background:#f7fbff;border:1px solid #e1edfb;border-radius:16px;padding:12px;text-align:center}
.score-mini b{display:block;color:var(--deep);font-size:21px}
.score-mini span{font-size:12px;color:var(--muted)}
.result-section{border:1px solid var(--line);background:#fff;border-radius:20px;padding:16px;margin-top:12px}
.result-section h3{margin:0 0 12px;color:var(--deep);font-size:18px}
.error-card{background:#f9fcff;border:1px solid #e1efff;border-radius:16px;padding:13px;margin-bottom:10px}
.error-card p{margin:7px 0;line-height:1.75;color:#455a72}
.error-card b{color:#123b73}
.phrase-list,.step-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.phrase-list li,.step-list li{background:#f7fbff;border:1px solid #e4f0fc;border-radius:14px;padding:10px 12px;color:#425a75;line-height:1.6}
.long-text{white-space:pre-line;color:#344a63;line-height:1.9;background:#f8fbff;border:1px solid #e1efff;border-radius:16px;padding:14px}
.hidden{display:none!important}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:rgba(23,32,51,.92);color:#fff;padding:11px 16px;border-radius:999px;font-size:13px;font-weight:800;display:none;z-index:100;box-shadow:0 12px 30px rgba(0,0,0,.2)}
.toast.show{display:block}
@media(max-width:920px){
  .home-grid,.module-grid,.practice-layout{grid-template-columns:1fr}
  .question-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:30px}
}
@media(max-width:560px){
  .app{padding:12px 10px 42px}
  .topbar{align-items:flex-start}
  .brand-title{font-size:16px}
  .pill{display:none}
  .hero,.task-box,.answer-box,.result-box{padding:18px;border-radius:20px}
  .hero h1{font-size:27px}
  .home-grid,.module-grid,.question-grid{grid-template-columns:1fr}
  .level-card{min-height:210px;padding:20px}
  .level-card h2{font-size:25px}
  .page-head{flex-direction:column}
  .actions,.actions button,.answer-toolbar .primary,.answer-toolbar .ghost{width:100%}
  .primary,.ghost,.back-btn,.small-btn{width:100%;justify-content:center}
  textarea{min-height:300px;font-size:15px}
  .result-hero{grid-template-columns:1fr}
  .score-grid{grid-template-columns:1fr 1fr}
  .result-section{padding:14px}
  .chart-wrap{height:170px;gap:6px}
}


/* V3.3 移动端明显后退按钮 */
.mobile-back{
  position:fixed;
  left:12px;
  bottom:18px;
  z-index:120;
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:1000;
  font-size:15px;
  color:#fff;
  background:linear-gradient(135deg,var(--deep),var(--blue));
  box-shadow:0 14px 32px rgba(18,59,115,.28);
}
@media(min-width:721px){
  .mobile-back{display:none!important}
}
@media(max-width:560px){
  .page-head{
    background:rgba(255,255,255,.92);
    border:1px solid #dceaff;
    border-radius:18px;
    padding:12px;
    box-shadow:0 10px 28px rgba(47,128,255,.08);
    position:sticky;
    top:8px;
    z-index:40;
  }
  .page-head h1{font-size:22px;line-height:1.35}
  .breadcrumb{font-size:12px}
  .counter{
    width:100%;
    display:flex;
    justify-content:space-between;
    gap:10px;
    background:#f6fbff;
    border:1px solid #dceaff;
    border-radius:14px;
    padding:10px 12px;
  }
}


/* V3.4 首页公众号 / 小红书关注卡片 */
.follow-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  margin-bottom:16px;
  overflow:hidden;
  position:relative;
}
.follow-card:before{
  content:"";
  position:absolute;
  left:-60px;
  bottom:-80px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(47,128,255,.12),rgba(255,214,102,.20));
}
.follow-text{position:relative;z-index:1}
.follow-kicker{
  display:inline-flex;
  align-items:center;
  border:1px solid #dceaff;
  background:#f4f9ff;
  color:#31547d;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:900;
  margin-bottom:9px;
}
.follow-text h2{
  margin:0 0 8px;
  color:var(--deep);
  font-size:22px;
  line-height:1.35;
}
.follow-text p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
.follow-text b{color:var(--deep)}
.follow-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.follow-tags span{
  background:#f7fbff;
  border:1px solid #e1efff;
  color:#45698f;
  border-radius:999px;
  padding:6px 9px;
  font-size:12px;
  font-weight:800;
}
.qr-box{
  position:relative;
  z-index:1;
  flex:0 0 155px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #dceaff;
  border-radius:20px;
  padding:10px;
  box-shadow:0 12px 28px rgba(47,128,255,.10);
}
.qr-box img{
  width:128px;
  height:128px;
  object-fit:cover;
  border-radius:14px;
}
.qr-box span{
  color:#506983;
  font-size:12px;
  font-weight:900;
}
@media(max-width:720px){
  .follow-card{
    flex-direction:column;
    align-items:stretch;
    padding:18px;
  }
  .follow-text h2{
    font-size:19px;
  }
  .qr-box{
    flex:auto;
    width:100%;
  }
  .qr-box img{
    width:160px;
    height:160px;
  }
}


/* V3.5 图画作文改为直接显示动漫图 */
.image-visual{
  padding:10px;
}
.image-visual img{
  width:100%;
  display:block;
  border-radius:16px;
  object-fit:cover;
  background:#eef6ff;
  border:1px solid #dceaff;
  box-shadow:0 10px 24px rgba(47,128,255,.08);
}
.image-hint{
  margin-top:8px;
  font-size:12px;
  color:#6d7b91;
  text-align:center;
}
@media(max-width:560px){
  .image-visual{
    padding:8px;
  }
  .image-visual img{
    border-radius:14px;
  }
}


/* V3.8 独立总入口页：不影响四六级内容 */
.portal-link{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}
.portal-main-hero h1{
  font-size:38px;
}
.portal-entry-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:16px;
}
.portal-entry{
  position:relative;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  min-height:270px;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:0;
}
.portal-entry:after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-80px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(47,128,255,.10);
}
.portal-entry h2{
  position:relative;
  z-index:1;
  margin:34px 0 10px;
  color:var(--deep);
  font-size:30px;
}
.portal-entry p{
  position:relative;
  z-index:1;
  margin:0;
  color:var(--muted);
  line-height:1.8;
}
.portal-zsb:after{
  background:linear-gradient(135deg,rgba(47,128,255,.13),rgba(23,166,115,.13));
}
.portal-ky{
  opacity:.9;
}
.portal-ky:after{
  background:linear-gradient(135deg,rgba(160,170,185,.16),rgba(255,214,102,.16));
}
.portal-cet:after{
  background:linear-gradient(135deg,rgba(47,128,255,.16),rgba(255,214,102,.20));
}
.entry-badge{
  position:absolute;
  left:22px;
  top:20px;
  z-index:2;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:1000;
  color:#245078;
  border:1px solid #dceaff;
  background:#f5fbff;
}
.entry-badge.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
}
.entry-badge.muted{
  color:#68778b;
  background:#f3f6fa;
  border-color:#e0e6ef;
}
.zsb-page-hero{
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(241,248,255,.96));
}
.zsb-design-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:16px;
}
.zsb-design-card{
  padding:20px;
  min-height:180px;
}
.zsb-design-card h2{
  margin:0 0 10px;
  color:var(--deep);
  font-size:21px;
}
.zsb-design-card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
.zsb-design-card span{
  display:inline-flex;
  margin-top:16px;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  color:#31547d;
  background:#f4f9ff;
  border:1px solid #dceaff;
}
@media(max-width:920px){
  .portal-entry-grid,.zsb-design-grid{
    grid-template-columns:1fr;
  }
  .portal-entry{
    min-height:220px;
  }
}
@media(max-width:560px){
  .portal-main-hero h1{
    font-size:29px;
  }
  .portal-entry{
    min-height:210px;
    padding:20px;
  }
  .portal-entry h2{
    font-size:26px;
  }
}


/* V3.21 专升本首页与模考板块 */
.zsb-home-hero h1{font-size:36px}
.zsb-home-layout{display:grid;grid-template-columns:1.05fr 1.35fr;gap:16px;margin-top:16px}
.zsb-mock-card{position:relative;overflow:hidden;text-decoration:none;color:inherit;min-height:270px;padding:24px;display:flex;flex-direction:column;justify-content:space-between;border:0}
.zsb-mock-card:after{content:"";position:absolute;right:-70px;bottom:-80px;width:230px;height:230px;border-radius:50%;background:linear-gradient(135deg,rgba(47,128,255,.18),rgba(255,214,102,.22))}
.zsb-mock-card h2{position:relative;z-index:1;margin:38px 0 10px;color:var(--deep);font-size:30px}
.zsb-mock-card p{position:relative;z-index:1;color:var(--muted);line-height:1.8;margin:0}
.zsb-rank-card{padding:22px;min-height:270px;overflow:hidden}
.rank-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.rank-head h2{margin:0 0 6px;color:var(--deep);font-size:24px}.rank-head p{margin:0;color:var(--muted)}
.rank-marquee{height:178px;overflow:hidden;border:1px solid #dceaff;background:#f8fbff;border-radius:18px;padding:10px}
.rank-track{animation:zsbRankScroll 22s linear infinite}.rank-track:hover{animation-play-state:paused}
.rank-row{display:grid;grid-template-columns:50px 1fr 80px 90px;gap:8px;align-items:center;background:#fff;border:1px solid #e1efff;border-radius:14px;padding:10px 12px;margin-bottom:8px;color:#395572}
.rank-row b{color:var(--blue)}.rank-row strong{color:var(--deep)}.rank-row em{font-style:normal;color:var(--muted);font-size:12px;text-align:right}.rank-empty{color:var(--muted);padding:28px;text-align:center}
@keyframes zsbRankScroll{0%{transform:translateY(0)}100%{transform:translateY(-50%)}}
.muted-card{opacity:.84}.zsb-home-modules{margin-top:16px}
.mock-head{background:rgba(255,255,255,.92);border:1px solid #dceaff;border-radius:22px;padding:16px;box-shadow:0 12px 34px rgba(47,128,255,.08)}
.mock-timer{background:linear-gradient(135deg,var(--deep),var(--blue));color:#fff;border-radius:18px;padding:12px 18px;font-weight:1000;min-width:92px;text-align:center;box-shadow:0 12px 26px rgba(47,128,255,.2)}
.mock-start{padding:24px}.mock-start h2{margin:0 0 8px;color:var(--deep)}.mock-start p{color:var(--muted);line-height:1.7}.start-row{display:flex;gap:12px;align-items:center}.mock-input{border:1px solid #d8e6f7;border-radius:16px;padding:13px 14px;font-size:15px;outline:none;background:#fff}.mock-input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(47,128,255,.1)}.mock-input.full{width:100%;margin-top:8px}
.stepper{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:14px}.step-dot{border:1px solid #dceaff;background:#fff;border-radius:16px;padding:10px 8px;color:#486582;font-weight:900}.step-dot b{display:block;color:var(--deep);font-size:16px}.step-dot span{font-size:12px}.step-dot.active{background:linear-gradient(135deg,#eaf4ff,#fff8df);border-color:#b9d8ff}.step-dot.done{background:#f1fbf7;border-color:#cdeee1;color:#16785a}
.mock-section{padding:22px}.mock-section-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.mock-section-title h2{margin:0;color:var(--deep);font-size:24px}.mock-section-title h2 span{font-size:14px;color:var(--muted);font-weight:800}.mock-directions{color:var(--muted);line-height:1.7}.mock-passage,.mock-passage-detail{background:#f8fbff;border:1px solid #e1efff;border-radius:18px;padding:14px;margin:12px 0;color:#344a63;line-height:1.8}.mock-passage-detail summary{font-weight:900;color:var(--deep);cursor:pointer;margin-bottom:8px}.mock-items{display:grid;gap:12px;margin-top:14px}.mock-item{border:1px solid #e1efff;border-radius:18px;background:#fff;padding:14px}.mock-item label{display:block;color:#294764;line-height:1.7;margin-bottom:6px}.mock-textarea{width:100%;border:1px solid #d8e6f7;border-radius:16px;padding:12px 14px;font-size:15px;line-height:1.7;outline:none;resize:vertical}.mock-textarea.small{min-height:82px}.mock-textarea.writing{min-height:230px}.mock-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}.mock-result-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:14px 0}.rank-result{background:#f8fbff;border:1px solid #e1efff;border-radius:18px;padding:18px}.rank-big{font-size:34px;font-weight:1000;color:var(--blue);margin-bottom:6px}
@media(max-width:920px){.zsb-home-layout{grid-template-columns:1fr}.stepper{grid-template-columns:repeat(3,1fr)}.mock-result-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.zsb-home-hero h1{font-size:28px}.start-row{flex-direction:column}.start-row .mock-input,.start-row .primary{width:100%}.mock-section-title{flex-direction:column}.stepper{grid-template-columns:repeat(2,1fr)}.rank-row{grid-template-columns:42px 1fr 64px;}.rank-row em{display:none}.mock-result-grid{grid-template-columns:1fr 1fr}.mock-actions .primary,.mock-actions .ghost{width:100%}}


/* V3.21 专升本模考题目呈现优化 */
.blank-mark{
  display:inline-block;
  min-width:78px;
  text-align:center;
  color:var(--deep);
  font-weight:1000;
  letter-spacing:.5px;
  border-bottom:2px solid #2f80ff;
  line-height:1.25;
  margin:0 4px;
}
.mock-clue{
  color:#2f80ff;
  font-weight:900;
}
.mock-passage-title{
  margin:18px 0 8px;
  color:var(--deep);
  font-size:18px;
  font-weight:1000;
}
.passage-items{
  margin-bottom:14px;
}
.unlock-tip{
  margin:10px 0 18px;
  border:1px dashed #b9d8ff;
  background:#f6fbff;
  border-radius:16px;
  padding:12px 14px;
  color:#486582;
  font-weight:900;
  text-align:center;
}
.progressive-passage.hidden{
  display:none!important;
}
@media(max-width:560px){
  .blank-mark{
    min-width:66px;
  }
  .mock-passage-title{
    font-size:16px;
  }
}


/* V3.21 专升本模考文章排版优化 */
.mock-passage{
  text-align:justify;
  text-justify:inter-ideograph;
}
.mock-passage p{
  margin:0 0 14px;
  text-indent:2em;
}
.mock-passage p:last-child{
  margin-bottom:0;
}
.blank-mark{
  display:inline-block;
  min-width:52px;
  text-align:center;
  color:var(--deep);
  font-weight:900;
  letter-spacing:0;
  border-bottom:1.5px solid #2f80ff;
  line-height:1.05;
  margin:0 3px;
  transform:translateY(-1px);
}
@media(max-width:560px){
  .blank-mark{
    min-width:44px;
    margin:0 2px;
  }
  .mock-passage p{
    text-indent:2em;
    margin-bottom:12px;
  }
}


/* V3.21 后台管理 */
.admin-card{
  padding:24px;
  margin-bottom:16px;
}
.admin-card h1{
  margin:0 0 10px;
  color:var(--deep);
}
.admin-card p{
  color:var(--muted);
  line-height:1.75;
}
.admin-login-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.admin-msg{
  margin-top:10px;
  color:#31547d;
  font-weight:900;
}
.admin-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:18px;
}
.admin-page-card{
  padding:18px;
}
.admin-page-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}
.admin-page-top h2{
  margin:0;
  color:var(--deep);
}
.admin-page-card label{
  display:block;
  color:#486582;
  font-weight:900;
  margin:10px 0 6px;
}
.admin-page-card input,.admin-page-card textarea,.admin-page-card select{
  width:100%;
  border:1px solid #d8e6f7;
  border-radius:14px;
  padding:10px 12px;
  outline:none;
  background:#fff;
  color:#172033;
  font-size:14px;
}
.admin-page-card textarea{
  min-height:96px;
  resize:vertical;
  line-height:1.6;
}
.admin-rank-head{
  margin-top:16px;
}
.danger-btn{
  color:#b42318!important;
}
.admin-note{
  color:#6d7b91;
  font-size:13px;
}
.admin-table-wrap{
  overflow:auto;
  border:1px solid #dceaff;
  border-radius:18px;
}
.admin-table{
  width:100%;
  border-collapse:collapse;
  min-width:680px;
  background:#fff;
}
.admin-table th,.admin-table td{
  padding:12px 14px;
  border-bottom:1px solid #edf4ff;
  text-align:left;
  color:#344a63;
}
.admin-table th{
  color:var(--deep);
  background:#f8fbff;
}
@media(max-width:920px){
  .admin-grid{
    grid-template-columns:1fr;
  }
}


/* V3.21 空格编号居中优化 */
.blank-mark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:58px!important;
  min-width:58px!important;
  height:22px!important;
  margin:0 5px!important;
  padding:0!important;
  color:var(--deep)!important;
  font-weight:1000!important;
  line-height:1!important;
  letter-spacing:0!important;
  border-bottom:1.5px solid #2f80ff!important;
  transform:none!important;
  vertical-align:baseline!important;
}
@media(max-width:560px){
  .blank-mark{
    width:48px!important;
    min-width:48px!important;
    margin:0 3px!important;
  }
}


/* V3.21 后台官方联系方式 */
.admin-contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  margin-bottom:16px;
  overflow:hidden;
  position:relative;
}
.admin-contact-card:before{
  content:"";
  position:absolute;
  left:-70px;
  bottom:-90px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(47,128,255,.12),rgba(255,214,102,.20));
}
.admin-contact-text{
  position:relative;
  z-index:1;
}
.admin-contact-text h1{
  margin:0 0 8px;
  color:var(--deep);
  font-size:26px;
}
.admin-contact-text p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.75;
}
.admin-contact-list{
  display:grid;
  gap:8px;
  color:#344a63;
  font-size:15px;
  line-height:1.7;
}
.admin-contact-list b{
  color:var(--deep);
}
.admin-qr-box{
  position:relative;
  z-index:1;
  flex:0 0 168px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #dceaff;
  border-radius:22px;
  padding:12px;
  box-shadow:0 12px 28px rgba(47,128,255,.10);
}
.admin-qr-box img{
  width:138px;
  height:138px;
  object-fit:cover;
  border-radius:14px;
}
.admin-qr-box span{
  color:#506983;
  font-size:12px;
  font-weight:900;
}
@media(max-width:720px){
  .admin-contact-card{
    flex-direction:column;
    align-items:stretch;
    padding:18px;
  }
  .admin-qr-box{
    flex:auto;
    width:100%;
  }
  .admin-qr-box img{
    width:170px;
    height:170px;
  }
}


/* V3.21 首页官方联系方式卡片 */
.public-follow-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  margin:16px 0;
  overflow:hidden;
  position:relative;
}
.public-follow-card:before{
  content:"";
  position:absolute;
  left:-70px;
  bottom:-90px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(47,128,255,.12),rgba(255,214,102,.20));
}
.public-follow-text{
  position:relative;
  z-index:1;
}
.public-follow-text h1{
  margin:0 0 8px;
  color:var(--deep);
  font-size:28px;
}
.public-follow-text p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.75;
}
.public-contact-list{
  display:grid;
  gap:8px;
  color:#344a63;
  font-size:15px;
  line-height:1.7;
}
.public-contact-list b{
  color:var(--deep);
}
.public-qr-box{
  position:relative;
  z-index:1;
  flex:0 0 168px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #dceaff;
  border-radius:22px;
  padding:12px;
  box-shadow:0 12px 28px rgba(47,128,255,.10);
}
.public-qr-box img{
  width:138px;
  height:138px;
  object-fit:cover;
  border-radius:14px;
}
.public-qr-box span{
  color:#506983;
  font-size:12px;
  font-weight:900;
}
@media(max-width:720px){
  .public-follow-card{
    flex-direction:column;
    align-items:stretch;
    padding:18px;
  }
  .public-qr-box{
    flex:auto;
    width:100%;
  }
  .public-qr-box img{
    width:170px;
    height:170px;
  }
}


/* V3.21 排行榜少量数据不复制、不滚动，避免同一用户重复显示 */
.rank-marquee.rank-static{
  height:auto;
  min-height:178px;
}
.rank-marquee.rank-static .rank-track{
  animation:none!important;
}
.rank-marquee.rank-static .rank-row{
  margin-bottom:10px;
}


/* V3.21 后台页面控制布局与排行榜单条删除 */
.admin-page-top{
  display:grid!important;
  grid-template-columns:auto minmax(128px, 1fr)!important;
  align-items:center!important;
  gap:12px!important;
}
.admin-page-top h2{
  white-space:nowrap!important;
  word-break:keep-all!important;
  min-width:72px!important;
  line-height:1.25!important;
}
.admin-page-top select{
  width:100%!important;
  min-width:0!important;
}
.rank-delete-btn{
  border:1px solid #ffd0ca;
  background:#fff7f5;
  color:#b42318;
  border-radius:999px;
  padding:7px 12px;
  font-weight:900;
  cursor:pointer;
}
.rank-delete-btn:hover{
  background:#ffe9e5;
}
@media(max-width:560px){
  .admin-page-top{
    grid-template-columns:1fr!important;
  }
}


/* V3.21 往年考试信息查询入口 */
.zsb-design-card.clickable-card{
  display:block;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}
.zsb-design-card.clickable-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(47,128,255,.13);
}

/* V3.21 长篇英文答案排版：首行缩进2字符，两端对齐 */
.long-text{
  text-align:justify;
  text-justify:inter-word;
  line-height:1.9;
}
.long-text p{
  margin:0 0 14px;
  text-indent:2em;
}
.long-text p:last-child{
  margin-bottom:0;
}


/* V3.21 专升本首页：最简排行榜 UI */
.zsb-rank-card{
  padding:22px;
  min-height:270px;
  overflow:hidden;
}
.rank-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.rank-head h2{
  margin:0 0 6px;
  color:var(--deep);
  font-size:26px;
  font-weight:1000;
}
.rank-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  font-weight:700;
}
.rank-head .small-btn,
#refreshRankBtn{
  flex:0 0 auto;
  min-width:68px;
  height:46px;
  border-radius:16px;
}
.rank-marquee{
  height:210px;
  overflow-y:auto;
  border:1px solid #dceaff;
  background:#f8fbff;
  border-radius:18px;
  padding:10px;
}
.rank-marquee::-webkit-scrollbar{
  width:8px;
}
.rank-marquee::-webkit-scrollbar-thumb{
  background:#c7d9f4;
  border-radius:999px;
}
.rank-track{
  animation:none!important;
}
.rank-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 76px 86px;
  gap:8px;
  align-items:center;
  min-height:40px;
  background:#fff;
  border:1px solid #e1efff;
  border-radius:999px;
  padding:0 12px;
  margin-bottom:8px;
  color:#395572;
}
.rank-row:last-child{
  margin-bottom:0;
}
.rank-row b{
  color:var(--blue);
  font-weight:1000;
}
.rank-row span{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--deep);
  font-weight:900;
}
.rank-row strong{
  color:var(--deep);
  text-align:right;
  font-weight:1000;
}
.rank-row em{
  font-style:normal;
  color:var(--muted);
  font-size:12px;
  text-align:right;
  font-weight:800;
}
.rank-empty{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  padding:20px;
  text-align:center;
  font-weight:900;
}
@media(max-width:720px){
  .rank-row{
    grid-template-columns:44px minmax(0,1fr) 60px;
    border-radius:16px;
    padding:8px 10px;
  }
  .rank-row em{
    grid-column:2/4;
    text-align:left;
  }
}

/* V3.22 专升本首页排行榜重构：独立样式，避免旧滚动榜 CSS 互相覆盖 */
.zsb-leaderboard-card{
  position:relative;
  min-height:420px;
  padding:0!important;
  overflow:hidden;
  border:1px solid rgba(221,235,252,.92);
  background:
    radial-gradient(circle at 92% 0%, rgba(115,183,255,.24), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.94));
}
.zsb-leaderboard-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:118px;
  background:linear-gradient(135deg, rgba(47,128,255,.12), rgba(255,214,102,.16));
  pointer-events:none;
}
.zsb-rank-topbar{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:22px 22px 14px;
}
.rank-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  color:#2f80ff;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.12em;
}
.rank-kicker:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2f80ff;
  box-shadow:0 0 0 5px rgba(47,128,255,.12);
}
.zsb-rank-topbar h2{
  margin:0 0 6px;
  color:var(--deep);
  font-size:28px;
  font-weight:1000;
  letter-spacing:-.4px;
}
.zsb-rank-topbar p{
  max-width:520px;
  margin:0;
  color:#60758d;
  font-size:14px;
  line-height:1.65;
  font-weight:700;
}
.rank-refresh-btn{
  flex:0 0 auto;
  min-width:74px!important;
  height:42px!important;
  padding:0 14px!important;
  border-radius:14px!important;
  background:#fff!important;
  border:1px solid #cfe4ff!important;
  box-shadow:0 10px 22px rgba(47,128,255,.12);
}
.rank-refresh-btn:disabled{
  opacity:.62;
  cursor:not-allowed;
  transform:none!important;
}
.zsb-rank-summary{
  position:relative;
  z-index:1;
  margin:0 22px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.82);
  border:1px solid #e2efff;
  color:#55708d;
  font-size:13px;
  font-weight:800;
}
.zsb-rank-summary strong{
  color:var(--blue);
  white-space:nowrap;
  font-size:14px;
}
.zsb-rank-panel{
  position:relative;
  z-index:1;
  margin:0 16px 16px;
  padding:12px;
  height:286px;
  overflow:auto;
  border-radius:22px;
  border:1px solid #dceaff;
  background:rgba(248,251,255,.82);
}
.zsb-rank-panel::-webkit-scrollbar{width:8px}
.zsb-rank-panel::-webkit-scrollbar-thumb{background:#c4d8f3;border-radius:999px}
.zsb-rank-podium{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:12px;
}
.zsb-podium-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  border-radius:18px;
  padding:14px 12px 12px;
  background:#fff;
  border:1px solid #e2efff;
  box-shadow:0 10px 24px rgba(47,128,255,.08);
}
.zsb-podium-card:after{
  content:"";
  position:absolute;
  right:-24px;
  top:-34px;
  width:84px;
  height:84px;
  border-radius:50%;
  background:rgba(47,128,255,.08);
}
.zsb-podium-card.podium-1{
  background:linear-gradient(180deg,#fff8df,#fff);
  border-color:#ffe3a0;
}
.zsb-podium-card.podium-2{
  background:linear-gradient(180deg,#f3f8ff,#fff);
}
.zsb-podium-card.podium-3{
  background:linear-gradient(180deg,#fff2e9,#fff);
  border-color:#ffd8be;
}
.podium-medal{
  position:relative;
  z-index:1;
  font-size:22px;
  line-height:1;
  margin-bottom:5px;
}
.podium-title{
  position:relative;
  z-index:1;
  color:#6d7b91;
  font-size:12px;
  font-weight:1000;
}
.podium-name{
  position:relative;
  z-index:1;
  margin-top:4px;
  color:var(--deep);
  font-size:15px;
  font-weight:1000;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.podium-score{
  position:relative;
  z-index:1;
  margin-top:8px;
  color:var(--blue);
  font-size:28px;
  line-height:1;
  font-weight:1000;
}
.podium-score span{
  margin-left:2px;
  color:#6d7b91;
  font-size:12px;
}
.podium-time{
  position:relative;
  z-index:1;
  margin-top:7px;
  color:#60758d;
  font-size:12px;
  font-weight:800;
}
.zsb-rank-table{
  overflow:hidden;
  border-radius:18px;
  border:1px solid #e2efff;
  background:#fff;
}
.zsb-rank-table-head,
.zsb-rank-table-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 78px 86px;
  gap:8px;
  align-items:center;
}
.zsb-rank-table-head{
  position:sticky;
  top:-12px;
  z-index:2;
  padding:10px 12px;
  background:#f3f8ff;
  color:#6d7b91;
  font-size:12px;
  font-weight:1000;
}
.zsb-rank-table-row{
  min-height:46px;
  padding:0 12px;
  border-top:1px solid #eef5ff;
  color:#395572;
  font-size:14px;
}
.zsb-rank-table-row.is-top{
  background:#fbfdff;
}
.rank-no{
  color:#2f80ff;
  font-weight:1000;
}
.rank-name{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--deep);
  font-weight:900;
}
.rank-score{
  color:var(--deep);
  text-align:right;
  font-weight:1000;
}
.rank-time{
  color:#6d7b91;
  text-align:right;
  font-size:12px;
  font-weight:800;
}
.zsb-rank-empty,
.zsb-rank-loading{
  min-height:238px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  color:#6d7b91;
  font-weight:900;
}
.zsb-rank-empty b{
  color:var(--deep);
  font-size:20px;
}
.zsb-rank-empty span{
  max-width:320px;
  font-size:14px;
  line-height:1.7;
}
@media(max-width:920px){
  .zsb-leaderboard-card{min-height:auto}
  .zsb-rank-panel{height:auto;max-height:560px}
}
@media(max-width:720px){
  .zsb-rank-topbar{
    flex-direction:column;
    padding:18px 18px 12px;
  }
  .rank-refresh-btn{
    width:100%!important;
  }
  .zsb-rank-summary{
    margin:0 18px 10px;
    align-items:flex-start;
    flex-direction:column;
  }
  .zsb-rank-panel{
    margin:0 12px 12px;
    padding:10px;
    max-height:none;
  }
  .zsb-rank-podium{
    grid-template-columns:1fr;
  }
  .zsb-podium-card{
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    align-items:center;
    gap:8px 10px;
    padding:12px;
  }
  .podium-medal{grid-row:1/3;margin:0;font-size:24px}
  .podium-title{grid-column:2/3}
  .podium-name{grid-column:2/3;margin:0}
  .podium-score{grid-column:3/4;grid-row:1/3;margin:0;font-size:26px;text-align:right}
  .podium-time{grid-column:2/4;margin:0}
  .zsb-rank-table-head{
    display:none;
  }
  .zsb-rank-table-row{
    grid-template-columns:44px minmax(0,1fr) 62px;
    min-height:54px;
    padding:9px 10px;
  }
  .rank-time{
    grid-column:2/4;
    text-align:left;
  }
}

/* V3.23 专升本首页：开放状态颜色统一 + 自动滚动排行榜 + 免费课程入口 */
.zsb-design-card .module-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:16px;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:1000;
  line-height:1;
}
.zsb-design-card .module-status.open{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  box-shadow:0 8px 18px rgba(47,128,255,.18);
}
.zsb-design-card .module-status.pending{
  color:#68778b;
  background:#f3f6fa;
  border-color:#e0e6ef;
}
.zsb-rank-panel{
  height:344px;
  overflow:hidden;
}
.zsb-rank-table{
  display:flex;
  flex-direction:column;
}
.zsb-rank-scroll-window{
  height:162px;
  overflow:hidden;
  background:#fff;
}
.zsb-rank-scroll-track{
  will-change:transform;
}
.zsb-rank-table.is-scrolling .zsb-rank-scroll-track{
  animation:zsbLeaderboardRoll var(--rank-scroll-duration, 28s) linear infinite;
}
.zsb-rank-table.is-scrolling:hover .zsb-rank-scroll-track{
  animation-play-state:paused;
}
@keyframes zsbLeaderboardRoll{
  0%{transform:translateY(0)}
  100%{transform:translateY(-50%)}
}
.zsb-rank-scroll-track .zsb-rank-table-row:first-child{
  border-top:0;
}
@media(max-width:920px){
  .zsb-rank-panel{
    height:344px;
    max-height:none;
  }
}
@media(max-width:720px){
  .zsb-rank-panel{
    height:auto;
    overflow:visible;
  }
  .zsb-rank-scroll-window{
    height:280px;
    border-radius:0 0 18px 18px;
  }
}

/* V3.24 专升本排行榜进一步简化：缩小前三名区域 + 表头数据严格对齐 */
.zsb-leaderboard-card{
  min-height:390px;
  background:#fff;
  border-color:#dfefff;
  box-shadow:0 14px 34px rgba(47,128,255,.08);
}
.zsb-leaderboard-card:before{
  height:74px;
  background:linear-gradient(135deg,rgba(47,128,255,.08),rgba(255,214,102,.08));
}
.zsb-rank-topbar{
  padding:18px 20px 10px;
}
.rank-kicker{
  margin-bottom:4px;
  font-size:10px;
  letter-spacing:.1em;
}
.zsb-rank-topbar h2{
  font-size:24px;
  margin-bottom:4px;
}
.zsb-rank-topbar p{
  font-size:13px;
  line-height:1.55;
}
.rank-refresh-btn{
  height:38px!important;
  min-width:66px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.zsb-rank-summary{
  margin:0 20px 10px;
  min-height:36px;
  padding:8px 12px;
  border-radius:13px;
  font-size:12px;
  background:#f8fbff;
}
.zsb-rank-panel{
  margin:0 14px 14px;
  padding:10px;
  height:326px;
  border-radius:18px;
  background:#f8fbff;
  overflow:hidden;
}
.zsb-rank-podium{
  gap:8px;
  margin-bottom:8px;
}
.zsb-podium-card{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:8px;
  min-height:62px;
  padding:9px 10px;
  border-radius:14px;
  box-shadow:none;
  background:#fff!important;
}
.zsb-podium-card:after{
  display:none;
}
.zsb-podium-card.podium-1,
.zsb-podium-card.podium-2,
.zsb-podium-card.podium-3{
  border-color:#e2efff;
}
.podium-medal{
  grid-row:1/3;
  margin:0;
  font-size:19px;
}
.podium-title{
  grid-column:2;
  color:#6d7b91;
  font-size:11px;
  line-height:1.1;
}
.podium-name{
  grid-column:2;
  margin:2px 0 0;
  font-size:13px;
  line-height:1.2;
}
.podium-score{
  grid-column:3;
  grid-row:1/3;
  margin:0;
  font-size:22px;
  text-align:right;
}
.podium-score span{
  font-size:11px;
}
.podium-time{
  display:none;
}
.zsb-rank-table{
  border-radius:14px;
  border-color:#e5effb;
  box-shadow:none;
}
.zsb-rank-table-head,
.zsb-rank-table-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 82px 96px;
  gap:0;
  align-items:center;
  box-sizing:border-box;
}
.zsb-rank-table-head{
  position:relative;
  top:auto;
  min-height:38px;
  padding:0 12px;
  background:#f4f8fd;
  color:#65758a;
  font-size:12px;
}
.zsb-rank-table-head span,
.zsb-rank-table-row span{
  display:block;
  min-width:0;
  box-sizing:border-box;
}
.zsb-rank-table-head span:nth-child(1),
.zsb-rank-table-row .rank-no{
  text-align:left;
}
.zsb-rank-table-head span:nth-child(2),
.zsb-rank-table-row .rank-name{
  text-align:left;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.zsb-rank-table-head span:nth-child(3),
.zsb-rank-table-row .rank-score,
.zsb-rank-table-head span:nth-child(4),
.zsb-rank-table-row .rank-time{
  text-align:right;
}
.zsb-rank-table-row{
  min-height:40px;
  padding:0 12px;
  border-top:1px solid #edf3fb;
  font-size:13px;
}
.zsb-rank-table-row.is-top{
  background:#fff;
}
.rank-no{
  color:#2f80ff;
}
.rank-name{
  font-weight:850;
}
.rank-score{
  color:#173b67;
}
.rank-time{
  color:#6b778c;
  font-size:12px;
}
.zsb-rank-scroll-window{
  height:190px;
  background:#fff;
}
@media(max-width:720px){
  .zsb-rank-topbar{
    padding:16px 16px 10px;
  }
  .zsb-rank-summary{
    margin:0 16px 10px;
  }
  .zsb-rank-panel{
    height:auto;
    margin:0 10px 10px;
    padding:9px;
    overflow:visible;
  }
  .zsb-rank-podium{
    grid-template-columns:1fr;
  }
  .zsb-podium-card{
    min-height:58px;
  }
  .zsb-rank-table-head{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 68px 82px;
    min-height:36px;
    padding:0 10px;
  }
  .zsb-rank-table-row{
    grid-template-columns:48px minmax(0,1fr) 68px 82px;
    min-height:42px;
    padding:0 10px;
  }
  .rank-time{
    grid-column:auto;
    text-align:right;
  }
  .zsb-rank-scroll-window{
    height:236px;
  }
}
@media(max-width:420px){
  .zsb-rank-table-head,
  .zsb-rank-table-row{
    grid-template-columns:44px minmax(0,1fr) 60px 74px;
  }
  .zsb-rank-table-head,
  .zsb-rank-table-row{
    padding-left:8px;
    padding-right:8px;
  }
}

/* ===== V3.27 平板 / 手机端专项优化：PC 端布局保持不变 =====
   仅在触屏设备或极窄屏幕生效，避免影响正常电脑端。 */
@media (hover:none) and (pointer:coarse) and (max-width:1180px), (max-width:520px){
  html,body{overflow-x:hidden;}
  .app{width:100%;max-width:100%;padding:12px 10px 44px;}
  .topbar{
    position:sticky;
    top:8px;
    z-index:60;
    align-items:center;
    padding:10px;
    margin-bottom:12px;
    border:1px solid rgba(220,234,255,.95);
    border-radius:20px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    box-shadow:0 10px 26px rgba(47,128,255,.09);
  }
  .topbar .actions{gap:8px;justify-content:flex-end;}
  .brand{gap:10px;min-width:0;}
  .logo{width:44px;height:44px;flex:0 0 44px;border-radius:16px;font-size:18px;}
  .brand>div:last-child{min-width:0;}
  .brand-title{font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58vw;}
  .brand-sub{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58vw;}
  .pill,.primary,.ghost,.back-btn,.small-btn{min-height:40px;border-radius:14px;padding:10px 13px;font-size:13px;}
  .hero{padding:18px;border-radius:22px;margin-bottom:12px;}
  .hero:after{opacity:.5;right:-130px;top:-140px;}
  .hero h1{font-size:26px;line-height:1.18;margin:6px 0 8px;letter-spacing:-.3px;}
  .hero p{font-size:14px;line-height:1.72;}
  .card{border-radius:22px;}
  .home-grid,.module-grid,.practice-layout,.question-grid{grid-template-columns:1fr;gap:12px;}
  .level-card,.module-card,.q-card{min-height:auto;padding:18px;border-radius:20px;}
  .level-card h2,.module-card h2{font-size:24px;}
  .follow-card,.public-follow-card{padding:16px;border-radius:22px;gap:14px;}
  .follow-text h2,.public-follow-text h1{font-size:22px;line-height:1.35;}
  .follow-text p,.public-follow-text p{font-size:14px;line-height:1.7;}
  .public-contact-list{font-size:14px;gap:6px;}
  .qr-box,.public-qr-box{flex:0 0 auto;}
  .qr-box img,.public-qr-box img{width:118px;height:118px;}
  .page-head,.mock-head{border-radius:20px;padding:12px;}
  .page-head h1,.mock-head h1{font-size:21px;line-height:1.35;}
  .breadcrumb{font-size:12px;}
  textarea{min-height:260px;}
  .answer-toolbar{gap:10px;}
  .answer-toolbar .actions{width:100%;display:grid;grid-template-columns:1fr 1fr;}
  .answer-toolbar .actions button{width:100%;}

  /* 首页入口：平板双列、手机自动单列 */
  .portal-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .portal-entry{min-height:190px;padding:18px;border-radius:22px;}
  .portal-entry h2{font-size:25px;}
  .portal-entry p{font-size:14px;line-height:1.72;}

  /* 专升本首页：触屏端重排，排行榜更简约 */
  .zsb-home-hero h1{font-size:26px;}
  .zsb-home-layout{grid-template-columns:1fr;gap:12px;margin-top:12px;}
  .zsb-mock-card{min-height:210px;padding:18px;border-radius:22px;}
  .zsb-mock-card h2{font-size:26px;margin:34px 0 8px;}
  .zsb-mock-card p{font-size:14px;line-height:1.7;}
  .zsb-home-modules,.zsb-design-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}
  .zsb-design-card{min-height:auto;padding:17px;border-radius:20px;}
  .zsb-design-card h2{font-size:19px;}
  .zsb-design-card p{font-size:14px;line-height:1.68;}
  .zsb-leaderboard-card{min-height:auto;border-radius:22px;}
  .zsb-rank-topbar{padding:16px 16px 8px;gap:10px;}
  .zsb-rank-topbar h2{font-size:22px;}
  .zsb-rank-topbar p{display:none;}
  .rank-kicker{font-size:9px;margin-bottom:3px;}
  .rank-refresh-btn{height:36px!important;min-width:64px!important;padding:0 12px!important;}
  .zsb-rank-summary{margin:0 16px 10px;min-height:34px;padding:8px 10px;font-size:12px;display:block;}
  .zsb-rank-summary strong{display:none;}
  .zsb-rank-panel{height:auto;margin:0 10px 10px;padding:8px;border-radius:18px;overflow:hidden;background:#f8fbff;}
  .zsb-rank-podium{display:none!important;}
  .zsb-rank-table{border:0;background:transparent;border-radius:0;}
  .zsb-rank-table-head{display:none!important;}
  .zsb-rank-scroll-window{height:292px;background:transparent;overflow:hidden;}
  .zsb-rank-table-row{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    gap:3px 10px;
    min-height:0;
    margin-bottom:8px;
    padding:10px 12px;
    border:1px solid #e2efff;
    border-radius:16px;
    background:#fff;
    box-shadow:0 6px 16px rgba(47,128,255,.06);
    font-size:14px;
  }
  .zsb-rank-table-row .rank-no{grid-row:1/3;display:flex;align-items:center;font-size:15px;}
  .zsb-rank-table-row .rank-name{font-size:15px;font-weight:1000;}
  .zsb-rank-table-row .rank-score{font-size:16px;color:var(--deep);font-weight:1000;text-align:right;}
  .zsb-rank-table-row .rank-time{grid-column:2/4;text-align:left;font-size:12px;color:#6d7b91;}

  /* 模考页：步骤条可横向滑动，答题卡更适合触屏 */
  .mock-head{position:sticky;top:8px;z-index:55;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;}
  .mock-timer{min-width:74px;padding:10px 12px;border-radius:14px;font-size:14px;}
  .mock-start,.mock-section,.result-box{padding:16px;border-radius:22px;}
  .start-row{display:grid;grid-template-columns:1fr auto;gap:10px;}
  .stepper{display:flex;grid-template-columns:none;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 8px;margin-bottom:10px;}
  .stepper::-webkit-scrollbar{display:none;}
  .step-dot{flex:0 0 118px;scroll-snap-align:start;border-radius:15px;padding:9px 8px;}
  .mock-section-title h2{font-size:21px;}
  .mock-passage,.mock-passage-detail,.mock-item{border-radius:16px;padding:12px;}
  .mock-actions{display:grid;grid-template-columns:1fr 1fr;}
  .mock-actions .primary,.mock-actions .ghost{width:100%;}
  .mock-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));}

  /* 后台和常规页面触屏兜底 */
  .filters{gap:8px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
  .filters::-webkit-scrollbar{display:none;}
  .chip{white-space:nowrap;}
  .score-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .result-hero{grid-template-columns:1fr;}
}

@media (hover:none) and (pointer:coarse) and (min-width:769px) and (max-width:1180px){
  .app{padding-left:18px;padding-right:18px;}
  .hero h1{font-size:30px;}
  .portal-entry-grid,.home-grid,.module-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .practice-layout{grid-template-columns:1fr;}
  .question-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .zsb-rank-scroll-window{height:318px;}
  .public-follow-card,.follow-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;}
}

@media (hover:none) and (pointer:coarse) and (max-width:720px), (max-width:520px){
  .topbar{align-items:flex-start;}
  .topbar,.page-head{position:relative;top:auto;}
  .topbar .actions{width:100%;display:grid;grid-template-columns:1fr 1fr;}
  .topbar .actions .pill{width:100%;}
  .portal-link{white-space:nowrap;}
  .brand-title,.brand-sub{max-width:calc(100vw - 92px);}
  .hero h1{font-size:24px;}
  .portal-entry-grid,.home-grid,.module-grid,.question-grid,.zsb-home-modules,.zsb-design-grid{grid-template-columns:1fr;}
  .follow-card,.public-follow-card{display:block;}
  .qr-box,.public-qr-box{margin-top:12px;width:100%;}
  .qr-box img,.public-qr-box img{width:148px;height:148px;}
  .start-row{grid-template-columns:1fr;}
  .start-row .primary,.start-row .mock-input{width:100%;}
  .mock-actions,.answer-toolbar .actions{grid-template-columns:1fr;}
  .mock-result-grid,.score-grid{grid-template-columns:1fr 1fr;}
  .zsb-rank-scroll-window{height:306px;}
}

@media (hover:none) and (pointer:coarse) and (max-width:390px), (max-width:390px){
  .app{padding-left:8px;padding-right:8px;}
  .brand-title{font-size:16px;}
  .hero{padding:16px;}
  .hero h1{font-size:22px;}
  .mock-result-grid,.score-grid{grid-template-columns:1fr;}
  .zsb-rank-table-row{grid-template-columns:38px minmax(0,1fr) auto;padding:9px 10px;}
}
