/*
 * 基础样式：故意保持轻量，不使用 UI 框架，方便后续直接替换网页视觉。
 * 主题颜色、字号、间距统一收敛到下方变量。
 */
:root {
  color-scheme: dark;
  --bg: #0a1019;
  --panel: rgba(15, 25, 39, 0.94);
  --field: #101d2d;
  --line: #2a3a50;
  --text: #f3f7fd;
  --muted: #a2b0c3;
  --accent: #4b92ee;
  --danger: #ff8b91;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
input, select, textarea { min-width: 0; width: 100%; padding: 11px 13px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); outline: none; }
input::placeholder, textarea::placeholder { color: #77869b; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(75,146,238,.15); }
input, select { min-height: 42px; }
textarea { resize: vertical; }
label { font-weight: 500; }
a { color: var(--accent); }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary-button { background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); color: #061527; font-weight: 650; padding: 12px 18px; width: 100%; min-height: 44px; }
.primary-button:hover:not(:disabled) { background: #7cb1f5; }
.secondary-button { background: #17253a; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 14px; white-space: nowrap; }
.secondary-button:hover:not(:disabled) { border-color: var(--accent); }
.eyebrow { letter-spacing: .12em; color: #91bae9; font-size: 12px; font-weight: 600; }
.muted, .privacy, .policy-note { color: var(--muted); }
.required { color: var(--danger); }
.optional { color: var(--muted); font-size: 12px; font-weight: normal; }
.feedback { color: #8bc4ff; min-height: 16px; overflow-wrap: anywhere; }
.feedback.is-error { color: var(--danger); }
.landing { min-height: 100vh; max-width: 1240px; margin: 0 auto; padding: 50px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); gap: clamp(36px,6vw,90px); align-items: center; }
.intro h1 { font-size: clamp(38px,5vw,72px); letter-spacing: -.04em; margin: 10px 0 28px; }
.cutoff { color: var(--muted); font-size: 18px; }
.primary-offer { font-size: clamp(38px,5vw,62px); margin: 14px 0 8px; color: #f3f7fd; }
.offer-explainer { font-size: 16px; line-height: 1.8; color: #c6d4e5; }
.benefits-title { margin-top: 34px; color: #c6d4e5; }
.benefits { display: flex; flex-wrap: wrap; gap: 10px; }
.benefits span { border: 1px solid var(--line); background: rgba(75,146,238,.05); padding: 9px 12px; border-radius: 6px; }
.policy-note { font-size: 12px; margin-top: 30px; line-height: 1.7; }
.application-panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.panel-heading { text-align: center; margin-bottom: 28px; }
.panel-heading h2 { font-size: 28px; margin: 8px 0 10px; }
.panel-heading p:last-child { color: var(--muted); margin: 0; }
.form-field { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
#apply-form .primary-button { margin-top: 12px; }
#apply-form .feedback { text-align: center; }
.privacy { font-size: 12px; line-height: 1.7; text-align: center; }
.admin-shell { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }
.admin-login { max-width: 440px; margin: 12vh auto 0; }
.admin-login h1, .admin-heading h1 { margin: 0 0 18px; }
.admin-login form { display: grid; gap: 12px; }
.admin-login .primary-button { margin-top: 8px; }
.admin-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar input { flex: 2 1 260px; }
.toolbar select { flex: 1 1 160px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
td, th { padding: 13px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.link-button { color: #82b7f8; background: transparent; border: 0; padding: 6px 0; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.detail-dialog { width: min(560px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 14px; background: #101b2a; color: var(--text); padding: 28px; }
.detail-dialog::backdrop { background: rgba(0,0,0,.7); }
.detail-dialog form { display: grid; gap: 12px; }
.detail-dialog h2 { font-size: 21px; margin: 0; }
.details { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; padding: 12px 0; margin: 0; border-block: 1px solid var(--line); overflow-wrap: anywhere; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; gap: 32px; max-width: 640px; padding: 36px 20px; }
  .intro h1 { margin-bottom: 12px; }
  .benefits-title { margin-top: 20px; }
  .policy-note { margin-top: 16px; }
}
@media (max-width: 520px) {
  .landing { padding: 20px 14px; }
  .application-panel { padding: 20px 16px; }
  .form-field { display: block; margin-bottom: 13px; }
  .form-field label { display: block; margin-bottom: 7px; }
  .admin-shell { padding: 18px 12px; }
  .card { padding: 16px; }
  .admin-heading { align-items: flex-start; }
}
