/* 学生信息收集 · 通用样式 */
:root {
  --bg: #f4f7fa;
  --card: #ffffff;
  --text: #17202e;
  --muted: #697586;
  --line: #e3e9f0;
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --brand-soft: #eafaf7;
  --danger: #d92d20;
  --ok: #067647;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 26px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.hidden { display: none !important; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 16px 40px; }
.wrap-wide { max-width: 1080px; }

.hero {
  background: linear-gradient(160deg, #0f766e 0%, #12968c 55%, #14a89b 100%);
  color: #fff;
  padding: 34px 20px 30px;
  text-align: center;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 6px 20px rgba(15, 118, 110, .18);
}

.hero h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: .3px; }
.hero p { margin: 0; font-size: 13.5px; opacity: .92; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 18px;
}

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }

.field > label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #253044;
}

.req { color: var(--danger); margin-left: 2px; }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select {
  width: 100%;
  padding: 12px 13px;
  font-size: 16px;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}

input:focus, select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

input.err { border-color: var(--danger); background: #fff7f6; }

.err-msg { color: var(--danger); font-size: 12.5px; margin-top: 6px; min-height: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .06s, opacity .15s;
}

.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn.ghost {
  color: var(--brand);
  background: #fff;
  border-color: #bfe3de;
}
.btn.ghost:hover { background: var(--brand-soft); }

.btn.small { width: auto; padding: 8px 14px; font-size: 14px; border-radius: 9px; }

.row { display: flex; gap: 10px; align-items: flex-start; }
.row > * { min-width: 0; }
.grow { flex: 1; }

/* 照片上传 */
.photo-box {
  position: relative;
  border: 1.5px dashed #c3d0dd;
  border-radius: 12px;
  background: #fafcfe;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.photo-box:hover { border-color: var(--brand); background: var(--brand-soft); }
.photo-box.filled { border-style: solid; border-color: var(--line); background: #fff; padding: 8px; }
.photo-box .file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.photo-hint { padding: 22px 16px; color: var(--muted); font-size: 14px; }
.photo-hint svg { display: block; margin: 0 auto 10px; }
.photo-hint .tip { font-size: 12.5px; margin-top: 6px; color: #8b96a5; }
#preview { max-width: 100%; max-height: 260px; border-radius: 9px; display: block; margin: 0 auto; }

.meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* 状态条 */
.alert {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert.err { color: #912018; background: #fef3f2; border-color: #fecdca; }
.alert.ok { color: #054f31; background: #ecfdf3; border-color: #abefc6; }
.alert.info { color: #0b4f4a; background: var(--brand-soft); border-color: #b6e6e0; }

/* 成功页 */
.done-icon {
  width: 66px; height: 66px; margin: 0 auto 14px;
  border-radius: 50%; background: #ecfdf3; color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.done-title { text-align: center; font-size: 19px; font-weight: 650; margin: 0 0 6px; }
.done-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.kv { border-top: 1px solid var(--line); }
.kv .row2 { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv .k { color: var(--muted); flex: 0 0 auto; }
.kv .v { text-align: right; word-break: break-all; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 720px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f8fafc; font-weight: 600; color: #43506b; position: sticky; top: 0; z-index: 1; }
tbody tr:hover { background: #fafcfe; }
tbody tr:last-child td { border-bottom: none; }

.link { color: var(--brand); text-decoration: none; font-weight: 500; cursor: pointer; background: none; border: none; font-size: 14px; padding: 0; font-family: inherit; }
.link:hover { text-decoration: underline; }

.stat { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat .box { flex: 1 1 130px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat .box .n { font-size: 22px; font-weight: 650; color: var(--brand); }
.stat .box .l { font-size: 12.5px; color: var(--muted); }

.tabs { display: flex; gap: 4px; background: #eef2f7; padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.tabs button {
  flex: 1; padding: 9px 8px; font-size: 14.5px; font-weight: 600; color: #5a6779;
  background: transparent; border: none; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(16,24,40,.09); }

.foot { text-align: center; color: #8b96a5; font-size: 12.5px; margin-top: 22px; line-height: 1.8; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 200px; }
.toolbar input { padding: 10px 12px; }

.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.mt12 { margin-top: 12px; }
.mt18 { margin-top: 18px; }
