/* ==========================================================================
 * h5.css — 移动端 H5 页面共享样式（apply.html 报名表单 / student.html 学生门户）
 * 与 common.css 独立，专为手机竖屏设计；配色沿用太阳树品牌变量。
 * ========================================================================== */
:root {
  --c-navy: #082f5f;
  --c-navy-2: #0d3f79;
  --c-gold: #b98a2f;
  --c-gold-lt: #fff6dd;
  --c-bg: #eef2f7;
  --c-surface: #fff;
  --c-text: #1f2d3d;
  --c-muted: #5f6f82;
  --c-hint: #93a0b0;
  --c-border: #e1e8f1;
  --c-green: #20724f;
  --c-red: #b33434;
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font); font-size: 15px; background: var(--c-bg); color: var(--c-text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.h5-app { max-width: 480px; margin: 0 auto; min-height: 100%; background: var(--c-bg); position: relative; }

/* 顶栏 */
.h5-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: linear-gradient(120deg, #082f5f, #123f6d); color: #fff;
  box-shadow: 0 4px 14px rgba(8,47,95,.18);
}
.h5-topbar img { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: #fff; object-fit: cover; }
.h5-topbar .h5-tt { flex: 1; min-width: 0; }
.h5-topbar .h5-tt b { display: block; font-size: 15px; font-weight: 700; }
.h5-topbar .h5-tt span { display: block; font-size: 11px; color: rgba(255,255,255,.72); }
.h5-lang { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; }

/* 内容区 */
.h5-body { padding: 14px 14px 96px; }
.h5-intro { font-size: 12.5px; color: var(--c-muted); background: var(--c-gold-lt); border: 1px solid #f0e2bf; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }

/* 分区卡片 */
.h5-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 14px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(8,47,95,.05); }
.h5-card-title { font-size: 13px; font-weight: 700; color: var(--c-navy); margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--c-gold); display: flex; align-items: center; }

/* 表单 */
.h5-field { margin-bottom: 12px; }
.h5-field:last-child { margin-bottom: 0; }
.h5-field > label { display: block; font-size: 12.5px; color: var(--c-muted); margin-bottom: 5px; font-weight: 600; }
.h5-field .req { color: var(--c-red); margin-left: 2px; }
.h5-field input, .h5-field select, .h5-field textarea {
  width: 100%; font-family: var(--font); font-size: 14.5px; color: var(--c-text);
  padding: 11px 12px; border: 1px solid var(--c-border); border-radius: 10px; background: #fbfcfe;
}
.h5-field input:focus, .h5-field select:focus, .h5-field textarea:focus { outline: none; border-color: var(--c-navy-2); background: #fff; box-shadow: 0 0 0 3px rgba(17,103,170,.1); }
.h5-field textarea { resize: vertical; min-height: 64px; }
.h5-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h5-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.h5-radio label { flex: 1; min-width: 72px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; padding: 10px; border: 1px solid var(--c-border); border-radius: 10px; background: #fbfcfe; cursor: pointer; }
.h5-radio input { width: auto; margin: 0; accent-color: var(--c-navy); }
.h5-radio label.on { border-color: var(--c-navy); background: #eef4fc; color: var(--c-navy); font-weight: 600; }

/* 提交条 */
.h5-submit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 480px; margin: 0 auto; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--c-border); backdrop-filter: blur(6px); }
.h5-btn { width: 100%; font-family: var(--font); font-size: 16px; font-weight: 700; padding: 13px; border: none; border-radius: 12px; background: var(--c-navy); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(8,47,95,.24); }
.h5-btn:active { background: var(--c-navy-2); }
.h5-btn.ghost { background: #fff; color: var(--c-navy); border: 1px solid var(--c-border); box-shadow: none; }

/* 成功页 */
.h5-done { text-align: center; padding: 60px 24px; }
.h5-done .ic { width: 78px; height: 78px; border-radius: 50%; background: var(--c-green); color: #fff; font-size: 42px; line-height: 78px; margin: 0 auto 20px; }
.h5-done h3 { font-size: 20px; color: var(--c-navy); margin-bottom: 10px; }
.h5-done p { font-size: 13.5px; color: var(--c-muted); margin-bottom: 26px; }

/* 学生门户：底部 Tab */
.h5-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 480px; margin: 0 auto; display: flex; background: #fff; border-top: 1px solid var(--c-border); padding-bottom: env(safe-area-inset-bottom); }
.h5-tabbar button { flex: 1; border: none; background: none; padding: 8px 2px 9px; font-family: var(--font); font-size: 11px; color: var(--c-hint); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.h5-tabbar button .ic { font-size: 19px; line-height: 1; }
.h5-tabbar button.on { color: var(--c-navy); font-weight: 700; }

/* 学生门户：登录 */
.h5-login { padding: 44px 22px; }
.h5-login .logo { text-align: center; margin-bottom: 26px; }
.h5-login .logo img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--c-navy); }
.h5-login .logo b { display: block; margin-top: 10px; font-size: 18px; color: var(--c-navy); }
.h5-login h3 { font-size: 16px; color: var(--c-navy); margin-bottom: 4px; }
.h5-login .hint { font-size: 12px; color: var(--c-hint); margin-bottom: 18px; }
.h5-login .err { font-size: 12.5px; color: var(--c-red); min-height: 18px; margin: 6px 0; }

/* 学生门户：通用小组件 */
.h5-notice { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--c-border); font-size: 13.5px; }
.h5-notice:last-child { border-bottom: none; }
.h5-notice .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); margin-top: 8px; flex-shrink: 0; }
.h5-notice .nt-date { font-size: 11px; color: var(--c-hint); }
.h5-stat-big { text-align: center; padding: 12px 0 6px; }
.h5-stat-big .num { font-size: 40px; font-weight: 800; color: var(--c-navy); line-height: 1; }
.h5-stat-big .lb { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.h5-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.h5-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #eef4fc; color: var(--c-navy); }
.h5-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.h5-row:last-child { border-bottom: none; }
.h5-row .sub { font-size: 11.5px; color: var(--c-hint); }
.h5-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--c-muted); }
.h5-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(8,28,54,.9); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 999px; opacity: 0; transition: opacity .2s; z-index: 50; pointer-events: none; white-space: nowrap; }
.h5-toast.show { opacity: 1; }
