:root { --navy:#07145c; --blue:#123ac2; --cyan:#39c5ee; --card:#fff; --ink:#12204c; --muted:#7e8ba8; --accent:#f15f72; --accent-soft:rgba(241,95,114,.34); --soft:#e6ebf5; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:#eef1f7; color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif; }
button,input,select { font:inherit; }
button { cursor:pointer; }
.app-shell { min-height:100vh; display:flex; justify-content:center; padding:0 16px; }
.phone-frame { position:relative; display:flex; flex-direction:column; width:min(100%,430px); min-height:100vh; overflow:hidden; padding:28px 24px 22px; background-color:#07145c; background-image:linear-gradient(166deg,#07145c 0%,#0b268f 52%,#123ec7 100%); background-size:cover; background-position:center; isolation:isolate; }
.hero { display:none; align-items:center; gap:10px; color:#fff; }
.brand-mark { display:flex; gap:2px; align-items:flex-end; transform:skew(-22deg); }
.brand-mark span { display:block; width:7px; height:22px; border-radius:2px; background:#fff; }.brand-mark span:nth-child(2){height:14px;}.brand-mark span:nth-child(3){height:9px;}
.brand-copy { display:grid; line-height:1; }.brand-copy strong { font-size:17px; letter-spacing:.08em; }.brand-copy small { margin-top:5px; font-size:8px; letter-spacing:.18em; opacity:.65; }
.icon-button,.close-button { margin-left:auto; border:0; background:rgba(255,255,255,.12); color:#fff; width:34px; height:34px; border-radius:50%; font-size:17px; }
.hero-copy { color:#fff; padding:28px 4px 30px; }.eyebrow { margin:0 0 12px; color:#65daf2; font-size:11px; font-weight:700; letter-spacing:.16em; }.hero-copy h1 { margin:0; font-size:31px; line-height:1.18; letter-spacing:-.04em; }.hero-copy > p:last-child { margin:12px 0 0; opacity:.78; font-size:15px; }
.floating-text-layer { position:absolute; inset:0; z-index:4; pointer-events:none; }.floating-text { position:absolute; pointer-events:auto; white-space:pre-wrap; transform:translate(-50%,-50%); }
.view-panel { position:relative; border-radius:27px; background:rgba(255,255,255,.97); padding:25px 21px 22px; box-shadow:0 22px 50px rgba(0,17,86,.22); }.section-heading { display:flex; gap:12px; align-items:center; }.section-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; background:#eef3ff; color:var(--blue); font-size:27px; }.label { margin:0; font-size:17px; font-weight:800; }.muted { margin:5px 0 0; color:var(--muted); font-size:12px; }
.query-form { margin-top:25px; }.field-label { display:block; margin-bottom:8px; font-size:13px; font-weight:700; }.input-wrap { position:relative; }.input-wrap input,.captcha-row input { width:100%; border:1px solid #dce3ef; border-radius:14px; outline:0; padding:15px 40px 15px 16px; background:#f8faff; color:var(--ink); transition:.2s; }.input-wrap input:focus,.captcha-row input:focus { border-color:#5572e5; box-shadow:0 0 0 4px rgba(85,114,229,.12); }.clear-button { position:absolute; right:10px; top:9px; width:30px; height:30px; border:0; border-radius:50%; color:#94a0b8; background:transparent; font-size:23px; }.captcha-row { display:flex; gap:9px; margin-top:11px; }.captcha-row input { padding-right:14px; }.captcha-code { display:grid; place-items:center; flex:0 0 92px; border:0; border-radius:14px; color:#2340a4; background:#e7edff; font-weight:800; letter-spacing:4px; font-size:13px; cursor:pointer; }
.primary-button { width:100%; margin-top:16px; border:0; border-radius:14px; padding:15px 17px; background:var(--accent); color:#fff; font-weight:800; box-shadow:0 9px 18px rgba(241,95,114,.22); }.primary-button span { float:right; font-size:19px; line-height:16px; }.privacy-note,.app-footer { color:#a0aac0; text-align:center; font-size:11px; }.privacy-note { margin:22px 0 0; }
.state-message { margin-top:15px; border-radius:12px; padding:12px 13px; background:#fff1f2; color:#c3465a; font-size:13px; line-height:1.5; }.state-message.success { background:#eefaf5; color:#218262; }.state-message.info { background:#eef4ff; color:#3152af; }
.result-panel { padding-top:25px; }
.back-button { display:block; margin:0; padding:0; border:0; color:#647292; background:transparent; font-size:13px; line-height:1.4; }
.result-intro { text-align:center; padding:18px 0 20px; }
.success-badge { display:inline-block; border-radius:999px; padding:8px 12px; background:#eaf8f2; color:#25815e; font-size:11px; font-weight:800; }
.result-intro #greeting { margin:14px 0 0; color:#647292; font-size:13px; line-height:1.5; }
.result-intro #seatHeadline { margin:7px 0 0; color:var(--navy); font-size:38px; line-height:1.1; letter-spacing:-.04em; }
.result-subtitle { display:none; }
.candidate-panel { margin-top:20px; }.candidate-title { margin:0 0 11px; font-size:14px; font-weight:800; }.candidate-card { width:100%; display:grid; grid-template-columns:1fr auto; gap:4px; text-align:left; border:1px solid #e2e7f1; border-radius:15px; background:#fbfcff; padding:13px; margin-top:9px; color:var(--ink); }.candidate-card:hover { border-color:#7c93ef; background:#f4f7ff; }.candidate-card strong { font-size:14px; }.candidate-card small { grid-column:1; color:var(--muted); font-size:11px; }.candidate-card span { grid-column:2; grid-row:1 / span 2; align-self:center; color:#5470d7; font-size:20px; }
.app-footer { display:grid; justify-items:center; gap:10px; margin-top:auto; padding-top:24px; padding-bottom:4px; }.support-brand { display:grid; justify-items:center; gap:4px; color:#dbe4ff; text-decoration:none; }.support-brand[hidden] { display:none; }.support-brand strong { padding-bottom:3px; border-bottom:1px solid currentColor; font-size:12px; letter-spacing:.06em; }.support-brand small { color:#aebbe2; font-size:10px; }
.failure-modal { position:fixed; z-index:30; inset:0; display:grid; place-items:center; padding:24px; background:rgba(4,13,60,.52); }.failure-modal[hidden] { display:none; }.failure-dialog { width:min(330px,100%); padding:28px 24px 23px; border-radius:22px; background:#fff; text-align:center; box-shadow:0 20px 60px rgba(4,13,60,.28); }.failure-icon { display:grid; place-items:center; width:42px; height:42px; margin:0 auto 13px; border-radius:50%; color:#fff; background:var(--accent); font-size:24px; font-weight:900; }.failure-dialog h2 { margin:0; color:var(--navy); font-size:19px; }.failure-dialog p { margin:10px 0 20px; color:#7e8ba8; font-size:13px; line-height:1.6; }.failure-dialog button { width:100%; border:0; border-radius:12px; padding:13px; color:#fff; background:var(--accent); font-weight:800; }
.map-card { border-radius:20px; background:#fff; padding:16px 14px 17px; box-shadow:inset 0 0 0 1px #edf0f6; }.map-header { display:flex; justify-content:space-between; align-items:center; color:#506080; font-size:12px; font-weight:800; }.map-legend { display:flex; align-items:center; gap:5px; color:#9aa4b7; font-weight:500; }.map-legend i { width:8px; height:8px; border-radius:50%; background:var(--accent); }.seat-map { position:relative; margin-top:13px; height:310px; border-radius:15px; background-color:#f4f6fb; background-size:cover; background-position:center; overflow:hidden; }.seat-map.custom-seat-map { height:auto; aspect-ratio:1.67; background-size:contain; background-repeat:no-repeat; background-position:center; }.seat-hotspot { position:absolute; z-index:1; border:0; border-radius:9px; color:#fff; background:#d7dfef; font-size:12px; font-weight:800; transform:translate(-50%,-50%); transition:.3s; }.seat-hotspot.vip { left:50%; top:9%; width:45%; height:12%; }.seat-hotspot.active { background:var(--accent); box-shadow:0 0 0 4px rgba(241,95,114,.18),0 0 0 10px rgba(241,95,114,.10),0 7px 16px rgba(241,95,114,.3); animation:pulse 2.2s ease-in-out infinite; }.custom-seat-map .seat-hotspot.active { background:rgba(241,95,114,.28); border:3px solid var(--accent); border-radius:50%; }.direction-note { margin:16px 0 0; color:#77839d; text-align:center; font-size:12px; }.direction-note span { color:var(--accent); }
@keyframes pulse { 50% { box-shadow:0 0 0 7px rgba(241,95,114,.16),0 0 0 16px rgba(241,95,114,.06),0 7px 16px rgba(241,95,114,.3); } }
.custom-seat-map .seat-hotspot.active { background:var(--accent-soft); border:2px solid var(--accent); border-radius:6px; box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent),0 5px 12px color-mix(in srgb,var(--accent) 30%,transparent); }
.phone-frame { overflow:visible; }
.seat-map.custom-seat-map { min-height:120px; overflow:visible; }
.seat-map-content { position:relative; width:100%; height:100%; background-size:cover; background-position:center; }
.seat-map.custom-seat-map .seat-map-content { background-size:contain; background-repeat:no-repeat; background-position:center; }
.seat-map.zoomable { overflow:hidden; touch-action:none; cursor:grab; }
.seat-map.zoomable .seat-map-content { transform-origin:center center; will-change:transform; }
.config-drawer { position:fixed; z-index:10; right:0; top:0; width:min(390px,100%); height:100vh; overflow:auto; padding:28px 24px; background:#fff; box-shadow:-16px 0 40px rgba(12,26,74,.18); transform:translateX(100%); transition:.28s ease; }.config-drawer.open { transform:translateX(0); }.drawer-mask { position:fixed; z-index:9; inset:0; background:rgba(2,12,52,.45); opacity:0; pointer-events:none; transition:.28s; }.drawer-mask.open { opacity:1; pointer-events:auto; }.drawer-header { display:flex; align-items:flex-start; justify-content:space-between; }.drawer-header h2 { margin:5px 0 0; color:var(--navy); font-size:22px; }.drawer-kicker { color:#5572d7; font-size:10px; font-weight:800; letter-spacing:.15em; }.close-button { margin:0; color:#6b7893; background:#f1f4fa; font-size:22px; }.drawer-description { color:#75809a; font-size:13px; line-height:1.65; }.config-form { display:grid; gap:15px; margin-top:24px; }.config-form label { display:grid; gap:7px; color:#52607d; font-size:12px; font-weight:800; }.config-form input,.config-form select { width:100%; border:1px solid #dfe5f0; border-radius:11px; padding:11px 12px; outline:0; color:var(--ink); background:#fbfcff; }.config-form input[type=color] { height:43px; padding:4px; }.switch-row { display:flex !important; grid-template-columns:1fr auto; flex-direction:row; align-items:center; justify-content:space-between; }.switch-row input { width:42px; accent-color:var(--accent); }.config-tip { display:grid; gap:5px; margin-top:24px; padding:14px; border-radius:14px; color:#536181; background:#f1f5ff; font-size:12px; line-height:1.5; }.config-tip strong { color:#3452b4; }
@media (min-width:700px) { .phone-frame { margin:20px 0; min-height:calc(100vh - 40px); border-radius:30px; } }
@media (max-width:699px) { .app-shell { padding:0; min-height:100dvh; } .phone-frame { width:100%; min-height:100dvh; border-radius:0; padding-top:calc(28px + env(safe-area-inset-top)); padding-bottom:calc(22px + env(safe-area-inset-bottom)); } }
