/* 新疆大学法学院2026年下半年学生党员发展系统 —— 政务红样式 */
:root {
  --red: #a5121c;
  --red-2: #c0202b;
  --red-dark: #7c0c14;
  --red-deep: #5e0910;
  --gold: #d9b45b;
  --gold-soft: #f0dfb0;
  --bg: #f5f2ec;
  --panel: #ffffff;
  --ink: #2c2222;
  --muted: #7d7070;
  --line: #e8ded6;
  --ok: #1f7a4d;
  --warn: #b7791f;
  --danger: #b3261e;
  --info: #2b5f9e;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(94, 9, 16, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Songti SC", "SimSun", "Noto Serif SC", serif; margin: 0; font-weight: 700; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
.hidden { display: none !important; }

/* ============ 登录页 ============ */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 180, 91, .18), transparent 45%),
    linear-gradient(135deg, #6d0a12 0%, #96101a 45%, #b31c27 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  position: relative; overflow: hidden;
}
.login-body::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.login-card {
  width: 980px; max-width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(40, 0, 4, .45);
  position: relative; z-index: 2;
}
.login-left {
  background:
    radial-gradient(circle at 80% 10%, rgba(217,180,91,.22), transparent 40%),
    linear-gradient(160deg, #8d0e17, #610910 75%);
  color: #fff; padding: 52px 44px; display: flex; flex-direction: column;
}
.login-emblem {
  width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 26px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 26px;
  box-shadow: 0 0 0 6px rgba(217,180,91,.12) inset;
}
.login-left h1 { font-size: 30px; line-height: 1.45; letter-spacing: 1px; }
.login-left .sub { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 14px; letter-spacing: 3px; }
.login-rule { width: 56px; height: 3px; background: var(--gold); margin: 26px 0; border-radius: 2px; }
.login-left ul { list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,.82); font-size: 13px; }
.login-left ul li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.login-left ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.login-left .foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.5); padding-top: 28px; }
.login-right { padding: 52px 46px; display: flex; flex-direction: column; justify-content: center; }
.login-right h2 { font-size: 22px; color: var(--red-dark); margin-bottom: 6px; }
.login-right .tip { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #5a4a4a; margin-bottom: 6px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd2c8; border-radius: 8px;
  background: #fffdfb; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(165,18,28,.08); }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid transparent;
  background: var(--red); color: #fff; cursor: pointer; font-weight: 600;
  transition: background .15s, transform .05s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; padding: 12px; font-size: 15px; letter-spacing: 2px; }
.btn.ghost { background: #fff; color: var(--red); border-color: #e3c3c5; }
.btn.ghost:hover { background: #fdf5f5; }
.btn.gray { background: #f3efeb; color: #554a44; border-color: #e3dad2; }
.btn.gray:hover { background: #eae4dd; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn.danger { background: #fff; color: var(--danger); border-color: #ecc9c6; }
.btn.danger:hover { background: #fdf1f0; }
.btn.gold { background: linear-gradient(135deg, #c9a24a, #e2c87e); color: #4a3308; border-color: #c9a24a; }
.btn.gold:hover { filter: brightness(1.04); }
.login-error { color: var(--danger); font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.login-note { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; border-top: 1px dashed var(--line); padding-top: 14px; }
.login-countdown { color: var(--muted); font-size: 13px; }

/* ============ 主框架 ============ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 246px; flex: 0 0 246px;
  background: linear-gradient(180deg, #7f0d15 0%, #670a11 60%, #56080e 100%);
  color: #fff; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30;
  box-shadow: 4px 0 18px rgba(60,0,6,.18);
}
.brand {
  padding: 22px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand .b-title { font-family: "Songti SC", serif; font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: .5px; }
.brand .b-sub { margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 2px; }
.brand .b-line { width: 34px; height: 2px; background: var(--gold); margin-top: 12px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px 24px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }
.nav-group { font-size: 11px; color: rgba(255,255,255,.42); letter-spacing: 2px; padding: 16px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; color: rgba(255,255,255,.82); cursor: pointer;
  font-size: 14px; margin-bottom: 3px; transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(217,180,91,.16); border-color: rgba(217,180,91,.35); color: #fff; }
.nav-item.active .nav-dot { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); flex: 0 0 6px; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; color: rgba(255,255,255,.45); }

.main { flex: 1; margin-left: 246px; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 26px; gap: 16px; position: sticky; top: 0; z-index: 20;
}
.topbar .page-title { font-family: "Songti SC", serif; font-size: 19px; font-weight: 700; color: var(--red-dark); }
.topbar .page-title small { font-family: -apple-system, sans-serif; font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px; background: #fbf7f2; border: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.user-meta { line-height: 1.25; }
.user-meta .u-name { font-size: 13px; font-weight: 600; }
.user-meta .u-role { font-size: 11px; color: var(--muted); }
.content { padding: 24px 26px 60px; max-width: 1560px; width: 100%; }

/* ============ 通用组件 ============ */
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .ph-main { flex: 1; min-width: 240px; }
.page-head h2 { font-size: 21px; color: var(--red-dark); }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; color: var(--red-dark); }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.hint { font-size: 12px; color: var(--muted); }
.notice-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.notice-line:last-child { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge.red { background: #fdeeee; color: var(--red); border-color: #f3cfd1; }
.badge.green { background: #eef7f1; color: var(--ok); border-color: #cfe8da; }
.badge.gold { background: #fbf4e2; color: #8a6a17; border-color: #eddfb6; }
.badge.gray { background: #f4f1ee; color: #6c625b; border-color: #e3dad2; }
.badge.blue { background: #eef3fa; color: var(--info); border-color: #d3e0f0; }
.badge.orange { background: #fdf3e8; color: #a3651a; border-color: #f0dcc0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, rgba(165,18,28,.08), transparent 70%); }
.stat .s-label { font-size: 12px; color: var(--muted); }
.stat .s-value { font-family: "Songti SC", serif; font-size: 30px; font-weight: 700; color: var(--red-dark); line-height: 1.2; margin-top: 4px; }
.stat .s-extra { font-size: 11px; color: var(--muted); margin-top: 2px; }

.table-wrap { overflow: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 10px 12px; border-bottom: 1px solid #f0eae4; text-align: left; vertical-align: top; }
table.grid th { background: #fbf7f3; color: #6b5b52; font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.grid tbody tr:hover { background: #fdfaf7; }
table.grid td.nowrap { white-space: nowrap; }
table.grid td.center, table.grid th.center { text-align: center; }
.empty { padding: 44px 16px; text-align: center; color: #a2968d; font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pager .p-info { margin-right: auto; color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 9px 16px; cursor: pointer; border-bottom: 2px solid transparent; color: #6b5b52; font-size: 14px; }
.tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 12px; color: #6b5b52; margin-bottom: 5px; font-weight: 600; }
.form-grid .input { padding: 8px 10px; }
.form-grid textarea.input { min-height: 76px; resize: vertical; }
.req::after { content: " *"; color: var(--danger); }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #d8cfc7; border-radius: 999px; transition: .2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(40, 8, 10, .45); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto; animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 12px; width: 720px; max-width: 100%;
  box-shadow: 0 24px 70px rgba(40,0,4,.35); animation: pop .18s ease;
  margin-bottom: 40px;
}
@keyframes pop { from { transform: translateY(-10px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal.wide { width: 1000px; }
.modal.slim { width: 460px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 17px; color: var(--red-dark); flex: 1; }
.modal-x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #a3978e; cursor: pointer; padding: 0 4px; }
.modal-body { padding: 20px; max-height: calc(100vh - 240px); overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.warn-box { border: 1px solid #f0d2b4; background: #fff9f1; color: #8a4b12; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.danger-box { border: 1px solid #f0c9c5; background: #fff5f4; color: #8f231b; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.info-box { border: 1px solid #d8e3f2; background: #f5f9ff; color: #284a78; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.alert-list { margin: 0; padding-left: 18px; }
.alert-list li { margin: 4px 0; }

/* 审查项 */
.review-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.review-item:last-child { border-bottom: 0; }
.ri-state { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.ri-state.ok { background: var(--ok); }
.ri-state.bad { background: var(--danger); }
.ri-main { flex: 1; }
.ri-main .ri-title { font-weight: 600; }
.ri-main .ri-sub { font-size: 12px; color: var(--muted); }
.ri-actions { display: flex; gap: 6px; }

.num-link { color: var(--red); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.num-link.muted { color: #9a8f87; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #faf7f4; cursor: zoom-in; }
.thumb img { width: 100%; height: 96px; object-fit: cover; display: block; }
.thumb .t-cap { font-size: 11px; color: var(--muted); padding: 4px 6px; }
.detail-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.detail-row .k { color: var(--muted); }
.detail-row .v { color: var(--ink); word-break: break-all; }

/* 水印 */
.wm-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 900;
  background-repeat: repeat; opacity: .085; mix-blend-mode: multiply;
}
.wm-layer.off { display: none; }

/* 响应式 */
@media (max-width: 900px) {
  .login-card { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .sidebar { width: 62px; flex-basis: 62px; }
  .main { margin-left: 62px; }
  .brand .b-title, .brand .b-sub, .brand .b-line, .nav-group, .nav-item span.txt, .sidebar-foot { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .user-meta { display: none; }
}
