/* ==================== 摸鱼专区样式 ==================== */
/* 使用项目已有的 CSS 变量体系 */

/* ====== 全局字体与可读性优化 ====== */
body,
[class^="lg-"],
[class*=" lg-"] {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ====== Banner 区域 ====== */
.lg-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
    padding: 40px 36px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
}

.lg-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 250px at 15% 50%, rgba(78, 110, 242, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 200px at 85% 50%, rgba(97, 77, 232, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lg-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.lg-banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.lg-banner-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    letter-spacing: 1px;
}

/* 每日一言 */
.lg-banner-quote {
    flex: 1;
    max-width: 420px;
    min-width: 260px;
    background: rgba(78, 110, 242, 0.04);
    border: 1px solid rgba(78, 110, 242, 0.1);
    border-radius: 12px;
    padding: 18px 22px;
    position: relative;
}

.lg-quote-text {
    font-size: 0.95rem;
    color: var(--text-bright);
    font-style: italic;
    line-height: 1.7;
    transition: opacity 0.3s;
}

.lg-quote-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.lg-quote-type {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.lg-quote-refresh {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    padding: 4px;
    border-radius: 6px;
}

.lg-quote-refresh:hover {
    opacity: 1;
    transform: rotate(180deg);
    background: rgba(78, 110, 242, 0.08);
}

/* ====== Tab 导航 ====== */
.lg-tabs {
    display: flex;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    position: sticky;
    top: 60px;
    z-index: 50;
    background: var(--bg-deep);
}

.lg-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-mid);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
}

.lg-tab:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.04);
}

.lg-tab.active {
    background: var(--ice);
    color: #fff;
    border-color: var(--ice);
    box-shadow: 0 4px 14px rgba(78, 110, 242, 0.25);
}

.lg-tab-icon {
    font-size: 1.1rem;
}

/* ====== Tab 面板 ====== */
.lg-tab-panel {
    display: none;
    animation: lgFadeIn 0.35s ease;
}

.lg-tab-panel.active {
    display: block;
}

@keyframes lgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== 通用卡片 ====== */
.lg-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.lg-card:hover {
    box-shadow: var(--card-shadow);
    border-color: rgba(78, 110, 242, 0.12);
}

.lg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(78, 110, 242, 0.015);
}

.lg-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    letter-spacing: 1px;
}

.lg-card-badge {
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(78, 110, 242, 0.08);
    color: var(--ice);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lg-card-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.lg-card-body {
    padding: 22px;
}

/* ====== 网格布局 ====== */
.lg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lg-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lg-card-full {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lg-card-full .lg-card-body {
    flex: 1;
}

/* ====== 摸鱼计时器 ====== */
.lg-timer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lg-timer-ring {
    position: relative;
    width: 180px;
    height: 180px;
}

.lg-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lg-timer-track {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 6;
}

.lg-timer-progress {
    fill: none;
    stroke: var(--ice);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear;
}

.lg-timer-ring.fishing-active .lg-timer-progress {
    animation: lgTimerPulse 2s ease-in-out infinite;
}

@keyframes lgTimerPulse {
    0%, 100% { stroke: var(--ice); filter: drop-shadow(0 0 4px rgba(78, 110, 242, 0.3)); }
    50% { stroke: #4ecdc4; filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.5)); }
}

.lg-timer-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lg-timer-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Courier New', 'SF Mono', monospace;
    color: var(--text-bright);
    letter-spacing: 2px;
}

.lg-timer-label {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.lg-timer-stat {
    font-size: 0.9rem;
    color: var(--text-mid);
}

.lg-timer-stat strong {
    color: var(--ice);
    font-weight: 700;
}

.lg-fish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
    font-family: inherit;
    letter-spacing: 1px;
}

.lg-fish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(78, 205, 196, 0.35);
}

.lg-fish-btn.fishing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.lg-fish-btn.fishing:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.35);
}

.lg-fish-btn-icon {
    font-size: 1.2rem;
}

.lg-login-hint {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
    padding: 8px 0;
    margin: 0;
}

/* ====== 倒计时看板 ====== */
.lg-countdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.countdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-deep);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s;
}

.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(78, 110, 242, 0.15);
}

.countdown-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 110, 242, 0.06);
    border-radius: 10px;
}

.countdown-info {
    min-width: 0;
    flex: 1;
}

.countdown-label {
    font-size: 0.88rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.countdown-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 2px 0;
}

.countdown-sub {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ====== 排行榜 ====== */
.lg-ranking {
    min-height: 200px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-subtle);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: rgba(78, 110, 242, 0.03);
}

.ranking-item.ranking-top {
    background: rgba(78, 110, 242, 0.03);
}

.ranking-item.ranking-top:first-child {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02));
}

.ranking-pos {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.ranking-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.08);
    border: 2px solid rgba(78, 110, 242, 0.15);
    color: var(--ice);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-bright);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-time {
    font-size: 0.9rem;
    color: var(--ice);
    font-weight: 700;
    white-space: nowrap;
    background: rgba(78, 110, 242, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ====== 匿名树洞 ====== */
.lg-treehole-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lg-treehole-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-bright);
    font-size: 0.92rem;
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    line-height: 1.6;
}

.lg-treehole-textarea:focus {
    outline: none;
    border-color: rgba(78, 110, 242, 0.4);
    box-shadow: 0 0 0 3px rgba(78, 110, 242, 0.08);
}

.lg-treehole-textarea::placeholder {
    color: var(--text-dim);
}

.lg-treehole-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.lg-char-count {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.lg-treehole-submit {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: var(--ice);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
}

.lg-treehole-submit:hover {
    box-shadow: 0 4px 14px rgba(78, 110, 242, 0.3);
    transform: translateY(-1px);
}

.lg-treehole-list-body {
    padding: 0;
}

.lg-treehole-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 0 22px;
}

.treehole-msg {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.treehole-msg:last-child {
    border-bottom: none;
}

.treehole-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.treehole-msg-body {
    flex: 1;
    min-width: 0;
}

.treehole-msg-content {
    font-size: 0.92rem;
    color: var(--text-bright);
    line-height: 1.7;
    word-break: break-word;
}

.treehole-msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.treehole-msg-time {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.treehole-like-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.treehole-like-btn:hover {
    background: rgba(78, 110, 242, 0.06);
    border-color: var(--border-subtle);
}

.treehole-like-btn.liked {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.06);
    border-color: rgba(255, 107, 107, 0.15);
}

.lg-load-more {
    padding: 16px 22px;
}

.lg-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px dashed var(--border-subtle);
    border-radius: 10px;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
    font-family: inherit;
}

.lg-more-btn:hover {
    border-color: var(--ice);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.03);
}

/* ====== 小游戏 ====== */
.lg-games-header {
    margin-bottom: 20px;
}

.lg-games-tip {
    color: var(--text-mid);
    font-size: 0.9rem;
    padding: 12px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    border-left: 3px solid var(--ice);
}

.lg-games-tip kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.88rem;
    font-family: 'SF Mono', 'Courier New', monospace;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--text-bright);
}

.lg-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lg-game-card {
    /* 游戏卡片 */
}

.lg-game-scores {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.lg-game-scores strong {
    color: var(--ice);
    font-weight: 800;
}

.lg-game-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#snakeCanvas {
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    max-width: 100%;
    display: block;
    background: var(--bg-deep);
}

.lg-game-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.lg-game-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ice), var(--gold));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
}

.lg-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 110, 242, 0.3);
}

.lg-game-mobile-pad {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lg-pad-row {
    display: flex;
    gap: 4px;
}

.lg-pad-btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--card-bg);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-pad-btn:active {
    background: var(--ice);
    transform: scale(0.92);
    border-color: var(--ice);
}

/* 游戏焦点高亮 */
.lg-game-card {
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.lg-game-card.lg-game-active {
    border-color: var(--ice);
    box-shadow: 0 0 16px rgba(78, 110, 242, 0.15);
}

/* 难度选择器 */
.lg-game-difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.lg-game-difficulty label {
    font-weight: 600;
    white-space: nowrap;
}

.lg-game-difficulty select {
    padding: 6px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-bright);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.lg-game-difficulty select:focus {
    border-color: var(--ice);
}

/* 游戏说明按钮 */
.lg-game-tips-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    background: var(--bg-deep);
    color: var(--text-mid);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
    margin-left: 6px;
    padding: 0;
    line-height: 1;
}

.lg-game-tips-btn:hover {
    background: var(--ice);
    color: #fff;
    border-color: var(--ice);
    transform: scale(1.1);
}

/* 游戏说明弹窗 */
.game-tips-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.game-tips-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.game-tips-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.game-tips-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-bright);
}

.game-tips-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--bg-deep);
    color: var(--text-mid);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-tips-modal-close:hover {
    background: #e74c3c;
    color: #fff;
}

.game-tips-modal-body {
    padding: 20px 22px;
}

.game-tips-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-tips-section h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: var(--ice);
}

.game-tips-section p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.game-tips-section ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.game-tips-section kbd {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.88rem;
    font-family: 'SF Mono', 'Courier New', monospace;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--text-bright);
    min-width: 20px;
    text-align: center;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 排行榜按钮 */
.lg-game-rank-btn {
    background: linear-gradient(135deg, #f6d365, #fda085) !important;
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
}

.lg-game-rank-btn:hover {
    box-shadow: 0 6px 20px rgba(253, 160, 133, 0.35) !important;
}

/* ==================== Wordle 猜词游戏 ==================== */
.lg-game-wordle-card {
    grid-column: 1 / -1; /* Wordle 占满整行 */
}

.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.wordle-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.wordle-cell {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-subtle, #d3d6da);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-bright, #1a1a2e);
    transition: transform 0.1s, border-color 0.15s;
    background: var(--card-bg, #fff);
    user-select: none;
}

.wordle-cell.wordle-filled {
    border-color: var(--text-mid, #878a8c);
    animation: wordlePop 0.1s ease;
}

.wordle-cell.wordle-active {
    border-color: var(--text-mid, #878a8c);
}

.wordle-cell.wordle-correct {
    background: #6aaa64;
    border-color: #6aaa64;
    color: #fff;
    animation: wordleFlip 0.5s ease;
}

.wordle-cell.wordle-present {
    background: #c9b458;
    border-color: #c9b458;
    color: #fff;
    animation: wordleFlip 0.5s ease;
}

.wordle-cell.wordle-absent {
    background: #787c7e;
    border-color: #787c7e;
    color: #fff;
    animation: wordleFlip 0.5s ease;
}

/* 翻转动画延迟 */
.wordle-pop-0 { animation-delay: 0s; }
.wordle-pop-1 { animation-delay: 0.1s; }
.wordle-pop-2 { animation-delay: 0.2s; }
.wordle-pop-3 { animation-delay: 0.3s; }
.wordle-pop-4 { animation-delay: 0.4s; }

@keyframes wordlePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes wordleFlip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

/* 抖动动画 */
.wordle-shake {
    animation: wordleShake 0.5s ease;
}

@keyframes wordleShake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-6px); }
    30%, 70% { transform: translateX(6px); }
}

/* 消息提示 */
.wordle-message {
    min-height: 28px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

/* 提示区域 */
.wordle-hint-area {
    min-height: 24px;
    text-align: center;
    font-size: 0.88rem;
    padding: 4px 16px;
    border-radius: 8px;
    color: var(--text-mid, #666);
    transition: all 0.3s;
}

.wordle-hint-area.wordle-hint-show {
    background: rgba(106, 170, 100, 0.08);
    color: var(--text-bright, #333);
    border: 1px dashed rgba(106, 170, 100, 0.3);
}

/* 提示揭示的字母 */
.wordle-cell.wordle-hint-reveal {
    border-color: #6aaa64;
    color: #6aaa64;
    background: rgba(106, 170, 100, 0.08);
    border-style: dashed;
    font-style: italic;
}

/* 提示按钮 */
.wordle-hint-btn {
    background: linear-gradient(135deg, #f6d365, #fda085) !important;
    color: #fff !important;
    border: none !important;
}

.wordle-hint-btn:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4) !important;
}

.wordle-hint-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.wordle-msg-win {
    color: #6aaa64;
    background: rgba(106, 170, 100, 0.12);
}

.wordle-msg-lose {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
}

.wordle-msg-warn {
    color: #c9b458;
    background: rgba(201, 180, 88, 0.12);
}

/* 虚拟键盘 */
.wordle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px;
    max-width: 500px;
    margin: 0 auto;
}

.wordle-kb-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.wordle-key {
    min-width: 36px;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: var(--bg-deep, #d3d6da);
    color: var(--text-bright, #1a1a2e);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    user-select: none;
    padding: 0 6px;
}

.wordle-key:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.wordle-key:active {
    transform: scale(0.95);
}

.wordle-key-wide {
    min-width: 56px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.wordle-key-correct {
    background: #6aaa64 !important;
    color: #fff !important;
}

.wordle-key-present {
    background: #c9b458 !important;
    color: #fff !important;
}

.wordle-key-absent {
    background: #787c7e !important;
    color: #fff !important;
}

/* 暗色模式适配 */
[data-theme="dark"] .wordle-cell {
    border-color: #3a3a3c;
    color: #fff;
    background: var(--card-bg);
}

[data-theme="dark"] .wordle-cell.wordle-filled,
[data-theme="dark"] .wordle-cell.wordle-active {
    border-color: #565758;
}

[data-theme="dark"] .wordle-cell.wordle-absent {
    background: #3a3a3c;
    border-color: #3a3a3c;
}

[data-theme="dark"] .wordle-key {
    background: #818384;
    color: #fff;
}

[data-theme="dark"] .wordle-key-absent {
    background: #3a3a3c !important;
}

[data-theme="dark"] .wordle-hint-area.wordle-hint-show {
    background: rgba(106, 170, 100, 0.12);
    border-color: rgba(106, 170, 100, 0.25);
    color: #d7dadc;
}

[data-theme="dark"] .wordle-cell.wordle-hint-reveal {
    color: #6aaa64;
    background: rgba(106, 170, 100, 0.12);
    border-color: #6aaa64;
}

/* 响应式 */
@media (max-width: 768px) {
    .wordle-cell {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .wordle-key {
        min-width: 28px;
        height: 44px;
        font-size: 0.88rem;
    }

    .wordle-key-wide {
        min-width: 44px;
    font-size: 0.88rem;
    }

    .lg-game-wordle-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .wordle-cell {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 6px;
    }

    .wordle-row {
        gap: 4px;
    }

    .wordle-key {
        min-width: 24px;
        height: 40px;
        font-size: 0.88rem;
        border-radius: 6px;
    }

    .wordle-key-wide {
        min-width: 38px;
    }

    .wordle-kb-row {
        gap: 3px;
    }
}

/* 游戏排行榜弹窗 */
.gl-modal {
    max-width: 480px;
}

.gl-diff-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.gl-diff-tab {
    padding: 5px 12px;
    border: 1.5px solid var(--border-color, #e8e8e8);
    border-radius: 16px;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-secondary, #999);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.gl-diff-tab:hover {
    border-color: var(--ice);
    color: var(--ice);
}

.gl-diff-tab.active {
    background: var(--ice);
    color: #fff;
    border-color: var(--ice);
}

.gl-my-info {
    margin-bottom: 12px;
}

.gl-my-rank {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(78, 110, 242, 0.08), rgba(246, 211, 101, 0.08));
    border: 1px solid rgba(78, 110, 242, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.gl-my-rank strong {
    color: var(--ice);
    font-weight: 800;
}

.gl-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.gl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-deep);
    transition: all 0.2s;
}

.gl-item:hover {
    background: rgba(78, 110, 242, 0.06);
}

.gl-rank-top.gl-rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.04));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.gl-rank-top.gl-rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.12), rgba(192, 192, 192, 0.04));
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.gl-rank-top.gl-rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12), rgba(205, 127, 50, 0.04));
    border: 1px solid rgba(205, 127, 50, 0.2);
}

.gl-rank {
    width: 28px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-mid);
    flex-shrink: 0;
}

.gl-rank-top .gl-rank {
    font-size: 1.2rem;
}

.gl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ice), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.gl-info {
    flex: 1;
    min-width: 0;
}

.gl-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-bright);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-plays {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-top: 2px;
}

.gl-score {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ice);
    flex-shrink: 0;
}

.gl-loading, .gl-empty {
    text-align: center;
    padding: 30px 0;
    color: var(--text-mid);
    font-size: 0.88rem;
}

/* 2048 棋盘 */
.lg-2048-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 380px;
    width: 100%;
    padding: 10px;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.tile-2048 {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.4rem;
    transition: all 0.15s;
    background: var(--card-bg);
    color: var(--text-bright);
}

.tile-0 { background: rgba(78, 110, 242, 0.03); color: transparent; }
.tile-2 { background: #eee4da; color: #776e65; }
.tile-4 { background: #ede0c8; color: #776e65; }
.tile-8 { background: #f2b179; color: #f9f6f2; }
.tile-16 { background: #f59563; color: #f9f6f2; }
.tile-32 { background: #f67c5f; color: #f9f6f2; }
.tile-64 { background: #f65e3b; color: #f9f6f2; }
.tile-128 { background: #edcf72; color: #f9f6f2; font-size: 1.2rem; box-shadow: 0 0 8px 2px rgba(237, 207, 114, 0.3); }
.tile-256 { background: #66bb6a; color: #f9f6f2; font-size: 1.2rem; box-shadow: 0 0 8px 2px rgba(102, 187, 106, 0.3); }
.tile-512 { background: #42a5f5; color: #f9f6f2; font-size: 1.2rem; box-shadow: 0 0 10px 3px rgba(66, 165, 245, 0.35); }
.tile-1024 { background: #ab47bc; color: #f9f6f2; font-size: 1rem; box-shadow: 0 0 12px 3px rgba(171, 71, 188, 0.4); }
.tile-2048 { background: #ef5350; color: #f9f6f2; font-size: 1rem; box-shadow: 0 0 15px 4px rgba(239, 83, 80, 0.45); }
.tile-4096 { background: #26c6da; color: #f9f6f2; font-size: 0.9rem; box-shadow: 0 0 18px 5px rgba(38, 198, 218, 0.5); }
.tile-8192 { background: #ff7043; color: #f9f6f2; font-size: 0.9rem; box-shadow: 0 0 20px 5px rgba(255, 112, 67, 0.5); }
.tile-16384 { background: #5c6bc0; color: #f9f6f2; font-size: 0.88rem; box-shadow: 0 0 22px 6px rgba(92, 107, 192, 0.5); }
.tile-32768 { background: #ec407a; color: #f9f6f2; font-size: 0.88rem; box-shadow: 0 0 25px 6px rgba(236, 64, 122, 0.5); }

/* ====== 加载状态 ====== */
.lg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.lg-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--ice);
    border-radius: 50%;
    animation: lgSpin 0.8s linear infinite;
}

@keyframes lgSpin {
    to { transform: rotate(360deg); }
}

.empty-hint {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* ====== 今天吃什么 - 老虎机模块 ====== */
.food-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.food-header-text {
    color: var(--text-mid);
    font-size: 0.95rem;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    border-left: 3px solid #ff6b6b;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.food-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.food-header-btn {
    padding: 10px 20px;
    border: 2px dashed;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: transparent;
}

.food-header-refresh {
    border-color: rgba(78, 205, 196, 0.3);
    color: var(--text-mid);
}

.food-header-refresh:hover {
    border-color: #4ecdc4;
    color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(78, 205, 196, 0.2);
}

.food-header-skip {
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--text-mid);
}

.food-header-skip:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.food-header-custom {
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text-mid);
}

.food-header-custom:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.2);
}

.food-header-ranking {
    border-color: rgba(255, 193, 7, 0.3);
    color: var(--text-mid);
}

.food-header-ranking:hover {
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.2);
}

/* 选菜排行榜弹窗 */
.food-ranking-card {
    max-width: 520px;
}

.food-rank-tabs {
    display: flex;
    gap: 6px;
    padding: 0 20px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.food-rank-tabs::-webkit-scrollbar {
    display: none;
}

.food-rank-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary, #999);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
}

.food-rank-tab:hover {
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.food-rank-tab.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.food-rank-content {
    padding: 0 20px 20px;
    max-height: 420px;
    overflow-y: auto;
}

.food-rank-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.food-rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.food-rank-item:hover {
    background: rgba(255, 193, 7, 0.03);
    border-color: rgba(255, 193, 7, 0.15);
}

.food-rank-top3 {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.04), rgba(255, 152, 0, 0.02));
    border-color: rgba(255, 193, 7, 0.12);
}

.food-rank-medal {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.food-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.food-rank-info {
    flex: 1;
    min-width: 0;
}

.food-rank-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.food-rank-bar-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.food-rank-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.food-rank-count {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffc107;
    white-space: nowrap;
    flex-shrink: 0;
}

.food-rank-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.food-rank-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.food-rank-empty p {
    font-size: 0.88rem;
    margin: 4px 0;
}

.food-rank-empty-sub {
    font-size: 0.88rem !important;
    opacity: 0.6;
}

.food-rank-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* 自定义菜品管理弹窗 */
.custom-food-card {
    max-width: 480px;
}

.custom-food-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    margin: 6px 0 0;
}

.custom-food-tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    margin-top: 12px;
}

.custom-food-tab {
    flex: 1;
    padding: 8px 4px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-mid, #666);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-align: center;
}

.custom-food-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.custom-food-tab.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.custom-food-add-bar {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    align-items: center;
}

.custom-food-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-primary, #333);
    outline: none;
    transition: border-color 0.3s;
}

.custom-food-input:focus {
    border-color: #667eea;
}

.custom-food-add-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.custom-food-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.custom-food-add-btn:active {
    transform: translateY(0);
}

.custom-food-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
    min-height: 120px;
    max-height: 40vh;
}

.custom-food-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--bg-color, #f8f9fa);
    border: 1px solid var(--border-color, #eee);
    transition: all 0.2s;
    animation: fadeInUp 0.3s ease;
}

.custom-food-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.custom-food-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #333);
}

.custom-food-item-del {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    opacity: 0.5;
}

.custom-food-item-del:hover {
    opacity: 1;
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.custom-food-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary, #999);
}

.custom-food-empty span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.custom-food-empty p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.custom-food-empty-sub {
    font-size: 0.88rem !important;
    opacity: 0.7;
}

.custom-food-tip {
    text-align: center;
    padding: 10px 24px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    flex-shrink: 0;
}

.food-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* 老虎机卡片 */
.food-slot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}

.food-slot-card:hover {
    box-shadow: var(--card-shadow);
    border-color: rgba(78, 110, 242, 0.15);
    transform: translateY(-2px);
}

.food-slot-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(78, 110, 242, 0.015);
}

.food-slot-emoji {
    font-size: 1.4rem;
}

.food-slot-title {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
}

.food-slot-remain {
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    font-weight: 600;
    white-space: nowrap;
}

.food-slot-remain.food-remain-empty {
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
}

/* 上次选的菜 */
.food-last-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: rgba(255, 193, 7, 0.04);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-muted);
    overflow: hidden;
}

.food-last-pick-label {
    white-space: nowrap;
    color: var(--text-muted);
    opacity: 0.8;
}

.food-last-pick-name {
    font-weight: 700;
    color: #f0a020;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.food-last-pick-time {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.88rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.food-slot-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* 老虎机窗口 */
.food-slot-window {
    width: 100%;
    height: 56px;
    background: var(--bg-deep);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.food-slot-window::before,
.food-slot-window::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 2;
    pointer-events: none;
}

.food-slot-window::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-deep), transparent);
}

.food-slot-window::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-deep), transparent);
}

.food-slot-reel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.food-slot-reel.spinning .food-slot-text {
    animation: foodSlotGlow 0.15s ease-in-out infinite alternate;
}

@keyframes foodSlotGlow {
    from { text-shadow: 0 0 4px rgba(78, 110, 242, 0.3); }
    to { text-shadow: 0 0 12px rgba(78, 205, 196, 0.6); }
}

.food-slot-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary, #999);
    text-align: center;
    transition: all 0.1s;
    letter-spacing: 1px;
    user-select: none;
    pointer-events: none;
}

.food-slot-flash {
    color: var(--ice);
}

.food-slot-final {
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: 800;
}

.food-slot-landed {
    animation: foodLand 0.5s ease;
}

@keyframes foodLand {
    0% { transform: scale(1.3); }
    40% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 抽取按钮 */
/* 按钮组（随机选 + 自选） */
.food-slot-btns {
    display: flex;
    gap: 8px;
}

.food-slot-btn-random {
    flex: 1;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.food-slot-btn-pick {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.food-slot-btn-pick:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.food-slot-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.food-slot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.food-slot-btn:active {
    transform: scale(0.97);
}

.food-slot-btn-drink {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.food-slot-btn-drink:hover {
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.food-slot-btn-luckin {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.food-slot-btn-luckin:hover {
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

/* ==================== 食物自选弹窗 ==================== */
.food-picker-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s;
}

.food-picker-card {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.food-picker-header {
    padding: 24px 50px 16px 24px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
    flex-shrink: 0;
}

.food-picker-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, #333);
}

.food-picker-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.food-picker-mode-tag {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-picker-mode-tag-single {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.food-picker-mode-tag-multi {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: modeTagPulse 0.4s ease;
}

@keyframes modeTagPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.food-picker-search input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-primary, #333);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.food-picker-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.food-picker-list {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.food-picker-item {
    padding: 8px 16px;
    border: 1.5px solid var(--border-color, #e8e8e8);
    border-radius: 20px;
    background: var(--card-bg, #fff);
    color: var(--text-primary, #333);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.food-picker-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.06);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.food-picker-item:active {
    transform: scale(0.96);
}

.food-picker-empty {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
}

/* 自选弹窗 - 模式切换栏 */
.food-picker-mode-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.food-picker-mode-bar .food-picker-search {
    flex: 1;
}

.food-picker-mode-btn {
    padding: 8px 14px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-mid, #666);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.food-picker-mode-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.food-picker-mode-btn.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

/* 自选弹窗 - 菜品来源筛选栏 */
.food-picker-filter-bar {
    display: flex;
    gap: 6px;
    padding: 0 24px 8px;
}

.food-picker-filter-btn {
    flex: 1;
    padding: 6px 8px;
    border: 1.5px solid var(--border-color, #e8e8e8);
    border-radius: 8px;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-secondary, #999);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    text-align: center;
}

.food-picker-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.food-picker-filter-btn.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 自选弹窗 - 分类筛选标签栏 */
.food-category-bar {
    display: flex;
    gap: 6px;
    padding: 2px 24px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
}

.food-category-bar::-webkit-scrollbar {
    display: none;
}

.food-category-tag {
    padding: 5px 12px;
    border: 1.5px solid var(--border-color, #e8e8e8);
    border-radius: 16px;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-secondary, #999);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.food-category-tag:hover {
    border-color: #f093fb;
    color: #c471ed;
}

.food-category-tag.active {
    border-color: #c471ed;
    background: linear-gradient(135deg, rgba(196, 113, 237, 0.1), rgba(240, 147, 251, 0.1));
    color: #c471ed;
}

.food-category-count {
    font-size: 0.88rem;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dim, #aaa);
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
}

.food-category-tag.active .food-category-count {
    background: rgba(196, 113, 237, 0.15);
    color: #c471ed;
}

/* 多选模式 - 选中状态 */
.food-picker-item-selected {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 自定义菜品标记 */
.food-picker-item-custom {
    position: relative;
}

.food-picker-custom-tag {
    font-size: 0.88rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
    vertical-align: middle;
}

.food-picker-check {
    font-size: 0.88rem;
    margin-right: 2px;
}

/* 多选模式 - 底部操作栏 */
.food-picker-multi-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color, #f0f0f0);
    background: var(--bg-color, #f8f9fa);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.food-picker-multi-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-mid, #666);
}

.food-picker-multi-actions {
    display: flex;
    gap: 8px;
}

.food-picker-multi-clear {
    padding: 8px 16px;
    border: 1.5px solid var(--border-color, #e8e8e8);
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim, #999);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.food-picker-multi-clear:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.food-picker-multi-random {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.food-picker-multi-random:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.food-picker-multi-random:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 多选随机动画 */
.food-picker-random-anim {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 20px;
}

.food-picker-random-title {
    font-size: 0.95rem;
    color: var(--text-mid, #666);
    font-weight: 600;
}

.food-picker-random-display {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    padding: 20px 40px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.04);
    min-width: 200px;
    text-align: center;
    transition: all 0.1s;
}

.food-picker-random-flash {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.08);
}

.food-picker-random-final {
    animation: foodPickerFinalPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #4a3db8;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

@keyframes foodPickerFinalPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.food-picker-random-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 400px;
}

.food-picker-random-tag {
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.15);
    color: var(--text-dim, #999);
    font-size: 0.88rem;
}

/* 瑞幸特殊样式 */
.food-slot-luckin {
    border-color: rgba(26, 115, 232, 0.15);
}

.food-slot-luckin .food-slot-head {
    background: rgba(26, 115, 232, 0.03);
}

.food-slot-window-luckin {
    border-color: rgba(26, 115, 232, 0.2);
}

/* 饮品特殊样式 */
.food-slot-drink {
    border-color: rgba(78, 205, 196, 0.15);
}

.food-slot-drink .food-slot-head {
    background: rgba(78, 205, 196, 0.03);
}

/* 结果展示 */
.food-slot-result {
    padding: 0 18px 16px;
    animation: foodResultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes foodResultPop {
    0% { opacity: 0; transform: translateY(-10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.food-result-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(78, 110, 242, 0.04));
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.food-result-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: foodResultShine 2s ease-in-out infinite;
}

@keyframes foodResultShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.food-result-emoji {
    font-size: 1.5rem;
    animation: food47Bounce 0.8s ease infinite alternate;
}

.food-result-text {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.food-result-text strong {
    color: #ff6b6b;
    font-weight: 800;
    font-size: 1rem;
}

/* 选餐确认按钮 */
.food-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 0 4px;
    animation: foodConfirmSlideIn 0.4s ease;
}

@keyframes foodConfirmSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.food-confirm-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.food-confirm-yes {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.food-confirm-yes:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.food-confirm-yes:active {
    transform: translateY(0);
}

.food-confirm-retry {
    background: rgba(120, 120, 140, 0.1);
    color: var(--text-mid);
    border: 1px solid rgba(120, 120, 140, 0.15);
}

.food-confirm-retry:hover {
    background: rgba(120, 120, 140, 0.18);
    transform: translateY(-1px);
}

.food-confirm-retry:active {
    transform: translateY(0);
}

.food-confirmed-label {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.9rem;
    color: #27ae60;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.08);
    border-radius: 8px;
    animation: foodConfirmSlideIn 0.3s ease;
}

/* 次数用完提示 */
.food-exhausted-tip {
    padding: 0 18px 16px;
    animation: foodResultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.food-exhausted-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 107, 107, 0.05);
    border: 1px dashed rgba(255, 107, 107, 0.2);
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.food-exhausted-inner span:first-child {
    font-size: 1.2rem;
}

/* 底部操作区 */
.food-bottom-area {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.food-skip-btn {
    padding: 14px 40px;
    border: 2px dashed rgba(255, 107, 107, 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.04), rgba(238, 90, 36, 0.02));
    color: var(--text-mid);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.food-skip-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(238, 90, 36, 0.04));
    opacity: 0;
    transition: opacity 0.3s;
}

.food-skip-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.15);
}

.food-skip-btn:hover::before {
    opacity: 1;
}

.food-refresh-btn {
    padding: 14px 40px;
    border: 2px dashed rgba(78, 205, 196, 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.04), rgba(68, 160, 141, 0.02));
    color: var(--text-mid);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.food-refresh-btn:hover {
    border-color: #4ecdc4;
    color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.15);
}

.food-refresh-btn .food-refresh-icon {
    display: inline-block;
    transition: transform 0.5s;
}

.food-refresh-btn:hover .food-refresh-icon {
    transform: rotate(360deg);
}

/* 吃47弹窗 */
.food-47-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lgFadeIn 0.3s ease;
}

.food-47-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.food-47-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: food47Bounce 0.6s ease infinite alternate;
}

@keyframes food47Bounce {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-10px) rotate(10deg); }
}

.food-47-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ff6b6b;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.food-47-desc {
    font-size: 0.92rem;
    color: var(--text-mid);
    margin-bottom: 24px;
    line-height: 1.6;
}

.food-47-close {
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
}

.food-47-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.food-47-shake {
    animation: food47Shake 0.6s ease;
}

@keyframes food47Shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-6px); }
    30%, 70% { transform: translateX(6px); }
}

/* ====== 响应式 ====== */
@media (max-width: 900px) {
    .lg-grid-2,
    .lg-games-grid {
        grid-template-columns: 1fr;
    }

    .food-slots-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lg-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .lg-banner-quote {
        max-width: 100%;
    }

    .lg-banner {
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {
    .lg-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 12px 0;
    }

    .lg-tabs::-webkit-scrollbar {
        display: none;
    }

    .lg-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .lg-countdown-grid {
        grid-template-columns: 1fr;
    }

    .lg-game-mobile-pad {
        display: flex;
    }

    .lg-timer-ring {
        width: 150px;
        height: 150px;
    }

    .lg-timer-value {
        font-size: 1.5rem;
    }

    .lg-banner-title {
        font-size: 1.4rem;
    }

    .lg-card-body {
        padding: 16px;
    }

    .lg-treehole-list {
        padding: 0 16px;
    }

    .food-slots-grid {
        grid-template-columns: 1fr;
    }

    .food-header {
        flex-direction: column;
        align-items: stretch;
    }

    .food-header-actions {
        justify-content: center;
    }

    .food-header-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .lg-tab-text {
        display: none;
    }

    .lg-tab {
        padding: 10px 16px;
    }

    .lg-tab-icon {
        font-size: 1.3rem;
    }
}

/* ==================== 饮品多级选择器 ==================== */
.drink-selector-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: drinkFadeIn 0.3s ease;
}

@keyframes drinkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.drink-selector-card {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: drinkSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drinkSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.drink-selector-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary, #999);
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.drink-selector-close:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.drink-selector-header {
    text-align: center;
    margin-bottom: 24px;
}

.drink-selector-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drink-selector-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #999);
    margin: 0;
}

/* 模式选择（随机 / 自选） */
.drink-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px 0;
}

.drink-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 18px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.drink-mode-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.drink-mode-random::before {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(255, 159, 67, 0.06));
}

.drink-mode-custom::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
}

.drink-mode-btn:hover::before {
    opacity: 1;
}

.drink-mode-random:hover {
    border-color: #ff6b6b;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
}

.drink-mode-custom:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.drink-mode-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.drink-mode-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.drink-mode-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #333);
}

.drink-mode-random .drink-mode-name {
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drink-mode-custom .drink-mode-name {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drink-mode-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    line-height: 1.5;
}

/* 随机老虎机窗口 */
.drink-random-slot {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.drink-random-window {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(255, 159, 67, 0.06));
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    transition: all 0.1s;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drink-random-flash {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 159, 67, 0.12));
}

.drink-random-done {
    border-color: #52c41a;
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.06), rgba(115, 209, 61, 0.06));
    animation: drinkRandomPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drinkRandomPop {
    from { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    to { transform: scale(1); }
}

.drink-random-final {
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

/* 品类标签（结果页） */
.drink-final-category {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    margin-bottom: 6px;
}

/* 步骤指示器 */
.drink-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 0 10px;
}

.drink-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.drink-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--bg-secondary, #f0f0f0);
    color: var(--text-secondary, #999);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.drink-step-dot.active .drink-step-num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.drink-step-dot.done .drink-step-num {
    background: #52c41a;
    color: #fff;
}

.drink-step-label {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    white-space: nowrap;
}

.drink-step-dot.active .drink-step-label {
    color: #667eea;
    font-weight: 600;
}

.drink-step-dot.done .drink-step-label {
    color: #52c41a;
}

.drink-step-line {
    width: 40px;
    height: 2px;
    background: var(--bg-secondary, #e0e0e0);
    margin: 0 6px;
    margin-bottom: 18px;
    transition: background 0.3s;
}

.drink-step-line.done {
    background: #52c41a;
}

/* 步骤内容 */
.drink-step-content {
    min-height: 200px;
}

.drink-step-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--text-primary, #333);
}

/* 选项网格 */
.drink-options-grid {
    display: grid;
    gap: 12px;
}

.drink-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.drink-brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.drink-item-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.drink-temp-grid,
.drink-sugar-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    max-width: 480px;
    margin: 0 auto;
}

/* 选项按钮 */
.drink-option-btn {
    padding: 16px 12px;
    border: 2px solid var(--border-color, #e8e8e8);
    border-radius: 14px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary, #333);
    position: relative;
    overflow: hidden;
}

.drink-option-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.2s;
}

.drink-option-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.drink-option-btn:hover::before {
    opacity: 1;
}

.drink-option-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 品类按钮 */
.drink-category-btn {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.drink-opt-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.drink-opt-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
}

.drink-opt-count {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    background: var(--bg-secondary, #f5f5f5);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 品牌按钮 */
.drink-brand-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
}

/* 口味按钮 */
.drink-item-btn {
    padding: 12px 10px;
    font-size: 0.9rem;
}

/* 随机按钮 */
.drink-random-btn {
    border-style: dashed;
    border-color: #ff6b6b;
    color: #ff6b6b;
    font-weight: 600;
    background: rgba(255, 107, 107, 0.03);
}

.drink-random-btn:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
}

/* 温度按钮 */
.drink-temp-btn {
    padding: 16px;
    font-size: 1rem;
}

/* 甜度按钮 */
.drink-sugar-btn {
    padding: 16px;
    font-size: 1rem;
}

/* 返回按钮 */
.drink-back-btn {
    display: block;
    margin: 20px auto 0;
    padding: 8px 20px;
    background: none;
    border: none;
    color: var(--text-secondary, #999);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.drink-back-btn:hover {
    color: #667eea;
}

/* 最终结果 */
.drink-final-result {
    text-align: center;
    padding: 20px 0;
    animation: drinkResultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drinkResultPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.drink-final-emoji {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: drinkEmojiBounce 0.6s ease infinite alternate;
}

@keyframes drinkEmojiBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

.drink-final-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin: 0 0 16px;
}

.drink-final-order {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto 20px;
    max-width: 400px;
}

.drink-final-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drink-final-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.drink-final-tag {
    padding: 4px 14px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
    border: 1px solid var(--border-color, #e8e8e8);
}

.drink-final-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.drink-again-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    border-color: transparent !important;
    padding: 12px 24px !important;
    font-weight: 600;
}

.drink-again-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.drink-close-btn {
    padding: 12px 24px !important;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 480px) {
    .drink-selector-card {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .drink-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .drink-brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .drink-item-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .drink-temp-grid,
    .drink-sugar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .drink-step-line {
        width: 20px;
    }

    .drink-final-name {
        font-size: 1.1rem;
    }
}

/* ==================== 各地美食探索模块 ==================== */
.local-food-section {
    margin-top: 28px;
}

.local-food-header {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: all 0.3s;
    user-select: none;
}

.local-food-header:hover {
    border-color: rgba(78, 110, 242, 0.2);
    box-shadow: 0 2px 12px rgba(78, 110, 242, 0.06);
}

.local-food-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.local-food-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.local-food-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 0;
}

.local-food-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-deep);
    color: var(--text-mid);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    flex-shrink: 0;
}

.local-food-toggle-btn:hover {
    border-color: rgba(78, 110, 242, 0.3);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.04);
}

.local-food-toggle-icon {
    font-size: 0.88rem;
    transition: transform 0.3s;
}

.local-food-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    margin-top: -1px;
}

/* 当卡片展开时，header底部圆角取消 */
.local-food-section.expanded .local-food-header {
    border-radius: 14px 14px 0 0;
}

.local-food-card:hover {
    box-shadow: var(--card-shadow);
}

/* 选择器区域 */
.local-food-selectors {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(78, 110, 242, 0.015);
    flex-wrap: wrap;
}

.local-food-select-group {
    flex: 1;
    min-width: 140px;
}

.local-food-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.local-food-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--input-bg, var(--bg-deep));
    color: var(--text-bright);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.local-food-select:focus {
    outline: none;
    border-color: rgba(78, 110, 242, 0.4);
    box-shadow: 0 0 0 3px rgba(78, 110, 242, 0.08);
}

.local-food-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.local-food-random-btn {
    padding: 10px 22px;
    border: 2px dashed rgba(255, 159, 67, 0.4);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.06), rgba(255, 107, 107, 0.04));
    color: var(--text-mid);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 1px;
}

.local-food-random-btn:hover {
    border-color: #ff9f43;
    color: #ff9f43;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.2);
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.1), rgba(255, 107, 107, 0.06));
}

/* 空状态 */
.local-food-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.local-food-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.local-food-empty p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* 加载状态 */
.local-food-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.local-food-loading-icon {
    font-size: 3rem;
    animation: localFoodSpin 1s ease-in-out infinite;
}

@keyframes localFoodSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.local-food-loading p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* 结果区域 */
.local-food-result {
    padding: 0;
}

.local-food-result-inner {
    padding: 22px;
}

.local-food-result-inner.local-food-animate {
    animation: localFoodFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes localFoodFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 地点标题 */
.local-food-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.local-food-location-icon {
    font-size: 1.3rem;
}

.local-food-location-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: 2px;
}

.local-food-random-badge {
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.12), rgba(255, 107, 107, 0.08));
    color: #ff9f43;
    font-weight: 600;
    margin-left: auto;
}

/* 分区块 */
.local-food-section-block {
    margin-bottom: 18px;
}

.local-food-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 10px;
    letter-spacing: 1px;
}

/* 今日推荐 */
.local-food-picks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.local-food-pick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(78, 110, 242, 0.04));
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 12px;
    flex: 1;
    min-width: 120px;
    transition: all 0.25s;
}

.local-food-pick-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.local-food-pick-num {
    font-size: 1.1rem;
    color: #ff6b6b;
    font-weight: 800;
}

.local-food-pick-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
}

/* 特色美食标签 */
.local-food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.local-food-tag {
    padding: 6px 14px;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-mid);
    transition: all 0.2s;
    cursor: default;
}

.local-food-tag:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.04);
    transform: translateY(-1px);
}

/* 推荐去处 */
.local-food-restaurants {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.local-food-restaurant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-deep);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    font-size: 0.88rem;
    color: var(--text-bright);
}

.local-food-restaurant-item:hover {
    border-color: rgba(78, 110, 242, 0.15);
    transform: translateX(4px);
}

.local-food-restaurant-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.local-food-more-restaurants {
    text-align: center;
    padding: 8px;
    color: var(--ice);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.local-food-more-restaurants:hover {
    background: rgba(78, 110, 242, 0.04);
}

.local-food-all-restaurants {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    animation: localFoodFadeIn 0.3s ease;
}

/* 小贴士 */
.local-food-tips {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.06), rgba(78, 110, 242, 0.04));
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.local-food-tips-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.local-food-tips-text {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* 操作按钮 */
.local-food-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.local-food-action-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
}

.local-food-reshuffle {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
}

.local-food-reshuffle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.35);
}

.local-food-random-another {
    background: linear-gradient(135deg, #ff9f43, #ee5a24);
    color: #fff;
}

.local-food-random-another:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.35);
}

/* 响应式 */
@media (max-width: 768px) {
    .local-food-selectors {
        flex-direction: column;
        align-items: stretch;
    }
    
    .local-food-select-group {
        min-width: 100%;
    }
    
    .local-food-random-btn {
        width: 100%;
        text-align: center;
    }
    
    .local-food-picks {
        flex-direction: column;
    }
    
    .local-food-pick-item {
        min-width: 100%;
    }
    
    .local-food-actions {
        flex-direction: column;
    }
    
    .local-food-action-btn {
        width: 100%;
    }
}

/* ==================== 微信提醒模块 ==================== */
.notify-section {
    animation: fadeInUp 0.4s ease;
}

.notify-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    margin-bottom: 20px;
}

.notify-intro-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.notify-intro-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #333);
}

.notify-intro-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #888);
    line-height: 1.5;
}

.notify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.notify-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Token 配置区域 */
.notify-status-badge {
    font-size: 0.88rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.notify-status-off {
    background: rgba(150, 150, 160, 0.1);
    color: var(--text-secondary, #999);
}

.notify-status-on {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.notify-status-paused {
    background: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
}

/* 配置步骤 */
.notify-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.notify-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-mid, #666);
}

.notify-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notify-step strong {
    color: #667eea;
}

/* Token 输入框 */
.notify-token-input-group {
    display: flex;
    gap: 8px;
}

.notify-token-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid rgba(120, 120, 140, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
    outline: none;
    transition: border-color 0.2s;
}

.notify-token-input:focus {
    border-color: #667eea;
}

.notify-token-save-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.notify-token-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 已配置状态 */
.notify-token-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(82, 196, 26, 0.06);
    border: 1px solid rgba(82, 196, 26, 0.15);
    border-radius: 10px;
    margin-bottom: 12px;
}

.notify-token-label {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    white-space: nowrap;
}

.notify-token-masked {
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: var(--text-primary, #333);
    letter-spacing: 1px;
}

.notify-config-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notify-action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notify-test-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.notify-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.notify-toggle-btn {
    background: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
}

.notify-toggle-btn:hover {
    background: rgba(255, 159, 67, 0.18);
}

.notify-resume-btn {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.notify-resume-btn:hover {
    background: rgba(82, 196, 26, 0.18);
}

.notify-unbind-btn {
    background: rgba(255, 77, 79, 0.08);
    color: #ff4d4f;
}

.notify-unbind-btn:hover {
    background: rgba(255, 77, 79, 0.15);
}

/* 提醒任务列表 */
.notify-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid rgba(120, 120, 140, 0.08);
    margin-bottom: 12px;
}

.notify-preset-label {
    font-size: 0.88rem;
    color: var(--text-secondary, #999);
    white-space: nowrap;
}

.notify-preset-btn {
    padding: 5px 12px;
    border: 1.5px dashed rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    background: transparent;
    color: #667eea;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notify-preset-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: #667eea;
    transform: translateY(-1px);
}

.notify-add-task-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notify-add-task-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 任务卡片 */
.notify-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.notify-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(102, 126, 234, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    transition: all 0.2s;
}

.notify-task-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.notify-task-disabled {
    opacity: 0.5;
}

.notify-task-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notify-task-time {
    font-size: 1.4rem;
    font-weight: 800;
    color: #667eea;
    font-family: 'Courier New', monospace;
    min-width: 60px;
}

.notify-task-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notify-task-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #333);
}

.notify-task-repeat {
    font-size: 0.9rem;
    color: var(--text-secondary, #999);
}

.notify-task-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 开关样式 */
.notify-task-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.notify-task-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.notify-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(120, 120, 140, 0.2);
    border-radius: 22px;
    transition: 0.3s;
}

.notify-switch-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.notify-task-switch input:checked + .notify-switch-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.notify-task-switch input:checked + .notify-switch-slider:before {
    transform: translateX(18px);
}

.notify-task-edit,
.notify-task-delete {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    padding: 4px;
}

.notify-task-edit:hover,
.notify-task-delete:hover {
    opacity: 1;
}

/* 推送日志 */
.notify-refresh-log-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.notify-refresh-log-btn:hover {
    background: rgba(120, 120, 140, 0.1);
}

.notify-logs {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notify-log-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(120, 120, 140, 0.03);
    border-radius: 8px;
    font-size: 0.88rem;
}

.notify-log-status {
    flex-shrink: 0;
}

.notify-log-title {
    flex: 1;
    color: var(--text-primary, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notify-log-time {
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
    white-space: nowrap;
}

.notify-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
}

/* 新建提醒弹窗 */
.notify-task-modal-card {
    max-width: 480px;
}

.notify-task-form {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notify-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notify-form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid, #666);
}

.notify-form-input,
.notify-form-textarea,
.notify-form-select {
    padding: 10px 14px;
    border: 1.5px solid rgba(120, 120, 140, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.notify-form-input:focus,
.notify-form-textarea:focus,
.notify-form-select:focus {
    border-color: #667eea;
}

.notify-form-textarea {
    resize: vertical;
    min-height: 70px;
}

.notify-form-row {
    display: flex;
    gap: 12px;
}

.notify-form-half {
    flex: 1;
}

.notify-time-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notify-time-select {
    flex: 1;
    padding: 10px 8px;
    border: 1.5px solid rgba(120, 120, 140, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
    outline: none;
    cursor: pointer;
}

.notify-time-select:focus {
    border-color: #667eea;
}

.notify-time-sep {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-mid, #666);
}

/* 自定义星期选择器 */
.notify-weekday-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notify-weekday-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid rgba(120, 120, 140, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
}

.notify-weekday-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.notify-weekday-item input[type="checkbox"] {
    accent-color: #667eea;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.notify-weekday-item:has(input:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    font-weight: 600;
}

.notify-form-submit {
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.notify-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

/* 响应式 */
@media (max-width: 768px) {
    .notify-grid {
        grid-template-columns: 1fr;
    }

    .notify-intro {
        flex-direction: column;
        text-align: center;
    }

    .notify-config-actions {
        justify-content: center;
    }

    .notify-presets {
        justify-content: center;
    }

    .notify-task-time {
        font-size: 1.1rem;
        min-width: 50px;
    }

    .notify-form-row {
        flex-direction: column;
    }
}
