/* 晴空 — clear-sky theme. Hand-written, no framework. */
:root {
  --bg: #eaf3ff;
  --ink: #0d2240;
  --ink-2: #4a5f80;
  --ink-3: #8597b3;
  --line: rgba(30, 90, 200, .12);
  --glass: rgba(255, 255, 255, .72);
  --blue: #2f7bff;
  --blue-2: #1d5fe0;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --sun: #f59e0b;
  --rose: #f43f5e;
  --ok: #10b981;
  --radius: 18px;
  --shadow: 0 18px 50px -28px rgba(30, 80, 170, .35);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(47, 123, 255, .2); }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; overflow: hidden; z-index: -1; background: linear-gradient(180deg, #cfe5ff 0%, #e6f2ff 42%, #f7fbff 100%); }
.sky i { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 28s ease-in-out infinite alternate; }
.sky i:nth-child(1) { width: 52vmax; height: 30vmax; left: -12vmax; top: -12vmax; background: #7cc0ff; opacity: .5; }
.sky i:nth-child(2) { width: 40vmax; height: 26vmax; right: -14vmax; top: 16vh; background: #a5f3fc; opacity: .55; animation-duration: 34s; }
.sky i:nth-child(3) { width: 36vmax; height: 22vmax; left: 20vw; bottom: -16vmax; background: #c7d2fe; opacity: .6; animation-duration: 40s; }
.sky .clouds { position: absolute; inset: -10% -30%; opacity: .9;
  background-image:
    radial-gradient(ellipse 9% 3.2% at 18% 18%, #fff 40%, transparent 72%),
    radial-gradient(ellipse 6% 2.4% at 23% 16%, #fff 40%, transparent 72%),
    radial-gradient(ellipse 11% 3.6% at 64% 30%, rgba(255, 255, 255, .95) 40%, transparent 72%),
    radial-gradient(ellipse 7% 2.6% at 70% 27%, #fff 40%, transparent 72%),
    radial-gradient(ellipse 8% 2.8% at 40% 62%, rgba(255, 255, 255, .8) 40%, transparent 72%),
    radial-gradient(ellipse 10% 3% at 86% 74%, rgba(255, 255, 255, .85) 40%, transparent 72%);
  filter: blur(6px);
  animation: float 90s linear infinite alternate; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@keyframes float { to { transform: translateX(14%); } }

/* ---------- shell ---------- */
.shell { max-width: 1080px; margin: 0 auto; padding: 20px 20px 110px; }
.top { display: flex; align-items: center; gap: 18px; padding: 6px 0 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: 18px; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand small { font: 500 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .18em; margin-top: 3px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.nav a { padding: 7px 15px; border-radius: 999px; color: var(--ink-2); font-size: 14px; transition: color .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 4px 14px -6px rgba(47, 123, 255, .5); }
.nav a.tower { color: #d97706; }
@media (max-width: 720px) {
  .shell { padding: 14px 14px 110px; }
  .nav { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); margin: 0; justify-content: space-around; z-index: 20; background: rgba(255, 255, 255, .9); }
  .nav a { flex: 1; text-align: center; padding: 9px 2px; font-size: 13px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile b { font-size: 24px; }
  .bars { gap: 3px; }
  .bars span { font-size: 9px; }
}
.bars div { min-width: 0; }

.page { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 860px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.grid > * { min-width: 0; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 15px; color: var(--ink); font-weight: 650; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
h2::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 10px rgba(47, 123, 255, .6); }
.kicker { font: 600 11px/1 var(--mono); letter-spacing: .22em; color: var(--blue); text-transform: uppercase; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }

.card { position: relative; padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
.card.tight { padding: 16px; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: #f2f7ff; border-color: rgba(47, 123, 255, .3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.go { border: 0; color: #fff; background: linear-gradient(120deg, var(--blue), var(--sky) 55%, var(--blue)); box-shadow: 0 10px 26px -12px rgba(47, 123, 255, .8); }
.btn.go:hover { box-shadow: 0 12px 30px -10px rgba(47, 123, 255, .9); }
.btn.warn { color: var(--rose); border-color: rgba(244, 63, 94, .3); }
.btn.warn:hover { background: #fff3f5; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

label.f { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.in, select.in, textarea.in { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(30, 90, 200, .18); background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.in { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.in:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 255, .14); }
.in::placeholder { color: #a9b6cc; }
.form { display: grid; gap: 14px; }
.settings { max-width: 640px; display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: rgba(13, 34, 64, .14); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(13, 34, 64, .25); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- arrival hall (sign in) ---------- */
.hall { min-height: calc(100vh - 40px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; max-width: 1080px; margin: 0 auto; padding: 20px; }
@media (max-width: 860px) { .hall { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; } }
.hall .hero .kicker { margin-bottom: 16px; }
.hall .hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.01em; }
.hall .hero h1 .grad { background: linear-gradient(100deg, var(--blue-2), var(--sky) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hall .hero .row { margin-top: 22px; }
.hall .hero .facts { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 28px; }
.hall .hero .facts div { font-size: 13px; color: var(--ink-2); }
.hall .hero .facts b { display: block; font: 700 24px/1.2 var(--mono); color: var(--blue-2); }
.gate { padding: 26px; }
.gate .tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: rgba(30, 90, 200, .07); }
.gate .tabs button { flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; font-weight: 600; transition: background .2s, color .2s; }
.gate .tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 4px 12px -6px rgba(47, 123, 255, .5); }
.gate .fine { font-size: 12px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* ---------- split-flap ---------- */
.flap { display: inline-flex; gap: 3px; }
.flap span { display: inline-grid; place-items: center; min-width: 1.05em; padding: .12em .14em; border-radius: 4px; background: linear-gradient(#1f4fae 0 49%, #1a449a 51%); color: #fff; font-family: var(--mono); font-weight: 700; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25), 0 2px 6px -2px rgba(29, 95, 224, .5); position: relative; }
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 20, 60, .35); }
.flap span.flip { animation: flip .5s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes flip { 0% { transform: rotateX(90deg); filter: brightness(1.6); } 60% { transform: rotateX(-12deg); } 100% { transform: none; } }

/* ---------- boarding pass ---------- */
.pass { position: relative; display: grid; grid-template-columns: 1fr 210px; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 30px 70px -30px rgba(30, 80, 170, .45); overflow: hidden; isolation: isolate; }
.pass::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 90% at 100% 0%, rgba(56, 189, 248, .16), transparent 60%),
  radial-gradient(50% 80% at 0% 100%, rgba(47, 123, 255, .12), transparent 60%),
  repeating-linear-gradient(135deg, rgba(30, 90, 200, .025) 0 2px, transparent 2px 7px); }
.pass .main { padding: 22px 24px 22px; }
.pass .stub { position: relative; padding: 22px 20px; border-left: 2px dashed rgba(30, 90, 200, .18); display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, rgba(47, 123, 255, .05), rgba(56, 189, 248, .08)); }
.pass .stub::before, .pass .stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.pass .stub::before { top: -12px; }
.pass .stub::after { bottom: -12px; }
.pass .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.pass .head .air { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .02em; }
.pass .head .air svg { width: 22px; height: 22px; }
.pass .head .tag { font: 700 10px/1 var(--mono); letter-spacing: .24em; color: var(--ink-3); }
.pass .route { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pass .route .city b { display: block; font: 800 30px/1 var(--mono); letter-spacing: .02em; }
.pass .route .city span { font-size: 12px; color: var(--ink-3); }
.pass .route .path { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(30, 90, 200, .3) 0 6px, transparent 6px 12px); position: relative; }
.pass .route .path svg { position: absolute; left: var(--p, 50%); top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); color: var(--blue); transition: left 1.2s cubic-bezier(.2, .8, .2, 1); }
.pass .fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.pass .fields div { min-width: 0; }
.pass .fields small { display: block; font: 700 10px/1.2 var(--mono); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.pass .fields b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass .fuel { margin-top: 18px; }
.pass .fuel .bar { height: 10px; border-radius: 99px; background: rgba(30, 90, 200, .09); overflow: hidden; }
.pass .fuel .bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.pass .fuel .bar i.low { background: linear-gradient(90deg, #fbbf24, var(--rose)); }
.pass .fuel .legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.pass .big small { display: block; font: 700 10px/1.2 var(--mono); letter-spacing: .16em; color: var(--ink-3); }
.pass .big b { display: block; font: 800 34px/1.05 var(--mono); letter-spacing: -.02em; color: var(--blue-2); }
.pass .big b em { font-style: normal; font-size: 15px; margin-left: 3px; color: var(--ink-3); }
.pass .barcode { height: 54px; margin-top: auto; display: flex; align-items: stretch; gap: 1.5px; }
.pass .barcode i { background: var(--ink); border-radius: 1px; }
.pass .seq { font: 600 10px/1 var(--mono); letter-spacing: .2em; color: var(--ink-3); text-align: center; }
.stamp { position: absolute; right: 236px; bottom: 58px; padding: 6px 12px; border: 2.5px solid currentColor; border-radius: 8px; font-weight: 900; letter-spacing: .18em; font-size: 14px; transform: rotate(-8deg); opacity: .8; mix-blend-mode: multiply; animation: stampIn .6s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.stamp.ok { color: #0c9f75; } .stamp.bad { color: #e11d48; } .stamp.idle { color: #7b8aa3; }
@keyframes stampIn { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } }
@media (max-width: 640px) {
  .pass { grid-template-columns: 1fr; }
  .pass .stub { border-left: 0; border-top: 2px dashed rgba(30, 90, 200, .18); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .pass .stub::before, .pass .stub::after { top: -13px; left: auto; bottom: auto; }
  .pass .stub::before { left: -12px; } .pass .stub::after { right: -12px; }
  .pass .barcode { width: 100%; height: 42px; }
  .pass .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp { right: 18px; bottom: 120px; }
}

/* ---------- import ---------- */
.imports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.imp, .imp > span:last-child { min-width: 0; }
.imp b, .imp span span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .imports { grid-template-columns: 1fr; } }
.imp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; transition: transform .15s, box-shadow .2s, border-color .2s; }
.imp:hover { border-color: rgba(47, 123, 255, .3); box-shadow: 0 8px 22px -14px rgba(47, 123, 255, .6); transform: translateY(-1px); }
.imp:active { transform: scale(.98); }
.imp .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.imp b { display: block; font-size: 14px; }
.imp span { display: block; font-size: 12px; color: var(--ink-3); }
.imp.hero { grid-column: 1 / -1; padding: 16px; border: 0; color: #fff; background: linear-gradient(120deg, var(--blue), var(--sky)); box-shadow: 0 14px 30px -16px rgba(47, 123, 255, .9); }
.imp.hero span { color: rgba(255, 255, 255, .85); }
.imp.hero .ic { background: #fff; color: var(--blue); }
.imp.hero b { font-size: 15px; }

/* ---------- usage bars ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; max-width: 26px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--sky), var(--blue)); height: 0; transition: height .9s cubic-bezier(.2, .8, .2, 1); position: relative; }
.bars i.zero { background: rgba(30, 90, 200, .1); }
.bars i:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 11px/1.2 var(--mono); white-space: nowrap; }
.bars span { font: 500 10px/1 var(--mono); color: var(--ink-3); }

/* ---------- departure board ---------- */
.board { border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(155deg, #2f7bff, #1d5fe0 60%, #1a4fc4); box-shadow: 0 30px 70px -34px rgba(29, 95, 224, .8), inset 0 1px 0 rgba(255, 255, 255, .25); overflow-x: auto; }
.board .bhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.board .bhead h3 { font: 800 15px/1 var(--mono); letter-spacing: .3em; }
.board .clock { font: 700 15px/1 var(--mono); letter-spacing: .1em; opacity: .9; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 560px; }
.board th { font: 700 10px/1 var(--mono); letter-spacing: .2em; color: rgba(255, 255, 255, .65); text-align: left; padding: 0 10px 4px; }
.board td { padding: 10px; background: rgba(255, 255, 255, .1); font-size: 14px; }
.board td:first-child { border-radius: 10px 0 0 10px; } .board td:last-child { border-radius: 0 10px 10px 0; }
.board .dest { font-weight: 700; }
.board .flap span { background: linear-gradient(#0f3a8f 0 49%, #0c3280 51%); }
.board .pill { background: rgba(255, 255, 255, .18); color: #fff; }
.board .pill.gold { background: #fff; color: var(--blue-2); }
.board .empty, .board .empty b { color: #fff; }
.legend-row { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.legend-row span { display: inline-flex; align-items: center; gap: 8px; }
.st { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--mono); letter-spacing: .14em; padding: 6px 10px; border-radius: 8px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.st.up { color: #059669; background: rgba(16, 185, 129, .12); }
.st.up::before { animation: blink 2s ease-in-out infinite; }
.st.late { color: #d97706; background: rgba(245, 158, 11, .12); }
.st.down { color: var(--rose); background: rgba(244, 63, 94, .1); }
.st.new { color: var(--ink-3); background: rgba(30, 90, 200, .07); }
.board .st { background: #fff; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- tickets (plans) ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ticket { position: relative; display: flex; flex-direction: column; border-radius: 20px; padding: 20px; background: linear-gradient(165deg, #fff 40%, #eef6ff); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.ticket:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -26px rgba(47, 123, 255, .6); }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; top: 112px; border-top: 2px dashed rgba(30, 90, 200, .14); }
.ticket .cls { font: 700 10px/1 var(--mono); letter-spacing: .24em; color: var(--blue); }
.ticket h3 { font-size: 20px; margin: 8px 0 4px; }
.ticket .price { font: 800 24px/1.2 var(--mono); color: var(--blue-2); height: 40px; }
.ticket .specs { display: flex; gap: 22px; margin: 26px 0 12px; }
.ticket .specs b { display: block; font: 800 22px/1.1 var(--mono); }
.ticket .specs span { font-size: 12px; color: var(--ink-3); }
.ticket .note { font-size: 13px; color: var(--ink-2); flex: 1; margin-bottom: 16px; white-space: pre-line; }
.checkin { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.checkin .in { font: 700 18px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; height: 50px; text-align: center; }
.checkin .btn { height: 50px; }
@media (max-width: 520px) { .checkin { grid-template-columns: 1fr; } }

/* ---------- control tower (admin) ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a { padding: 7px 14px; border-radius: 10px; color: var(--ink-2); border: 1px solid transparent; font-size: 14px; }
.subnav a.on { color: var(--blue); border-color: rgba(47, 123, 255, .25); background: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.tile small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.tile b { font: 800 30px/1 var(--mono); color: var(--blue-2); }
.tile b em { font-style: normal; font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 0 10px 10px; white-space: nowrap; }
.tbl td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: rgba(47, 123, 255, .04); }
.scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(30, 90, 200, .08); color: var(--ink-2); white-space: nowrap; }
.pill.ok { color: #059669; background: rgba(16, 185, 129, .12); }
.pill.bad { color: var(--rose); background: rgba(244, 63, 94, .1); }
.pill.gold { color: var(--blue-2); background: rgba(47, 123, 255, .12); }
.mini { height: 6px; width: 110px; border-radius: 99px; background: rgba(30, 90, 200, .1); overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--blue); width: var(--w); }
.nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.node h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.node dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; font-size: 13px; }
.node dt { color: var(--ink-3); } .node dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.cmd { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #0f2244; font: 12px/1.45 var(--mono); color: #bfe3ff; word-break: break-all; }
.cmd code { flex: 1; }
.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(47, 123, 255, .2); color: var(--ink); font-size: 14px; margin-bottom: 18px; white-space: pre-line; box-shadow: var(--shadow); }
.notice::before { content: "公告"; flex: none; font: 800 11px/1.9 var(--mono); letter-spacing: .14em; color: var(--blue); }
.promo { display: flex; gap: 16px; align-items: center; }
.promo .logo { width: 52px; height: 52px; border-radius: 15px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #2f7bff, #7c5cff); box-shadow: 0 10px 24px -10px #4f6bff; font: 900 22px/1 var(--sans); color: #fff; }
.promo p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- modal & toast ---------- */
.veil { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(13, 34, 64, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s both; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 40px 100px -30px rgba(13, 34, 64, .5); animation: pop .28s cubic-bezier(.2, 1.2, .4, 1) both; }
.modal h3 { font-size: 18px; margin-bottom: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
#toast { position: fixed; left: 50%; top: 18px; z-index: 60; transform: translate(-50%, calc(-100% - 40px)); padding: 11px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px -15px rgba(13, 34, 64, .6); transition: transform .35s cubic-bezier(.2, 1.2, .4, 1); max-width: calc(100vw - 32px); }
#toast.show { transform: translate(-50%, 0); }
#toast.err { background: var(--rose); }

.celebrate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; }
.celebrate div { padding: 18px 30px; border: 4px solid var(--blue); color: var(--blue); border-radius: 16px; font: 900 34px/1 var(--sans); letter-spacing: .2em; transform: rotate(-8deg); background: rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -30px rgba(47, 123, 255, .8); animation: bigStamp 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes bigStamp { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 25% { transform: rotate(-8deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.loading { display: grid; place-items: center; min-height: 50vh; }
.loading .flap span { font-size: 22px; }

/* ---------- motion layer ---------- */
.card, .ticket, .imp { --mx: -999px; --my: -999px; }
.card::after, .ticket::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56, 189, 248, .12), transparent 45%); }
.card:hover::after, .ticket:hover::before { opacity: 1; }
.card > *, .ticket > * { position: relative; z-index: 1; }
.pass { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; transform-style: preserve-3d; will-change: transform; --hx: 50%; --hy: 50%; animation: passIn .9s cubic-bezier(.2, .9, .2, 1) both; }
.pass:hover { box-shadow: 0 40px 80px -30px rgba(30, 80, 170, .55); }
.pass .holo { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s, background-position .3s;
  background:
    radial-gradient(circle at var(--hx) var(--hy), rgba(255, 255, 255, .8), transparent 35%),
    linear-gradient(115deg, transparent 22%, rgba(56, 189, 248, .14) 38%, rgba(167, 139, 250, .12) 50%, rgba(34, 211, 238, .14) 62%, transparent 78%);
  background-size: 100% 100%, 250% 250%; background-position: center, var(--hx) var(--hy); }
.pass:hover .holo { opacity: .7; }
@keyframes passIn { from { opacity: 0; transform: perspective(1100px) rotateX(18deg) translateY(30px) scale(.96); } }
.pass .route .path svg { filter: drop-shadow(0 4px 6px rgba(47, 123, 255, .4)); }
.pass .route .path::after { content: ""; position: absolute; left: 0; top: -1px; height: 4px; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, rgba(34, 211, 238, 0), var(--cyan) 50%, var(--blue)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.tickets .ticket { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.tickets .ticket:nth-child(2) { animation-delay: .06s; } .tickets .ticket:nth-child(3) { animation-delay: .12s; } .tickets .ticket:nth-child(4) { animation-delay: .18s; } .tickets .ticket:nth-child(n+5) { animation-delay: .24s; }
.board tbody tr { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.board tbody tr:nth-child(2) { animation-delay: .05s; } .board tbody tr:nth-child(3) { animation-delay: .1s; } .board tbody tr:nth-child(4) { animation-delay: .15s; } .board tbody tr:nth-child(n+5) { animation-delay: .2s; }
.tiles .tile { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.tiles .tile:nth-child(2) { animation-delay: .04s; } .tiles .tile:nth-child(3) { animation-delay: .08s; } .tiles .tile:nth-child(4) { animation-delay: .12s; } .tiles .tile:nth-child(5) { animation-delay: .16s; } .tiles .tile:nth-child(6) { animation-delay: .2s; }
.btn.go { background-size: 200% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.imp.hero .ic { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0), 0 0 18px rgba(255, 255, 255, .8); } }
.hall .hero h1 { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hall .gate { animation: rise .8s .12s cubic-bezier(.2, .8, .2, 1) both; }
.contrail { position: fixed; left: -10vw; top: 22vh; width: 40px; height: 40px; color: var(--blue); animation: cross 18s linear infinite; pointer-events: none; z-index: -1; }
.contrail::after { content: ""; position: absolute; right: 80%; top: 50%; width: 36vw; height: 3px; border-radius: 3px; transform: translateY(-50%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95)); filter: blur(.5px); }
@keyframes cross { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(125vw, -12vh) rotate(-8deg); } }

/* ---------- one-click deploy ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 18px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.steps li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: rgba(30, 90, 200, .12); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li i { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--mono); font-style: normal; background: #fff; border: 2px solid rgba(30, 90, 200, .18); color: var(--ink-3); transition: background .3s, border-color .3s, color .3s; }
.steps li.on { color: var(--blue); font-weight: 600; }
.steps li.on i { border-color: var(--blue); color: var(--blue); animation: stepPulse 1.4s ease-out infinite; }
@keyframes stepPulse { from { box-shadow: 0 0 0 0 rgba(47, 123, 255, .45); } to { box-shadow: 0 0 0 10px rgba(47, 123, 255, 0); } }
.steps li.done { color: var(--ink); }
.steps li.done i { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps li.done::before, .steps li.on::before { background: var(--blue); }
.steps li.fail { color: var(--rose); }
.steps li.fail i { border-color: var(--rose); color: var(--rose); }
.term { height: 240px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: #0f2244; color: #bfe3ff; font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }
.term .head { color: #7dd3fc; }
.term .good { color: #6ee7b7; font-weight: 700; }
.term .bad { color: #fda4af; font-weight: 700; }

/* ---------- desktop richness ---------- */
@media (min-width: 1280px) { .shell { max-width: 1240px; } }
.sky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30, 90, 200, .16) 1px, transparent 1.6px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%); }
.sky .clouds { translate: calc(var(--px, 0) * -36px) calc(var(--py, 0) * -18px); transition: translate .8s cubic-bezier(.2, .8, .2, 1); }
.sky i { translate: calc(var(--px, 0) * 50px) calc(var(--py, 0) * 30px); transition: translate 1.2s cubic-bezier(.2, .8, .2, 1); }

.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.hello h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 8px; letter-spacing: .01em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chip b { color: var(--ink); }
.led { width: 8px; height: 8px; border-radius: 50%; background: #b8c4d8; }
.led.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: led 2s ease-out infinite; }
@keyframes led { 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }

.home-grid { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "imp map" "usage promo"; }
.home-grid .imports-card { grid-area: imp; } .home-grid .map-card { grid-area: map; } .home-grid .usage-card { grid-area: usage; } .home-grid .promo { grid-area: promo; }
.board-top .map-card { display: flex; align-items: center; }
@media (max-width: 860px) { .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "imp" "map" "usage" "promo"; } }
h2 .more { font-size: 13px; font-weight: 600; }
h2 .total { font-size: 13px; color: var(--blue-2); }
.map-card { overflow: hidden; }

.routemap { display: block; width: 100%; height: auto; overflow: visible; }
.routemap .ring { fill: none; stroke: rgba(30, 90, 200, .12); stroke-dasharray: 2 7; }
.routemap .arc { fill: none; stroke: url(#rmg); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 7 7; animation: dash 1.4s linear infinite; }
.routemap .arc.late { stroke: #f59e0b; }
.routemap .arc.down, .routemap .arc.new { stroke: #c3cede; animation: none; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.routemap .flyer path { fill: var(--blue-2); filter: drop-shadow(0 2px 3px rgba(29, 95, 224, .45)); }
.routemap .dot { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.routemap .late .dot { stroke: #f59e0b; } .routemap .down .dot, .routemap .new .dot { stroke: #c3cede; }
.routemap .pulse { fill: rgba(47, 123, 255, .35); transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.routemap text { font: 650 13px var(--sans); fill: var(--ink); }
.routemap text.sub { font: 600 10px var(--mono); fill: var(--ink-3); letter-spacing: .06em; }
.routemap .origin { fill: var(--blue); }
.routemap .origin-ring { fill: rgba(47, 123, 255, .14); transform-box: fill-box; transform-origin: center; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.5); opacity: .5; } }
.routemap .you { font: 800 13px var(--mono); fill: var(--blue-2); letter-spacing: .12em; }

.promo { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #1d5fe0 0%, #3b5bff 55%, #6d4bff 100%); box-shadow: 0 24px 50px -26px rgba(59, 91, 255, .85); isolation: isolate; }
.promo::after { content: "NEXUS"; position: absolute; right: -8px; bottom: -22px; z-index: -1; font: 900 92px/1 var(--mono); letter-spacing: -.04em; color: rgba(255, 255, 255, .08); }
.promo::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -60px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .6), transparent 70%); }
.promo b { font-size: 16px; }
.promo p { color: rgba(255, 255, 255, .8); }
.promo .logo { background: #fff; color: var(--blue-2); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.promo .btn { background: #fff; border: 0; color: var(--blue-2); }

.board-top { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); margin-bottom: 18px; }
.stat-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-stack .tile { display: flex; flex-direction: column; justify-content: center; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.stat-stack .tile:nth-child(2) { animation-delay: .05s; } .stat-stack .tile:nth-child(3) { animation-delay: .1s; } .stat-stack .tile:nth-child(4) { animation-delay: .15s; }
@media (max-width: 860px) { .board-top { grid-template-columns: minmax(0, 1fr); } }

.shop-top { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; margin: 6px 0 24px; }
.shop-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 10px 0 14px; background: linear-gradient(100deg, var(--ink), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .shop-top { grid-template-columns: minmax(0, 1fr); } .shop-hero .row { display: none; } }
.tickets.shop { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tickets.shop .ticket { padding: 0; }
.tickets.shop .ticket::after { display: none; }
.ticket .band { position: relative; height: 96px; padding: 18px 20px; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--sky), var(--blue)); }
.ticket.t1 .band { background: linear-gradient(135deg, #818cf8, #2f7bff); }
.ticket.t2 .band { background: linear-gradient(135deg, #22d3ee, #0284c7); }
.ticket .band .cls { color: rgba(255, 255, 255, .9); }
.ticket .band svg { position: absolute; left: 20px; bottom: 16px; width: 22px; height: 22px; color: #fff; opacity: .9; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ticket:hover .band svg { transform: translateX(120px); }
.ticket .band .letter { position: absolute; right: 14px; bottom: -18px; font: 900 96px/1 var(--mono); color: rgba(255, 255, 255, .2); }
.ticket .body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 18px 20px; }
.ticket .body::before, .ticket .body::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #edf5ff; }
.ticket .body::before { left: -11px; } .ticket .body::after { right: -11px; }
.tickets.shop .ticket h3 { margin-top: 0; }
.tickets.shop .ticket .specs { margin: 16px 0 12px; }
.ticket .tbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px 14px; border-top: 2px dashed rgba(30, 90, 200, .14); }
.ticket .tbar .code { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.ticket .tbar .bc { flex: 1; display: flex; gap: 2px; height: 22px; }
.ticket .tbar .bc i { background: var(--ink); opacity: .75; border-radius: 1px; }

.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; overflow: hidden; }
.profile .avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 24px/1 var(--sans); color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue-2)); box-shadow: 0 12px 26px -12px rgba(47, 123, 255, .9), 0 0 0 4px #fff; }
.profile h3 { font-size: 18px; }
.profile .who p { margin: 4px 0 0; font-size: 13px; }
.profile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--blue), #818cf8); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
