:root {
  --c-bg: #eef2f6;
  --c-panel: #ffffff;
  --c-ink: #16233a;
  --c-sub: #64748b;
  --c-line: #dfe6ee;
  --c-line-2: #eef2f7;
  --c-primary: #14406b;
  --c-primary-2: #1d5b96;
  --c-gold: #a67c2e;
  --c-danger: #d83a2e;
  --c-ok: #0f7552;

  --blue: #2b6fe0;
  --blue-d: #1d5bc4;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 38, 66, .06), 0 8px 24px rgba(16, 38, 66, .05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--c-ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* 禁止双指/双击缩放：配合 viewport 的 user-scalable=no，双保险 */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.page-admin { background: var(--c-bg); }

body.page-student {
  background-color: #dfeaf5;
  background-image:
    radial-gradient(58% 46% at 84% 14%, rgba(96, 190, 232, .70) 0%, rgba(96, 190, 232, 0) 62%),
    radial-gradient(52% 44% at 10% 8%, rgba(163, 172, 246, .85) 0%, rgba(163, 172, 246, 0) 64%),
    radial-gradient(64% 52% at 66% 98%, rgba(74, 199, 222, .78) 0%, rgba(74, 199, 222, 0) 66%),
    linear-gradient(152deg, #dde1f9 0%, #cfe7f4 46%, #e9f6fa 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================
   学生端 · 入口
   ========================================================= */

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
}

.glass {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, .80);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  box-shadow: 0 34px 80px -26px rgba(34, 62, 116, .42), 0 2px 6px rgba(34, 62, 116, .05);
  padding: 44px 46px 38px;
}

.glass h1 {
  font-size: 25px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 14px;
  color: #14213a;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  font-size: 12px;
  line-height: 20px;
  padding: 1px 9px;
  border-radius: 5px;
  background: #e9f0fd;
  color: #2b6fe0;
  border: 1px solid #d8e4fb;
}
.meta-line .pub { font-size: 12.5px; color: #7a8798; }

.glass .field { margin-bottom: 20px; }
.glass label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #26334a;
  margin-bottom: 8px;
}
.glass label .req { color: var(--c-danger); margin-left: 2px; }

input[type=text], input[type=number], input[type=password], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  font-size: 14.5px;
  color: var(--c-ink);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #7aa9ef;
  box-shadow: 0 0 0 3px rgba(43, 111, 224, .13);
}
input:disabled, select:disabled { background: #f3f6fa; color: #64748b; }

.glass input[type=text], .glass input[type=password] { height: 44px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 9px; border: 1px solid transparent;
  font-size: 15px; font-family: inherit; font-weight: 600;
  cursor: pointer; transition: .15s; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(43, 111, 224, .7); }
.btn.primary:hover { background: var(--blue-d); }
.btn.block { width: 100%; height: 46px; }
.btn.ghost { background: #fff; border-color: #d7e0ec; color: #33415c; font-weight: 500; }
.btn.ghost:hover { border-color: #a9bcd4; background: #f8fafc; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn.danger { background: #fff; border-color: #f3c4bf; color: var(--c-danger); }
.btn.danger:hover { background: #fff6f5; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.entry-foot {
  margin-top: 22px;
  font-size: 12.5px;
  color: #7d8a9c;
  line-height: 1.85;
  text-align: center;
}

/* =========================================================
   学生端 · 填报表
   ========================================================= */

.sheet-wrap { max-width: 720px; margin: 0 auto; padding: 26px 14px 130px; }

.sheet {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 32px 70px -28px rgba(34, 62, 116, .45), 0 2px 8px rgba(34, 62, 116, .06);
  overflow: hidden;
}

.sheet-head {
  background: linear-gradient(103deg, #2160cf 0%, #3f8ce8 55%, #63b6ee 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}
.sheet-head .back {
  color: rgba(255, 255, 255, .95);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px;
}
.sheet-head .back:hover { text-decoration: none; opacity: .85; }
.sheet-head .divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .45); }
.sheet-head .count { color: rgba(255, 255, 255, .88); }

.sheet-body { padding: 24px 20px 26px; }

.sheet-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0 0 14px;
  color: #101b2d;
}

.note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #eef4fe;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: #3b5f96;
  line-height: 1.65;
  margin-bottom: 16px;
}
.note .ico {
  flex: 0 0 auto;
  width: 16px; height: 16px; margin-top: 2px;
  border-radius: 50%; background: #2b6fe0; color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 字段行 */
.rows { border: 1px solid #e7ecf3; border-radius: 10px; overflow: hidden; }

.row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
  position: relative;
}
.row:last-child { border-bottom: none; }

.row .k {
  flex: 0 0 38%;
  background: #f7f9fc;
  padding: 13px 12px 13px 14px;
  font-size: 13.5px;
  color: #56637a;
  display: flex;
  align-items: center;
  line-height: 1.45;
}
.row .b {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 4px 13px 14px;
  display: flex;
  align-items: center;
}
.row .val {
  font-size: 15px;
  font-weight: 600;
  color: #101b2d;
  word-break: break-all;
  line-height: 1.45;
}
.row .val.empty { color: #b3bcc9; font-weight: 400; }
.row .ctl { display: none; width: 100%; }
.row.editing { background: #fbfdff; }
.row.editing .val { display: none; }
.row.editing .ctl { display: block; }
.row.editing .k { background: #eef5ff; color: #2b6fe0; font-weight: 600; }

.row .pen {
  flex: 0 0 42px;
  border: none;
  background: transparent;
  color: #b9c3d1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .15s;
}
.row .pen:hover { color: var(--blue); }
.row.editing .pen { color: var(--blue); }
.row .pen svg { width: 16px; height: 16px; }
.row.ro .pen { visibility: hidden; }
form[data-locked="1"] .row .pen { visibility: hidden; }
form[data-locked="1"] .row .ctl { display: none !important; }
form[data-locked="1"] .row .val { display: block !important; }

.row.hide { display: none; }

.row.err { background: #fffafa; }
.row.err .k { background: #fdeeec; color: #b42318; }
.row.err .val { color: #b42318; }

/* 错误提示：整行下方追加一行小字 */
.row .errline {
  display: none;
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--c-danger);
  padding: 0 14px 9px 14px;
  background: #fffafa;
}
.row.err .errline { display: block; }
.row.err { flex-wrap: wrap; }

/* 提示（非错误）：如团员满 28 周岁自动转为群众 */
.row.warn { background: #fffdf5; flex-wrap: wrap; }
.row.warn .k { background: #fdf6e3; color: #b45309; }
.row.warn .errline { display: block; background: #fffdf5; color: #b45309; }

.ym { display: flex; gap: 7px; }
.ym select { flex: 1 1 auto; min-width: 0; }
.ym select:last-child { flex: 0 0 92px; }

/* ---------------------------------------------------------------- 自定义下拉 */
.dd { position: relative; width: 100%; }
.dd .dd-native { display: none !important; }        /* 原生 select 只做取值/提交用 */
.row .dd { display: none; }
.row.editing .dd { display: block; }
form[data-locked="1"] .row .dd { display: none !important; }
.ym .dd { width: 100%; }

.dd-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.dd-btn:focus-visible { outline: none; border-color: #7aa9ef; box-shadow: 0 0 0 3px rgba(43, 111, 224, .13); }
.dd-btn.is-empty .dd-txt { color: #b3bcc9; }
.dd-btn[disabled] { background: #f3f6fa; color: #64748b; border-color: #e3e9f2; cursor: default; }
.dd-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-arrow {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid #64748b;
  border-bottom: 1.6px solid #64748b;
  transform: rotate(45deg);
  transition: transform .18s;
}
.dd.open .dd-arrow { transform: rotate(-135deg); margin-top: 3px; }

.dd-panel {
  position: fixed;
  z-index: 999;
  display: none;
  box-sizing: border-box;
  padding: 6px;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(16, 27, 45, .16), 0 2px 8px rgba(16, 27, 45, .08);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.dd-panel.show { display: block; }
.dd-opt {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  color: #101b2d;
  text-align: left;
  white-space: normal;
  word-break: break-all;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dd-opt:hover, .dd-opt:focus-visible { background: #f2f6fd; outline: none; }
.dd-opt.sel { background: #eaf1ff; color: #2b6fe0; font-weight: 600; }


.auto-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: #101b2d;
}
.auto-pill em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: #8a7128;
  background: #fdf7e9;
  border: 1px solid #eddfba;
  border-radius: 20px;
  padding: 0 8px;
  line-height: 18px;
}

/* 底部固定提交栏 */
.sheet-foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e6ecf4;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 -6px 24px -18px rgba(20, 45, 80, .5);
}
.sheet-foot .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sheet-foot .btn { height: 46px; font-size: 15.5px; }
.sheet-foot .btn.ghost { flex: 0 0 96px; font-size: 14px; }
.sheet-foot .btn.primary { flex: 1 1 auto; }
.foot-tip {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 12px;
  color: #8a96a8;
  text-align: center;
}

/* =========================================================
   提示 / 弹窗 / 完成页
   ========================================================= */

.alert {
  padding: 11px 15px; border-radius: 9px; font-size: 13.5px;
  margin-bottom: 14px; display: flex; gap: 9px; align-items: flex-start;
  line-height: 1.65;
}
.alert.info { background: #eef6fd; border: 1px solid #d3e5f7; color: #14507f; }
.alert.warn { background: #fdf7ea; border: 1px solid #f0e2c3; color: #8a6417; }
.alert.ok   { background: #edf8f2; border: 1px solid #c9e9d9; color: #0e6647; }
.alert.err  { background: #fdf1f0; border: 1px solid #f5cfca; color: #a1261b; }
.alert.locked { background: #f0f4f9; border: 1px solid #dbe3ee; color: #44546a; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 32, 54, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 60;
}
.modal-mask[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
  padding: 26px 24px 20px; box-shadow: 0 30px 70px rgba(10, 25, 45, .32);
  animation: pop .16s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.modal h3 { margin: 0 0 8px; font-size: 18px; color: #101b2d; }
.modal p { color: #64748b; font-size: 13.5px; margin: 0 0 14px; line-height: 1.7; }
.modal .summary {
  background: #f7f9fc; border: 1px solid #edf1f6; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin: 0 0 18px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  max-height: 240px; overflow: auto;
}
.modal .summary dt { color: #7a8798; white-space: nowrap; }
.modal .summary dd { margin: 0; font-weight: 600; word-break: break-all; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; height: 44px; }

.done-card { text-align: center; padding: 46px 26px 40px; }
.done-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(150deg, #34c07d, #12a066);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 32px; box-shadow: 0 10px 26px -8px rgba(15, 130, 85, .55);
}
.done-card h2 { margin: 0 0 10px; font-size: 22px; color: #101b2d; }
.done-card p { color: #64748b; font-size: 14px; margin: 0 0 6px; }
.done-meta {
  display: inline-flex; flex-wrap: wrap; gap: 20px; margin: 20px 0 26px; padding: 12px 20px;
  background: #f7f9fc; border: 1px solid #edf1f6; border-radius: 10px;
  font-size: 13px; color: #64748b; justify-content: center;
}
.done-meta b { color: #101b2d; }

/* =========================================================
   后台
   ========================================================= */

.adminbar { background: #10293f; color: #fff; }
.adminbar .inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px; height: 54px;
}
.adminbar .brand { font-size: 15px; font-weight: 600; letter-spacing: .4px; }
.adminbar .brand span { color: #c9a86a; }
.adminbar nav { display: flex; gap: 4px; flex: 1; }
.adminbar nav a {
  color: rgba(255, 255, 255, .72); font-size: 13.5px; padding: 6px 13px;
  border-radius: 6px; text-decoration: none;
}
.adminbar nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.adminbar nav a.on { background: rgba(255, 255, 255, .13); color: #fff; }
.adminbar .me { font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 60px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .k { font-size: 12.5px; color: var(--c-sub); }
.stat .v { font-size: 27px; font-weight: 600; letter-spacing: -.5px; margin-top: 3px; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--c-sub); margin-left: 3px; }
.stat.a .v { color: var(--c-primary); }
.stat.b .v { color: var(--c-ok); }
.stat.c .v { color: #94671a; }
.stat.d .v { color: #8a94a6; }

.panel {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden;
}
.panel-head {
  padding: 14px 20px; border-bottom: 1px solid var(--c-line-2);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.panel-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-body { padding: 16px 20px; }
.panel-body.flush { padding: 0; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-line-2); }
th { background: #f7f9fc; font-weight: 600; color: #44546c; font-size: 13px; white-space: nowrap; }
tbody tr:hover { background: #fafcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.center, th.center { text-align: center; }

.tag {
  display: inline-block; font-size: 11.5px; padding: 1px 9px; border-radius: 20px;
  line-height: 19px; white-space: nowrap;
}
.tag.ok { background: #e9f6ef; color: #0e6b4b; border: 1px solid #c8e9d9; }
.tag.wip { background: #fdf6e8; color: #8a6417; border: 1px solid #f0e2c2; }
.tag.none { background: #f1f4f8; color: #7a8798; border: 1px solid #e2e8ef; }

.bar { height: 7px; border-radius: 4px; background: #edf1f6; overflow: hidden; min-width: 90px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1d5b96, #2e7bbd); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input[type=text], .filters select { width: auto; min-width: 130px; }
.filters input[type=text] { min-width: 190px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 16px; }
.pager a, .pager span {
  padding: 6px 12px; border-radius: 6px; font-size: 13px; border: 1px solid var(--c-line);
  color: #334155; background: #fff;
}
.pager .cur { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pager .off { color: #b8c2ce; }

.crumb { font-size: 13px; color: var(--c-sub); margin-bottom: 12px; }
.crumb a { color: var(--c-sub); }

/* 后台表单沿用网格 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label {
  display: block; font-size: 13px; color: #3d4c63; margin-bottom: 6px; font-weight: 500;
}
.field > label .req { color: var(--c-danger); margin-left: 2px; }
.field .err-msg { display: none; color: var(--c-danger); font-size: 12.5px; margin-top: 5px; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--c-danger); background: #fffafa; }
.field.is-invalid .err-msg { display: block; }
.field .tip { font-size: 12px; color: var(--c-sub); margin-top: 5px; }
.field .err-msg { font-size: 12px; }
.hide { display: none !important; }
.readonly-box {
  padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px;
  background: #fafbfc; color: #475569; font-size: 14px; min-height: 40px;
}
.auto-box {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid #dbe4ee; border-radius: 8px;
  background: linear-gradient(180deg, #f7fafd, #f1f6fb);
  font-size: 14px; font-weight: 600; color: var(--c-primary);
}
.auto-box .tag {
  margin-left: auto; font-size: 11px; font-weight: 500; color: var(--c-gold);
  border: 1px solid #e6d6b4; background: #fdf8ee;
}
select.locked { pointer-events: none; background: #f4f7fa; color: var(--c-primary); font-weight: 600; background-image: none; }
.ym.form-ym { display: grid; grid-template-columns: 1fr 82px; gap: 8px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 14px; box-shadow: 0 18px 48px rgba(16, 38, 66, .1); padding: 34px 30px 30px;
}
.login-card h2 { font-size: 19px; margin: 0 0 6px; text-align: center; font-weight: 600; }
.login-card p.sub { text-align: center; color: var(--c-sub); font-size: 13px; margin: 0 0 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; margin-top: 6px; }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 760px) {
  body { font-size: 14.5px; }

  .stage { padding: 0; align-items: stretch; }
  .glass {
    max-width: none;
    border-radius: 0;
    min-height: 100vh;
    padding: 54px 24px 40px;
    background: rgba(255, 255, 255, .72);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass h1 { font-size: 22px; line-height: 1.45; }
  .glass input[type=text], .glass input[type=password] { height: 48px; font-size: 16px; }
  .btn.block { height: 50px; font-size: 16px; }

  .sheet-wrap { padding: 0 0 120px; }
  .sheet { border-radius: 0; min-height: 100vh; box-shadow: none; }
  .sheet-head { padding: 14px 16px; }
  .sheet-body { padding: 20px 14px 24px; }
  .sheet-title { font-size: 24px; }

  .row .k { flex: 0 0 40%; font-size: 13px; padding: 12px 8px 12px 12px; }
  .row .b { padding: 12px 2px 12px 12px; }
  .row .val { font-size: 15px; }
  .row .pen { flex: 0 0 38px; }

  /* 输入框 ≥16px，避免 iOS 聚焦时自动放大页面 */
  input[type=text], input[type=number], input[type=password], textarea { font-size: 16px; }
  .dd-btn { font-size: 16px; padding: 11px 12px; }
  .dd-opt { font-size: 16px; padding: 12px 13px; }

  .sheet-foot .btn.ghost { flex: 0 0 88px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .main { padding: 16px 12px 40px; }
  .adminbar .inner { gap: 12px; padding: 0 12px; overflow-x: auto; }
  .adminbar nav a { padding: 6px 9px; }
  .grid { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px 18px; }
}
