:root {
  --navy: #0d1b2a;
  --green: #1a3a2a;
  --gold: #d4a843;
  --red: #c0392b;
  --blue: #2e86c1;
  --ink: #e8edf2;
  --muted: #95a5a6;
  --panel: rgba(13, 27, 42, 0.78);
  --line: rgba(212, 168, 67, 0.22);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--navy); color: var(--ink); }
body { margin: 0; min-width: 1024px; background: radial-gradient(circle at 70% 20%, rgba(46,134,193,.22), transparent 30%), linear-gradient(135deg, #07111d, #122517 52%, #08101a); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.desktop-warning { display: none; }
@media (max-width: 1023px) {
  body { min-width: auto; }
  #app { display: none; }
  .desktop-warning { display: grid; min-height: 100vh; place-items: center; padding: 24px; color: #fff; font-size: 20px; text-align: center; }
}

.shell { min-height: 100vh; }
.nav { position: sticky; top: 0; z-index: 10; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(8,18,26,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; color: #fff; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); background: rgba(212,168,67,.08); clip-path: polygon(50% 0, 90% 16%, 80% 85%, 50% 100%, 20% 85%, 10% 16%); }
.nav-links { display: flex; gap: 8px; }
.nav-links a, .ghost-btn, .primary-btn, .danger-btn { border: 1px solid transparent; border-radius: 6px; padding: 10px 14px; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { border-color: var(--line); color: var(--gold); background: rgba(212,168,67,.08); }
.user-area { display: flex; align-items: center; gap: 10px; }
.primary-btn { background: linear-gradient(135deg, #d4a843, #f0ce68); color: #1b1b1b; font-weight: 700; box-shadow: 0 10px 28px rgba(212,168,67,.18); }
.ghost-btn { background: rgba(255,255,255,.04); color: var(--ink); border-color: rgba(255,255,255,.12); }
.danger-btn { background: #c0392b; color: #fff; border: 0; }
.primary-btn:hover, .ghost-btn:hover, .danger-btn:hover { transform: scale(1.03); }
.main { width: min(1440px, calc(100vw - 72px)); margin: 0 auto; padding: 32px 0 64px; }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.hero-copy h1 { margin: 0; font-size: 54px; line-height: 1.08; letter-spacing: 0; color: #fff; }
.hero-copy p { width: 680px; max-width: 100%; margin: 18px 0 28px; color: #c8d6dc; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; }
.hero-visual { position: relative; height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #07111d url('/assets/hero-bg.svg') center/cover no-repeat; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.36)); }
.scan-line { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(212,168,67,.04) 16px 17px); z-index: 2; animation: drift 7s infinite linear; }
@keyframes drift { from { transform: translateY(-20px); } to { transform: translateY(20px); } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 18px; }
.section-head h2 { margin: 0; font-size: 30px; color: #fff; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.card { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.18); overflow: hidden; transition: .3s ease-out; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.card-pad { padding: 20px; }
.stat-number { font-family: "Consolas", monospace; font-size: 36px; color: var(--gold); font-weight: 800; }
.muted { color: var(--muted); }
.progress { height: 12px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #6fbf73); }
.media { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #0a1824; }
.tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: rgba(212,168,67,.12); border: 1px solid var(--line); color: var(--gold); font-size: 13px; }
.locked { filter: grayscale(1) brightness(.55); }
.routes { min-height: calc(100vh - 72px); }

.form-page { min-height: calc(100vh - 72px); display: grid; place-items: center; background: url('/assets/hero-bg.svg') center/cover fixed; }
.form-card { width: 420px; padding: 30px; background: rgba(8,18,26,.92); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 28px 90px rgba(0,0,0,.38); }
.field { display: grid; gap: 8px; margin: 14px 0; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--ink); border-radius: 6px; padding: 11px 12px; outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.error { color: #ff8b7e; min-height: 22px; }
.quiz-panel { border: 1px solid var(--line); background: rgba(4,12,20,.82); border-radius: 8px; padding: 28px; }
.option { display: block; width: 100%; margin: 10px 0; padding: 15px; text-align: left; border: 1px solid rgba(255,255,255,.12); color: var(--ink); background: rgba(255,255,255,.04); border-radius: 6px; }
.option.selected { border-color: var(--gold); background: rgba(212,168,67,.14); }
.timeline { border-left: 2px solid var(--line); padding-left: 24px; display: grid; gap: 18px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.footer { padding: 28px 42px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; background: rgba(8,18,26,.75); }

.admin-body { min-width: 1100px; background: #f5f6fa; color: #2c3e50; }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: #f5f6fa; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-side { background: #2c3e50; color: #fff; padding: 24px 18px; }
.admin-side h1 { font-size: 22px; margin: 0 0 24px; }
.admin-side button { width: 100%; margin: 4px 0; padding: 12px; text-align: left; border: 0; border-radius: 6px; background: transparent; color: #dce7ef; }
.admin-side button.active, .admin-side button:hover { background: #3498db; color: #fff; }
.admin-main { padding: 26px 32px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-card { background: #fff; border-radius: 8px; border: 1px solid #e7ebef; padding: 18px; box-shadow: 0 8px 24px rgba(44,62,80,.06); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid #edf0f3; text-align: left; vertical-align: top; }
th { background: #f8f9fa; color: #51616f; }
tr:hover td { background: #e8f4fd; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-form textarea { grid-column: span 2; }
.admin-form input, .admin-form select, .admin-form textarea { border: 1px solid #d8dee5; border-radius: 6px; padding: 10px; color: #2c3e50; background: #fff; }
