/* ============ 汉豪大学明辩杯信息管理系统 · 样式 ============ */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #1b2437;
  --ink-2: #3c4a63;
  --muted: #6f7b93;
  --line: #e3e8f2;
  --brand: #1d3a8a;
  --brand-2: #2f5bd7;
  --brand-soft: #eef2ff;
  --gold: #c1922f;
  --green: #17875a;
  --green-soft: #e7f6ee;
  --orange: #c97a12;
  --orange-soft: #fdf1e0;
  --red: #c53a33;
  --red-soft: #fdeceb;
  --shadow: 0 6px 24px rgba(23, 40, 84, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: Consolas, "Courier New", monospace; background: #f0f3fa; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; color: #2c3c60; }

/* ============ 登录页 ============ */
body.on-login { background: #eef1f9; }
#loginView { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; }
.login-wrap {
  width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--panel); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 70px rgba(20, 34, 74, .16);
}
.brand-panel {
  position: relative; padding: 54px 46px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #2b4fa8 0%, #1b3272 45%, #131f45 100%);
  display: flex; flex-direction: column;
}
.brand-panel::after {
  content: ""; position: absolute; right: -70px; bottom: -90px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.brand-mark {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, #e8c97a, #b8862a); color: #241a05; font-size: 26px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); margin-bottom: 26px;
}
.brand-panel h1 { font-size: 30px; line-height: 1.4; letter-spacing: .5px; }
.brand-sub { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 13px; letter-spacing: .4px; }
.brand-list { margin-top: 34px; display: grid; gap: 12px; }
.brand-list li { position: relative; padding-left: 20px; color: rgba(255, 255, 255, .86); font-size: 13px; }
.brand-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--gold); transform: rotate(45deg);
}
.brand-foot { margin-top: auto; padding-top: 38px; color: rgba(255, 255, 255, .45); font-size: 12px; letter-spacing: 3px; }

.form-panel { padding: 44px 42px; display: flex; align-items: center; background: #fff; }
.login-card { width: 100%; }
.login-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.login-tab {
  border: 0; background: none; padding: 0 2px 12px; font-size: 16px; font-weight: 700; color: var(--muted);
  cursor: pointer; position: relative; font-family: inherit;
}
.login-tab.active { color: var(--brand); }
.login-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand);
}
.form-note { background: var(--brand-soft); color: #34477a; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 16px; }
#loginForm .f-in { margin-bottom: 14px; }
#loginForm .btn { margin-top: 6px; }
.demo-box { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.demo-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip {
  border: 1px solid var(--line); background: #f8faff; color: var(--ink-2); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; cursor: pointer; font-family: inherit; transition: .15s;
}
.demo-chip:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }

/* ============ 应用骨架 ============ */
#appShell { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: 0 0 236px; background: #131f45; color: #cdd6ea;
  display: flex; flex-direction: column; padding: 22px 14px 16px; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.side-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, #e8c97a, #b8862a); color: #241a05; font-weight: 700; font-size: 18px;
}
.side-title { display: flex; flex-direction: column; line-height: 1.25; }
.side-title b { color: #fff; font-size: 15px; letter-spacing: 1px; }
.side-title span { font-size: 11px; color: #8a99bd; letter-spacing: .5px; }
#navList { flex: 1; overflow-y: auto; }
.nav-group { margin-bottom: 18px; }
.nav-group-title { font-size: 11px; color: #6d7ea6; padding: 0 10px 8px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  color: #c3cde4; font-size: 13.5px; margin-bottom: 3px; transition: .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: linear-gradient(100deg, #2f5bd7, #3f6ce6); color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 215, .34); }
.nav-ico { width: 18px; text-align: center; opacity: .9; font-size: 13px; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 0 4px 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 34px;
  background: linear-gradient(150deg, #3f6ce6, #2b4fa8); color: #fff; font-weight: 700; font-size: 14px;
}
.side-user-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-user-text b { color: #fff; font-size: 13px; }
.side-user-text span { font-size: 11px; color: #8a99bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-actions { display: flex; gap: 8px; }
.side-actions .btn { flex: 1; padding: 7px 0; font-size: 12px; border-color: rgba(255, 255, 255, .18); color: #b9c5de; }
.side-actions .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

#main { flex: 1; min-width: 0; padding: 30px 34px 60px; max-width: 1280px; }

/* ============ 通用排版 ============ */
.page-title { font-size: 22px; letter-spacing: .5px; }
.page-desc { color: var(--muted); font-size: 13px; margin-top: 6px; margin-bottom: 20px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sub-title { font-size: 14px; margin: 18px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.ok-text { color: var(--green); font-weight: 700; }
.danger-text { color: var(--red); }
.link { color: var(--brand-2); cursor: pointer; font-size: 13px; margin-right: 12px; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--red); }
.link.ok { color: var(--green); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* ============ 卡片 ============ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; }
.tip-card { display: flex; gap: 12px; align-items: baseline; background: linear-gradient(100deg, #f7f9ff, #ffffff); border-style: dashed; color: var(--ink-2); font-size: 13px; }
.tip-card b { color: var(--brand); white-space: nowrap; }

/* ============ 统计卡 ============ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-row.compact { grid-template-columns: repeat(3, 1fr); margin-bottom: 6px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-val { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1.2; letter-spacing: .5px; }
.stat-label { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============ 表单 ============ */
.f-label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 0 0 6px; font-weight: 600; }
.req { color: var(--red); font-style: normal; }
.f-in {
  width: 100%; border: 1px solid var(--line); background: #fbfcff; border-radius: 9px;
  padding: 9px 11px; font-size: 13.5px; color: var(--ink); font-family: inherit; outline: none; transition: .15s;
}
.f-in:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(47, 91, 215, .12); }
.f-in:disabled { background: #f2f4f9; color: #8b96ac; cursor: not-allowed; }
textarea.f-in { resize: vertical; line-height: 1.65; }
select.f-in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7b87a0 50%), linear-gradient(135deg, #7b87a0 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select.f-in.inline { width: auto; min-width: 130px; display: inline-block; padding: 6px 30px 6px 10px; font-size: 13px; }
.form { display: grid; gap: 4px; }
.form .f-label { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.filter-bar { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; }
.filter-bar label { font-size: 12.5px; color: var(--muted); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; font-size: 13.5px;
  font-family: inherit; cursor: pointer; transition: .15s; background: #fff; color: var(--ink-2);
}
.btn-primary { background: linear-gradient(100deg, #2f5bd7, #3f6ce6); color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 215, .26); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-danger { background: linear-gradient(100deg, #cf4340, #e0574f); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-lg { padding: 11px 26px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 4px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============ 表格 ============ */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.tbl th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12px;
  background: #f7f9ff; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid #eef1f8; color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl td b { color: var(--ink); }

/* ============ 标签 ============ */
.tag { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.tag-gray { background: #eef1f8; color: #64708a; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-orange { background: var(--orange-soft); color: var(--orange); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-blue { background: var(--brand-soft); color: var(--brand); }

/* ============ 键值 / 进度 / 提示 ============ */
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #edf0f7; font-size: 13px; }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); flex: 0 0 auto; }
.kv b { text-align: right; color: var(--ink); font-weight: 600; word-break: break-all; }
.progress { height: 7px; background: #eef1f8; border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #3f6ce6, #6f96f5); border-radius: 999px; transition: width .4s; }
.alert { background: #f7f9ff; border: 1px solid #e6ecfb; color: #44557c; border-radius: 10px; padding: 10px 13px; font-size: 12.5px; margin-top: 12px; }
.alert-ok { background: var(--green-soft); border-color: #c8ecd9; color: #146b48; }
.alert-warn { background: var(--orange-soft); border-color: #f6ddb9; color: #8a5310; }
.alert-info { background: var(--brand-soft); border-color: #d9e2fb; color: #2a3f77; }
.code-text { color: var(--brand); letter-spacing: .5px; }
.code-text.big { font-size: 17px; }
.big-num { font-size: 20px; color: var(--gold); font-weight: 700; }

.code-banner {
  border: 1px dashed #cbd6f2; background: linear-gradient(120deg, #f6f9ff, #fffdf6);
  border-radius: 14px; padding: 18px; text-align: center; margin: 8px 0 4px;
}
.cb-label { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.cb-code { font-size: 32px; font-weight: 700; color: var(--brand); letter-spacing: 3px; margin: 4px 0 6px; }

/* ============ 步骤条 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.step { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.step-dot {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center;
  background: #eef1f8; color: #7a86a0; font-size: 12px; font-weight: 700;
}
.step-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.step-text b { font-size: 12.5px; color: var(--ink-2); }
.step-text span { font-size: 11px; color: var(--muted); }
.step.done { border-color: #cfe9db; background: #f7fdf9; }
.step.done .step-dot { background: var(--green-soft); color: var(--green); }
.step.active { border-color: #b9caf3; background: linear-gradient(100deg, #f4f8ff, #fff); box-shadow: 0 6px 16px rgba(47, 91, 215, .1); }
.step.active .step-dot { background: var(--brand-2); color: #fff; }
.step.active .step-text b { color: var(--brand); }

/* ============ 确认清单 ============ */
.check-list { display: grid; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px; background: #fff;
}
.check-item.ok { background: #f8fdfa; border-color: #d5ecdf; }
.ck { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; background: #eef1f8; color: #8b96ac; font-size: 12px; }
.check-item.ok .ck { background: var(--green-soft); color: var(--green); }
.ck-main { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ck-main b { font-size: 13px; }

/* ============ 信息网格 ============ */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #eef1f8; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.info-grid > div { background: #fff; padding: 10px 13px; display: flex; flex-direction: column; gap: 2px; }
.info-grid span { font-size: 11.5px; color: var(--muted); }
.info-grid b { font-size: 13.5px; color: var(--ink); word-break: break-all; }

/* ============ 公告 ============ */
.notice-list { display: grid; gap: 14px; }
.notice-card { padding: 20px 22px; }
.notice-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.notice-head h3 { font-size: 16px; color: var(--brand); }
.notice-body { color: var(--ink-2); font-size: 13.5px; line-height: 1.85; }
.notice-files { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.notice-meta { font-size: 12px; margin-bottom: 10px; }
.file-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--brand-2); background: #f5f8ff; border: 1px solid #e2e9fb; border-radius: 8px; padding: 4px 9px; }
.file-link:hover { background: var(--brand-soft); }
.exist-files { margin-bottom: 8px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.mini-list { display: grid; gap: 12px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; }
.mini-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); margin-top: 8px; flex: 0 0 6px; }
.mini-title { font-size: 13px; color: var(--ink); font-weight: 600; }

/* ============ 空态 ============ */
.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-ico { font-size: 26px; color: #c3cbe0; margin-bottom: 6px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 26, 52, .48); display: flex; align-items: center;
  justify-content: center; padding: 24px; z-index: 900; animation: fadeIn .16s ease;
}
.modal {
  width: 100%; max-width: 540px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 20, 45, .28); animation: pop .18s ease; max-height: 88vh; display: flex; flex-direction: column;
}
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15.5px; }
.modal-x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; padding: 2px 6px; }
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fbfcff; }
.c-msg { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; top: 26px; transform: translate(-50%, -14px); opacity: 0;
  background: #1f2b47; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 12px 30px rgba(15, 25, 50, .26); z-index: 1200; transition: .25s; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: #c03a33; }
.toast-warn { background: #b87510; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  #main { padding: 24px 20px 50px; }
}
@media (max-width: 820px) {
  .login-wrap { grid-template-columns: 1fr; }
  .brand-panel { padding: 34px 28px; }
  .brand-list { display: none; }
  .brand-foot { padding-top: 20px; }
  .form-panel { padding: 28px 24px; }
  .form-grid, .info-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  #appShell { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: relative; padding: 14px 14px 12px; }
  .side-brand { padding-bottom: 12px; }
  #navList { display: flex; gap: 6px; overflow-x: auto; }
  .nav-group { display: flex; gap: 6px; margin: 0; }
  .nav-group-title { display: none; }
  .nav-item { white-space: nowrap; }
  .side-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
  .side-user { padding: 0; }
  .side-actions { gap: 6px; }
  .stat-row, .stat-row.compact { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 辩题公布 ============ */
.topic-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #fff7e8, #fffdf8);
  border: 1px solid #f0dfba; border-radius: 10px;
  padding: 14px 16px; margin: 12px 0;
}
.topic-label {
  flex: none; background: #8a1f1f; color: #fff;
  font-size: 13px; padding: 4px 10px; border-radius: 999px; letter-spacing: 2px;
}
.topic-banner b { font-size: 17px; color: #3d3226; line-height: 1.5; }
.topic-teams { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; }
.topic-side {
  flex: 1; border-radius: 10px; padding: 12px 16px; text-align: center;
}
.topic-side span { display: block; font-size: 12px; margin-bottom: 4px; opacity: .75; }
.topic-side b { font-size: 16px; }
.topic-side.aff { background: #eef4ee; border: 1px solid #cfe2cf; color: #2e6b3d; }
.topic-side.con { background: #fdf0ef; border: 1px solid #f0d3d0; color: #a03530; }
.topic-vs {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: #8a1f1f; color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ 证书 ============ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cert-card { padding: 0 !important; overflow: hidden; }
.cert-preview {
  height: 200px; background: #f3ede0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cert-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-pdf { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #8a1f1f; font-size: 34px; }
.cert-pdf span { font-size: 13px; color: #6b7280; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert-info { padding: 14px 16px 16px; }
.cert-award { font-weight: 700; font-size: 15px; color: #8a1f1f; margin-bottom: 4px; }

/* ============ 证明材料 ============ */
.proof-box {
  border: 1px solid #dbe4f0; border-radius: 10px;
  background: #f8fafd; padding: 12px 14px; margin: 10px 0;
}
.tag-gold { background: #fdf3dd; color: #8a6d1a; border: 1px solid #ecd9a8; }

/* ============ 组别 / 状态标签补充 ============ */
.tag-purple { background: #f1ecfa; color: #6d4aa8; }
.tag-teal { background: #e6f6f4; color: #0f766e; }

/* ============ 队伍状态流 ============ */
.status-flow { margin: 14px 0 18px; }
.flow-tags { display: flex; gap: 6px; }
.flow {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin: 18px 6px 10px; position: relative;
}
.flow::before {
  content: ''; position: absolute; top: 17px; left: 8%; right: 8%;
  height: 2px; background: #e3e9f4; z-index: 0;
}
.flow-step { position: relative; z-index: 1; flex: 1; text-align: center; min-width: 0; }
.flow-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 7px;
  background: #fff; border: 2px solid #d6deee; color: #9aa7bd;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.flow-label { font-size: 12px; color: #8a94aa; white-space: nowrap; }
.flow-step.done .flow-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow-step.done .flow-label { color: var(--brand); font-weight: 600; }
.flow-step.active .flow-dot {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.flow-step.active .flow-label { color: var(--brand); font-weight: 700; }
.flow.failed::before { background: #f3d9d7; }
.flow.failed .flow-step.done .flow-dot { background: #c9b8b6; border-color: #c9b8b6; }
.flow.failed .flow-step.done .flow-label { color: #a08d8a; }
.flow-step.fail .flow-dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--red-soft); }
.flow-step.fail .flow-label { color: var(--red); font-weight: 700; }

/* ============ 线上会议 ============ */
.mini-open {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f6f8fc; border: 1px solid #e3e9f4; border-radius: 8px; padding: 10px 14px;
}
.mini-open b { font-size: 14px; }
.meet-card { position: relative; overflow: hidden; }
.meet-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,58,58,.06), transparent 55%);
  pointer-events: none;
}
.meet-open-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: #178a4c; font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; display: inline-block; margin-right: 2px;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  animation: livepulse 1.6s infinite;
}
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.meet-title { font-size: 20px; margin: 0 0 14px; }
.meet-btn { font-size: 16px; letter-spacing: 2px; }
.meet-note { margin-top: 14px; }
.meet-closed { text-align: center; padding: 48px 20px !important; }
.meet-admin-card { border-left: 4px solid var(--brand); }

/* ============ 首页小卡片通用 ============ */
.card .card-head h3 { letter-spacing: .5px; }
