/* ==========================================================================
   公交智能报站系统 · 手机端报站器
   深色高对比 / 超大按钮 / 单手可达
   ========================================================================== */

:root {
    --bg: #08192a;
    --bg-2: #0b2035;
    --panel: #102840;
    --panel-2: #153351;
    --stroke: rgba(255, 255, 255, .09);
    --text: #e9f2fb;
    --muted: #8ba6c0;
    --muted-2: #617c97;
    --blue: #2f80ed;
    --blue-2: #1b6ade;
    --amber: #ffb020;
    --amber-2: #f09a05;
    --green: #35d39a;
    --line-color: #2f80ed;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

body {
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(47, 128, 237, .22), transparent 62%),
        linear-gradient(180deg, #08192a 0%, #071625 100%);
    min-height: 100dvh;
    overflow: hidden;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }

/* ---------------- 启动遮罩 ---------------- */
.boot {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg);
    transition: opacity .35s;
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot-logo {
    width: 62px; height: 62px;
    border-radius: 16px;
    background: linear-gradient(145deg, #2f80ed, #1656b8);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 12px 30px -8px rgba(47, 128, 237, .6);
}
.boot-name { font-size: 15px; letter-spacing: 2px; color: #cfe1f4; }
.boot-bar { width: 150px; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--blue); border-radius: 3px; animation: bootSlide 1.1s infinite ease-in-out; }
.boot-tip { font-size: 11.5px; color: var(--muted-2); }
@keyframes bootSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

/* ---------------- 屏幕 ---------------- */
.screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-t);
}
.screen[hidden] { display: none; }

/* ---------------- 线路选择 ---------------- */
.pick { overflow-y: auto; padding-bottom: calc(18px + var(--safe-b)); }

.pick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 8px;
}
.brand-sm { display: flex; align-items: center; gap: 9px; }
.brand-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, #2f80ed, #1656b8);
    display: grid; place-items: center;
    color: #fff;
}
.brand-sm b { display: block; font-size: 14px; letter-spacing: .4px; }
.brand-sm span { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: 1px; }

.ghost-btn {
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .03);
}
.ghost-btn:active { background: rgba(255, 255, 255, .08); }

.pick-hero { padding: 14px 20px 16px; }
.pick-hero h1 {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.25;
}
.pick-hero p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 330px; }

.search {
    position: relative;
    margin: 0 18px 14px;
}
.search-ico {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    display: grid; place-items: center;
}
.search input {
    width: 100%;
    height: 44px;
    border-radius: 11px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    padding: 0 14px 0 40px;
    font-size: 16px;
    outline: none;
}
.search input::placeholder { color: var(--muted-2); font-size: 13px; }
.search input:focus { border-color: rgba(47, 128, 237, .6); background: rgba(47, 128, 237, .08); }

.line-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

.line-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
    padding: 15px 14px;
    border-radius: 13px;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    transition: transform .12s, border-color .15s, background .15s;
    overflow: hidden;
}
.line-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--c, var(--blue));
    opacity: .9;
}
.line-card:active { transform: scale(.985); background: rgba(47, 128, 237, .1); }
.line-code-badge {
    flex: 0 0 auto;
    min-width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--c, var(--blue));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 0 8px;
    box-shadow: 0 6px 16px -8px rgba(0,0,0,.7);
}
.line-body { flex: 1; min-width: 0; display: block; }
.line-title { display: block; font-size: 16px; font-weight: 600; color: #f2f7fd; }
.line-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-foot { margin-top: 5px; display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted-2); }
.line-foot .pill { background: rgba(255,255,255,.06); border-radius: 4px; padding: 2px 6px; }
.line-arrow { color: var(--muted-2); display: grid; place-items: center; }

.list-title {
    font-size: 11.5px;
    letter-spacing: 1.5px;
    color: var(--muted-2);
    padding: 14px 20px 8px;
}

.notice-box {
    margin: 16px 18px 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #ffe1a8;
    background: rgba(255, 176, 32, .1);
    border: 1px solid rgba(255, 176, 32, .22);
}

.pick-hint {
    margin: 18px 20px 0;
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--muted-2);
}

.pick-foot {
    margin-top: auto;
    padding: 22px 20px 6px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted-2);
}
.pick-foot a { color: var(--muted); }

/* ---------------- 访问码 ---------------- */
.lock { align-items: center; justify-content: center; padding: 24px; }
.lock-card {
    width: 100%;
    max-width: 360px;
    padding: 30px 24px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    text-align: center;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
}
.lock-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #2f80ed, #1656b8);
    display: grid; place-items: center;
    color: #fff;
}
.lock-card h2 { margin: 0 0 6px; font-size: 19px; }
.lock-card p { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.code-input {
    width: 100%;
    height: 48px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 4px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.05);
    color: var(--text);
    outline: none;
    margin-bottom: 14px;
}
.code-input:focus { border-color: rgba(47,128,237,.7); }
.primary-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(180deg, #3690ff, #1b6ade);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 24px -10px rgba(47,128,237,.8);
}
.lock-error { margin-top: 12px; font-size: 12.5px; color: #ff9d8f; }

/* ---------------- 报站台 ---------------- */
.player { overflow: hidden; }

.p-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: rgba(8, 25, 42, .72);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}
.back-btn, .icon-round {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--stroke);
    color: #cfe1f4;
    flex: 0 0 38px;
}
.back-btn:active, .icon-round:active { background: rgba(255,255,255,.12); }
.p-title { flex: 1; min-width: 0; }
.p-title b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.p-title span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* 站点进度条 */
.rail {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 0 0 auto;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 9px 0;
    min-width: 62px;
    opacity: .55;
    transition: opacity .18s;
}
.rail-item .r-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    position: relative;
    z-index: 2;
}
.rail-item::before {
    content: "";
    position: absolute;
    left: -50%;
    right: 50%;
    top: 14px;
    height: 1px;
    background: rgba(255,255,255,.16);
    z-index: 1;
}
.rail-item:first-child::before { display: none; }
.rail-item .r-name {
    font-size: 10.5px;
    color: var(--muted);
    max-width: 68px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rail-item.passed { opacity: .35; }
.rail-item.current { opacity: 1; }
.rail-item.current .r-dot {
    width: 11px; height: 11px;
    background: var(--line-color);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, .18);
    margin-top: -1px;
}
.rail-item.current .r-name { color: #fff; font-weight: 600; }
.rail-item.next .r-dot { background: var(--amber); }

/* 主舞台 */
.stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4px 16px calc(10px + var(--safe-b));
    min-height: 0;
}
.stage-top {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 4px clamp(8px, 10vh, 86px);
}
.st-kicker {
    font-size: 11.5px;
    letter-spacing: 3px;
    color: var(--muted-2);
    text-transform: uppercase;
}
.cur-name {
    margin: 4px 0 8px;
    font-size: clamp(30px, 9.2vw, 46px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    word-break: break-all;
}
.next-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 176, 32, .13), rgba(255, 176, 32, .03));
    border: 1px solid rgba(255, 176, 32, .22);
    width: fit-content;
    max-width: 100%;
}
.next-tag {
    font-size: 11px;
    color: #ffcf7a;
    letter-spacing: 1px;
    background: rgba(255, 176, 32, .14);
    padding: 2px 7px;
    border-radius: 4px;
    flex: 0 0 auto;
}
.next-row b {
    font-size: 19px;
    font-weight: 600;
    color: #ffe3ac;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
}
.next-meta { font-size: 11.5px; color: #d8b06c; }

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--muted-2);
    flex-wrap: wrap;
}
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
#gpsState.on { color: var(--green); }
#gpsState.err { color: #ff9d8f; }
.mini-link {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.speak-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 28px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}
.speak-state.active { color: #bcdcff; }
.speak-state .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--muted-2);
}
.speak-state.active .pulse {
    background: var(--blue);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 128, 237, .5); }
    50% { box-shadow: 0 0 0 7px rgba(47, 128, 237, 0); }
}

/* 大按钮 */
.dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}
.big-btn {
    height: clamp(78px, 13.5vh, 108px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    overflow: hidden;
    transition: transform .1s ease, filter .15s;
    user-select: none;
}
.big-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 48%);
    pointer-events: none;
}
.big-btn:active { transform: scale(.97); filter: brightness(1.08); }
.big-btn .b-title { font-size: clamp(22px, 6.4vw, 28px); font-weight: 700; letter-spacing: 2px; }
.big-btn .b-sub { font-size: 11px; opacity: .72; letter-spacing: 1px; }
.next-btn {
    background: linear-gradient(180deg, #3d92ff, #1668d9);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(47, 128, 237, .9), inset 0 1px 0 rgba(255,255,255,.25);
}
.arrive-btn {
    background: linear-gradient(180deg, #ffc24d, #f39a06);
    color: #2a1a00;
    box-shadow: 0 14px 30px -14px rgba(243, 154, 6, .85), inset 0 1px 0 rgba(255,255,255,.35);
}
.next-btn[disabled], .arrive-btn[disabled] {
    filter: grayscale(.5) brightness(.8);
    opacity: .6;
}

.dock-sub {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 10px;
}
.dock-sub button {
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--stroke);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11.5px;
    white-space: nowrap;
    padding: 0 2px;
    letter-spacing: -.2px;
}
.dock-sub button svg { width: 14px; height: 14px; opacity: .8; }
.dock-sub button:active { background: rgba(255,255,255,.11); }
.dock-sub button.ready {
    color: #ffe1a6;
    border-color: rgba(255, 176, 32, .46);
    background: rgba(255, 176, 32, .09);
}
.dock-sub button.on {
    color: #a9ffe0;
    border-color: rgba(53, 211, 154, .4);
    background: rgba(53, 211, 154, .1);
}
.dock-sub button.warn {
    color: #ffd08a;
    border-color: rgba(255, 176, 32, .35);
    background: rgba(255, 176, 32, .08);
}

/* ---------------- 抽屉 ---------------- */
.sheet-mask {
    position: fixed;
    inset: 0;
    background: rgba(3, 12, 21, .62);
    backdrop-filter: blur(3px);
    z-index: 40;
}
.sheet-mask[hidden] { display: none; }

.sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    max-height: 82dvh;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, #122c47, #0c2034);
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateY(102%);
    transition: transform .28s cubic-bezier(.22, .8, .3, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-b);
    box-shadow: 0 -20px 50px -20px rgba(0,0,0,.8);
}
.sheet[hidden] { display: flex; }
.sheet.open { transform: translateY(0); }
.sheet-grip {
    width: 38px; height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.18);
    margin: 9px auto 2px;
    flex: 0 0 auto;
}
.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex: 0 0 auto;
}
.sheet-head b { font-size: 15px; letter-spacing: .5px; }
.sheet-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--muted);
    background: rgba(255,255,255,.06);
}
.sheet-body {
    overflow-y: auto;
    padding: 14px 18px calc(22px + var(--safe-b));
    -webkit-overflow-scrolling: touch;
}
.sec-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    letter-spacing: 1px;
    color: var(--muted);
    margin: 14px 0 8px;
}
.sec-title:first-child { margin-top: 2px; }
.sec-title em { font-style: normal; color: #8dc2ff; font-size: 12px; font-variant-numeric: tabular-nums; }
.sec-note { font-size: 11px; color: var(--muted-2); letter-spacing: 0; }
.sec-hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.7; margin: 6px 0 0; }

.voice-list { display: flex; flex-direction: column; gap: 8px; }
.voice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 11px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.03);
}
.voice-item.active {
    border-color: rgba(47,128,237,.55);
    background: rgba(47,128,237,.1);
}
.voice-item .v-ico {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,.06);
    display: grid; place-items: center; color: #bcdcff;
    flex: 0 0 34px;
}
.voice-item .v-body { flex: 1; min-width: 0; }
.voice-item .v-name { display: block; font-size: 13.5px; font-weight: 600; }
.voice-item .v-sub { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.voice-item .v-play {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--stroke);
    display: grid; place-items: center;
    color: #bcdcff;
}
.voice-item .v-check { color: var(--blue); font-size: 15px; }

.slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    background: transparent;
    outline: none;
}
.slider::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(47,128,237,.8), rgba(47,128,237,.25));
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    margin-top: -8.5px;
}
.slider::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(47,128,237,.4); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }

/* 提示音选择 */
.chime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.chime-btn {
    height: 40px;
    border-radius: 9px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.045);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.chime-btn .ch-dot { width: 5px; height: 5px; border-radius: 50%; background: #6f8aa2; }
.chime-btn.active {
    color: #cfe4ff;
    border-color: rgba(61, 146, 255, .5);
    background: rgba(47, 128, 237, .13);
}
.chime-btn.active .ch-dot { background: var(--blue); box-shadow: 0 0 0 3px rgba(47,128,237,.16); }

.test-btn {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border-radius: 10px;
    background: rgba(47,128,237,.16);
    border: 1px solid rgba(47,128,237,.4);
    color: #bcdcff;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 13.5px;
}
.test-btn:active { background: rgba(47,128,237,.3); }

.row-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text);
    padding: 4px 0;
}
.input-suffix { display: flex; align-items: center; gap: 6px; }
.input-suffix input {
    width: 86px;
    height: 36px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.input-suffix span { font-size: 12px; color: var(--muted-2); }

.switch { position: relative; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .18s; }
.switch span::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s;
}
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }

.sheet-tips {
    margin-top: 18px;
    padding: 11px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    border: 1px dashed rgba(255,255,255,.1);
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--muted-2);
}

/* ---------------- Toast ---------------- */
.m-toast-wrap {
    position: fixed;
    left: 50%;
    bottom: calc(120px + var(--safe-b));
    transform: translateX(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: 86vw;
}
.m-toast {
    background: rgba(9, 27, 44, .92);
    border: 1px solid rgba(255,255,255,.12);
    color: #e9f2fb;
    font-size: 12.5px;
    padding: 9px 15px;
    border-radius: 9px;
    box-shadow: 0 14px 34px -14px rgba(0,0,0,.9);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    max-width: 100%;
    text-align: center;
}
.m-toast.show { opacity: 1; transform: translateY(0); }

/* 横屏 / 矮屏适配 */
@media (max-height: 680px) {
    .pick-hero h1 { font-size: 23px; }
    .stage-top { padding-top: 0; }
    .big-btn { height: 74px; }
    .dock-sub button { height: 40px; }
    .rail { padding: 6px 12px; }
    .speak-state { height: 22px; margin-bottom: 6px; }
}
@media (orientation: landscape) and (max-height: 520px) {
    .stage-top { padding: 2px 4px 6px; }
    .cur-name { font-size: 26px; margin: 2px 0 4px; }
    .next-row { padding: 5px 10px; }
    .next-row b { font-size: 15px; }
    .big-btn { height: 62px; }
    .big-btn .b-title { font-size: 19px; }
    .dock-sub button { height: 36px; }
}

@media (max-width: 360px) {
    .dock-sub { gap: 5px; }
    .dock-sub button { font-size: 10.5px; gap: 2px; }
    .dock-sub button svg { display: none; }
    .chime-grid { grid-template-columns: repeat(2, 1fr); }
}
