@import url("/assets/fonts/serif.css");
/* ============================================================
   CCMUN 会议站点 · 设计系统
   基调：正式、克制，深海军蓝 + 砂金，衬线标题 + 无衬线正文
   ============================================================ */

:root {
  --navy: #0d2b45;
  --navy-2: #14395c;
  --navy-3: #1d4d78;
  --gold: #c8a45c;
  --gold-soft: #efe2c4;
  --ink: #1b1b1b;
  --ink-2: #444;
  --muted: #6f6f6f;
  --bg: #f7f5f1;
  --card: #ffffff;
  --line: #e6e2da;
  --line-2: #d8d3c8;
  --ok: #1d7a4d;
  --warn: #b06a12;
  --danger: #a8342c;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(13, 43, 69, 0.06), 0 6px 20px rgba(13, 43, 69, 0.05);
  --serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0 0 12px; line-height: 1.35; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶部导航 ---------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; gap: 26px;
}
.nav-brand { display: flex; align-items: baseline; gap: 9px; color: #fff; font-family: var(--serif); font-size: 18px; letter-spacing: 0.4px; }
.nav-brand:hover { text-decoration: none; }
.nav-brand small { font-family: var(--sans); font-size: 11px; color: var(--gold); letter-spacing: 1.4px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-brand small { display: none; }
}

/* ---------------- 页头 ---------------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 54px 0 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero h1 { color: #fff; font-size: 34px; margin-bottom: 10px; }
.hero .en { color: rgba(255, 255, 255, 0.55); font-size: 14px; font-family: var(--sans); letter-spacing: 0.3px; }
.hero .tagline { color: var(--gold); font-size: 15px; margin-top: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.hero-meta span b { color: var(--gold); font-weight: 500; margin-right: 6px; }

.page-head { padding: 40px 0 20px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .sub { color: var(--muted); font-size: 14px; }

/* 倒计时 */
.countdown { display: flex; gap: 12px; margin-top: 22px; }
.countdown div {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px; padding: 8px 14px; text-align: center; min-width: 74px;
}
.countdown b { display: block; font-size: 22px; font-family: var(--serif); color: #fff; line-height: 1.2; }
.countdown span { font-size: 11px; color: rgba(255, 255, 255, 0.6); letter-spacing: 1px; }

/* ---------------- 区块 ---------------- */

section { padding: 44px 0; }
section.tight { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .more { margin-left: auto; font-size: 13px; }
.lead { font-size: 15.5px; color: var(--ink-2); }

/* ---------------- 卡片 ---------------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 委员会卡片 */
.committee-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 20px 18px; box-shadow: var(--shadow); transition: transform .16s, border-color .16s;
  position: relative;
}
.committee-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.committee-card .tag-row { display: flex; align-items: center; gap: 8px; }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.6px; padding: 2px 8px; border-radius: 4px;
  background: var(--gold-soft); color: #7a5c14; font-weight: 500;
}
.tag.en { background: #dce9f5; color: #1d4d78; }
.tag.zh { background: var(--gold-soft); color: #7a5c14; }
.tag.gray { background: #eeece6; color: #666; }
.committee-card .code {
  font-family: var(--serif); font-size: 13px; letter-spacing: 1px; color: var(--muted);
  margin-left: auto;
}
.committee-card h3 { margin: 0; font-size: 18px; }
.committee-card .en-name { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.committee-card .topic { font-size: 14px; color: var(--ink-2); margin: 2px 0 0; }
.committee-card .meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.committee-card .meta b { color: var(--navy); font-weight: 600; }
.committee-card:hover { text-decoration: none; }

/* 席位余量条 */
.bar { height: 5px; background: #ece9e2; border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); }
.bar.full > i { background: var(--danger); }

/* 公告 */
.announcement { border-left: 3px solid var(--gold); padding: 2px 0 2px 16px; }
.announcement + .announcement { margin-top: 20px; }
.announcement .date { font-size: 12.5px; color: var(--muted); letter-spacing: 0.5px; }
.announcement h3 { font-size: 17px; margin: 2px 0 6px; }
.announcement p { font-size: 14px; color: var(--ink-2); margin: 0; }
.announcement .en { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------------- 表格 ---------------- */

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: #f2efe9; color: var(--navy); font-weight: 600; font-size: 13px; white-space: nowrap; position: sticky; top: 0; }
table.data tr:hover td { background: #fbfaf7; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 信息表 */
table.info { border-collapse: collapse; font-size: 14.5px; }
table.info td { padding: 5px 18px 5px 0; vertical-align: top; }
table.info td:first-child { color: var(--muted); white-space: nowrap; }

/* ---------------- 表单 ---------------- */

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-row .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
input[type="date"], input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29, 77, 120, 0.12); }
textarea { min-height: 84px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-row input { width: auto; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-family: var(--sans); cursor: pointer; background: var(--navy); color: #fff;
  transition: background .15s, opacity .15s;
}
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: #3a2c07; }
.btn.gold:hover { background: #b8923f; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--navy); }
.btn.ghost:hover { background: #eeece6; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8e2b24; }

/* 志愿选择项 */
.pref-slot { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.pref-slot .rank {
  flex: 0 0 58px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; border-radius: 8px; font-size: 13px; font-family: var(--serif);
}
.pref-slot select { flex: 1; }
.pref-slot.p2 .rank { background: var(--navy-3); }
.pref-slot.p3 .rank { background: #5c7c99; }

/* ---------------- 提示条 ---------------- */

.alert { border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert.info { background: #eef4fa; border-color: #cfe0ef; color: #17415f; }
.alert.ok { background: #edf7f1; border-color: #cbe6d7; color: #14563a; }
.alert.warn { background: #fdf6e6; border-color: #f0e0b0; color: #7a5c14; }
.alert.err { background: #fdf0ef; border-color: #f2cfcc; color: #8b2b24; }
.alert .title { font-weight: 600; display: block; margin-bottom: 4px; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }

/* 状态徽章 */
.badge { display: inline-block; font-size: 12.5px; padding: 2px 9px; border-radius: 20px; font-weight: 500; }
.badge.pending { background: #fdf3e0; color: var(--warn); }
.badge.approved { background: #e8f5ee; color: var(--ok); }
.badge.rejected { background: #fbeceb; color: var(--danger); }
.badge.assigned { background: #e6eef7; color: var(--navy-3); }
.badge.waitlist { background: #f2eefb; color: #5a3f9e; }
.badge.gray { background: #eeece6; color: #666; }

/* ---------------- 文件下载列表 ---------------- */

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.file-list li:last-child { border-bottom: none; }
.file-list .icon {
  flex: 0 0 34px; height: 34px; border-radius: 7px; background: #eef4fa; color: var(--navy-3);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
}
.file-list .icon.pdf { background: #fbeceb; color: var(--danger); }
.file-list .icon.doc { background: #eef4fa; color: var(--navy-3); }
.file-list .icon.xls { background: #e8f5ee; color: var(--ok); }
.file-list .name { flex: 1; }
.file-list .size { color: var(--muted); font-size: 12.5px; }

/* ---------------- 后台 ---------------- */

.admin-head { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 60px; z-index: 40; }
.admin-head .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.stat b { display: block; font-size: 24px; font-family: var(--serif); color: var(--navy); line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 15px;
  font-size: 14px; font-family: var(--sans); color: var(--muted); cursor: pointer;
}
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.log-box {
  background: #0d2b45; color: #d8e4ef; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
  padding: 14px 16px; border-radius: 8px; max-height: 320px; overflow: auto; line-height: 1.7; white-space: pre-wrap;
}
.modal-mask {
  position: fixed; inset: 0; background: rgba(13, 43, 69, 0.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; background: #fff; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head .close { margin-left: auto; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px; }
.mail-frame { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; }

/* ---------------- 页脚 ---------------- */

footer.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.7); margin-top: 50px; padding: 34px 0 30px; font-size: 13.5px;
}
footer.site-footer a { color: var(--gold); }
footer.site-footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
footer.site-footer .bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }

.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 10px; } .mt2 { margin-top: 20px; } .mt3 { margin-top: 30px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 10px; } .mb2 { margin-bottom: 20px; }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.right { margin-left: auto; }

/* Registration ranking and shared delegation workflows */
.ranking-row{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #e6e2da}.ranking-name{flex:1}.ranking-name small{display:block;font-size:12px}.rank-number{width:26px;color:#9a7335;font-weight:700}.table-scroll{overflow-x:auto}.student-card{background:#f7f5f1}.btn:disabled{opacity:.45;cursor:default}#inventory-message:empty{display:none}
@media(max-width:640px){.ranking-row{flex-wrap:wrap}.ranking-name{min-width:65%}.ranking-row .btn{flex:1}#q-form{grid-template-columns:1fr!important}.form-grid{grid-template-columns:1fr}.tabs{overflow-x:auto}.tabs button{white-space:nowrap}}

#avail-table td:nth-child(2),#avail-table th,#avail-table td:last-child{white-space:nowrap}#avail-table td:nth-child(2){min-width:55px}#avail-table td:last-child{min-width:80px}#avail-table .btn{white-space:nowrap}
.account-number { overflow-wrap:anywhere; }
.leader-card { background:#faf9f6; }
#policy-notice { line-height:1.7; }
