/* 「用英语讲中国故事」大赛 H5 · 视觉规范 v1.0 */
:root{
  --color-primary:#C8161D; --color-primary-hover:#A91218; --color-primary-light:#FBE8E8;
  --color-secondary:#2B6CB0; --color-secondary-light:#E8F1FA; --color-gold:#D9A441;
  --gradient-gold:linear-gradient(135deg,#F5D48A 0%,#E2B15C 50%,#C9963F 100%);
  --color-success:#16A34A; --color-warning:#D97706; --color-error:#DC2626; --color-info:#2B6CB0;
  --gray-900:#1F2329; --gray-700:#4E5969; --gray-500:#86909C; --gray-300:#C9CDD4;
  --gray-200:#E5E6EB; --gray-100:#F2F3F5; --gray-50:#F7F8FA;
  --radius-sm:6px; --radius-md:8px; --radius-lg:12px; --radius-xl:16px; --radius-full:999px;
  --shadow-card:0 2px 8px rgba(31,35,41,.06); --shadow-modal:0 8px 24px rgba(31,35,41,.16);
  --shadow-primary:0 4px 12px rgba(200,22,29,.28); --shadow-gold:0 6px 20px rgba(217,164,65,.30);
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px;
  --font-body:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",sans-serif;
  --font-brush:"MaShanZheng","STKaiti","KaiTi","Hiragino Mincho ProN",serif;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  font-family:var(--font-body);color:var(--gray-900);background:#2b2f36;
  display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px 0;
}
.phone{width:375px;height:812px;background:var(--gray-50);border-radius:36px;overflow:hidden;position:relative;
  box-shadow:0 0 0 10px #111,0 0 0 12px #333,0 24px 60px rgba(0,0,0,.5)}
@media (max-width:520px),(max-height:860px){
  body{padding:0;background:var(--gray-50)}
  .phone{width:100vw;height:100vh;height:100dvh;border-radius:0;box-shadow:none}
  .statusbar,.phone-notch{display:none}
}
.statusbar{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;
  font-size:12px;font-weight:600;color:var(--gray-900);background:#fff;position:relative;z-index:30;flex:none}
#app{height:calc(100% - 32px);position:relative;overflow:hidden;display:flex;flex-direction:column;background:var(--gray-50)}
@media (max-width:520px),(max-height:860px){#app{height:100%}}

.page{position:absolute;inset:0;background:var(--gray-50);display:flex;flex-direction:column;overflow:hidden}
.page.active{display:flex;animation:pageIn .22s ease}
@keyframes pageIn{from{opacity:.4;transform:translateX(14px)}to{opacity:1;transform:none}}
.page-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.page-scroll::-webkit-scrollbar{width:0}

/* Navbar */
.navbar{height:44px;flex:none;display:flex;align-items:center;position:relative;background:#fff;
  border-bottom:.5px solid var(--gray-200);z-index:10}
.navbar.transparent{background:transparent;border-bottom:none}
.navbar .nav-title{font-size:17px;font-weight:600;color:var(--gray-900);width:100%;text-align:center;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 56px}
.navbar.transparent .nav-title{color:#fff}
.nav-back{position:absolute;left:8px;top:0;height:100%;width:44px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.nav-back svg{width:22px;height:22px;stroke:var(--gray-900);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.navbar.transparent .nav-back svg{stroke:#fff}
.nav-right{position:absolute;right:12px;top:0;height:100%;display:flex;align-items:center;font-size:13px;color:var(--color-primary);cursor:pointer}

/* TabBar */
.tabbar{height:calc(56px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
  background:#fff;border-top:.5px solid var(--gray-200);box-shadow:0 -1px 6px rgba(31,35,41,.04);
  display:flex;flex:none;z-index:10}
.tabbar.hidden{display:none}
.tab-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}
.tab-item svg{width:24px;height:24px;fill:none;stroke:#86909C;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tab-item span{font-size:10px;color:var(--gray-500)}
.tab-item.active span{color:var(--color-primary);font-weight:500}
.tab-item.active svg{stroke:var(--color-primary)}

/* 通用 */
.btn{display:flex;align-items:center;justify-content:center;height:44px;border-radius:var(--radius-md);border:none;
  cursor:pointer;font-size:16px;font-weight:500;font-family:var(--font-body);width:100%;transition:transform .1s;background:#fff}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--color-primary);color:#fff;box-shadow:var(--shadow-primary)}
.btn-primary:active{background:var(--color-primary-hover)}
.btn-secondary{background:#fff;color:var(--color-primary);border:1px solid var(--color-primary)}
.btn-blue{background:#fff;color:var(--color-secondary);border:1px solid var(--color-secondary)}
.btn-disabled{background:var(--gray-100);color:var(--gray-300);cursor:not-allowed;box-shadow:none;transform:none}
.btn-mid{height:36px;font-size:14px;width:auto;padding:0 16px}
.btn-capsule{height:36px;width:auto;padding:0 18px;border-radius:var(--radius-full);font-size:14px}
.btn.loading{opacity:.7;pointer-events:none}
.card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:var(--space-4)}
.tag{display:inline-flex;align-items:center;font-size:10px;font-weight:500;padding:2px 8px;border-radius:var(--radius-sm)}
.tag-red{background:var(--color-primary-light);color:var(--color-primary)}
.tag-gold{background:rgba(217,164,65,.15);color:#B8862E}
.tag-green{background:rgba(22,163,74,.12);color:var(--color-success)}
.tag-yellow{background:rgba(217,119,6,.12);color:var(--color-warning)}
.tag-gray{background:var(--gray-100);color:var(--gray-500)}
.tag-blue{background:var(--color-secondary-light);color:var(--color-secondary)}
.section-title{font-size:18px;font-weight:600;line-height:26px}
.hair-more{font-size:12px;color:var(--gray-500);cursor:pointer;display:flex;align-items:center;gap:2px}
.empty{padding:48px 24px;text-align:center;color:var(--gray-500);font-size:13px;line-height:22px}
.empty .ill{width:88px;height:88px;margin:0 auto 12px;opacity:.9}
.skeleton{padding:16px}
.sk{background:linear-gradient(90deg,#f0f1f3 25%,#f7f8fa 37%,#f0f1f3 63%);background-size:400% 100%;
  animation:sk 1.4s ease infinite;border-radius:8px;margin-bottom:12px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* Toast */
#toast{position:absolute;top:100px;left:50%;transform:translateX(-50%) translateY(-8px);background:rgba(31,35,41,.9);
  color:#fff;font-size:13px;line-height:20px;padding:10px 18px;border-radius:var(--radius-md);max-width:300px;
  text-align:center;opacity:0;pointer-events:none;transition:.25s;z-index:9999}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* 首页 */
.hero{background:linear-gradient(165deg,#C8161D 0%,#A91218 70%,#8E0F14 100%);padding:14px 16px 56px;color:#fff;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 85% 15%,rgba(255,255,255,.16),transparent 45%)}
.hero-brand{display:flex;align-items:center;gap:8px;position:relative;z-index:1}
.hero-brand .logo{width:26px;height:26px}
.hero-brand .names .en{font-size:6.5px;letter-spacing:.4px;opacity:.8}
.hero-brand .names .cn{font-size:11px;letter-spacing:1px;margin-top:1px}
.hero-title{position:relative;z-index:1;margin-top:20px;display:flex;align-items:flex-end;justify-content:space-between}
.hero-title h1{font-family:var(--font-brush);font-size:34px;line-height:1.15;font-weight:600;letter-spacing:2px;
  text-shadow:0 2px 10px rgba(0,0,0,.18)}
.hero-title .sub{font-size:10px;letter-spacing:2px;opacity:.82;margin-top:8px;font-family:Georgia,serif}
.hero-title .seal{width:44px;height:44px;border:1.5px solid rgba(255,255,255,.75);border-radius:6px;
  font-family:var(--font-brush);font-size:13px;line-height:1.15;display:flex;align-items:center;justify-content:center;
  text-align:center;letter-spacing:1px;flex:none;margin-bottom:4px}
.banner-wrap{position:relative;margin:-38px 16px 0;z-index:2}
.banner{height:150px;border-radius:var(--radius-lg);overflow:hidden;position:relative;background:#ddd;box-shadow:var(--shadow-card)}
.banner-track{display:flex;height:100%;transition:transform .45s ease}
.banner-slide{min-width:100%;height:100%;position:relative;background-size:cover;background-position:center}
.banner-slide .mask{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,.05))}
.banner-slide .txt{position:absolute;left:16px;bottom:20px;color:#fff;font-size:16px;font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,.4);max-width:70%}
.banner-cta{position:absolute;right:12px;bottom:12px;background:#fff;color:var(--color-primary);font-size:12px;
  font-weight:600;padding:6px 12px;border-radius:var(--radius-full);box-shadow:0 2px 8px rgba(0,0,0,.15)}
.banner-dots{display:flex;gap:5px;justify-content:center;margin-top:8px}
.banner-dots i{width:6px;height:6px;border-radius:50%;background:var(--gray-300);transition:.2s}
.banner-dots i.on{width:16px;border-radius:3px;background:var(--color-primary)}
.quick{display:flex;gap:12px;margin:16px}
.quick-card{flex:1;background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:14px;
  display:flex;flex-direction:column;gap:10px;position:relative;cursor:pointer;min-height:104px}
.quick-card.main{background:linear-gradient(150deg,#FFF6F3,#FFECEA)}
.quick-card .ic{width:36px;height:36px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center}
.quick-card .ic svg{width:20px;height:20px;fill:none;stroke:var(--color-primary);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quick-card.plain .ic svg{stroke:var(--color-secondary)}
.quick-card .tt{font-size:15px;font-weight:600}
.quick-card .ss{font-size:11px;color:var(--gray-500);margin-top:3px;line-height:16px}
.badge-state{position:absolute;right:12px;top:12px;font-size:10px;padding:3px 8px;border-radius:var(--radius-full)}
.news-section{margin:4px 16px 20px}
.news-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.news-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:12px;
  display:flex;gap:12px;margin-bottom:10px;cursor:pointer}
.news-card:active{background:var(--gray-50)}
.news-card .thumb{width:96px;height:72px;border-radius:var(--radius-md);background:var(--gray-100);object-fit:cover;flex:none}
.news-card .bd{flex:1;min-width:0;display:flex;flex-direction:column}
.news-card .t{font-size:15px;font-weight:500;line-height:21px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-card .m{font-size:11px;color:var(--gray-500);margin-top:auto}

/* 文章 */
.article{padding:20px 16px 32px;background:#fff;min-height:100%}
.article h2{font-size:22px;line-height:30px;font-weight:600;margin-bottom:8px}
.article .meta{font-size:11px;color:var(--gray-500);margin-bottom:18px}
.article h3{font-size:16px;font-weight:600;margin:20px 0 8px;padding-left:10px;border-left:3px solid var(--color-primary)}
.article p{font-size:14px;line-height:26px;color:var(--gray-700);margin-bottom:10px}
.article img{max-width:100%;border-radius:8px;margin:8px 0;display:block}
.article .stamp-tip{background:var(--color-primary-light);border-radius:var(--radius-md);padding:12px;font-size:12px;
  line-height:20px;color:#8E0F14;margin-top:18px}

/* 底部操作条 */
.bottom-bar{flex:none;background:#fff;border-top:.5px solid var(--gray-200);padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  display:flex;align-items:center;gap:10px}
.agree-row{display:flex;align-items:flex-start;gap:8px;flex:1;cursor:pointer}
.agree-row .checkbox{width:18px;height:18px;border:1.5px solid var(--gray-300);border-radius:4px;flex:none;margin-top:1px;
  display:flex;align-items:center;justify-content:center;transition:.15s}
.agree-row .checkbox svg{width:12px;height:12px;opacity:0}
.agree-row.on .checkbox{background:var(--color-primary);border-color:var(--color-primary)}
.agree-row.on .checkbox svg{opacity:1}
.agree-row.off{opacity:.5;pointer-events:none}
.agree-row .txt{font-size:11px;color:var(--gray-700);line-height:18px}
.submit-bar{flex:none;background:#fff;border-top:.5px solid var(--gray-200);padding:10px 16px calc(10px + env(safe-area-inset-bottom))}

/* 表单 */
.form-progress{background:var(--color-secondary-light);color:var(--color-secondary);font-size:12px;
  padding:9px 16px;display:flex;align-items:center;gap:6px}
.form-group{background:#fff;margin-top:10px;padding:4px 16px 8px}
.form-group .group-title{font-size:13px;font-weight:600;color:var(--gray-900);padding:12px 0 4px}
.field-row{padding:8px 0;position:relative}
.field-label{display:block;font-size:13px;color:var(--gray-700);margin-bottom:6px}
.field-label .req{color:var(--color-primary);margin-right:2px}
.input,.select-box{width:100%;height:44px;border:1px solid var(--gray-200);border-radius:var(--radius-md);
  background:#fff;padding:0 12px;font-size:14px;font-family:var(--font-body);color:var(--gray-900);outline:none;
  display:flex;align-items:center;justify-content:space-between;transition:.15s}
.input::placeholder{color:var(--gray-300)}
.input:focus,.select-box.on{border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(200,22,29,.1)}
.select-box{cursor:pointer;color:var(--gray-900)}
.select-box .ph{color:var(--gray-300)}
.select-box svg{width:16px;height:16px;stroke:var(--gray-500);fill:none;stroke-width:2;flex:none}
.field-row.error .input,.field-row.error .select-box{border-color:var(--color-error);box-shadow:0 0 0 3px rgba(220,38,38,.08)}
.err-msg{display:none;font-size:11px;color:var(--color-error);margin-top:5px}
.field-row.error .err-msg{display:block}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.segment{display:flex;background:var(--gray-100);border-radius:var(--radius-md);padding:3px}
.segment .seg{flex:1;height:34px;border:none;background:transparent;font-size:13px;color:var(--gray-700);
  border-radius:6px;font-family:var(--font-body);cursor:pointer}
.segment .seg.on{background:#fff;color:var(--color-primary);font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.gender-seg{display:flex;gap:10px}
.gender-seg .g{flex:1;height:44px;border:1px solid var(--gray-200);border-radius:var(--radius-md);
  display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--gray-700);cursor:pointer}
.gender-seg .g.on{border-color:var(--color-primary);background:var(--color-primary-light);color:var(--color-primary);font-weight:500}
.code-row{display:flex;gap:10px}
.code-row .input{flex:1}
.code-btn{flex:none;height:44px;padding:0 14px;border-radius:var(--radius-md);border:1px solid var(--color-primary);
  background:#fff;color:var(--color-primary);font-size:13px;font-family:var(--font-body);cursor:pointer;white-space:nowrap}
.code-btn:disabled{border-color:var(--gray-200);color:var(--gray-300)}
.privacy-note{display:flex;gap:6px;align-items:flex-start;font-size:11px;color:var(--gray-500);line-height:17px;padding:6px 0 10px}
.privacy-note svg{width:13px;height:13px;flex:none;margin-top:2px;stroke:var(--gray-500);fill:none;stroke-width:2}
.form-foot{height:4px}

/* 弹层 */
.sheet-mask{position:absolute;inset:0;background:rgba(31,35,41,.45);z-index:100;display:none;align-items:flex-end}
.sheet-mask.show{display:flex}
.sheet{background:#fff;width:100%;border-radius:var(--radius-lg) var(--radius-lg) 0 0;max-height:74%;
  display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);animation:sheetUp .25s ease}
@keyframes sheetUp{from{transform:translateY(40%)}to{transform:none}}
.sheet-head{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:.5px solid var(--gray-200);flex:none}
.sheet-head .t{font-size:16px;font-weight:600}
.sheet-head .x{font-size:14px;color:var(--gray-500);cursor:pointer;padding:4px}
.sheet-body{overflow-y:auto;padding:8px 16px 20px}
.opt-row{padding:13px 12px;font-size:14px;color:var(--gray-900);border-radius:var(--radius-md);cursor:pointer;
  display:flex;align-items:center;justify-content:space-between}
.opt-row:active{background:var(--gray-100)}
.opt-row.sel{background:var(--color-primary-light);color:var(--color-primary);font-weight:500}
.opt-row .sub{font-size:11px;color:var(--gray-500);margin-left:8px;font-weight:400}
.search-input{width:100%;height:40px;border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:0 12px;
  font-size:14px;outline:none;margin-bottom:8px;font-family:var(--font-body)}
.modal-mask{position:absolute;inset:0;background:rgba(31,35,41,.5);z-index:120;display:none;align-items:center;justify-content:center;padding:32px}
.modal-mask.show{display:flex}
.modal{background:#fff;border-radius:var(--radius-lg);width:100%;max-width:315px;overflow:hidden;animation:modalIn .22s ease}
@keyframes modalIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
.modal-head{padding:20px 20px 0;font-size:16px;font-weight:600;text-align:center}
.modal-body{padding:12px 20px 18px;font-size:13px;line-height:21px;color:var(--gray-700);text-align:center}
.modal-foot{display:flex;border-top:.5px solid var(--gray-200)}
.modal-foot button{flex:1;height:46px;border:none;background:#fff;font-size:15px;font-family:var(--font-body);cursor:pointer}
.modal-foot button+button{border-left:.5px solid var(--gray-200)}
.modal-foot .ok{color:var(--color-primary);font-weight:500}
.modal-foot .cancel{color:var(--gray-700)}
.full-loading{position:absolute;inset:0;background:rgba(255,255,255,.94);z-index:200;display:none;
  flex-direction:column;align-items:center;justify-content:center;gap:14px;font-size:13px;color:var(--gray-700)}
.full-loading.show{display:flex}
.spinner{width:34px;height:34px;border:3px solid var(--gray-200);border-top-color:var(--color-primary);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* 报名成功 */
.success-wrap{padding:48px 24px 24px;text-align:center}
.success-ring{width:78px;height:78px;border-radius:50%;background:linear-gradient(135deg,#16A34A,#22C55E);margin:0 auto 18px;
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(22,163,74,.3);animation:pop .5s ease}
@keyframes pop{0%{transform:scale(.5);opacity:0}70%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}
.success-ring svg{width:40px;height:40px;stroke:#fff;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.success-wrap h1{font-size:22px;font-weight:600}
.success-wrap .sub{font-size:12px;color:var(--gray-500);margin-top:8px;line-height:19px}
.reg-no-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:18px;margin:20px 0}
.reg-no-card .lb{font-size:11px;color:var(--gray-500)}
.reg-no-card .no{font-family:Courier New,monospace;font-size:24px;font-weight:700;color:var(--color-primary);letter-spacing:1px;margin-top:6px}

/* 考场 */
.room-hero{background:linear-gradient(160deg,#2B6CB0,#1E4E80);padding:22px 16px 26px;color:#fff}
.room-hero h1{font-size:20px;font-weight:600;line-height:28px}
.room-hero .meta{display:flex;gap:14px;font-size:11px;opacity:.85;margin-top:10px;flex-wrap:wrap}
.room-info{background:#fff;margin:12px 16px;border-radius:var(--radius-lg);padding:16px;box-shadow:var(--shadow-card)}
.room-info .row{display:flex;justify-content:space-between;font-size:13px;padding:7px 0;color:var(--gray-700)}
.room-info .row b{color:var(--gray-900);font-weight:600}
.room-desc{font-size:13px;line-height:22px;color:var(--gray-700);padding:0 0 6px}

/* 答题 */
.exam-page{background:#fff}
.exam-top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;
  border-bottom:.5px solid var(--gray-200);background:#fff;z-index:5}
.countdown{display:inline-flex;align-items:center;gap:5px;background:var(--color-secondary-light);color:var(--color-secondary);
  font-family:Courier New,monospace;font-size:15px;font-weight:700;padding:6px 10px;border-radius:var(--radius-full)}
.countdown.warn{background:rgba(217,119,6,.12);color:var(--color-warning);animation:pulse 1.6s infinite}
.countdown.danger{background:rgba(220,38,38,.1);color:var(--color-error)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.62}}
.q-progress{font-size:12px;color:var(--gray-500)}
.q-progress b{color:var(--gray-900);font-size:15px}
.card-btn{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--color-secondary);cursor:pointer;
  border:1px solid var(--color-secondary);border-radius:var(--radius-full);padding:5px 10px}
.exam-body{flex:1;overflow-y:auto;padding:18px 16px 20px}
.q-tag{display:inline-block;font-size:10px;padding:2px 8px;border-radius:var(--radius-sm);background:var(--color-secondary-light);color:var(--color-secondary);margin-bottom:10px}
.q-stem{font-size:16px;line-height:25px;color:var(--gray-900);font-weight:500;font-family:Georgia,"Times New Roman",serif}
.q-stem img{max-width:100%;border-radius:8px;margin-top:10px}
.opt-list{margin-top:18px;display:flex;flex-direction:column;gap:11px}
.opt{display:flex;gap:11px;align-items:flex-start;padding:12px 14px;border:1px solid var(--gray-200);border-radius:var(--radius-md);
  cursor:pointer;transition:.15s;background:#fff}
.opt .k{width:26px;height:26px;border-radius:50%;background:var(--gray-100);color:var(--gray-700);font-size:12px;
  font-weight:600;display:flex;align-items:center;justify-content:center;flex:none;transition:.15s}
.opt .tx{font-size:14px;line-height:23px;color:var(--gray-900);padding-top:2px}
.opt.on{border-color:var(--color-secondary);background:var(--color-secondary-light)}
.opt.on .k{background:var(--color-secondary);color:#fff}
.exam-foot{flex:none;display:flex;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top:.5px solid var(--gray-200);background:#fff}
.exam-foot .btn{flex:1}
.exam-foot .btn-secondary{flex:none;width:96px}
.grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.grid .cell{height:38px;border-radius:var(--radius-md);background:var(--gray-100);color:var(--gray-700);font-size:13px;
  display:flex;align-items:center;justify-content:center;cursor:pointer}
.grid .cell.done{background:var(--color-secondary-light);color:var(--color-secondary);font-weight:600}
.grid .cell.cur{outline:1.5px solid var(--color-secondary);outline-offset:1px}
.leave-mask{position:absolute;inset:0;background:rgba(31,35,41,.86);z-index:300;display:none;
  flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:32px;gap:14px}
.leave-mask.show{display:flex}
.leave-mask .t{font-size:18px;font-weight:600}
.leave-mask .s{font-size:13px;line-height:22px;opacity:.8}
.leave-mask .n{font-size:44px;font-family:Courier New,monospace;color:#F5D48A}

/* 成绩 */
.result-hero{background:linear-gradient(165deg,#C8161D,#8E0F14);padding:28px 16px 34px;color:#fff;text-align:center;position:relative}
.badge-score{width:104px;height:104px;border-radius:50%;background:var(--gradient-gold);margin:0 auto 12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(217,164,65,.4);
  border:3px solid rgba(255,255,255,.7);color:#6B3F0A}
.badge-score.gray{background:linear-gradient(135deg,#E5E6EB,#C9CDD4);box-shadow:none;color:var(--gray-500)}
.badge-score .v{font-size:34px;font-weight:700;line-height:1}
.badge-score .l{font-size:10px;margin-top:3px;opacity:.85}
.result-hero h2{font-size:15px;font-weight:500;opacity:.92}
.result-hero .pass-line{font-size:11px;opacity:.75;margin-top:6px}
.stat-row{display:flex;background:#fff;margin:-18px 16px 0;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
  padding:14px 0;position:relative;z-index:2}
.stat-row .it{flex:1;text-align:center;position:relative}
.stat-row .it+.it:before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:.5px;background:var(--gray-200)}
.stat-row .v{font-size:19px;font-weight:600}
.stat-row .l{font-size:11px;color:var(--gray-500);margin-top:3px}
.rise-pill{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:5px 12px;border-radius:var(--radius-full);margin-top:12px}

/* 查询 / 我的 */
.query-wrap{padding:16px}
.seg-tabs{display:flex;background:var(--gray-100);border-radius:var(--radius-md);padding:3px;margin-bottom:16px}
.seg-tabs .st{flex:1;height:36px;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--gray-700);
  border-radius:6px;cursor:pointer}
.seg-tabs .st.on{background:#fff;color:var(--color-primary);font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.query-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:18px 16px}
.query-card h3{font-size:16px;font-weight:600;margin-bottom:4px}
.query-card .desc{font-size:11px;color:var(--gray-500);line-height:18px;margin-bottom:14px}
.id-card{background:linear-gradient(140deg,#C8161D,#8E0F14);color:#fff;border-radius:var(--radius-lg);padding:18px;margin-bottom:12px}
.id-card .nm{font-size:20px;font-weight:600;font-family:var(--font-brush);letter-spacing:2px}
.id-card .sc{font-size:12px;opacity:.85;margin-top:6px}
.id-card .stages{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.stage-chip{font-size:11px;padding:4px 10px;border-radius:var(--radius-full);background:rgba(255,255,255,.16)}
.stage-chip.rise{background:#fff;color:var(--color-success);font-weight:600}
.stage-chip.out{background:rgba(255,255,255,.1);color:rgba(255,255,255,.6)}
.stage-chip.wait{background:rgba(255,255,255,.16);color:#FFE0A3}
.mine-head{background:linear-gradient(160deg,#C8161D,#8E0F14);padding:20px 16px 40px;color:#fff}
.mine-user{display:flex;align-items:center;gap:12px}
.mine-user .av{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;
  justify-content:center;font-family:var(--font-brush);font-size:22px;border:1.5px solid rgba(255,255,255,.5)}
.mine-user .nm{font-size:17px;font-weight:600}
.mine-user .mb{font-size:11px;opacity:.8;margin-top:3px}
.mine-overview{display:flex;background:#fff;margin:-26px 16px 0;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
  padding:14px 0;position:relative;z-index:2}
.mine-overview .ov{flex:1;text-align:center}
.mine-overview .v{font-size:20px;font-weight:600}
.mine-overview .l{font-size:11px;color:var(--gray-500);margin-top:2px}
.mine-menu{margin:14px 16px;background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:0 16px}
.menu-row{display:flex;align-items:center;gap:12px;height:56px;cursor:pointer}
.menu-row:not(:last-child){border-bottom:.5px solid var(--gray-100)}
.menu-row .ic{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex:none}
.menu-row .ic svg{width:18px;height:18px;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu-row .tt{font-size:15px;font-weight:500}
.menu-row .arr{margin-left:auto;width:16px;height:16px;stroke:var(--gray-300);fill:none;stroke-width:2}
.record-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:14px 16px;margin:0 16px 12px;cursor:pointer}
.record-card .top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.record-card .top .t{font-size:15px;font-weight:600}
.record-card .meta{display:flex;gap:14px;font-size:11px;color:var(--gray-500);margin-top:8px;flex-wrap:wrap}
.record-card .score-line{display:flex;align-items:baseline;gap:8px;margin-top:8px}
.record-card .score-line .sc{font-size:24px;font-weight:700;color:var(--color-primary)}
.record-card .score-line .pl{font-size:11px;color:var(--gray-500)}
.list-wrap{padding:16px 0 24px}

/* 证书 */
.cert-page{background:#F2F3F5}
.cert-stage-tabs{display:flex;gap:8px;justify-content:center;padding:14px 16px 4px;flex-wrap:wrap}
.cert-stage-tabs .ct{font-size:12px;padding:5px 14px;border-radius:var(--radius-full);background:#fff;color:var(--gray-700);
  border:1px solid var(--gray-200);cursor:pointer}
.cert-stage-tabs .ct.on{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.cert-preview{margin:14px 16px;border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-gold);background:#FDF9F0}
.cert-preview img{width:100%;display:block}
.cert-meta{margin:0 16px;background:#fff;border-radius:var(--radius-lg);padding:14px 16px;box-shadow:var(--shadow-card)}
.cert-meta .r{display:flex;justify-content:space-between;font-size:12px;color:var(--gray-700);padding:6px 0}
.cert-meta .r b{color:var(--gray-900)}
.cert-no{font-family:Courier New,monospace}
.cert-actions{display:flex;gap:10px;padding:16px}
.cert-actions .btn{flex:1}
.cert-thumb{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);margin:0 16px 12px;overflow:hidden;cursor:pointer;position:relative}
.cert-thumb img{width:100%;display:block}
.cert-thumb .bar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;font-size:12px;color:var(--gray-700)}
.cert-thumb .st{position:absolute;left:10px;top:10px}

/* 登录 */
.login-wrap{padding:36px 24px}
.login-wrap h1{font-size:22px;font-weight:600;margin-bottom:6px}

/* ================= 真机 / 微信模式（appmode） =================
   由 index.html 中的 UA 检测启用：隐藏模拟器外框与假状态栏，
   放弃嵌套滚动，改为整页自然滚动，彻底解决「页面拉不动 / 底部按钮被截断」。 */
html.appmode{height:auto}
html.appmode body{display:block;min-height:100vh;min-height:100dvh;padding:0;background:var(--gray-50);
  touch-action:manipulation;-webkit-text-size-adjust:100%}
html.appmode .phone{width:100%;max-width:560px;margin:0 auto;height:auto;min-height:100vh;min-height:100dvh;
  border-radius:0;box-shadow:none;overflow:visible;position:relative}
html.appmode .statusbar,html.appmode .phone-notch{display:none}
html.appmode #app{height:auto;min-height:100vh;min-height:100dvh;overflow:visible;display:block;position:relative}
html.appmode .page{position:relative;inset:auto;min-height:100vh;min-height:100dvh;overflow:visible}
html.appmode .page-scroll{overflow:visible}
/* 固定底栏：TabBar / 提交条 / 底部操作条 */
html.appmode .tabbar,html.appmode .submit-bar,html.appmode .bottom-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:100;margin:0 auto;max-width:560px}
html.appmode .tabbar{box-shadow:0 -2px 12px rgba(31,35,41,.06)}
html.appmode .submit-bar,html.appmode .bottom-bar{box-shadow:0 -2px 12px rgba(31,35,41,.06)}
html.appmode .page.has-footer .page-scroll{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
html.appmode .page.has-tab .page-scroll{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
html.appmode .page.has-footer.has-tab .page-scroll{padding-bottom:calc(140px + env(safe-area-inset-bottom))}
/* 考试页：顶栏 / 底栏固定，题目区自然滚动 */
html.appmode .exam-top{position:fixed;top:0;left:0;right:0;z-index:100;margin:0 auto;max-width:560px}
html.appmode .exam-body{flex:none;overflow:visible;padding-top:58px;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
html.appmode .exam-foot{position:fixed;left:0;right:0;bottom:0;z-index:100;margin:0 auto;max-width:560px}
/* 弹层与遮罩全部固定到视口 */
html.appmode .sheet-mask,html.appmode .modal-mask,html.appmode .leave-mask,html.appmode .full-loading{position:fixed}
html.appmode #toast{position:fixed}
/* iOS 聚焦放大防护：输入类字号不小于 16px */
html.appmode .input,html.appmode .select-box,html.appmode .search-input{font-size:16px}
/* 去除 iOS 控件默认外观 */
html.appmode button,html.appmode .input,html.appmode .search-input,html.appmode .seg{-webkit-appearance:none}
/* 横向溢出硬防护 + 长文本换行（证书编号/学校名等） */
html.appmode,html.appmode body{overflow-x:hidden}
html.appmode .page-scroll{overflow-wrap:break-word;word-break:break-word}
html.appmode .card,html.appmode .cell,html.appmode .form-item{min-width:0}
.login-wrap .sub{font-size:12px;color:var(--gray-500);line-height:19px;margin-bottom:24px}
