* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #ffffff;
    --paper-bg: #0c1230;
    --card-bg: #151d52;
    --surface: rgba(255,255,255,0.12);
    --surface-strong: rgba(255,255,255,0.16);
    --surface-border: rgba(255,255,255,0.18);
    --text-dim: rgba(255,255,255,0.65);
    --text-faint: rgba(255,255,255,0.48);
    --gold-a: #ffe37a;
    --gold-b: #f6b32d;
    --gold-avatar-a: #ffd76a;
    --gold-avatar-b: #f2913a;
    --green-a: #9bf07f;
    --green-b: #3fbf46;
    --green-shadow: #216d24;
    --hero-gradient: linear-gradient(140deg, #ff8a5c 0%, #ff4d9d 55%, #a24bf0 100%);
    --radius-lg: 26px;
    --radius-md: 20px;
    --hard-shadow: 0 5px 0 rgba(0,0,0,0.24);
}

html, body {
    height: 100%;
    font-family: 'Baloo 2', 'Noto Sans TC', -apple-system, sans-serif;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}

body {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--paper-bg);
}

/* 頂端一圈藍紫光暈 + 左側漂浮光斑，營造夜遊探險的氛圍感，讓畫面更有層次不死板 */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(130% 50% at 50% -8%, #5b7dff 0%, #2a3a9c 45%, transparent 78%);
}
body::after {
    content: "";
    position: fixed; left: -70px; top: 220px; z-index: 0; pointer-events: none;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(126,168,255,0.28), transparent 70%);
}

.hidden { display: none !important; }
.tab-panel { padding-top: 8px; position: relative; z-index: 1; }

/* ---------------- 頂端品牌與狀態欄 ---------------- */
.brand-bar {
    flex-shrink: 0; text-align: center; padding: 10px 16px 2px;
    color: var(--text-dim); position: relative; z-index: 1;
}
.brand-bar h1 { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #cfe0ff; }

.topbar {
    flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px 12px; position: relative;
}
.user-brief {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer;
    background: var(--surface); border: 2px solid var(--surface-border);
    border-radius: 30px; padding: 6px 10px 6px 6px;
}
.avatar-circle {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
    background: linear-gradient(160deg, var(--gold-avatar-a), var(--gold-avatar-b));
    border: 3px solid #fff6d8; color: #7a3c00;
    box-shadow: inset 0 -4px 8px rgba(0,0,0,0.16), 0 0 14px rgba(255,180,60,0.5);
}
.user-text { flex: 1; min-width: 0; }
.user-text h1 {
    font-size: 15.5px; font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.level-progress-wrap {
    display: flex; align-items: center; gap: 6px; margin-top: 4px; max-width: 160px;
}
.level-badge {
    flex-shrink: 0; font-size: 9.5px; font-weight: 800; color: #151d52;
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    padding: 2px 8px; border-radius: 20px;
}
.level-progress-track {
    flex: 1; height: 6px; min-width: 40px;
    background: rgba(0,0,0,0.3); border-radius: 6px; overflow: hidden;
}
.level-progress-bar {
    height: 100%; width: 0%; border-radius: 6px;
    background: linear-gradient(90deg, var(--green-a), var(--green-b));
    box-shadow: 0 0 6px rgba(150,240,120,0.5);
    transition: width 0.4s ease;
}
.coin-pill {
    flex-shrink: 0; display: flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.28); border-radius: 22px;
    border: 1.5px solid rgba(255,227,122,0.4);
    box-shadow: 0 0 12px rgba(255,200,80,0.3);
    padding: 6px 13px 6px 6px;
    font-weight: 800; font-size: 14px; color: #ffe9a8;
}

/* ---------------- 主內容區 ---------------- */
.content-area {
    flex: 1; overflow-y: auto; position: relative; z-index: 1;
    padding: 4px 14px 100px;
}
.page-title { font-size: 21px; font-weight: 800; margin: 14px 0 12px; color: #fff; }

/* ---------------- 頂部 Banner ---------------- */
.banner-carousel {
    position: relative; border-radius: var(--radius-lg);
    background: var(--hero-gradient);
    box-shadow: var(--hard-shadow), 0 0 26px rgba(255,90,150,0.35);
    overflow: hidden;
}
.banner-carousel::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, transparent 30%);
}
.banner-track { display: flex; transition: transform 0.3s ease; }
.banner-slide {
    min-width: 100%; min-height: 140px; padding: 22px 20px 18px;
    color: #fff; position: relative;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.banner-slide.has-image .banner-title,
.banner-slide.has-image .banner-sub,
.banner-slide.has-image .banner-eyebrow,
.banner-slide.has-image .banner-tap-hint { display: none; }
.banner-title { font-size: 25px; font-weight: 800; margin-top: 8px; text-shadow: 0 3px 0 rgba(0,0,0,0.24); line-height: 1.15; }
.banner-sub { font-size: 12.5px; font-weight: 700; margin-top: 5px; color: rgba(255,255,255,0.9); }
.banner-dots { display: flex; justify-content: center; gap: 6px; padding: 9px 0; background: rgba(0,0,0,0.2); }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.banner-dot.active { background: #fff; width: 20px; border-radius: 20px; }

/* ---------------- 任務清單 ---------------- */
.task-list {
    display: flex; flex-direction: column; gap: 16px;
    position: relative; margin-top: 20px;
}
.task-list::before { content: none; } /* 深色風格不用虛線地圖路徑，改用卡片自身的層次感 */

.task-card {
    border-radius: var(--radius-lg); background: var(--surface);
    border: 2px solid var(--surface-border);
    box-shadow: var(--hard-shadow);
    overflow: hidden;
    position: relative; z-index: 2;
}
.grad-locked { opacity: 0.6; filter: grayscale(0.75); }

/* 橫幅圖：寬度撐滿卡片、不裁切，高度依圖片比例自動調整 */
.task-banner-wrap { width: 100%; line-height: 0; }
.task-banner-wrap[onclick] { cursor: pointer; }
.task-banner-img { width: 100%; height: auto; display: block; }
.task-banner-fallback {
    width: 100%; aspect-ratio: 16 / 7;
    display: flex; align-items: center; justify-content: center; font-size: 36px;
    background: linear-gradient(160deg, #3a4a9c, #22307e);
}

.task-row-title {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 13px 4px;
}
.task-name { font-size: 15.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-cost {
    display: inline-flex; align-items: center; flex-shrink: 0; gap: 3px; font-size: 10px; font-weight: 800;
    padding: 2px 9px; border-radius: 20px;
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); color: #7a3c00;
}
.task-row-status {
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.75);
    padding: 0 13px 11px;
}

/* GO 按鈕（商店兌換鈕共用這個 class） */
.task-btn {
    font-size: 13.5px; font-weight: 800; padding: 9px 18px;
    border-radius: 24px; border: none;
    background: linear-gradient(180deg, var(--green-a), var(--green-b)); color: #0f3d10;
    box-shadow: 0 4px 0 var(--green-shadow);
    cursor: pointer; position: relative;
    flex-shrink: 0;
}
.task-btn::after { content: none; }
.task-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-shadow); }
.task-btn:disabled {
    background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.45);
    box-shadow: none; cursor: not-allowed;
}

/* ---------------- 商店 ---------------- */
.shop-list { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.shop-card {
    display: flex; align-items: center; gap: 12px;
    min-height: 84px;
    padding: 12px 12px 12px 13px;
    border-radius: var(--radius-lg); background: var(--surface);
    border: 2px solid var(--surface-border);
    box-shadow: var(--hard-shadow);
}
.shop-thumb {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    border: 3px solid rgba(255,255,255,0.55);
    background: linear-gradient(160deg, var(--gold-a), var(--gold-b));
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18), 0 0 14px rgba(255,200,80,0.35);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-info { flex: 1; min-width: 0; padding-left: 2px; }
.shop-title { font-size: 15.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-desc { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-icon-wrap { white-space: nowrap; }

/* ---------------- 底部選單 ---------------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; z-index: 80;
    display: flex; justify-content: space-around; align-items: center;
    background: rgba(9,14,50,0.94); border-top: 2px solid var(--surface-border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    backdrop-filter: blur(6px);
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: none; background: none; color: var(--text-faint); font-size: 9.5px; font-weight: 800;
    padding: 8px 4px 7px; cursor: pointer; border-radius: 24px; font-family: inherit;
    transition: transform 0.08s ease; position: relative;
}
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; }
.nav-item:active { transform: scale(0.94); }
.nav-item.tab-active {
    color: #151d52;
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    box-shadow: 0 0 14px rgba(255,200,80,0.55);
}
.nav-item.tab-active svg { stroke: #151d52; }

/* =====================================================
   以下為補齊區塊：手機直式偵測、載入畫面、彈窗、公告、背包、排行榜等
===================================================== */

/* ---------------- 直向/橫向偵測 ---------------- */
.portrait-warning {
    display: none;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(9,14,40,0.96); color: #fff;
    flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 24px;
}
.portrait-warning-icon { font-size: 48px; margin-bottom: 16px; }
@media screen and (orientation: landscape) {
    .portrait-warning { display: flex; }
}

/* ---------------- 連線中載入畫面 ---------------- */
#loading-screen {
    position: fixed; inset: 0; z-index: 500;
    background: var(--paper-bg); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
}
#loading-screen .loading-spinner {
    width: 40px; height: 40px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.18); border-top-color: var(--gold-b);
    animation: spin 0.8s linear infinite;
}
#loading-screen p { font-size: 14px; font-weight: 700; color: var(--text-dim); }

/* ---------------- 彈出視窗（登入/註冊/改密碼/詳情） ---------------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(8,12,40,0.72);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
    width: 100%; max-width: 380px;
    background: linear-gradient(180deg, #3a52c0, #22307e);
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255,255,255,0.32);
    box-shadow: 0 10px 0 rgba(0,0,0,0.35), 0 0 30px rgba(80,110,255,0.4);
    padding: 24px 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.modal-card.auth-mode-login { border-color: #7ab8ff; box-shadow: 0 10px 0 rgba(0,0,0,0.35), 0 0 30px rgba(80,150,255,0.45); }
.modal-card.auth-mode-register { border-color: var(--gold-b); box-shadow: 0 10px 0 rgba(0,0,0,0.35), 0 0 30px rgba(255,200,80,0.45); }
.auth-mode-badge {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.auth-mode-login .auth-mode-badge { background: linear-gradient(180deg, #9cc6ff, #4f8ef0); color: #0c2a5e; }
.auth-mode-register .auth-mode-badge { background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); color: #5a3d00; }
.modal-header { text-align: center; margin-bottom: 16px; }
.modal-header h2 { font-size: 21px; font-weight: 800; color: #fff; }
.modal-sub { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.68); margin-top: 4px; }

.field-label { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.field-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.text-input {
    width: 100%; padding: 13px 18px; border-radius: 24px;
    border: 2px solid rgba(255,255,255,0.32); background: rgba(0,0,0,0.35);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    font-size: 14px; font-weight: 700;
    font-family: inherit; color: #fff;
}
.text-input::placeholder { color: rgba(255,255,255,0.55); }
.text-input:focus { outline: none; border-color: #ffe37a; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,227,122,0.25); }
.select-input {
    width: 100%; padding: 13px 40px 13px 18px; border-radius: 24px;
    border: 2px solid var(--surface-border); background: var(--surface-strong);
    font-size: 14px; font-weight: 700; font-family: inherit; color: #fff;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.select-input:focus { outline: none; border-color: #ffe37a; box-shadow: 0 0 0 3px rgba(255,227,122,0.25); }
.select-input option { color: #151d52; }

.notice-box { background: rgba(255,226,154,0.16); border: 2px solid var(--gold-b); border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.checkbox-label { display: flex; gap: 8px; font-size: 12px; font-weight: 600; align-items: flex-start; color: #fff; }
.checkbox-label input { margin-top: 2px; }

.error-text { color: #ff8a8a; font-size: 12px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.link-text { text-align: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); margin-top: 14px; cursor: pointer; }
.detail-meta { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.65); margin-top: 8px; }
.detail-modal-icon { text-align: center; font-size: 56px; margin-bottom: 10px; }
.detail-modal-icon img { max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 0 20px rgba(255,200,80,0.3); }
.news-content { cursor: pointer; }
.news-content.truncated::after { content: '⋯查看更多'; display: block; color: var(--gold-a); font-weight: 800; margin-top: 4px; font-size: 12px; }

.btn-primary {
    width: 100%; padding: 13px; border-radius: 28px;
    border: none;
    background: linear-gradient(180deg, var(--green-a), var(--green-b)); color: #0f3d10;
    box-shadow: 0 5px 0 var(--green-shadow);
    font-size: 16px; font-weight: 800; cursor: pointer;
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--green-shadow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2.5px solid rgba(0,0,0,0.25); border-top-color: #0f3d10;
    border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.password-field-wrap { position: relative; }
.password-field-wrap .text-input { padding-right: 60px; }
.password-toggle-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: none; background: none; color: rgba(255,255,255,0.7); font-size: 12px;
    font-weight: 800; padding: 6px 8px; cursor: pointer;
}

.avatar-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.avatar-choice {
    width: 46px; height: 46px; border-radius: 50%; font-size: 21px;
    border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.avatar-choice.selected {
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    border-color: #fff3c4;
}

/* ---------------- 使用者選單（頭像點擊） ---------------- */
.user-menu {
    position: absolute; top: 100%; margin-top: 6px; left: 14px; z-index: 20;
    background: #1c2660; border: 2px solid var(--surface-border); border-radius: 18px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.3); overflow: hidden; min-width: 140px;
}
.user-menu button {
    display: block; width: 100%; text-align: left; padding: 12px 16px;
    border: none; background: none; font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer; color: #fff;
}
.user-menu button:hover { background: rgba(255,255,255,0.08); }

/* ---------------- Banner 補充（空狀態/可點擊提示） ---------------- */
.banner-empty { background: var(--surface); color: var(--text-dim); text-align: center; }
.banner-eyebrow {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 2px;
    color: #fff; background: rgba(255,255,255,0.22); padding: 3px 12px; border-radius: 20px;
}
.banner-clickable { cursor: pointer; }
.banner-clickable:active { transform: scale(0.98); }
.banner-tap-hint {
    position: relative; z-index: 1; display: inline-block; margin-top: 12px;
    font-size: 13px; font-weight: 800; color: #8a2200;
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    padding: 9px 22px; border-radius: 24px;
}

/* ---------------- 通用小工具 ---------------- */
.section-label {
    display: inline-block; font-size: 11.5px; font-weight: 800; color: #cfe0ff;
    letter-spacing: 1.5px; background: rgba(255,255,255,0.1);
    padding: 5px 14px; border-radius: 20px; margin: 4px 0 12px;
}
.empty-hint { text-align: center; color: var(--text-dim); font-size: 13px; padding: 30px 0; font-weight: 600; }
.coin-icon { display: block; flex-shrink: 0; }
.nav-dot {
    position: absolute; top: 4px; right: 22px; width: 8px; height: 8px;
    border-radius: 50%; background: #ff4d6a; border: 1.5px solid #0c1230;
}

/* ---------------- 公告欄 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card {
    display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius-md);
    padding: 14px; border: 2px solid var(--surface-border); box-shadow: var(--hard-shadow);
}
.news-date {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-a), #f0a81f);
    display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7a3c00;
}
.news-title { font-size: 14.5px; font-weight: 800; color: #fff; }
.news-content { font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }
.news-body { min-width: 0; }

/* ---------------- 探索背包 ---------------- */
.bag-section { margin-bottom: 22px; }
.collectible-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.collectible {
    background: var(--surface); border: 2px solid var(--surface-border); border-radius: var(--radius-md);
    padding: 15px 6px 13px; text-align: center; box-shadow: var(--hard-shadow); cursor: pointer;
}
.collectible.locked { opacity: 0.45; filter: grayscale(0.7); box-shadow: none; }
.collectible-icon {
    width: 68px; height: 68px; margin: 0 auto; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    background: linear-gradient(160deg, #ffcf5c, #f08a1c);
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), 0 0 16px rgba(255,207,92,0.35);
}
.collectible-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.collectible-name { font-size: 11px; font-weight: 700; display: block; margin-top: 9px; color: rgba(255,255,255,0.9); }

/* ---------------- 排行榜 ---------------- */
.leaderboard-list {
    display: flex; flex-direction: column; gap: 9px;
    margin-top: 14px;
}
.lb-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px 10px 12px; border-radius: var(--radius-lg);
    background: var(--surface); border: 2px solid var(--surface-border);
    box-shadow: var(--hard-shadow);
    font-size: 13.5px; font-weight: 700;
}
.lb-rank { font-weight: 800; color: #fff; width: 22px; flex-shrink: 0; font-size: 15px; }
.lb-top1 { background: linear-gradient(180deg, var(--gold-avatar-a), var(--gold-avatar-b)); border-color: #fff3c4; }
.lb-top1 .lb-rank, .lb-top1 .lb-name, .lb-top1 .lb-score { color: #7a3c00; }
.lb-top2 .lb-rank { color: #e4e4e4; }
.lb-top3 .lb-rank { color: #e0a06a; }
.lb-name { flex: 1; color: #fff; }
.lb-score { font-weight: 800; color: #ffe9a8; }
.lb-top1 .lb-score { color: #7a3c00; }
.skeleton {
    height: 60px; border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.14) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%; animation: sk 1.4s ease infinite;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------- Toast 提示 ---------------- */
.toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    background: #1c2660; color: #fff; padding: 10px 18px; border-radius: 24px;
    border: 2px solid var(--surface-border);
    font-size: 13px; font-weight: 700; z-index: 300; animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
