:root {
  --ink: #12263a;
  --navy: #173b5d;
  --blue: #2d6cdf;
  --blue-soft: #eaf2ff;
  --red: #d94b4b;
  --red-soft: #fff0ef;
  --green: #21866f;
  --green-soft: #e5f6f0;
  --amber: #bb7a22;
  --amber-soft: #fff4df;
  --line: #dbe4ec;
  --muted: #728396;
  --paper: #edf3f7;
  --white: #fff;
  --shadow: 0 18px 50px rgba(26, 53, 78, .10);
  --shadow-soft: 0 5px 18px rgba(26, 53, 78, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: linear-gradient(180deg, #f8fbfd 0%, var(--paper) 55%, #e7eff4 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }

.login-page {
  align-items: center;
  background: #102b43;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
}
.login-page::before {
  background: linear-gradient(115deg, rgba(63, 135, 210, .25), transparent 48%);
  content: "";
  inset: 0;
  position: absolute;
}
.login-orbit { border: 1px solid rgba(255,255,255,.12); border-radius: 50%; height: 620px; position: absolute; width: 620px; }
.orbit-one { right: -190px; top: -210px; }
.orbit-two { bottom: -360px; left: -240px; height: 720px; width: 720px; }
.login-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  max-width: 520px;
  padding: 38px 42px 30px;
  position: relative;
  width: 100%;
}
.login-kicker, .eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand-lockup, .topbar-left { align-items: center; display: flex; gap: 12px; }
.brand-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 24px;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.brand-lockup strong, .brand-lockup span, .topbar-title strong, .topbar-title span { display: block; }
.brand-lockup strong { font-size: 18px; }
.brand-lockup span, .topbar-title span { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-top: 2px; }
.login-header { border-bottom: 1px solid var(--line); margin-top: 32px; padding-bottom: 23px; }
.login-header h1 { font-size: 28px; letter-spacing: -.04em; }
.login-header p { color: var(--muted); margin-top: 8px; }
.login-form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: block; min-width: 0; }
.field > span { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.field b { color: var(--red); }
.field input, .field select {
  background: #fbfdff;
  border: 1px solid #cfdbe5;
  border-radius: 9px;
  min-height: 43px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}
.field input:focus, .field select:focus, .search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,108,223,.13); }
.btn-login, .btn-primary, .btn-secondary, .btn-cancel {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition: .18s ease;
}
.btn-login, .btn-primary { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.btn-login { justify-content: space-between; margin-top: 4px; min-height: 48px; padding: 0 18px; }
.btn-login:hover, .btn-primary:hover { background: #0d2740; transform: translateY(-1px); }
.btn-secondary { background: #f7fafc; border: 1px solid var(--line); color: var(--navy); }
.btn-secondary:hover, .btn-cancel:hover { background: #fff; border-color: #9fb4c6; }
.btn-cancel { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.login-footnote { color: var(--muted); font-size: 11px; margin-top: 20px; }

.main-page { min-height: 100vh; }
.topbar {
  align-items: center;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand-mark-sm { font-size: 21px; height: 38px; width: 38px; }
.topbar-title strong { font-size: 15px; }
.topbar-right { align-items: center; display: flex; gap: 8px; }
.user-badge { align-items: center; background: #f4f8fb; border: 1px solid var(--line); border-radius: 99px; display: flex; font-size: 12px; font-weight: 700; gap: 8px; padding: 4px 12px 4px 4px; }
.avatar { align-items: center; background: var(--navy); border-radius: 50%; color: #fff; display: inline-flex; height: 28px; justify-content: center; width: 28px; }
.top-action { background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 12px; min-height: 36px; padding: 0 10px; }
.top-action:hover { background: #f4f8fb; border-color: var(--line); color: var(--navy); }
.top-action span { color: var(--blue); font-size: 16px; margin-right: 4px; }
.top-action-logout { color: var(--red); }
.content { margin: 0 auto; max-width: 1480px; padding: 0 clamp(18px, 4vw, 64px) 60px; }
.hero { align-items: flex-end; display: flex; justify-content: space-between; min-height: 270px; padding: 55px 0 42px; }
.hero h1 { color: var(--navy); font-size: clamp(38px, 5vw, 66px); letter-spacing: -.07em; line-height: 1.08; margin-top: 13px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { color: var(--muted); font-size: 15px; margin-top: 17px; max-width: 560px; }
.hero-side { align-items: flex-end; display: flex; flex-direction: column; gap: 22px; }
.hero-status { color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 8px; font-size: 12px; }
.hero-status small { color: #9aa9b5; grid-column: 2; margin-top: 1px; }
.status-dot { background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px var(--green-soft); height: 8px; margin-top: 5px; width: 8px; }
.btn-large { min-height: 47px; padding: 0 20px; }
.stats-row { display: grid; gap: 15px; grid-template-columns: repeat(4, 1fr); }
.stat-card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-soft); min-height: 142px; overflow: hidden; padding: 22px; position: relative; }
.stat-card::before { background: var(--navy); content: ""; height: 3px; left: 22px; position: absolute; top: -1px; width: 36px; }
.stat-expired::before { background: var(--red); }.stat-pending::before { background: var(--blue); }.stat-cancelled::before { background: var(--green); }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.stat-value { display: block; font-family: Georgia, serif; font-size: 38px; line-height: 1; margin-top: 14px; }
.stat-total .stat-value { color: var(--navy); }.stat-expired .stat-value { color: var(--red); }.stat-pending .stat-value { color: var(--blue); }.stat-cancelled .stat-value { color: var(--green); }
.stat-card small { color: #9aa9b5; display: block; font-size: 11px; margin-top: 11px; }
.stat-index { color: #c4d1db; font-size: 11px; position: absolute; right: 20px; top: 20px; }
.workspace { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); margin-top: 24px; overflow: hidden; }
.workspace-head { align-items: flex-end; display: flex; justify-content: space-between; padding: 25px 26px 17px; }
.workspace-head h2 { font-size: 25px; letter-spacing: -.04em; margin-top: 7px; }
.workspace-meta { align-items: center; display: flex; gap: 13px; }.workspace-meta span { color: var(--muted); font-size: 12px; }
.toolbar { align-items: center; background: #f8fbfd; border-bottom: 1px solid var(--line); display: flex; gap: 10px; padding: 0 26px 17px; }
.search-wrap { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; display: flex; flex: 1; max-width: 540px; min-height: 42px; padding: 0 11px; }
.search-icon { color: var(--blue); font-size: 22px; transform: rotate(-15deg); }.search-input { background: transparent; border: 0; flex: 1; min-width: 50px; outline: none; padding: 0 10px; }
.filter-select { background: #fff; border: 1px solid var(--line); border-radius: 9px; min-height: 42px; outline: none; padding: 0 30px 0 11px; }
.table-wrap { overflow-x: auto; }.table-container { min-width: 980px; }
.data-table { border-collapse: collapse; width: 100%; }.data-table th { background: #eef4f8; border-bottom: 1px solid var(--line); color: #5f7385; font-size: 11px; letter-spacing: .06em; padding: 12px 14px; text-align: left; white-space: nowrap; }.data-table td { border-bottom: 1px solid #edf1f4; color: #2d4357; font-size: 12px; padding: 15px 14px; white-space: nowrap; }.data-table tbody tr:hover { background: #f9fbfd; }.data-table strong { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.tag { border-radius: 99px; display: inline-flex; font-size: 11px; font-weight: 800; padding: 5px 10px; }.tag-danger { background: var(--red-soft); color: #bb3737; }.tag-warning { background: var(--amber-soft); color: #986117; }.tag-info { background: var(--blue-soft); color: #2b61b5; }.tag-success { background: var(--green-soft); color: var(--green); }.tag-default { background: #edf1f4; color: #71808c; }
.action-btn { background: #f5f8fb; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); font-size: 11px; font-weight: 800; margin-right: 6px; padding: 6px 9px; }.action-btn:hover { background: #fff; border-color: #8ea7ba; }.action-btn.del { color: var(--red); }
.empty-tip { color: var(--muted); padding: 70px 20px; text-align: center; }.empty-icon { color: #a8bac7; font-size: 42px; }.empty-tip strong { color: var(--navy); display: block; margin-top: 10px; }.empty-tip p { font-size: 12px; margin-top: 4px; }

.modal-overlay { align-items: center; background: rgba(10, 28, 44, .62); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 100; backdrop-filter: blur(5px); }
.modal-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 100px rgba(0,0,0,.28); max-height: calc(100vh - 40px); max-width: 720px; overflow-y: auto; width: 100%; }.modal-sm { max-width: 480px; }
.modal-header { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 24px 28px 18px; }.modal-header h2 { font-size: 22px; margin-top: 6px; }.modal-close { background: #f1f5f8; border: 0; border-radius: 50%; color: var(--muted); font-size: 22px; height: 33px; width: 33px; }.modal-close:hover { color: var(--navy); }
.modal-form { padding: 23px 28px 27px; }.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 17px; }.date-selects { align-items: center; display: flex; gap: 8px; }.date-select { flex: 1; }.preview-row { background: #f5f9fc; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 42px; margin-top: 5px; padding: 13px 15px; }.preview-row span, .preview-row strong { display: block; }.preview-row span { color: var(--muted); font-size: 11px; }.preview-row strong { color: var(--navy); margin-top: 3px; }.modal-footer { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; margin: 24px -28px -27px; padding: 17px 28px; }.checkbox-row { align-items: center; display: flex; font-weight: 800; gap: 9px; }.checkbox-row input { accent-color: var(--blue); height: 16px; width: 16px; }.form-hint { color: var(--muted); font-size: 12px; margin: 9px 0 17px; }
.toast { background: var(--navy); border-radius: 9px; bottom: 24px; box-shadow: 0 12px 35px rgba(0,0,0,.25); color: #fff; font-size: 13px; left: 50%; padding: 12px 18px; position: fixed; transform: translateX(-50%); z-index: 200; }.toast.error { background: #9d3333; }.toast.info { background: #275d97; }

@media (max-width: 900px) { .hero { align-items: flex-start; flex-direction: column; gap: 26px; }.hero-side { align-items: flex-start; flex-direction: row; }.stats-row { grid-template-columns: repeat(2, 1fr); }.topbar-right { gap: 2px; }.top-action { padding: 0 6px; }.workspace-meta { flex-direction: column; align-items: flex-end; } }
@media (max-width: 620px) { .topbar { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 18px; }.topbar-right { width: 100%; }.user-badge { margin-right: auto; }.content { padding-left: 14px; padding-right: 14px; }.hero { padding: 37px 0 28px; }.hero h1 { font-size: 42px; }.hero-side { align-items: stretch; flex-direction: column; width: 100%; }.btn-large { width: 100%; }.stats-row { gap: 10px; }.stat-card { min-height: 122px; padding: 16px; }.stat-value { font-size: 30px; }.workspace-head, .toolbar { align-items: stretch; flex-direction: column; padding-left: 17px; padding-right: 17px; }.workspace-meta { align-items: stretch; flex-direction: row; justify-content: space-between; }.search-wrap { max-width: none; }.form-row { grid-template-columns: 1fr; }.modal-form, .modal-header { padding-left: 20px; padding-right: 20px; }.modal-footer { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; flex-wrap: wrap; }.login-card { padding: 30px 24px 24px; } }
