/* 客户端：甜蜜航空航站楼 */

/* ── 品牌 ── */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; font-size: 1.25em; font-weight: 900; letter-spacing: .06em; line-height: 1.1; }
.brand small { display: block; font-size: .72em; color: var(--ink-2); font-weight: 800; letter-spacing: .08em; }

/* ════════ 登录 ════════ */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.login-stage { display: flex; align-items: flex-end; gap: 10px; max-width: 980px; width: 100%; justify-content: center; }
.login-dz { height: min(560px, 72vh); flex: 0 0 auto; justify-content: flex-end; }
.login-dz img { height: calc(100% - 10px); }
.login-dz .bubble { position: absolute; top: 2%; left: 62%; width: 250px; z-index: 2; }
.login-dz .bubble::after { left: 24px; bottom: -14px; }
.login-card { width: min(440px, 100%); padding: 30px 30px 22px; margin-bottom: 40px; position: relative; }
.login-card::before {
  content: "BOARDING"; position: absolute; top: -16px; right: 26px; padding: 2px 14px; background: var(--lemon);
  border: var(--line); border-radius: 999px; font-weight: 900; letter-spacing: .2em; font-size: .78em; box-shadow: 3px 3px 0 var(--ink);
}
.login-card h1 { margin: 18px 0 14px; font-size: 1.7em; font-weight: 900; }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { padding-right: 52px; font-size: 1.05em; letter-spacing: .04em; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 22px; cursor: pointer; }
.login-foot { font-size: .85em; text-align: center; margin: 14px 0 0; }

/* ════════ 顶栏 ════════ */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 26px; background: rgba(255, 250, 243, .82); backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: var(--line); border-radius: 999px; background: #fff; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.me-chip .avatar { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--pink-2); display: grid; place-items: center; font-weight: 900; }
.me-chip small { color: var(--ink-2); font-weight: 700; }
.me-chip .vip { background: var(--lemon); border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; font-size: .78em; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 26px 26px 120px; }

/* ════════ 首屏 ════════ */
.hero { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; align-items: stretch; }
.hero-left { padding: 28px; display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 0%, #fff 55%, var(--pink-3) 100%); }
.hero-tag { align-self: flex-start; padding: 2px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--sky-2); font-weight: 900; font-size: .75em; letter-spacing: .12em; }
.hero-left h1 { font-size: 2.3em; line-height: 1.18; margin: 16px 0 10px; font-weight: 900; }
.hero-left h1 .hl { background: linear-gradient(transparent 58%, var(--lemon) 58%); padding: 0 4px; }
.hero-left p { margin: 0 0 22px; color: var(--ink-2); font-weight: 600; }
.checkin-btn { font-size: 1.35em; padding: .75em 1.4em; animation: wiggle 4s ease-in-out infinite; align-self: flex-start; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-4deg) scale(1.04); } 94% { transform: rotate(4deg) scale(1.04); } 97% { transform: rotate(-2deg); } }
.checkin-btn:hover { animation: none; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: auto; padding-top: 24px; }
.stat { padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--st-2, #fff); }
.stat b { display: block; font-size: 1.6em; line-height: 1.1; font-weight: 900; color: var(--ink); }
.stat span { font-size: .82em; font-weight: 800; color: var(--ink-2); }

.board { padding: 14px 14px 10px; position: relative; overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 12px; padding: 2px 6px 10px; flex-wrap: wrap; }
.board-head b { font-size: 1.1em; font-weight: 900; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: .85em; font-weight: 800; color: var(--ink-2); }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); display: inline-block; margin-left: 6px; }
.lg-takeoff { background: var(--orange); }
.lg-cruise { background: #7cc7ff; }
.board-tip { text-align: right; font-size: .8em; font-weight: 700; padding: 4px 6px 0; }

/* ════════ 任务列表 ════════ */
.tasks { margin-top: 26px; }
.tasks-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.company-filter { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border: 2.5px dashed var(--ink-3); border-radius: 16px; background: var(--lemon-2); }
.cf-label { font-weight: 800; white-space: nowrap; padding-top: 4px; }
.task-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 18px; }
.more { text-align: center; margin-top: 18px; }

.pass {
  position: relative; display: grid; grid-template-columns: auto 1fr 74px; border: var(--line); border-radius: 20px;
  background: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; overflow: hidden;
}
.pass:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pass::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--st); border-right: var(--line); }
.pass-check { display: flex; align-items: flex-start; padding: 16px 4px 0 22px; cursor: pointer; }
.pass-check input { position: absolute; opacity: 0; pointer-events: none; }
.pass-check i { width: 22px; height: 22px; border: 2.5px solid var(--ink); border-radius: 7px; background: #fff; display: grid; place-items: center; transition: background .12s; }
.pass-check input:checked + i { background: var(--grape); }
.pass-check input:checked + i::after { content: "✓"; color: #fff; font-weight: 900; font-size: 15px; }
.pass-check input:focus-visible + i { outline: 3px dashed var(--grape); outline-offset: 2px; }
.pass-main { padding: 14px 14px 14px 10px; min-width: 0; }
.pass-top { display: flex; align-items: center; gap: 10px; }
.pass-no { font-weight: 900; font-size: 1.02em; }
.pass-seq { font-size: .82em; color: var(--ink-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-name { margin: 6px 0 10px; font-size: 1.15em; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: .88em; color: var(--ink-2); font-weight: 600; }
.pass-meta b { color: var(--ink); }
.pass-meta .note { font-weight: 800; color: var(--st); }
.cd { font-weight: 800; color: var(--st, var(--ink)); white-space: nowrap; }
.cd b, .pass-meta .cd b { font-family: var(--mono); letter-spacing: .02em; color: inherit; }
.boarding-head .cd { margin-left: 10px; color: var(--pink); }
.pass-stub {
  border-left: 3px dashed var(--ink); background: var(--st-2); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; writing-mode: vertical-rl; text-orientation: mixed; padding: 10px 0;
}
.pass-stub span { font-size: .62em; letter-spacing: .25em; font-weight: 900; color: var(--ink-2); }
.pass-stub b { font-size: .9em; font-weight: 900; letter-spacing: .1em; }
.pass.selected { box-shadow: 0 0 0 4px var(--grape), var(--shadow); }

/* ════════ 值机弹窗 ════════ */
.ci { position: relative; width: min(1120px, 100%); display: grid; grid-template-columns: 300px 1fr; min-height: min(680px, calc(100vh - 40px)); overflow: hidden !important; padding: 0; }
.ci-side {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 18px 12px 0;
  background: linear-gradient(180deg, var(--sky-2), var(--pink-3)); border-right: var(--line);
}
.ci-side .bubble { width: 100%; margin-bottom: 18px; font-size: .98em; min-height: 70px; }
.ci-side .dz { height: 430px; justify-content: flex-end; }
.ci-main { display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 40px); }
.ci-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 22px 70px 14px 26px; flex-wrap: wrap; }
.ci-steps li { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: .88em; color: var(--ink-3); }
.ci-steps li i { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: .85em; background: #eef0f6; color: var(--ink); }
.ci-steps li.done { color: var(--ink); }
.ci-steps li.done i { background: var(--mint); color: #fff; }
.ci-steps li.on { background: var(--pink); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.ci-steps li.on i { background: #fff; }
.ci-body { flex: 1; overflow: auto; padding: 6px 26px 18px; }
.ci-title { font-size: 1.45em; font-weight: 900; margin: 6px 0 14px; }
.ci-foot { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-top: var(--line); background: var(--paper); }
.ci-foot #ci-hint { font-weight: 800; font-size: .9em; }

.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ap-card {
  position: relative; text-align: left; padding: 14px 14px 12px; border: var(--line); border-radius: 18px; background: #fff;
  box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform .12s, box-shadow .12s, background .12s;
}
.ap-card:hover:not([disabled]) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--lemon-2); }
.ap-card .code { align-self: flex-start; font-weight: 900; font-size: .8em; padding: 0 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--lemon); letter-spacing: .1em; }
.ap-card b { font-size: 1.08em; font-weight: 900; }
.ap-card small { color: var(--ink-2); font-weight: 600; font-size: .82em; }
.ap-card .idle { margin-top: 4px; font-weight: 900; font-size: .85em; color: var(--mint); }
.ap-card[disabled] { cursor: not-allowed; opacity: .5; box-shadow: 2px 2px 0 var(--ink); background: #f3f4f8; }
.ap-card[disabled] .idle { color: var(--ink-3); }
.ap-card.on { background: var(--pink-3); box-shadow: 0 0 0 4px var(--pink), var(--shadow); }
.ap-card.blocked { background: var(--red-2); opacity: 1; cursor: pointer; }
.ap-card.blocked .idle { color: var(--red); }

.plane-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.plane-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; border: var(--line); border-radius: 18px;
  background: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.plane-card:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); background: var(--sky-2); }
.plane-card img { width: 130px; transition: transform .3s; }
.plane-card:hover img { transform: translateX(8px) rotate(-6deg); }
.plane-card b { font-size: 1.1em; font-weight: 900; }
.plane-card small { color: var(--ink-2); font-weight: 700; }
.plane-card.on { background: var(--pink-3); box-shadow: 0 0 0 4px var(--pink), var(--shadow); }

.drop {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; border: 3px dashed var(--ink-3);
  border-radius: 18px; background: #fff; cursor: pointer; font-weight: 800; color: var(--ink-2); transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over { background: var(--sky-2); border-color: var(--sky); color: var(--ink); }
.drop .big { font-size: 1.8em; }
.weight { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 12px 0 10px; font-weight: 800; font-size: .9em; }
.weight.over { color: var(--red); }

.boarding {
  display: grid; grid-template-columns: 1fr 120px; border: var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
}
.boarding-main { padding: 20px 22px; }
.boarding-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px dashed var(--ink-3); margin-bottom: 14px; }
.boarding-head b { font-weight: 900; letter-spacing: .16em; }
.boarding-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 16px; }
.boarding-route .ap b { display: block; font-size: 2.4em; font-weight: 900; line-height: 1; letter-spacing: .04em; }
.boarding-route .ap small { font-weight: 800; color: var(--ink-2); }
.boarding-route .ap.to { text-align: right; }
.boarding-route .mid { font-size: 2em; animation: fly-mid 2s ease-in-out infinite; }
@keyframes fly-mid { 50% { transform: translateX(8px) translateY(-4px) rotate(-6deg); } }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 0; }
.kv div { min-width: 0; }
.kv div.wide { grid-column: 1 / -1; }
.reply-files { margin-top: 10px; }
.kv dt { font-size: .76em; font-weight: 900; color: var(--ink-3); letter-spacing: .08em; }
.kv dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.boarding-stub { border-left: 3px dashed var(--ink); background: var(--pink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 6px; }
.barcode { width: 70px; height: 120px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 13px, transparent 13px 15px); border-radius: 4px; }
.boarding-stub small { font-weight: 900; letter-spacing: .2em; font-size: .7em; }

/* ════════ 起飞动画 ════════ */
.takeoff { position: fixed; inset: 0; z-index: 90; overflow: hidden; background: linear-gradient(180deg, #7fc8ff 0%, #bfe3ff 50%, #ffe1ee 100%); }
.tk-sun { position: absolute; top: 9%; right: 12%; width: 120px; height: 120px; border-radius: 50%; background: var(--lemon); border: 4px solid var(--ink); box-shadow: 0 0 0 18px rgba(255, 214, 90, .35), 0 0 0 40px rgba(255, 214, 90, .15); }
.tk-cloud { position: absolute; width: 260px; animation: rush 1.6s linear infinite; }
.tk-cloud.k1 { top: 12%; animation-duration: 1.8s; }
.tk-cloud.k2 { top: 34%; width: 180px; animation-duration: 1.3s; animation-delay: -.6s; }
.tk-cloud.k3 { top: 52%; width: 320px; animation-duration: 2.2s; animation-delay: -1.1s; opacity: .85; }
@keyframes rush { from { transform: translateX(110vw); } to { transform: translateX(-400px); } }
.tk-speed i { position: absolute; left: 100%; height: 4px; width: 160px; border-radius: 4px; background: rgba(255, 255, 255, .9); animation: speed .7s linear infinite; }
.tk-speed i:nth-child(1) { top: 22%; animation-delay: -.1s; }
.tk-speed i:nth-child(2) { top: 41%; animation-delay: -.35s; width: 220px; }
.tk-speed i:nth-child(3) { top: 58%; animation-delay: -.5s; }
.tk-speed i:nth-child(4) { top: 30%; animation-delay: -.62s; width: 100px; }
.tk-speed i:nth-child(5) { top: 66%; animation-delay: -.2s; width: 260px; }
@keyframes speed { from { transform: translateX(0); } to { transform: translateX(-130vw); } }
.tk-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: #8fd19e; border-top: 5px solid var(--ink); }
.tk-runway { position: absolute; left: 0; right: 0; top: 26%; height: 46%; background: #4a4e6d; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); overflow: hidden; }
.tk-runway i { position: absolute; top: 44%; left: 0; width: 200%; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 70px, transparent 70px 150px); animation: runway .4s linear infinite; }
@keyframes runway { to { transform: translateX(-150px); } }
.tk-plane { position: absolute; left: 0; bottom: 17%; width: min(440px, 62vw); transform: translateX(-70vw); }
.takeoff.go .tk-plane { animation: takeoff 3.1s cubic-bezier(.5, 0, .6, 1) forwards; }
@keyframes takeoff {
  0% { transform: translateX(-70vw) translateY(0) rotate(0); }
  48% { transform: translateX(22vw) translateY(0) rotate(0); }
  60% { transform: translateX(36vw) translateY(-3vh) rotate(-9deg); }
  100% { transform: translateX(105vw) translateY(-78vh) rotate(-17deg) scale(.42); }
}
.takeoff.go .tk-ground { animation: ground-drop 3.1s ease-in forwards; }
@keyframes ground-drop { 0%, 55% { transform: translateY(0); } 100% { transform: translateY(70%); } }
.tk-confetti { position: absolute; inset: 0; pointer-events: none; }
.tk-confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translateY(115vh) rotate(720deg); } }
.tk-done { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 20px; animation: fade-in .3s ease; }
.tk-dz { height: min(520px, 70vh); }
.tk-dz img { height: 100%; animation: dz-rise .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dz-rise { from { transform: translateY(80px); opacity: 0; } }
.tk-card { width: min(520px, 100%); padding: 22px; margin-bottom: 7vh; animation: pop-in .4s cubic-bezier(.2, 1.4, .4, 1); }
.tk-bubble { margin-bottom: 16px; }
.tk-bubble::after { display: none; }
.tk-card .boarding { box-shadow: none; margin-bottom: 16px; grid-template-columns: 1fr 90px; }
.tk-card .barcode { width: 54px; height: 90px; }

/* ════════ 详情 ════════ */
#drawer-body { padding: 26px 26px 60px; }
.detail { border: var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 22px; position: relative; overflow: hidden; }
.detail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--st); border-bottom: var(--line); }
.detail-top { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.detail h2 { margin: 8px 0 12px; font-size: 1.35em; font-weight: 900; overflow-wrap: anywhere; }
.detail h4 { margin: 18px 0 8px; font-size: 1em; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.detail .boarding-route { margin-bottom: 14px; }
.detail .boarding-route .ap b { font-size: 2em; }
.text-box { padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); max-height: 360px; overflow: auto; font-size: .95em; }
.text-box.reply { background: var(--mint-2); }
.waiting { padding: 12px 14px; border: 2.5px dashed var(--ink-3); border-radius: 14px; color: var(--ink-2); font-weight: 700; }
.crash-box { padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--red-2); font-weight: 800; }
.drawer-head { display: flex; align-items: center; gap: 12px; margin: 0 50px 18px 0; }
.drawer-head h3 { margin: 0; font-weight: 900; font-size: 1.3em; }

/* ════════ 大壮停靠：平时从左下角探个头，说话时整个人跳出来 ════════ */
.dock { position: fixed; left: 8px; bottom: 0; height: 240px; z-index: 30; align-items: flex-start; pointer-events: none; }
.dock img { cursor: pointer; transform: translateY(70%); transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.dock:not(.talk) img:hover { transform: translateY(60%) rotate(-3deg); }
.dock.talk img { transform: translateY(0); }
.dock .bubble { position: absolute; bottom: calc(100% - 20px); left: 70px; width: 280px; font-size: .92em; }
.dock .bubble::after { left: 30px; }

/* ════════ 响应式 ════════ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .ci { grid-template-columns: 1fr; }
  .ci-side { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 10px; padding: 12px 60px 0 12px; border-right: 0; border-bottom: var(--line); }
  .ci-side .dz { height: 150px; order: -1; }
  .ci-side .bubble { margin-bottom: 30px; min-height: 0; }
  .ci-side .bubble::after { left: -10px; bottom: 16px; transform: rotate(135deg); }
}
@media (max-width: 760px) {
  .wrap { padding: 16px 12px 200px; }
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar .brand small, .topbar a.btn { display: none; }
  .me-chip small { display: none; }
  .login-stage { flex-direction: column; align-items: center; }
  .login-dz { height: auto; }
  .login-dz img { height: 210px; }
  .login-dz .bubble { position: relative; top: auto; left: auto; width: auto; max-width: 300px; margin-bottom: 18px; font-size: .9em; padding: 10px 14px; }
  .login-dz .bubble::after { left: 50%; }
  .login-card { margin-bottom: 0; }
  .hero-left h1 { font-size: 1.8em; }
  .pass { grid-template-columns: auto 1fr; }
  .pass-stub { display: none; }
  .dock { height: 160px; }
  .dock .bubble { left: 50px; width: 220px; }
  .kv { grid-template-columns: 1fr; }
  .boarding { grid-template-columns: 1fr; }
  .boarding-stub { display: none; }
}
