.shizher-exam-wrap{
  --sz-red:#e85b66;
  --sz-red-dark:#d94a56;
  --sz-red-soft:#fff6f7;
  --sz-text:#2e3138;
  --sz-muted:#7a7f89;
  --sz-line:#eceef1;
  --sz-soft:#f8f8f9;
  max-width:1080px;
  margin:18px auto;
  padding:26px 26px 22px;
  box-sizing:border-box;
  background:#fff;
  border:1px solid #eeeeef;
  border-radius:12px;
  box-shadow:0 3px 14px rgba(0,0,0,.035);
  color:var(--sz-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.shizher-exam-wrap *{box-sizing:border-box}
.shizher-exam-head{text-align:center;padding:4px 10px 8px}
.shizher-exam-head h2{margin:0 0 10px!important;font-size:26px!important;line-height:1.35!important;font-weight:700!important;color:#303238!important}
.shizher-exam-head p{max-width:760px;margin:0 auto!important;color:#747982!important;font-size:14px!important;line-height:1.9!important}
.shizher-exam-divider{height:1px;background:var(--sz-line);margin:18px 0 20px}

.shizher-exam-tools{margin-bottom:18px}
.shizher-exam-searchbox{height:46px;display:flex;align-items:center;border:1px solid #e6e7ea;border-radius:8px;background:#fff;padding:0 13px;transition:.2s}
.shizher-exam-searchbox:focus-within{border-color:#efb4b9;box-shadow:0 0 0 3px rgba(232,91,102,.07)}
.shizher-exam-search-icon{font-size:22px;color:#a1a4aa;margin-right:7px;line-height:1}
.shizher-exam-search{display:block;width:100%!important;height:42px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;color:#383b42!important;font-size:14px!important}
.shizher-exam-search::placeholder{color:#a4a8af}
.shizher-exam-tabs{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:13px}
.shizher-exam-tabs button{appearance:none;border:1px solid #e4e5e8;background:#fff;color:#666b74;border-radius:7px;padding:7px 13px;line-height:1.2;font-size:13px;cursor:pointer;transition:.18s}
.shizher-exam-tabs button:hover{border-color:#efb4b9;color:var(--sz-red-dark)}
.shizher-exam-tabs button.active{border-color:var(--sz-red);background:var(--sz-red-soft);color:var(--sz-red-dark);font-weight:600}

.shizher-exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.shizher-exam-card{display:flex;flex-direction:column;min-height:236px;margin:0!important;padding:17px;background:#fff;border:1px solid #e9eaed;border-radius:9px;box-shadow:none;transition:.18s}
.shizher-exam-card:hover{border-color:#efc4c8;box-shadow:0 5px 18px rgba(0,0,0,.045);transform:translateY(-1px)}
.shizher-exam-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.shizher-exam-icon{width:40px;height:40px;border-radius:8px;background:#f7f7f8;display:flex;align-items:center;justify-content:center;font-size:21px}
.shizher-exam-official{display:inline-flex;align-items:center;color:#d95460;background:#fff7f8;border:1px solid #f1c7cb;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:600;white-space:nowrap}
.shizher-exam-card h3{margin:13px 0 7px!important;font-size:16px!important;line-height:1.5!important;color:#34373d!important;font-weight:700!important}
.shizher-exam-card p{margin:0 0 9px!important;color:#777c85!important;font-size:13px!important;line-height:1.72!important}
.shizher-exam-org{margin-top:auto;padding-top:6px;color:#989ca4;font-size:12px;line-height:1.6}
.shizher-exam-btn{display:flex!important;align-items:center;justify-content:space-between;margin-top:11px;padding:9px 11px;border:1px solid #ececef;border-radius:7px;background:#fafafa;color:#555a63!important;text-decoration:none!important;font-size:13px;font-weight:600;transition:.18s}
.shizher-exam-btn:hover{border-color:#efb4b9;background:#fff7f8;color:var(--sz-red-dark)!important}

.shizher-exam-empty{text-align:center;padding:35px 10px;color:#999da5;font-size:14px}
.shizher-exam-notice{margin-top:19px;padding:15px 16px;background:#fafafa;border:1px solid #ececef;border-radius:8px;color:#686d75;font-size:13px;line-height:1.8}
.shizher-exam-notice strong{display:block;margin-bottom:4px;color:#44484f;font-size:14px}
.shizher-exam-notice p{margin:0!important;font-size:13px!important;line-height:1.8!important;color:#71767e!important}

.shizher-exam-reward-area{text-align:center;padding:23px 10px 8px}
.shizher-exam-reward-btn{min-width:178px;height:43px;display:inline-flex;align-items:center;justify-content:center;gap:7px;appearance:none;background:#fff;border:1px solid var(--sz-red);border-radius:7px;color:var(--sz-red-dark);font-size:14px;font-weight:600;cursor:pointer;transition:.18s;box-shadow:none}
.shizher-exam-reward-btn:hover{background:#fff5f6;border-color:var(--sz-red-dark);color:#cf404d;transform:translateY(-1px)}
.shizher-exam-reward-btn:active{transform:translateY(0)}
.shizher-exam-heart{font-size:22px;line-height:1;margin-top:-2px}
.shizher-exam-reward-tip{margin:9px 0 0!important;color:#a0a3aa!important;font-size:12px!important;line-height:1.7!important}
.shizher-exam-footer-note{margin-top:15px;padding-top:15px;border-top:1px solid var(--sz-line);text-align:center;color:#a2a5ab;font-size:12px;line-height:1.7}

.shizher-exam-reward-loading{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.34);backdrop-filter:blur(1px)}
.shizher-exam-reward-loading[hidden]{display:none!important}
.shizher-exam-reward-loading-card{display:flex;align-items:center;gap:10px;padding:14px 18px;border:1px solid #f0d5d8;border-radius:10px;background:#fff;color:#d44b58;font-size:14px;font-weight:600;box-shadow:0 9px 32px rgba(0,0,0,.12)}
.shizher-exam-spinner{width:17px;height:17px;border:2px solid #f3ced1;border-top-color:#df5864;border-radius:50%;animation:shizherExamSpin .75s linear infinite}
@keyframes shizherExamSpin{to{transform:rotate(360deg)}}

/* B2 原生赞赏组件只作为触发源，不参与工具页布局。 */
.shizher-exam-native-reward-host{position:fixed!important;left:-100000px!important;top:-100000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:.001!important;pointer-events:none!important}

@media(max-width:900px){
  .shizher-exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .shizher-exam-wrap{margin:10px auto;padding:19px 14px 17px;border-radius:9px}
  .shizher-exam-head{padding:1px 3px 5px}
  .shizher-exam-head h2{font-size:22px!important}
  .shizher-exam-head p{font-size:13px!important;line-height:1.8!important}
  .shizher-exam-divider{margin:14px 0 16px}
  .shizher-exam-tabs{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .shizher-exam-tabs::-webkit-scrollbar{display:none}
  .shizher-exam-tabs button{white-space:nowrap;flex:0 0 auto}
  .shizher-exam-grid{grid-template-columns:1fr;gap:10px}
  .shizher-exam-card{min-height:0;padding:15px}
  .shizher-exam-reward-area{padding-top:20px}
  .shizher-exam-reward-btn{width:100%;max-width:260px}
}

/* v1.2.0：入口数量提示与分类计数 */
.shizher-exam-stats{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;padding:5px 11px;border-radius:999px;background:#fff7f8;border:1px solid #f1d0d3;color:#d65561;font-size:12px;line-height:1.4;font-weight:600}
.shizher-exam-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;margin-left:4px;padding:0 5px;border-radius:999px;background:#f5f5f6;color:#8a8e95;font-size:11px;font-weight:600}
.shizher-exam-tabs button.active span{background:#f8dfe2;color:#c93f4c}

/* v1.2.1：省级教育考试院独立选择区，不再与全国考试卡片混排 */
.shizher-exam-province-section{
  margin-top:24px;
  padding:20px;
  border:1px solid #ececef;
  border-radius:10px;
  background:#fcfcfc;
}
.shizher-exam-province-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.shizher-exam-province-kicker{display:inline-flex;align-items:center;margin-bottom:7px;padding:3px 8px;border:1px solid #f1c7cb;border-radius:999px;background:#fff7f8;color:#d95460;font-size:11px;font-weight:600;line-height:1.3}
.shizher-exam-province-head h3{margin:0 0 5px!important;font-size:19px!important;line-height:1.45!important;color:#34373d!important;font-weight:700!important}
.shizher-exam-province-head p{margin:0!important;color:#7c8189!important;font-size:13px!important;line-height:1.75!important}
.shizher-exam-province-count{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#fff;border:1px solid #e8e9ec;color:#8a8e95;font-size:12px;white-space:nowrap}
.shizher-exam-province-picker{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:10px;padding:13px 14px;background:#fff;border:1px solid #e9eaed;border-radius:8px}
.shizher-exam-province-label{color:#565b63;font-size:13px;font-weight:600}
.shizher-exam-province-select{width:100%;height:42px!important;margin:0!important;padding:0 38px 0 12px!important;border:1px solid #dedfe3!important;border-radius:7px!important;background-color:#fff!important;color:#454951!important;font-size:14px!important;line-height:40px!important;box-shadow:none!important;outline:none!important}
.shizher-exam-province-select:focus{border-color:#efb4b9!important;box-shadow:0 0 0 2px rgba(232,91,102,.08)!important}
.shizher-exam-province-result{margin-top:12px}
.shizher-exam-province-placeholder{padding:14px 15px;border:1px dashed #e3e4e7;border-radius:8px;background:#fff;color:#9a9da4;font-size:13px;line-height:1.7;text-align:center}
.shizher-exam-province-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px;background:#fff;border:1px solid #e7e8eb;border-radius:9px}
.shizher-exam-province-card{display:none!important}
.shizher-exam-province-card[hidden]{display:none!important}
.shizher-exam-province-card.is-active{display:grid!important}
.shizher-exam-province-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#fff7f8;border:1px solid #f1d0d3;color:#d84d59;font-size:20px;font-weight:700}
.shizher-exam-province-info{min-width:0}
.shizher-exam-province-info .shizher-exam-official{margin-bottom:5px}
.shizher-exam-province-info h4{margin:0 0 4px!important;color:#34373d!important;font-size:15px!important;line-height:1.5!important;font-weight:700!important}
.shizher-exam-province-info p{margin:0 0 3px!important;color:#7b8088!important;font-size:12px!important;line-height:1.65!important}
.shizher-exam-province-info .shizher-exam-org{padding-top:0;font-size:11px}
.shizher-exam-province-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-width:108px;height:40px;padding:0 13px;border:1px solid #efc1c5;border-radius:7px;background:#fff7f8;color:#d44c58!important;text-decoration:none!important;font-size:13px;font-weight:600;white-space:nowrap;transition:.18s}
.shizher-exam-province-btn:hover{border-color:#e85b66;background:#fff0f2;color:#cb3f4c!important}

@media(max-width:600px){
  .shizher-exam-province-section{margin-top:19px;padding:15px 12px}
  .shizher-exam-province-head{gap:10px}
  .shizher-exam-province-head h3{font-size:17px!important}
  .shizher-exam-province-picker{grid-template-columns:1fr;gap:7px;padding:11px}
  .shizher-exam-province-card{grid-template-columns:42px minmax(0,1fr);gap:11px;padding:13px}
  .shizher-exam-province-icon{width:42px;height:42px;font-size:18px}
  .shizher-exam-province-btn{grid-column:1 / -1;width:100%;margin-top:2px}
}

/* v1.3.5：普通高考与其他考试使用相同标准卡片布局 */
.shizher-exam-gaokao-card{grid-column:auto!important;background:#fff!important}
.shizher-exam-gaokao-select{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:40px!important;
  margin:11px 0 0!important;
  padding:0 36px 0 11px!important;
  border:1px solid #ececef!important;
  border-radius:7px!important;
  background-color:#fafafa!important;
  color:#555a63!important;
  font-size:13px!important;
  line-height:38px!important;
  box-shadow:none!important;
  outline:none!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.shizher-exam-gaokao-select:hover{border-color:#efb4b9!important;background:#fff7f8!important;color:var(--sz-red-dark)!important}
.shizher-exam-gaokao-select:focus{border-color:#efb4b9!important;box-shadow:0 0 0 2px rgba(232,91,102,.08)!important;background:#fff!important}


/* v1.3.8：高考弹层支持按钮、遮罩、Esc 三种关闭方式 */
.shizher-exam-gaokao-open{
  width:100%!important;
  appearance:none!important;
  cursor:pointer!important;
  text-align:left!important;
  font-family:inherit!important;
}
.shizher-exam-gaokao-modal{
  position:fixed!important;
  inset:0!important;
  z-index:1000000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
}
.shizher-exam-gaokao-modal:target,.shizher-exam-gaokao-modal.is-open{display:flex!important}
.shizher-exam-gaokao-modal[hidden]{display:none!important}

html.shizher-exam-modal-open{overflow:hidden!important}
.shizher-exam-gaokao-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(26,28,32,.38)!important;
  backdrop-filter:blur(1px);
}
.shizher-exam-gaokao-panel{
  position:relative!important;
  z-index:1!important;
  width:min(440px,100%)!important;
  padding:24px!important;
  border:1px solid #ececef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 18px 55px rgba(0,0,0,.18)!important;
}
.shizher-exam-gaokao-panel h3{
  margin:6px 34px 7px 0!important;
  color:#34373d!important;
  font-size:20px!important;
  line-height:1.45!important;
  font-weight:700!important;
}
.shizher-exam-gaokao-panel p{
  margin:0 0 15px!important;
  color:#777c85!important;
  font-size:13px!important;
  line-height:1.75!important;
}
.shizher-exam-gaokao-close{
  position:absolute!important;
  top:13px!important;
  right:13px!important;
  width:32px!important;
  height:32px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#f6f6f7!important;
  color:#777c85!important;
  font-size:23px!important;
  line-height:30px!important;
  cursor:pointer!important;
}
.shizher-exam-gaokao-close:hover{background:#fff0f2!important;color:var(--sz-red-dark)!important}
.shizher-exam-gaokao-panel .shizher-exam-gaokao-select{
  height:46px!important;
  margin:0!important;
  background:#fff!important;
  font-size:14px!important;
}
.shizher-exam-gaokao-form{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:0!important}
.shizher-exam-gaokao-submit{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:44px!important;padding:0 13px!important;border:1px solid #efc1c5!important;border-radius:7px!important;background:#fff7f8!important;color:#d44c58!important;font-family:inherit!important;font-size:13px!important;font-weight:600!important;cursor:pointer!important;box-shadow:none!important}
.shizher-exam-gaokao-submit:hover{border-color:#e85b66!important;background:#fff0f2!important;color:#cb3f4c!important}
.shizher-exam-gaokao-hint{
  margin-top:10px!important;
  color:#a0a3aa!important;
  font-size:12px!important;
  line-height:1.65!important;
}
@media(max-width:600px){
  .shizher-exam-gaokao-modal{align-items:flex-end!important;padding:0!important}
  .shizher-exam-gaokao-panel{width:100%!important;border-radius:14px 14px 0 0!important;padding:22px 16px 20px!important}
}
