/* ============================================================
   学籍报名管理平台 · 红色奢金主题
   全部资源为本地样式，无任何外链依赖
   ============================================================ */
:root {
  --red-900: #2b0505;
  --red-800: #4a0808;
  --red-700: #6d0f0f;
  --red-600: #8c1414;
  --red-500: #a91818;
  --gold-100: #fbf1cf;
  --gold-200: #f3e0a0;
  --gold-300: #e6c86a;
  --gold-400: #d4af37;
  --gold-500: #b8860b;
  --gold-600: #8a6508;
  --ivory: #fbf8f1;
  --ivory-dim: #f2ece0;
  --ink: #241a14;
  --ink-soft: #5a4b40;
  --ink-mute: #8c7d70;
  --line-gold: rgba(212, 175, 55, 0.42);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", serif;
  color: var(--ink);
  background-color: var(--red-800);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(168, 32, 32, 0.55) 0%, rgba(74, 8, 8, 0) 55%),
    radial-gradient(circle at 84% 88%, rgba(140, 20, 20, 0.5) 0%, rgba(43, 5, 5, 0) 52%),
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.055) 0px, rgba(212, 175, 55, 0.055) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.045) 0px, rgba(212, 175, 55, 0.045) 1px, transparent 1px, transparent 9px),
    linear-gradient(160deg, #5c0b0b 0%, #2b0505 46%, #160202 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部机构条 ---------- */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, rgba(22, 2, 2, 0.62), rgba(22, 2, 2, 0.18));
}

.emblem {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #f7e9b6, #d4af37 45%, #8a6508 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 6px 18px rgba(0, 0, 0, 0.45);
}

.emblem svg { width: 26px; height: 26px; display: block; }

.topbar-txt { display: flex; flex-direction: column; line-height: 1.35; }
.topbar-txt .org {
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--gold-200);
  font-weight: 700;
}
.topbar-txt .sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(243, 224, 160, 0.62);
  text-transform: uppercase;
}

/* ---------- 主区域 ---------- */
.stage {
  position: relative;
  z-index: 2;
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
  padding: 46px 0 64px;
}

.stage.narrow { width: min(520px, 100% - 32px); padding-top: 56px; }

/* ---------- 金色卡片 ---------- */
.card-gold {
  position: relative;
  background: linear-gradient(180deg, #fdfaf3 0%, var(--ivory) 42%, #f6f0e3 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  padding: 34px 36px 30px;
  overflow: hidden;
}

.card-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(140deg, #f7e9b6, #d4af37 26%, #8a6508 52%, #f3e0a0 78%, #b8860b 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-gold::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #8a6508, #f7e9b6 18%, #d4af37 42%, #f7e9b6 62%, #8a6508 100%);
  opacity: 0.95;
}

/* ---------- 标题 ---------- */
.head { text-align: center; margin-bottom: 26px; }

.head .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold-600);
  padding: 3px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(212, 175, 55, 0.07);
}

.head h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.18em;
  color: var(--red-700);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.head .divider {
  width: 168px;
  height: 12px;
  margin: 14px auto 12px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-400) 0 2.5px, transparent 3px);
  position: relative;
}
.head .divider::before,
.head .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.head .divider::before { left: 0; }
.head .divider::after { right: 0; transform: scaleX(-1); }

.head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  line-height: 1.8;
}

/* ---------- 表单 ---------- */
.form { margin-top: 6px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field label .req { color: var(--red-500); margin-left: 2px; }

.input-wrap { position: relative; }

.input, input[type="text"], input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(138, 101, 8, 0.28);
  border-radius: 9px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  letter-spacing: 0.04em;
}

.input::placeholder, input::placeholder { color: #b9ab9c; letter-spacing: 0.04em; }

.input:focus, input:focus {
  border-color: var(--gold-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15.5px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .18s, filter .18s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  color: var(--red-800);
  background: linear-gradient(135deg, #f7e9b6 0%, #e2c162 26%, #d4af37 52%, #b8860b 74%, #f3e0a0 100%);
  box-shadow: 0 10px 24px rgba(184, 134, 11, 0.36), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-red {
  color: #fff6e6;
  background: linear-gradient(135deg, #9c1717, #7a0f0f 55%, #5e0a0a);
  box-shadow: 0 10px 22px rgba(74, 8, 8, 0.4), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  font-weight: 700;
}
.btn-red:hover { filter: brightness(1.08); }

.btn-ghost {
  color: var(--red-700);
  background: transparent;
  border: 1px solid var(--line-gold);
  letter-spacing: 0.16em;
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.1); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- 提示 ---------- */
.msg {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  letter-spacing: 0.04em;
}
.msg.show { display: block; }
.msg.err { color: #8c1414; background: #fdeaea; border: 1px solid #f3c9c9; }
.msg.ok { color: #1f6b3a; background: #eaf6ee; border: 1px solid #c6e6d0; }
.msg.info { color: var(--gold-600); background: #fdf7e6; border: 1px solid #efe1b8; }

/* ---------- 页脚 ---------- */
.footer-note {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 224, 160, 0.42);
  line-height: 2;
}

/* ---------- 状态徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  border: 1px solid;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge.pending { color: #9a6b00; background: #fdf6e3; border-color: #eddaa8; }
.badge.paid    { color: #1d5fa8; background: #eaf2fb; border-color: #c3d9f0; }
.badge.approved{ color: #1f6b3a; background: #eaf6ee; border-color: #c2e3cd; }
.badge.rejected{ color: #8c1414; background: #fdeaea; border-color: #f3c9c9; }
.badge.new     { color: var(--ink-mute); background: #f2ece0; border-color: #ddd2c2; }

/* ---------- 通用工具 ---------- */
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  .topbar { padding: 14px 16px; }
  .topbar-txt .org { font-size: 15px; letter-spacing: 0.1em; }
  .topbar-txt .sub { font-size: 9.5px; letter-spacing: 0.16em; }
  .stage { width: calc(100% - 24px); padding: 26px 0 44px; }
  .card-gold { padding: 26px 20px 24px; border-radius: 10px; }
  .head h1 { font-size: 24px; letter-spacing: 0.12em; }
  .head p { font-size: 12px; }
}
