/* 广州松田 · 网易学院 报到系统
   配色：白底为主，红色点缀（用作品牌色、主按钮、关键数字、状态徽章） */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: rgba(15, 18, 32, 0.08);
  --border-strong: rgba(15, 18, 32, 0.16);
  --text: #1c1c1e;
  --text-2: #5f5f66;
  --text-3: #a1a1a6;
  --red: #E53935;
  --red-deep: #C62828;
  --red-soft: rgba(229, 57, 53, 0.10);
  --red-softer: rgba(229, 57, 53, 0.06);
  --green: #2E9E4F;
  --green-soft: rgba(46, 158, 79, 0.12);
  --amber: #C77700;
  --amber-soft: rgba(199, 119, 0, 0.14);
  --gray-soft: rgba(15, 18, 32, 0.05);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 18, 32, 0.04), 0 8px 24px rgba(15, 18, 32, 0.06);
  --shadow-lg: 0 6px 28px rgba(229, 57, 53, 0.18);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.wrap-narrow { max-width: 600px; margin: 0 auto; padding: 24px 20px 64px; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700;
}
.brand .sub { font-size: 12px; font-weight: 400; color: var(--text-2); margin-left: 4px; }
.topbar-spacer { flex: 1; }

/* ===== 卡片 ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.card-desc { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.section-title {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin: 24px 0 10px; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; display: inline-block; width: 3px; height: 13px;
  background: var(--red); border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  font-size: 15px; font-weight: 500;
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 11px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  min-height: 42px;
}
.btn:active { transform: scale(0.98); }
.btn:hover { opacity: 0.92; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--gray-soft); opacity: 1; }
.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: var(--border-strong);
}
.btn-danger:hover { background: var(--red-softer); opacity: 1; }
.btn-solid-danger { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { font-size: 13px; padding: 6px 12px; min-height: 32px; border-radius: 9px; }
.btn-lg { font-size: 18px; padding: 16px 20px; min-height: 56px; border-radius: 14px; font-weight: 600; letter-spacing: 0.02em; }

/* ===== 输入 ===== */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; color: var(--text-2);
  margin-bottom: 6px; font-weight: 500;
}
.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.textarea { min-height: 76px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.7;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: rgba(0, 113, 227, 0.10); color: #0071e3; }
.badge-purple { background: rgba(107, 78, 255, 0.12); color: #6b4eff; }
.badge-gray { background: var(--gray-soft); color: var(--text-2); }

/* ===== 统计 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat .num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .label { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.stat.hero { padding: 22px; }
.stat.hero .num { font-size: 60px; color: var(--red); font-weight: 700; }
.stat.hero .label { font-size: 14px; }
.stat.green .num { color: var(--green); }
.stat.amber .num { color: var(--amber); }

/* ===== 进度条 ===== */
.bar { height: 10px; background: var(--gray-soft); border-radius: 5px; overflow: hidden; }
.bar > i {
  display: block; height: 100%;
  background: var(--red);
  border-radius: 5px;
  transition: width 0.4s ease;
}
.bar.green > i { background: var(--green); }
.bar.amber > i { background: var(--amber); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface-2);
}
td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-2); }
tbody tr.checked-row { background: linear-gradient(90deg, rgba(46, 158, 79, 0.04), transparent 40%); }
.num-cell { font-variant-numeric: tabular-nums; }

/* ===== 提示 ===== */
.hint { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-red { background: var(--red-soft); color: var(--red-deep); border-color: rgba(229, 57, 53, 0.22); }
.alert-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(199, 119, 0, 0.22); }
.alert-green { background: var(--green-soft); color: var(--green); border-color: rgba(46, 158, 79, 0.22); }
.alert-blue { background: rgba(0, 113, 227, 0.10); color: #0071e3; border-color: rgba(0, 113, 227, 0.22); }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .big { font-size: 44px; margin-bottom: 10px; opacity: 0.35; }

/* ===== 入口卡片 ===== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.entry {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.entry:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
  border-color: var(--red-soft);
  box-shadow: var(--shadow-lg);
}
.entry .t { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.entry .d { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.entry .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.entry .icon.red { background: var(--red); color: #fff; }
.entry .icon.soft-red { background: var(--red-soft); color: var(--red); }
.entry .icon.green { background: var(--green-soft); color: var(--green); }
.entry .icon.blue { background: rgba(0, 113, 227, 0.10); color: #0071e3; }
.entry .icon.purple { background: rgba(107, 78, 255, 0.12); color: #6b4eff; }

/* ===== 签到结果 ===== */
.result-card { text-align: center; padding: 8px 0 4px; }
.result-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 600;
  color: #fff; background: var(--red);
}
.result-avatar.green { background: var(--green); }
.result-avatar.red { background: var(--red); }
.result-name { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.result-meta { font-size: 15px; color: var(--text-2); margin-top: 6px; }

/* ===== 大字数字（KPI） ===== */
.big-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ===== 专业色块（三个专业不同色相） ===== */
.major-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.major-tag.m1 { background: rgba(229, 57, 53, 0.12); color: #C62828; }   /* 数字媒体技术 — 红 */
.major-tag.m2 { background: rgba(0, 113, 227, 0.10); color: #0071e3; }   /* 动漫制作技术 — 蓝 */
.major-tag.m3 { background: rgba(46, 158, 79, 0.12); color: var(--green); } /* 游戏艺术设计 — 绿 */

/* ===== toast ===== */
#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  box-shadow: var(--shadow);
  max-width: 90vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red); }
#toast.success { background: var(--green); }

/* ===== 模态 ===== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 90;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 6px; font-size: 17px; }
.modal .desc { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===== 杂项 ===== */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 160px; }
.spacer-8 { height: 8px; } .spacer-16 { height: 16px; }
.right { text-align: right; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-size: 15px; font-weight: 500; }
.list-row .s { font-size: 12px; color: var(--text-2); }

.switch-line { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; user-select: none; }
.switch-line input { width: 17px; height: 17px; accent-color: var(--red); }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .wrap, .wrap-narrow { padding: 16px 14px 80px; }
  .stat.hero .num { font-size: 48px; }
  .card { padding: 16px; border-radius: 16px; }
  .topbar-inner { padding: 10px 14px; }
  .btn-lg { font-size: 17px; padding: 14px 18px; min-height: 52px; }
  .entry { padding: 18px; }
  .stat-grid { gap: 10px; }
  .stat { padding: 14px; }
  .stat .num { font-size: 26px; }
  th, td { padding: 10px 8px; font-size: 13px; }
}
