/* ==========================================================
   徽艺考 · 安徽省艺考专业质量检测平台
   主题色 #50c4bc
   ========================================================== */
:root {
  --c: #50c4bc;
  --c-dark: #3aa9a1;
  --c-deep: #2b8b84;
  --c-ink: #1f3b39;
  --c-mute: #7f9d99;
  --c-line: #e2eeec;
  --c-bg: #f5faf9;
  --radius: 14px;
  --shadow: 0 6px 26px rgba(50, 140, 132, .12);

  /* 标题字体：方正小标宋（未安装时依次回退到华文中宋 / 宋体） */
  --font-title: "方正小标宋简体", "方正小标宋_GBK", "FZXiaoBiaoSong-B05S",
                "FZXiaoBiaoSong-B05", "STZhongsong", "华文中宋", "SimSun", "宋体", serif;
}

/* 若已购字体授权，可把字体文件放到 assets/fonts/ 后取消下面注释，实现「不依赖访客本机字体」 */
/*
@font-face {
  font-family: "FZXiaoBiaoSong";
  src: url("../fonts/FZXBSJW.woff2") format("woff2"),
       url("../fonts/FZXBSJW.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
*/

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0; color: var(--c-ink); min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Hiragino Sans GB", system-ui, sans-serif;
  background: linear-gradient(165deg, #eaf8f6 0%, #f7fcfb 55%, #eef8f7 100%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--c-dark); }

/* 选中文字：主题色底 + 白字 */
::selection { background: var(--c); color: #fff; }
::-moz-selection { background: var(--c); color: #fff; }

/* ---------------- 标题统一使用方正小标宋 ----------------
   正文段落里的 <b>/<strong> 不受影响，只有标题层级使用 */
h1, h2, h3, h4,
.login-form h1,
.login-left__slogan b,
.page-hero h2,
.section-title,
.card__t,
.card > h2,
.panel__hd h3,
.panel > h3,
.yk-modal__title,
.topbar__title b,
.hm-hero__title,
.hm-card__t,
.jtop__ttl b,
.jhead__t,
.jstu__name {
  font-family: var(--font-title);
}

/* ---------------- 页面切换淡入淡出 ---------------- */
.topbar, .container, .login-page { transition: opacity .34s ease; }
body.yk-fade .topbar, body.yk-fade .container, body.yk-fade .login-page { opacity: 0; }
body.yk-leaving .topbar, body.yk-leaving .container, body.yk-leaving .login-page {
  opacity: 0; transition-duration: .16s;
}

/* ---------------- 加载动画 ---------------- */
.yk-loader {
  position: fixed; inset: 0; z-index: 9999; background: #f7fcfb;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .38s ease, visibility .38s ease;
}
.yk-loader.is-hidden { opacity: 0; visibility: hidden; }
.yk-loader__logo { height: 30px; opacity: .92; }
.yk-loader__ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(80, 196, 188, .18);
  border-top-color: var(--c);
  animation: yk-spin .78s linear infinite;
}
.yk-loader__text { font-size: 13px; color: var(--c-mute); letter-spacing: 2px; }
@keyframes yk-spin { to { transform: rotate(360deg); } }
@media print { .yk-loader { display: none !important; } }

/* ---------------- 顶部栏 ---------------- */
.topbar {
  background: linear-gradient(120deg, #56cbc3 0%, var(--c) 45%, var(--c-dark) 100%);
  color: #fff; padding: 12px 28px; display: flex; align-items: center; gap: 18px;
  justify-content: space-between; box-shadow: 0 4px 18px rgba(58, 169, 161, .28);
  position: sticky; top: 0; z-index: 500;
}
.topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__logo { height: 34px; width: auto; display: block; }
.topbar__title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.topbar__title b { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.topbar__title span { font-size: 11.5px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.topbar__right .who { opacity: .9; margin-right: 6px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: #fff; text-decoration: none; font-size: 14px; padding: 8px 18px; border-radius: 999px;
  opacity: .88; transition: background .2s, color .2s, opacity .2s; white-space: nowrap;
}
.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .16); }
.site-nav a.cur { background: #fff; color: var(--c-dark); font-weight: 600; opacity: 1; box-shadow: 0 3px 10px rgba(0, 0, 0, .1); }
.site-nav a.off { opacity: .55; cursor: not-allowed; }
.topbar .link-plain { color: #fff; text-decoration: none; opacity: .85; font-size: 13px; }
.topbar .link-plain:hover { opacity: 1; text-decoration: underline; }

/* ---------------- 布局容器 ---------------- */
.container { max-width: 960px; margin: 0 auto; padding: 26px 18px 56px; }
.container.narrow { max-width: 460px; }
.container.wide { max-width: 1180px; }

.card { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
h1.site-title { color: var(--c-deep); font-size: 22px; text-align: center; margin: 0 0 6px; }
p.site-sub { text-align: center; color: var(--c-mute); font-size: 13px; margin: 0 0 24px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--c-ink); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--c); display: inline-block; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #55736f; margin-bottom: 6px; }
/* 只给文本类控件套统一外观，避免把 checkbox / radio / file / 按钮也撑满整行 */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 9px;
  font-size: 15px; outline: none; transition: border .2s, box-shadow .2s; background: #fbfefe; color: var(--c-ink);
  font-family: inherit;
}
.field input:focus, .field select:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(80, 196, 188, .16); }
.field input::placeholder { color: #b6c9c6; }

/* ----------------------------------------------------------
   浮动标签输入框（全站通用 .ff）
   结构：<label class="ff"><input class="ff__in" placeholder=" "><span class="ff__lbl">标签</span></label>
   标签平时居中当占位文字，聚焦或有值时上浮缩小成小标题
   ---------------------------------------------------------- */
.ff { position: relative; display: block; margin: 0 0 15px; }
.ff__in {
  display: block; width: 100%; height: 54px; margin: 0;
  padding: 21px 14px 7px; border: 1px solid var(--c-line); border-radius: 10px;
  font-size: 15px; line-height: 1.2; color: var(--c-ink); background: #fbfefe;
  font-family: inherit; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ff__in:hover { border-color: #cfe8e5; }
.ff__in:focus { border-color: var(--c); background: #fff; box-shadow: 0 0 0 3px rgba(80, 196, 188, .16); }
.ff__in::placeholder { color: transparent; }          /* 占位由浮动标签承担 */
.ff__lbl {
  position: absolute; left: 15px; top: 19px; margin: 0;
  font-size: 14.5px; color: #9bb5b2; line-height: 1.2; font-weight: 400;
  pointer-events: none; white-space: nowrap; max-width: calc(100% - 30px);
  overflow: hidden; text-overflow: ellipsis;
  transition: top .16s ease, font-size .16s ease, color .16s ease;
}
.ff__in:focus + .ff__lbl,
.ff__in:not(:placeholder-shown) + .ff__lbl,
.ff--static .ff__lbl {
  top: 8px; font-size: 11px; color: var(--c-dark); letter-spacing: .2px;
}
.ff__in:focus + .ff__lbl { color: var(--c-dark); }
/* 带左侧图标的登录框 */
.ff--ico .ff__in { padding-left: 46px; }
/* 图标统一用 Font Awesome（assets/vendor/fontawesome） */
.ff__ico i, .ico i { font-size: 15px; line-height: 1; display: block; }
i.fa-solid, i.fa-regular, i.fa-brands, i.fa-light, i.fa-thin, i.fa-duotone { line-height: 1; }
.btn i, .link i, .btn-login i { font-size: .95em; }
.ff__ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #b9cdca; pointer-events: none; display: flex;
}
.ff--ico .ff__lbl { left: 46px; }
/* 下拉：没有 placeholder，标签始终上浮 */
.ff--sel::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  margin-top: -5px; border-right: 1.6px solid #9bb5b2; border-bottom: 1.6px solid #9bb5b2;
  transform: rotate(45deg); pointer-events: none;
}
.ff--sel .ff__in { padding: 20px 38px 6px 14px; cursor: pointer; background: #fbfefe; }
.ff--sel .ff__lbl { top: 8px; font-size: 11px; color: var(--c-dark); letter-spacing: .2px; }
/* 多行 */
.ff--area .ff__in { height: auto; min-height: 96px; padding-top: 24px; resize: vertical; line-height: 1.7; }
/* 大号分数框（评委打分） */
.ff--score { margin: 0; }
.ff--score .ff__in {
  height: 58px; padding: 20px 10px 4px; font-size: 26px; font-weight: 700;
  text-align: center; letter-spacing: .5px; background: #fff;
}
.ff--score .ff__lbl { left: 0; right: 0; text-align: center; max-width: none; top: 17px; }
.ff--score .ff__in:focus + .ff__lbl,
.ff--score .ff__in:not(:placeholder-shown) + .ff__lbl,
.ff--score.ff--static .ff__lbl { top: 6px; font-size: 10.5px; }
/* 紧凑尺寸（列表页搜索框等） */
.ff--sm .ff__in { height: 44px; padding: 17px 12px 5px; font-size: 13.5px; border-radius: 9px; }
.ff--sm .ff__lbl { top: 13px; font-size: 13px; left: 13px; }
.ff--sm.ff--ico .ff__in { padding-left: 40px; }
.ff--sm.ff--ico .ff__ico { left: 13px; width: 16px; height: 16px; }
.ff--sm.ff--ico .ff__ico i { font-size: 13.5px; }
.ff--sm.ff--ico .ff__lbl { left: 40px; }
.ff--sm .ff__in:focus + .ff__lbl,
.ff--sm .ff__in:not(:placeholder-shown) + .ff__lbl { top: 5px; font-size: 10.5px; }
/* 状态 */
.ff--ok .ff__in { border-color: #a5ddd6; background: #f7fdfc; }
.ff--err .ff__in { border-color: #e8a3a3; background: #fff7f7; }
.ff--err .ff__lbl { color: #c0605f; }
.ff.is-disabled .ff__in,
.ff__in:disabled { background: #f4f8f7; color: #93aaa7; cursor: not-allowed; }
/* 表单小节标题 */
.ff-set__t {
  font-size: 13px; font-weight: 700; color: var(--c-deep); letter-spacing: .5px;
  margin: 6px 0 12px; display: flex; align-items: center; gap: 7px;
}
.ff-set__t::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--c); }
.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) {
  .ff-grid { grid-template-columns: minmax(0, 1fr); }
  .ff__in { font-size: 16px; }        /* 避免 iOS Safari 聚焦时自动放大 */
  .ff--score .ff__in { font-size: 26px; }
}


/* 勾选开关行（业务开关等） */label.switch-row {
  display: flex; align-items: flex-start; gap: 9px; margin: 0 0 11px;
  font-size: 13.5px; color: var(--c-ink); line-height: 1.55; cursor: pointer;
}
label.switch-row:last-of-type { margin-bottom: 0; }
label.switch-row input[type="checkbox"] {
  width: 16px; height: 16px; margin: 1px 0 0; flex: none;
  accent-color: var(--c); cursor: pointer;
}

/* 成绩分类别放分（设置页）：总闸下面挂两类的子开关 + 未开放提示语 */
.sco-box {
  margin: 2px 0 14px; padding: 12px 14px 6px; border-radius: 12px;
  background: #f7fdfc; border: 1px solid #e2f1ef;
}
.sco-box__t { margin: 0 0 9px; font-size: 12px; font-weight: 700; color: #4f7d78; letter-spacing: .3px; }
label.switch-row.sco-row { align-items: baseline; flex-wrap: wrap; margin-bottom: 9px; }
.sco-tip { font-style: normal; font-size: 11.5px; color: #9bb5b2; margin-left: auto; text-align: right; }
.sco-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 4px 0 2px; }
label.sco-note { display: block; }
label.sco-note span { display: block; font-size: 11.5px; color: #8aa5a2; margin-bottom: 4px; }
label.sco-note input {
  width: 100%; height: 38px; padding: 0 11px; font-family: inherit; font-size: 13px;
  border: 1px solid #d9eae7; border-radius: 9px; background: #fff; color: var(--c-ink);
  outline: none; transition: border-color .16s, box-shadow .16s;
}
label.sco-note input::placeholder { color: #b6cbc8; font-size: 12px; }
label.sco-note input:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(80, 196, 188, .13); }
@media (max-width: 700px) {
  .sco-notes { grid-template-columns: minmax(0, 1fr); }
  .sco-tip { width: 100%; margin-left: 25px; text-align: left; }
}

/* 首页角色入口开关（设置页）：自绘胶囊开关，不用浏览器原生 checkbox */
.role-list { display: grid; gap: 10px; margin: 0 0 16px; }
.role-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff;
  border: 1px solid #e3efed; border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.role-row:hover { border-color: #b9dcd8; background: #fbfefd; }
.role-row.is-off { background: #fafcfc; border-color: #edf3f2; }
.role-row.is-off .role-row__ico { opacity: .35; }
.role-row.is-off .role-row__t b { color: #86a19c; }
.role-row__ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-size: 14px; color: #fff;
  transition: opacity .18s ease;
}
.role-row__ico--cand  { background: #2f9b94; }
.role-row__ico--judge { background: #d9871c; }
.role-row__ico--admin { background: #4f6ae0; }
.role-row__t { flex: 1; min-width: 0; }
.role-row__t b { display: block; font-size: 14px; font-weight: 700; color: #1d3a37; }
.role-row__t span { display: block; margin-top: 2px; font-size: 11.8px; color: #7d9a95; }

/* 胶囊开关本体 */
.rsw { display: inline-flex; flex: none; }
.rsw input { position: absolute; opacity: 0; width: 0; height: 0; }
.rsw__track {
  display: block; position: relative;
  width: 42px; height: 24px; border-radius: 999px;
  background: #dde8e6;
  transition: background-color .18s ease;
}
.rsw__dot {
  position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  transition: transform .18s cubic-bezier(.3, .8, .4, 1);
}
.rsw input:checked + .rsw__track { background: var(--c, #50c4bc); }
.rsw input:checked + .rsw__track .rsw__dot { transform: translateX(18px); }
.rsw input:focus-visible + .rsw__track { box-shadow: 0 0 0 3px rgba(80, 196, 188, .3); }

/* 首页公告条的设置页预览（与首页 .hm-notice 视觉一致） */
.sn-prev {
  display: inline-flex; align-items: center; gap: 11px;
  max-width: 100%; padding: 9px 14px 9px 8px;
  background: #fff; border: 1px solid #e3efed; border-radius: 10px;
  font-size: 12.5px; color: #4f7570;
  transition: opacity .2s;
}
.sn-prev.is-off { opacity: .42; }
.sn-prev__tag {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 7px;
  background: #eaf7f5; color: #2f9b94;
  font-size: 11.5px; font-weight: 600;
}
.sn-prev__tag i { font-size: 10.5px; }
.sn-prev__tag b { font-weight: 600; }
.sn-prev__txt {
  color: #66857f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-prev__go { font-size: 9.5px; color: #a5bcb8; flex: none; }
@media (max-width: 640px) {
  .sn-prev { display: flex; width: 100%; box-sizing: border-box; }
  .sn-prev__txt { flex: 1; min-width: 0; }
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(120deg, #59cdc5, var(--c) 60%, var(--c-dark));
  color: #fff; border: none; cursor: pointer; padding: 11px 28px; border-radius: 9px;
  font-size: 15px; font-family: inherit; text-decoration: none; text-align: center;
  transition: transform .16s, box-shadow .2s, background .2s; box-shadow: 0 4px 14px rgba(58, 169, 161, .24);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(58, 169, 161, .3); }
.btn:active { transform: translateY(0); }
.btn.full { width: 100%; }
.btn.ghost { background: #fff; color: var(--c-dark); border: 1px solid var(--c); box-shadow: none; }
.btn.ghost:hover { background: #f2fbfa; }
.btn.danger { background: #e74c3c; box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.btn.lg { padding: 13px 34px; font-size: 16px; border-radius: 10px; }
.btn .ico { font-size: 16px; line-height: 1; }

.alert { padding: 11px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.alert.ok { background: #e9f8f5; color: #1d8a80; border: 1px solid #bfe9e3; }
.alert.err { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }
.alert.warn { background: #fff8e6; color: #9a6b09; border: 1px solid #f6e3b4; }

.toolbar { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.toolbar .btn { padding: 9px 20px; font-size: 14px; }

/* ==========================================================
   登录页（左右分栏）
   ========================================================== */
.login-page { min-height: 100vh; display: flex; background: #fff; }
.login-left {
  flex: 1 1 56%; position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #63d2ca 0%, #4cc0b8 42%, #2f9b94 100%);
  padding: 34px 44px 30px;
}
.login-left::before, .login-left::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
}
.login-left::before { width: 520px; height: 520px; left: -180px; bottom: -220px; }
.login-left::after { width: 380px; height: 380px; right: -140px; top: -140px; }
.login-left .bubble { position: absolute; background: rgba(255, 255, 255, .14); border-radius: 50%; }
.login-left .b1 { width: 14px; height: 14px; top: 96px; right: 26%; }
.login-left .b2 { width: 9px; height: 9px; top: 210px; left: 12%; }
.login-left .b3 { width: 20px; height: 20px; bottom: 22%; right: 12%; background: rgba(255, 255, 255, .1); }
.login-left__logo { height: 38px; width: auto; max-width: none; position: relative; z-index: 2; align-self: flex-start; flex: none; }
.login-left__illus { position: relative; z-index: 2; margin: auto; width: min(86%, 520px); padding: 18px 0; }
.login-left__illus svg { width: 100%; height: auto; max-height: 44vh; display: block; filter: drop-shadow(0 18px 30px rgba(16, 74, 70, .18)); }
.login-left__slogan { position: relative; z-index: 2; color: #fff; }
.login-left__slogan b { display: block; font-size: 21px; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.login-left__slogan span { font-size: 13px; opacity: .85; line-height: 1.7; }

.login-right { flex: 1 1 44%; display: flex; flex-direction: column; padding: 30px 54px 24px; background: #fff; }
.login-form { margin: auto; width: 100%; max-width: 380px; }
.login-form h1 { font-size: 27px; margin: 0 0 10px; color: #15302e; letter-spacing: 2px; text-align: center; font-weight: 700; }
.login-form .sub { text-align: center; color: #93aaa7; font-size: 13.5px; margin: 0 0 32px; }
.login-form .sub b { color: var(--c-dark); font-weight: 600; }
.input-wrap { position: relative; margin-bottom: 16px; }
.input-wrap .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #b9cdca; pointer-events: none; display: flex;
}
.input-wrap input {
  width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid #dfecea; border-radius: 7px;
  font-size: 15px; color: var(--c-ink); background: #fff; outline: none; font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.input-wrap input:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(80, 196, 188, .14); }
.input-wrap input::placeholder { color: #b9cdca; }
.login-form .btn-login {
  width: 100%; height: 48px; border: none; border-radius: 7px; cursor: pointer; margin-top: 8px;
  background: linear-gradient(120deg, #5ccdc5, var(--c) 55%, var(--c-dark)); color: #fff;
  font-size: 16px; letter-spacing: 4px; font-family: inherit;
  transition: filter .2s, box-shadow .2s; box-shadow: 0 6px 18px rgba(58, 169, 161, .28);
}
.login-form .btn-login:hover { filter: brightness(1.04); box-shadow: 0 9px 24px rgba(58, 169, 161, .34); }
.login-note { margin-top: 26px; font-size: 12.5px; color: #9ab3b0; line-height: 1.8; text-align: center; }
.login-note b { color: var(--c-dark); font-weight: 600; }

/* 验证码 */
.cap-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.cap-row .input-wrap, .cap-row .ff { flex: 1 1 auto; margin: 0; min-width: 0; }
.cap-row .cap-img {
  width: auto; height: 54px; flex: none; border: 1px solid #dfecea; border-radius: 10px;
  cursor: pointer; background: #f4fcfb; user-select: none;
}

/* 登录页公众号卡片 */
.gzh-box {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px;
  border: 1px dashed #cfe7e3; border-radius: 10px; background: #f6fcfb;
}
.gzh-box img { width: 72px; height: 72px; border-radius: 6px; flex: none; display: block; background: #fff; }
.gzh-box .t b { display: block; font-size: 13px; color: var(--c-deep); margin-bottom: 4px; }
.gzh-box .t span { font-size: 11.5px; color: #8ba6a2; line-height: 1.6; display: block; }

/* 页面底部公众号条 */
.gzh-footer {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
}
.gzh-footer__qr { width: 64px; height: 64px; border-radius: 6px; flex: none; }
.gzh-footer__txt { flex: 1 1 auto; min-width: 0; }
.gzh-footer__txt b { display: block; font-size: 14px; color: var(--c-deep); margin-bottom: 4px; }
.gzh-footer__txt span { font-size: 12px; color: #8ba6a2; line-height: 1.6; display: block; }
.gzh-footer__cp { flex: none; font-size: 11.5px; color: #b3c6c3; text-align: right; line-height: 1.6; }
.login-foot { text-align: center; font-size: 12px; color: #b3c6c3; padding-top: 18px; line-height: 1.8; }
.login-foot__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px; padding: 6px 14px;
  font-size: 12.5px; color: var(--c-dark); text-decoration: none;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(80, 196, 188, .28);
  border-radius: 999px;
  transition: background .2s, border-color .2s, transform .2s;
}
.login-foot__back:hover {
  background: #fff; border-color: var(--c); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(80, 196, 188, .18);
}
.login-foot__back i { font-size: 11px; }

/* ==========================================================
   考生端内容区
   ========================================================== */
.page-hero {
  background: linear-gradient(120deg, #5bcbc3, #3baaa2); border-radius: 16px; color: #fff;
  padding: 24px 26px; box-shadow: 0 10px 26px rgba(58, 169, 161, .22); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.page-hero h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.page-hero p { margin: 0; font-size: 12.5px; opacity: .9; line-height: 1.7; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chips span {
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; white-space: nowrap;
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; }
.info-item .k { font-size: 12px; color: var(--c-mute); margin-bottom: 4px; }
.info-item .v { font-size: 15px; color: var(--c-ink); font-weight: 500; word-break: break-all; }
.info-item .v.mono { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .6px; }

.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table th, .plan-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--c-line); }
.plan-table th { font-weight: 500; color: var(--c-mute); font-size: 12.5px; background: #f7fcfb; }
.plan-table td:first-child { font-weight: 600; color: var(--c-deep); white-space: nowrap; }
.plan-table tr:last-child td { border-bottom: none; }

.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #f3fbfa; border: 1px dashed #bfe6e1; border-radius: 12px; padding: 18px 20px; margin-top: 20px;
}
.cta-box .tips { font-size: 12.5px; color: #6f8e8a; line-height: 1.85; flex: 1 1 320px; }
.cta-box .tips b { color: #c0392b; font-weight: 600; }
/* 兼报时会有两个打印按钮，竖排更整齐 */
.cta-box .cta-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* 成绩页 */
.score-cards { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.score-cards .score-main { flex: 1 1 280px; max-width: 420px; }
/* 类别分块标题（表（导）演类 / 播音与主持类各自一块） */
.score-cat { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.score-cat:first-of-type { margin-top: 6px; }
.score-cat__t { font-size: 17px; font-weight: 700; color: #22413e; letter-spacing: .3px; }
.score-cat__t::before {
  content: ''; display: inline-block; width: 4px; height: 15px; border-radius: 2px;
  background: var(--c); margin-right: 9px; vertical-align: -2px;
}
.score-cat__badge { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #eef5f4; color: #7b9a96; }

/* 兼报两类：类别标签切换（表（导）演类 / 播音与主持类），只渲染当前一类 */
.cat-tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin: 2px 0 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(50,140,132,.07);
}
.cat-tab {
  -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: #5c7f7b;
  padding: 9px 20px; border-radius: 10px; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .16s, color .16s, box-shadow .16s;
}
.cat-tab:hover { color: var(--c-deep); background: #f2faf9; }
.cat-tab.cur {
  background: linear-gradient(135deg, #5dcdc5, #35a49c); color: #fff;
  box-shadow: 0 6px 16px rgba(58,169,161,.26);
}
.cat-tab__b { font-size: 11px; font-weight: 500; color: #93b0ac; background: #eef5f4; border-radius: 20px; padding: 1px 7px; }
.cat-tab__b.is-lock { color: #a8843f; background: #fdf3e0; }
.cat-tab.cur .cat-tab__b { background: rgba(255,255,255,.26); color: #fff; }
.cat-panel[hidden] { display: none; }
/* 该类还没放分：锁形提示卡 */
.cat-lock { padding: 46px 20px; }
.cat-lock .ico i { color: #c2b08a; }
.cat-lock p { max-width: 560px; margin: 0 auto; }

.score-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.score-main {
  background: linear-gradient(135deg, #5dcdc5, #35a49c); color: #fff; border-radius: 16px;
  padding: 22px 24px; box-shadow: 0 10px 24px rgba(58, 169, 161, .22);
}
.score-main .lab { font-size: 12.5px; opacity: .88; }
.score-main .num { font-size: 44px; font-weight: 700; line-height: 1.1; margin: 6px 0 4px; letter-spacing: 1px; }
.score-main .num small { font-size: 14px; font-weight: 500; opacity: .85; margin-left: 6px; }
.score-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.score-mini {
  background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center;
}
.score-mini .lab { font-size: 12px; color: var(--c-mute); }
.score-mini .val { font-size: 22px; font-weight: 700; color: var(--c-deep); margin-top: 2px; }
.score-mini .val small { font-size: 12px; font-weight: 500; color: var(--c-mute); margin-left: 4px; }
.pass-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.pass-tag.ok { background: #e7f8f4; color: #1d8a80; }
.pass-tag.no { background: #fdecea; color: #c0392b; }

.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-table th, .detail-table td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); text-align: center; }
.detail-table th { background: #f7fcfb; color: var(--c-mute); font-weight: 500; font-size: 12.5px; }
.detail-table td:first-child, .detail-table th:first-child { text-align: left; }
.detail-table td.score { font-weight: 600; color: var(--c-deep); font-variant-numeric: tabular-nums; }
.detail-table tr:last-child td { border-bottom: none; }

/* 科目排名列 */
.detail-table td.rank b { font-weight: 600; color: #2f9b94; font-variant-numeric: tabular-nums; }
.detail-note { margin: 10px 2px 0; font-size: 11.8px; color: #9fb8b4; line-height: 1.7; }

/* 手机上隐藏「科目代码」列，让新增的「科目排名」不用横向滚动就能看到
   （用 table.xxx 提高优先级，压过下面 ≤900px 的 .detail-table 规则） */
@media (max-width: 560px) {
  table.detail-table { white-space: normal; }
  table.detail-table .c-code { display: none; }
  table.detail-table th, table.detail-table td { padding: 10px 5px; font-size: 12.8px; }
  table.detail-table th { white-space: nowrap; }
  table.detail-table td:first-child, table.detail-table th:first-child { min-width: 68px; }
  table.detail-table td.score, table.detail-table td.rank b { white-space: nowrap; }
}

/* ==========================================================
   打印预览弹窗
   ========================================================== */
.yk-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 22px; }
.yk-modal[hidden] { display: none; }
.yk-modal__mask { position: absolute; inset: 0; background: rgba(13, 45, 43, .58); }
.yk-modal__dialog {
  position: relative; background: #fff; border-radius: 15px; width: min(900px, 100%);
  max-height: calc(100vh - 44px); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .3); animation: yk-pop .22s ease-out;
}
@keyframes yk-pop { from { transform: translateY(14px) scale(.985); opacity: .6; } to { transform: none; opacity: 1; } }
.yk-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--c-line);
}
.yk-modal__title { font-size: 15px; font-weight: 600; color: var(--c-ink); display: flex; align-items: center; gap: 8px; }
.yk-modal__title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--c); }
.yk-modal__close {
  border: none; background: #f1f7f6; color: #6f8e8a; width: 32px; height: 32px; border-radius: 8px;
  font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.yk-modal__close:hover { background: #e6f4f2; color: var(--c-deep); }
.yk-modal__body { padding: 16px; overflow: auto; background: #eef4f3; flex: 1 1 auto; display: flex; justify-content: center; position: relative; }
.yk-modal__loading {
  position: sticky; top: 0; left: 0; width: 100%; height: 100%; min-height: 220px;
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(238, 244, 243, .92); color: #6f8e8a; font-size: 13px; z-index: 2;
}
.yk-modal__loading[hidden] { display: none; }
.yk-spin {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(80, 196, 188, .2);
  border-top-color: var(--c); animation: yk-spin .8s linear infinite; display: block;
}
.yk-modal__body .doc-scale { width: 100%; display: flex; justify-content: center; }
.yk-modal__body iframe {
  width: 794px; height: 1123px; border: 0; background: #fff; flex: none;
  box-shadow: 0 10px 30px rgba(20, 60, 56, .16); transform-origin: top center;
}
.yk-modal__foot {
  padding: 12px 18px; border-top: 1px solid var(--c-line); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff;
}
.yk-modal__tip { font-size: 12px; color: #8ba6a2; line-height: 1.6; max-width: 460px; }
.yk-modal__tip b { color: #c0392b; }
.yk-modal__actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
body.modal-open { overflow: hidden; }

/* ==========================================================
   #路由（只换内容区）的顶部进度条与过渡
   ========================================================== */
.yk-navbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; opacity: 0;
  background: linear-gradient(90deg, #50c4bc, #8ee0d9); z-index: 10000;
  box-shadow: 0 0 8px rgba(80, 196, 188, .7); pointer-events: none;
  transition: width .15s ease, opacity .2s ease;
}
.yk-navbar.is-on { opacity: 1; width: 72%; transition: width 1.4s cubic-bezier(.08, .72, .26, 1); }
#ykMain { transition: opacity .12s ease; }
body.yk-swapping #ykMain { opacity: .5; }

/* 表单类弹窗（编辑考生等） */
.yk-modal--form .yk-modal__dialog { width: min(900px, 100%); }
.yk-modal--sm .yk-modal__dialog { width: min(430px, 100%); }
.yk-modal--sm .yk-modal__body { display: block; background: #fff; padding: 16px 20px 4px; }
.yk-modal--sm .yk-modal__foot { justify-content: flex-end; }
.yk-modal--form .yk-modal__body { display: block; background: #fff; padding: 18px 22px 20px; }
.yk-modal--form .yk-modal__body .stu-form .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 0 16px; }
.yk-modal--form .yk-modal__body .stu-form .ff { margin-bottom: 12px; }
.yk-modal--form .yk-modal__body .stu-form .ff-set__t { margin: 14px 0 10px; }
.yk-modal--form .yk-modal__body .stu-form .ff-set__t:first-child { margin-top: 0; }
.yk-modal--form .yk-modal__body .stu-form .ff__in { height: 50px; font-size: 14px; }
.yk-modal--form .yk-modal__body .form-actions {
  margin: 4px -22px -20px; padding: 12px 22px; border-top: 1px solid var(--c-line); background: #fbfefd;
}
.yk-modal__close i { font-size: 15px; }
.yk-modal.is-closing { animation: yk-modal-out .16s ease forwards; }
.yk-modal.is-closing .yk-modal__dialog { animation: yk-dialog-out .16s ease forwards; }
@keyframes yk-modal-out { to { opacity: 0; } }
@keyframes yk-dialog-out { to { transform: translateY(10px) scale(.99); opacity: 0; } }
@media (max-width: 700px) {
  .yk-modal--form .yk-modal__body { padding: 14px 14px 16px; }
  .yk-modal--form .yk-modal__body .stu-form .ff-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .yk-modal--form .yk-modal__body .stu-form .ff__in { font-size: 16px; }   /* 防 iOS 聚焦放大 */
  .yk-modal--form .yk-modal__body .stu-form .form-actions {
    position: sticky; bottom: 0; z-index: 2;
    margin: 10px -14px -16px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -8px 16px -12px rgba(31, 79, 74, .45);
  }
  .yk-modal--form .yk-modal__body .stu-form .form-actions .btn { flex: 1; }
}

/* ==========================================================
   增值服务（考生端资料列表）
   ========================================================== */
.vas-list { display: flex; flex-direction: column; gap: 12px; }
.vas-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; background: #fff;
  border: 1px solid var(--c-line); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.vas-item:hover { border-color: var(--c); box-shadow: 0 6px 18px rgba(80, 196, 188, .15); transform: translateY(-1px); }
.vas-ico {
  width: 44px; height: 44px; flex: none; border-radius: 11px; background: #7f9d99; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  display: flex; align-items: center; justify-content: center;
}
.vas-ico.pdf { background: #e05a4d; }
.vas-ico.doc { background: #4a7bd0; }
.vas-ico.xls { background: #2ba471; }
.vas-ico.ppt { background: #d9803f; }
.vas-ico.img { background: #a06bd6; }
.vas-ico.zip { background: #8b8f99; }
.vas-ico.media { background: #4aa8c0; }
.vas-item__main { flex: 1; min-width: 0; }
.vas-item__title { font-size: 14.5px; font-weight: 600; color: var(--c-ink); line-height: 1.5; }
.vas-item__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: #9bb5b2; }
.vas-tag { background: #eef8f7; color: #2f8f87; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; }
.vas-item__btn { flex: none; text-decoration: none; }
.vas-empty { text-align: center; padding: 44px 16px; }
.vas-empty .ico { font-size: 42px; line-height: 1; }
/* 空状态里放的是 FontAwesome 图标，字号跟着容器走 */
.vas-empty .ico i { font-size: 42px; }
.vas-empty h2 { font-size: 17px; color: var(--c-deep); margin: 12px 0 8px; }
.vas-empty p { color: #8aa5a2; font-size: 13px; line-height: 1.85; margin: 0; }
.tips-plain { font-size: 12.5px; color: #6f8e8a; line-height: 1.95; }

/* ==========================================================
   管理端
   ========================================================== */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
table.grid th {
  background: #f1faf8; color: #3d7d76; padding: 9px; text-align: left;
  font-weight: 600; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid #d8ece9;
}
table.grid td { border-bottom: 1px solid #eef5f4; padding: 9px; }
table.grid tbody tr:nth-child(even) td { background: #fbfefd; }
table.grid tr:hover td { background: #f1fbfa; }
table.grid .ops a { margin-right: 8px; color: var(--c-dark); text-decoration: none; }
table.grid .ops a.del { color: #e74c3c; }

/* ---------------- 成绩总表（宽表） ----------------
   22 列放不进一屏：外层横向滚动 + 表头吸顶 + 首列固定，列宽按内容自适应 */
.scores-wrap {
  border: 1px solid var(--c-line); border-radius: 10px; background: #fff;
  overflow: auto; -webkit-overflow-scrolling: touch;
  max-height: 72vh;
}
.scores-wrap table.grid--scores { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12.5px; }
.grid--scores thead th {
  position: sticky; top: 0; z-index: 3;
  background: #f1faf8; color: #3d7d76; font-weight: 600; font-size: 11.5px;
  padding: 8px 5px; white-space: nowrap; text-align: center;
  border-bottom: 1px solid #d8ece9;
}
.grid--scores tbody td {
  padding: 7px 5px; border-bottom: 1px solid #eef5f4;
  text-align: center; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.grid--scores tbody tr:last-child td { border-bottom: 0; }
.grid--scores tbody tr:nth-child(even) td { background: #fbfefd; }
.grid--scores tbody tr:hover td { background: #f1fbfa; }

/* 首列（准考证号）横向滚动时钉住 */
.grid--scores th.c-z, .grid--scores td.c-z {
  position: sticky; left: 0; z-index: 2; text-align: left;
  font-weight: 600; color: #2c3e3c; letter-spacing: .4px;
  box-shadow: 1px 0 0 #e6f0ef;
}
.grid--scores thead th.c-z { z-index: 4; background: #f1faf8; }
.grid--scores tbody tr:nth-child(even) td.c-z { background: #fbfefd; }
.grid--scores tbody tr:hover td.c-z { background: #f1fbfa; }

.grid--scores .c-n { text-align: left; font-weight: 600; color: #2c3e3c; }
.grid--scores .c-d { text-align: left; white-space: nowrap; }
.grid--scores .c-s { color: #33484a; }
.grid--scores .c-t { color: var(--c-deep); font-weight: 700; }
.grid--scores .c-r { color: #55716e; }
/* 科目成绩与折算成绩之间加一道分隔，视线不串行 */
.grid--scores .c-gap { border-left: 1px solid #e6f0ef; }
.grid--scores td.c-gap { border-left: 1px solid #e6f0ef; }
.grid--scores .is-empty { color: #b8c9c7; }
.grid--scores .mut { color: #c3d2d0; }
.grid--scores tbody tr:hover td.c-s { color: #1f3d3a; }

/* 方向小标签 */
.dchip {
  display: inline-block; font-size: 11px; line-height: 1.5; padding: 0 6px;
  border-radius: 5px; background: #eef7f6; color: #4a8d87; margin: 1px 3px 1px 0;
}
.dchip.dy { background: #eef3ff; color: #4a63a8; }
.dchip.fz { background: #fdeff7; color: #a84a7f; }
.dchip.zc { background: #fff3e0; color: #b8761a; }

@media (max-width: 700px) {
  /* 手机端全局规则会把 table.grid 改成 block（破掉表格布局），成绩总表这里保持 table，
     横向滚动交给 .scores-wrap，首列与表头才能正常钉住 */
  .scores-wrap table.grid--scores { display: table; overflow: visible; }
  .scores-wrap { max-height: 68vh; }
}

/* 表下科目代码图例 */
.scores-legend {
  margin: 10px 2px 0; font-size: 11.5px; color: #8aa5a2; line-height: 1.9;
}
.scores-legend b { color: #4a8d87; font-weight: 700; }
.scores-legend__hint { display: block; color: #a8bfbc; }

/* 药丸式二级筛选（成绩管理按类别、现场评分按场次类型等） */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.subnav a {
  font-size: 12.5px; padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--c-line); color: #5d7d79; text-decoration: none; background: #fff;
}
.subnav a.cur, .subnav a.on { background: var(--c); border-color: var(--c); color: #fff; }
.subnav a:hover { border-color: var(--c); }

.pager { margin: 16px 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pager a, .pager span { display: inline-block; padding: 5px 11px; border: 1px solid var(--c-line); border-radius: 6px; color: var(--c-dark); text-decoration: none; }
.pager span.cur { background: var(--c); color: #fff; border-color: var(--c); }
.pager a:hover { border-color: var(--c); }
.pager .pg-nav { display: inline-flex; align-items: center; gap: 5px; }
.pager .pg-nav i { font-size: 10px; opacity: .85; }
.pager .pg-nav.is-off { color: #b9cdca; background: #f8fbfa; border-color: #edf4f3; cursor: default; }
.pager .pg-gap { border: 0; color: #a8bfbc; padding: 5px 3px; }
.pager .pg-info { border: 0; color: #8aa5a2; font-size: 12px; margin-left: 8px; }

.form2 .field { max-width: 520px; }

/* 列表页标题 + 搜索栏（窄屏自动换行） */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.page-head h1 { font-size: 20px; color: #2c3e3c; margin: 0; }
.page-head form { display: flex; gap: 8px; }
.page-head .ipt {
  width: 240px; padding: 8px 12px; border: 1px solid #d7e8e6; border-radius: 6px;
  font-size: 13px; font-family: inherit; color: #2c3e3c; outline: none;
}
.page-head .ipt:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(80, 196, 188, .16); }
.hint { font-size: 12px; color: #9bb5b2; margin-top: 5px; line-height: 1.65; }
.stat-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { flex: 1; min-width: 150px; background: #fff; border-radius: 13px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat .num { font-size: 27px; color: var(--c-deep); font-weight: 700; }
.stat .lab { font-size: 13px; color: #8aa5a2; margin-top: 4px; }

.nav-tabs { display: flex; gap: 4px; margin: 20px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-tabs a { padding: 10px 18px; background: #e4f3f1; color: #417a74; text-decoration: none; font-size: 14px; border-radius: 9px 9px 0 0; white-space: nowrap; }
.nav-tabs a.cur { background: #fff; color: var(--c-deep); font-weight: 600; }
.panel { background: #fff; border-radius: 0 13px 13px 13px; padding: 22px; box-shadow: var(--shadow); }

.notice-page { text-align: center; padding: 60px 20px; }
.notice-page .ico { font-size: 46px; }
.notice-page .ico i { font-size: 46px; }
.notice-page h2 { color: var(--c-deep); margin: 14px 0 8px; font-size: 19px; }
.notice-page p { color: #8aa5a2; font-size: 13.5px; line-height: 1.8; }

/* 考生端防拍屏水印：一层 fixed 空 div + SVG 瓦片平铺，45° 斜排姓名与手机号 */
.yk-wm {
  position: fixed; inset: 0;
  z-index: 400;
  pointer-events: none;
  user-select: none;
  background-repeat: repeat;
  background-position: 0 0;
  /* 极轻微的高光，让水印在白卡片上也看得见 */
  opacity: 1;
}

/* 文档页（iframe / 直接打印） */
.doc-toolbar { max-width: 210mm; margin: 0 auto 14px; display: flex; gap: 10px; justify-content: flex-end; }
body.doc-body { background: #eef4f3; }
@media print {
  .doc-toolbar { display: none !important; }
  .topbar, .no-print, .yk-modal, .yk-loader { display: none !important; }
  body.site, body.doc-body { background: #fff !important; }
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1080px) {
  .login-right { padding: 26px 36px 20px; }
  .login-left { padding: 28px 32px 24px; }
}
@media (max-width: 900px) {
  /* 登录页：隐藏插图面板，顶部品牌条 */
  .login-page { flex-direction: column; min-height: 100vh; background: #fff; }
  .login-left { flex: none; padding: 18px 20px 22px; border-radius: 0 0 26px 26px; }
  .login-left__illus, .login-left__slogan, .login-left .bubble { display: none; }
  .login-left__logo { height: 30px; margin: 0 auto; }
  .login-right { flex: 1; padding: 22px 22px 18px; }
  .login-form { margin: 18px auto auto; max-width: 440px; }
  .login-form h1 { font-size: 23px; }
  .login-form .sub { margin-bottom: 22px; }
  .login-foot { font-size: 11.5px; }
  .score-hero { grid-template-columns: 1fr; }

  /* 顶部栏换行 */
  .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .topbar__left { flex: 1 1 100%; }
  .topbar__logo { height: 28px; }
  .topbar__title b { font-size: 13.5px; }
  .topbar__title span { display: none; }
  .topbar__right { width: 100%; justify-content: space-between; gap: 8px; overflow: visible; }
  .site-nav { flex: 1 1 auto; display: flex; gap: 6px; }
  .site-nav a { padding: 8px 10px; font-size: 13.5px; flex: 1; text-align: center; }
  .topbar .link-plain {
    flex: none; white-space: nowrap; padding: 7px 12px; font-size: 12.5px;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  }

  /* 表格移动端：grid 横向滚动，考试安排换成可换行表格 */
  table.grid, .detail-table { display: block; overflow-x: auto; white-space: nowrap; }
  .plan-table { display: table; white-space: normal; font-size: 13px; }
  .plan-table th { white-space: nowrap; font-size: 12px; padding: 10px 5px; }
  .plan-table td { padding: 10px 5px; }
  .plan-table td:first-child { white-space: normal; }
  .detail-table td, .detail-table th { padding: 11px 9px; }

  .container { padding: 18px 14px 44px; }
  .card { padding: 20px 16px; border-radius: 12px; }
  .page-hero { padding: 18px 18px; border-radius: 13px; }
  .page-hero h2 { font-size: 17px; }
  .cta-box { flex-direction: column; align-items: stretch; }
  .cta-box .tips { flex: 0 0 auto; }   /* 竖排时 flex-basis 会变成最小高度，撑出大片空白 */
  .cta-box .btn { width: 100%; }
  .vas-item { flex-wrap: wrap; padding: 14px; }
  .vas-item__main { flex: 1 1 calc(100% - 60px); }
  .vas-item__btn { width: 100%; margin-top: 2px; text-align: center; }
  .vas-item__title { font-size: 14px; }
  .score-main .num { font-size: 36px; }
  /* 类别标签占满一行，两个按钮等宽，手指好点 */
  .cat-tabs { display: flex; width: 100%; gap: 4px; padding: 4px; }
  .cat-tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 9px 8px; font-size: 13.5px; gap: 5px; }

  /* 弹窗全屏化 */
  .yk-modal { padding: 0; align-items: stretch; }
  .yk-modal__dialog { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .yk-modal__body { padding: 10px; }
  .yk-modal__foot { padding: 10px 14px; }
  .yk-modal__tip { max-width: none; font-size: 11.5px; }
  .yk-modal__actions { width: 100%; gap: 8px; }
  .yk-modal__actions .btn { flex: 1 1 calc(50% - 4px); white-space: nowrap; font-size: 13px; padding: 10px 6px; }
  .nav-tabs a { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 560px) {
  .gzh-footer { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .gzh-footer__qr { width: 56px; height: 56px; }
  .gzh-footer__txt { flex: 1 1 calc(100% - 70px); }
  .gzh-footer__txt b { font-size: 13.5px; }
  .gzh-footer__cp { flex: 1 1 100%; text-align: left; font-size: 11px; }
  .login-left__logo { height: 26px; }
  .login-form h1 { font-size: 21px; letter-spacing: 1px; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .info-item .v { font-size: 14px; }
  .score-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .stat { min-width: 120px; padding: 14px 15px; }
  .stat .num { font-size: 22px; }
  .toolbar .btn { flex: 1; }
}

/* ==========================================================
   后台通用：表单网格 / 勾选组 / 可滚动表格 / 标签
   ========================================================== */
.card__t { font-size: 15px; font-weight: 600; color: var(--c-ink); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.card__t::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--c); display: inline-block; }
.card__t > i { font-size: 13.5px; color: var(--c); }

/* 整行区块（勾选组、按钮行）在 .form-grid 里占满整行 */
.ff-line { grid-column: 1 / -1; margin: 0 0 15px; }
.ff-line__t {
  display: flex; align-items: center; gap: 7px; margin: 0 0 9px;
  font-size: 13px; font-weight: 600; color: var(--c-deep); letter-spacing: .2px;
}
.ff-line__t::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--c); }
.ff-line__t .req { color: #e05a4d; font-weight: 400; }
.ff-line.form-actions { margin: 6px 0 0; }
.page-head__act { display: flex; gap: 8px; flex-wrap: wrap; }

/* 面板小标题图标 */
.panel > h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-ink); }
.panel > h3 > i { color: var(--c); font-size: 13.5px; }
.panel > h3 .mono { color: #93b1ad; font-weight: 500; font-size: 12.5px; }

/* 文件选择块（非文本框，保留块状排版） */
.field--file { max-width: none !important; }
.field--file > label:first-child { display: block; font-size: 13px; color: #55736f; margin-bottom: 7px; }
.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1.5px dashed #cbe7e3; border-radius: 12px;
  background: #fafefd; cursor: pointer; transition: border-color .16s, background .16s;
}
.file-drop:hover { border-color: var(--c); background: #f3fdfc; }
.file-drop.has-file { border-style: solid; border-color: #9fdcd6; background: #f4fdfc; }
.file-drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; padding: 0; border: 0; margin: 0;
}
.file-drop__ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  background: #e8f8f6; color: var(--c-dark); border: 1px solid #d3eeeb;
}
.file-drop__txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-drop__txt b { font-size: 14px; color: var(--c-ink); font-weight: 600; word-break: break-all; }
.file-drop__txt span { font-size: 12px; color: #8aa5a2; }

/* 原生文件框（导入 / 上传成绩）也统一成虚线块 */
.field--file input[type="file"] {
  display: block; width: 100%; max-width: 720px; padding: 12px 14px;
  border: 1.5px dashed #cbe7e3; border-radius: 12px; background: #fafefd;
  font-size: 13px; color: #6f8e8a; font-family: inherit; cursor: pointer;
}
.field--file input[type="file"]:hover { border-color: var(--c); background: #f3fdfc; }
input[type="file"]::file-selector-button {
  margin: 0 12px 0 0; padding: 8px 15px; border: 0; border-radius: 8px;
  background: #e8f8f6; color: var(--c-dark); font-family: inherit;
  font-size: 13px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: #d9f2ef; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .field { margin-bottom: 14px; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 8px; margin-top: 5px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 2px 0 15px; }
label.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #55736f; margin: 0; cursor: pointer; line-height: 1.5; }
label.chk input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--c); flex: none; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: 10px; }
.table-wrap > table.grid > thead > tr > th:first-child { border-top-left-radius: 9px; }
.table-wrap > table.grid > thead > tr > th:last-child { border-top-right-radius: 9px; }
.table-wrap table.grid { border-collapse: separate; border-spacing: 0; min-width: 100%; }
table.grid td.cell-sm { font-size: 12px; color: #7f9d99; }
table.grid td.cell-act { white-space: nowrap; }
table.grid td.cell-act form { display: inline; }
table.grid td.num { text-align: center; font-variant-numeric: tabular-nums; }

.link { color: var(--c-dark); text-decoration: none; background: none; border: 0; padding: 0; font-size: 13px; cursor: pointer; font-family: inherit; }
.link:hover { text-decoration: underline; }
.link--danger { color: #e05b4a; }

.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 20px; background: #f0f5f4; color: #7f9d99; white-space: nowrap; }
.tag--ok { background: #e9f8f5; color: #1d8a80; }
.tag--lead { background: #fff3e0; color: #b8761a; }
.tag--trial { background: #fff3e0; color: #b8761a; }
.tag--lock { background: #eef1f5; color: #6b7c8c; }
.tag--live { background: #e8f7ee; color: #2e8b57; }

/* ==========================================================
   后台列表页：标题副行 / 搜索条 / 面板头 / 紧凑表格
   ========================================================== */
.page-head { align-items: flex-end; }
.page-head__sub { margin: 6px 0 0; font-size: 12.5px; color: #8aa5a2; line-height: 1.6; }
.page-head__search { display: flex; align-items: center; gap: 8px; }
.page-head__search .ff { width: 252px; margin: 0; }
.page-head__search .btn { flex: none; white-space: nowrap; height: 44px; display: inline-flex; align-items: center; }

.panel__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--c-line);
}
.panel__hd h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); display: flex; align-items: center; gap: 8px; }
.panel__hd h3 > i { color: var(--c); font-size: 13.5px; }
.panel__hd h3 .mono { color: #93b1ad; font-weight: 500; font-size: 12.5px; }

/* 紧凑 12 列考生表 */
table.grid--students { font-size: 13px; }
table.grid--students th {
  background: #f1faf8; color: #3d7d76; font-weight: 600; font-size: 12.5px; line-height: 1.35;
  padding: 8px 7px; border-bottom: 1px solid #d8ece9; white-space: nowrap; vertical-align: bottom;
}
table.grid--students th .th-sub { font-weight: 400; font-size: 11px; color: #99b8b4; margin-top: 1px; letter-spacing: 0; }
table.grid--students td { padding: 8px 7px; vertical-align: middle; line-height: 1.45; border-bottom: 1px solid #eef5f4; }
table.grid--students tbody tr:nth-child(even) td { background: #fbfefd; }
table.grid--students tbody tr:hover td { background: #f1fbfa; }
table.grid--students .c-id { width: 52px; text-align: center; }
table.grid--students .c-zk { width: 92px; }
table.grid--students .c-sm { width: 42px; text-align: center; color: #6f8e8a; }
table.grid--students .c-name { font-weight: 600; color: var(--c-ink); white-space: nowrap; }
table.grid--students .c-cat { min-width: 112px; max-width: 168px; }
table.grid--students .c-org { min-width: 104px; max-width: 158px; color: #5d7b77; }
table.grid--students .c-act { width: 110px; white-space: nowrap; text-align: right; }
table.grid--students .c-act .link + .link { margin-left: 10px; }
/* 操作列贴右边固定，横向滚动时始终可点 */
table.grid--students th.c-act,
table.grid--students td.c-act { position: sticky; right: 0; z-index: 1; box-shadow: -7px 0 9px -8px rgba(31, 79, 74, .22); }
table.grid--students th.c-act { background: #f1faf8; z-index: 2; }
table.grid--students td.c-act { background: #fff; }
table.grid--students tbody tr:nth-child(even) td.c-act { background: #fbfefd; }
table.grid--students tbody tr:hover td.c-act { background: #f1fbfa; }

/* 打印次数列：准考证 / 成绩单 / 保存PDF 三个小计数，点击看明细 */
table.grid--students .c-prn { width: 104px; }
.prn-tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0;
  background: none; cursor: pointer; font-family: inherit; vertical-align: middle;
}
.prn-tag__i {
  display: inline-flex; align-items: baseline; gap: 1px;
  padding: 1px 5px; border-radius: 6px;
  background: #eef7f6; border: 1px solid #dcefed;
  font-size: 11px; line-height: 1.5; color: #4a8d87; white-space: nowrap;
}
.prn-tag__i em { font-style: normal; color: #8fb3af; font-size: 10px; }
.prn-tag__i b { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; color: #2f6f6a; }
.prn-tag__i--pdf { background: #f4f1fd; border-color: #e3dcf8; color: #7c6bb5; }
.prn-tag__i--pdf em { color: #a99ad2; }
.prn-tag__i--pdf b { color: #6a58a8; }
.prn-tag:hover .prn-tag__i { border-color: #a9dad5; background: #e6f6f4; }
.prn-tag:focus-visible { outline: 2px solid #7fc9c2; outline-offset: 2px; border-radius: 8px; }
.prn-last { font-size: 11px; }

/* 打印明细弹窗 */
.yk-modal--prn .yk-modal__dialog { width: min(660px, 100%); }
.yk-modal--prn .yk-modal__body { display: block; background: #fff; padding: 16px 20px 14px; }
.yk-modal--prn .yk-modal__foot { justify-content: flex-end; }
.prn-s__who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prn-s__who b { font-size: 16px; color: var(--c-ink); }
.prn-s__who .mono { font-size: 12.5px; color: #6f8e8a; }
.prn-s__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px;
}
.prn-s__i {
  background: #f4fbfa; border: 1px solid #e2f1ef; border-radius: 10px; padding: 8px 10px;
}
.prn-s__i span { display: block; font-size: 11px; color: #7f9d99; margin-bottom: 2px; }
.prn-s__i b { font-size: 19px; color: var(--c-deep); font-variant-numeric: tabular-nums; line-height: 1.2; }
.prn-s__i b em { font-style: normal; font-size: 11px; font-weight: 400; color: #8fb3af; margin-left: 2px; }
.prn-s__i--pdf { background: #f7f4fd; border-color: #e8e1f8; }
.prn-s__i--pdf b { color: #6a58a8; }
.prn-s__i--t { background: #fbfdfd; }
.prn-s__i--t .prn-s__time { font-size: 14px; color: #4a8d87; }
.prn-list { max-height: 46vh; overflow: auto; border: 1px solid #e8f2f1; border-radius: 10px; }
table.grid--prn { font-size: 12.5px; }
table.grid--prn thead th {
  position: sticky; top: 0; z-index: 1; background: #f1faf8;
  font-size: 11.5px; font-weight: 700; color: #4f7d78; padding: 7px 10px; text-align: left;
  border-bottom: 1px solid #e0efed; white-space: nowrap;
}
table.grid--prn td { padding: 7px 10px; border-bottom: 1px solid #f0f7f6; color: #3e5c58; }
table.grid--prn tbody tr:last-child td { border-bottom: 0; }
table.grid--prn tbody tr:hover td { background: #f7fcfc; }
table.grid--prn .prn-t { color: #5d7b77; white-space: nowrap; }
table.grid--prn .prn-ip { color: #94b0ac; font-size: 11.5px; }
table.grid--prn .prn-a.is-pdf { color: #6a58a8; }
table.grid--prn .dchip--zkz { background: #eef7f6; color: #4a8d87; }
table.grid--prn .dchip--cj { background: #eef3ff; color: #4a63a8; }
.prn-empty { text-align: center; padding: 22px 0; color: #9bb5b2; }
.prn-empty i { margin-right: 5px; }
.prn-more { text-align: center; padding: 8px 0 2px; font-size: 11.5px; }
@media (max-width: 560px) {
  .prn-s__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yk-modal--prn .yk-modal__body { padding: 14px 14px 12px; }
  .prn-list { max-height: 48vh; }
  /* 手机端：弹窗贴合内容高度（不铺满整屏），IP 列窄屏没有参考价值，直接省掉 */
  table.grid--prn th:nth-child(5),
  table.grid--prn td:nth-child(5) { display: none; }
}
@media (max-width: 700px) {
  /* 手机端其它弹窗是全屏的；打印明细内容短，改成贴合内容高度、垂直居中 */
  .yk-modal--prn { align-items: center; padding: 16px; }
  .yk-modal--prn .yk-modal__dialog {
    align-self: center; height: auto; max-height: 86vh; border-radius: 14px;
  }
}

/* 编辑表单：两列铺满会太宽，收一下阅读宽度；宽屏改三列更紧凑 */
.stu-form .ff-grid { max-width: 940px; }
.stu-form .ff-set__t { margin: 22px 0 12px; }
.stu-form .ff-set__t:first-of-type { margin-top: 4px; }
@media (min-width: 1180px) {
  .stu-form .ff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}

.cell-id {
  display: inline-block; min-width: 34px; padding: 2px 7px;
  background: #eef8f7; border: 1px solid #d5eeeb; border-radius: 7px;
  color: #2f8f87; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: center;
}
.tbl-t { color: #3e5c58; white-space: nowrap; font-size: 12.5px; }
.tbl-t b { color: var(--c-deep); font-weight: 600; }
.tbl-r { color: #7f9d99; font-size: 12px; margin-top: 1px; }
.tbl-na { color: #bdcecb; font-size: 12px; }
td.tbl-empty { text-align: center; color: #9bb5b2; padding: 36px 0; font-size: 13px; }
td.tbl-empty i { font-size: 15px; margin-right: 4px; color: #b6c9c6; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .3px; }

@media (max-width: 900px) {
  .page-head { align-items: stretch; }
  .page-head__search { width: 100%; }
  .page-head__search .ff { flex: 1 1 auto; width: auto; min-width: 0; }
  .table-wrap table.grid--students { display: table; min-width: 1080px; white-space: nowrap; }
  .grid--students .c-cat, .grid--students .c-org { min-width: 120px; max-width: none; }
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px 16px; }
  .chk-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================
   危险操作区 / 警示提示条（考生一键清空、清空打分等）
   ========================================================== */
.danger-zone { border-color: #f2dede; background: #fffdfd; }
.danger-zone .card__t i { color: #d9534f; }
.danger-zone__row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.danger-zone__row b { font-size: 14px; color: #a94442; }
.danger-zone__row .hint { margin: 6px 0 0; max-width: 620px; }

.warn-tip {
  margin: 0 0 14px; padding: 11px 13px; border-radius: 10px;
  background: #fdf6f6; border: 1px solid #f3dede; color: #5b6f6e;
  font-size: 13px; line-height: 1.75;
}
.warn-tip b { color: #b0494d; }

/* 考试安排下方的总分计算说明（每条方向单独一行） */
.hint-weights {
  margin-top: 14px; padding: 11px 14px;
  background: #f7fcfb; border: 1px solid #e6f2f0; border-radius: 10px;
}
.hint-weights__t { font-size: 12.5px; color: #4f7570; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hint-weights__t i { font-size: 11.5px; color: var(--c-dark); }
.hint-weights__l { margin: 8px 0 0; padding: 0; list-style: none; }
.hint-weights__l li {
  position: relative;
  padding: 3px 0 3px 13px;
  font-size: 12px; line-height: 1.7; color: #7b9995;
}
.hint-weights__l li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: #b9d9d5;
}
@media (max-width: 640px) {
  .hint-weights { padding: 10px 12px; }
  .hint-weights__t { font-size: 12px; line-height: 1.6; }
  .hint-weights__l li { font-size: 11.5px; }
}

/* ==========================================================
   自定义确认 / 提示弹窗（assets/js/dialog.js）
   ========================================================== */
.yk-dlg {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.yk-dlg[hidden] { display: none; }
body.yk-dlg-open { overflow: hidden; }

.yk-dlg__mask {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(16, 46, 43, .45);
  opacity: 0; transition: opacity .18s ease;
}
.yk-dlg.is-open .yk-dlg__mask { opacity: 1; }

.yk-dlg__box {
  position: relative;
  width: 100%; max-width: 392px;
  background: #fff; border-radius: 16px;
  padding: 26px 24px 20px;
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(16, 60, 56, .45);
  transform: translateY(10px) scale(.97); opacity: 0;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), opacity .2s ease;
}
.yk-dlg.is-open .yk-dlg__box { transform: none; opacity: 1; }

.yk-dlg__ico {
  width: 46px; height: 46px; margin: 0 auto 13px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px;
  background: #eef7f6; color: var(--c-dark);
}
.yk-dlg__ico.is-danger { background: #fdeeee; color: #d9534f; }
.yk-dlg__ico.is-info { background: #eaf2fd; color: #3d7bd0; }

.yk-dlg__t {
  font-family: var(--font-title);
  font-size: 16px; font-weight: 700; letter-spacing: .6px;
  color: #1f3b39;
}
.yk-dlg__m {
  margin-top: 8px;
  font-size: 13.2px; line-height: 1.78; color: #6f8e8a;
  word-break: break-word;
}

.yk-dlg__f { display: flex; gap: 10px; margin-top: 20px; }
.yk-dlg__btn {
  flex: 1; padding: 10px 14px;
  border-radius: 10px; border: 1px solid #e2eeec; background: #fff;
  color: #5b7a76; font-size: 14px; font-family: inherit;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.yk-dlg__btn:hover { background: #f6fbfa; border-color: #cfe7e3; }
.yk-dlg__btn--ok {
  background: var(--c); border-color: var(--c);
  color: #fff; font-weight: 600;
}
.yk-dlg__btn--ok:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.yk-dlg__btn--ok.is-danger { background: #d9534f; border-color: #d9534f; }
.yk-dlg__btn--ok.is-danger:hover { background: #c9302c; border-color: #c9302c; }

@media (max-width: 640px) {
  .yk-dlg { padding: 16px; }
  .yk-dlg__box { max-width: 100%; border-radius: 14px; padding: 22px 18px 16px; }
  .yk-dlg__t { font-size: 15.5px; }
  .yk-dlg__m { font-size: 13px; }
}

/* ==========================================================
   删除考生：行内按钮 + 服务端确认卡片（脚本失效时兜底）
   ========================================================== */
table.grid--students .c-act form.row-del { display: inline; margin: 0; }
table.grid--students .c-act form.row-del { margin-left: 10px; }
table.grid--students .c-act form.row-del .link { vertical-align: baseline; }

.confirm-del {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 14px 16px;
  background: #fdf6f6; border: 1px solid #f2dcdc; border-radius: 12px;
  flex-wrap: wrap;
}
.confirm-del__ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%; background: #fbe4e4; color: #d9534f;
  display: grid; place-items: center; font-size: 16px;
}
.confirm-del__body { flex: 1 1 240px; min-width: 0; font-size: 13px; color: #7d5a5a; line-height: 1.7; }
.confirm-del__body b {
  display: block; margin-bottom: 2px;
  font-family: var(--font-title); font-size: 15px; color: #a2433f; letter-spacing: .5px;
}
.confirm-del__body p { margin: 0; }
.confirm-del__warn { color: #c0392b; font-weight: 600; }
.confirm-del__act { display: flex; align-items: center; gap: 8px; }
.confirm-del__act form { margin: 0; }

@media (max-width: 640px) {
  .confirm-del { gap: 10px; padding: 12px 13px; }
  .confirm-del__act { width: 100%; }
  .confirm-del__act form { flex: 1; }
  .confirm-del__act .btn { width: 100%; }
}

/* ==========================================================
   自定义下拉框（assets/js/select.js）
   原生 select 透明保留（负责取值与提交），按钮 + 浮层为自定义样式
   ========================================================== */
.yksel { position: relative; display: block; }
.yksel > select {
  width: 100%; opacity: 0; pointer-events: none;
}
.yksel__btn {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: flex; align-items: center;
  padding: 20px 38px 6px 14px;
  border: 1px solid var(--c-line); border-radius: 10px;
  background: #fbfefe; color: var(--c-ink);
  font-family: inherit; font-size: 15px; line-height: 1.2; text-align: left;
  cursor: pointer; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  overflow: hidden;
}
.yksel__btn:hover { border-color: #cfe7e3; }
.yksel__btn:focus-visible,
.yksel.is-open .yksel__btn {
  border-color: var(--c); background: #fff;
  box-shadow: 0 0 0 3px rgba(80, 196, 188, .13);
}
.yksel__v {
  display: block; width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 自定义箭头，替代 .ff--sel 的原生箭头 */
.yksel__btn::after {
  content: ""; position: absolute; right: 15px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.6px solid #9bb5b2; border-bottom: 1.6px solid #9bb5b2;
  transform: rotate(45deg);
  transition: transform .18s;
  pointer-events: none;
}
.yksel.is-open .yksel__btn::after { transform: rotate(-135deg); margin-top: -1px; }
.ff--sel.yksel-host::after { display: none; }   /* 已增强：去掉原有箭头，避免重影 */

/* 浮层（挂在 body 上，fixed 定位，不会被容器裁掉） */
.yksel__pop {
  position: fixed; z-index: 3000;
  display: none;
  min-width: 120px; max-height: 300px; overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(24, 80, 74, .45), 0 2px 8px rgba(24, 80, 74, .06);
}
.yksel__pop.is-show { display: block; }
.yksel__opt {
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.55; color: #2c3e3c;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.yksel__opt:hover { background: #eef9f7; }
.yksel__opt.is-act { background: #eef9f7; }
.yksel__opt.is-sel { background: var(--c); color: #fff; }
.yksel__opt.is-sel.is-act { background: var(--c-dark); color: #fff; }
.yksel__opt.is-dis { opacity: .42; cursor: not-allowed; }

@media (max-width: 640px) {
  .yksel__pop { max-height: 52vh; border-radius: 12px; }
  .yksel__opt { padding: 11px 12px; font-size: 14px; }
}
