﻿@charset "utf-8";
/* ============================================================
   🌾 呆呆农场 - 样式表（整理版）
   ============================================================ */

/* ============================================================
   1. 重置 & 基础
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #43a047;
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

html,
body {
    scrollbar-width: thin;
    scrollbar-color: #43a047 rgba(255, 255, 255, 0.08);
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(145deg, #0d1f0f 0%, #1a3a1e 40%, #2a5a2a 100%);
    min-height: 100vh;
    padding: 12px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(67, 160, 71, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ============================================================
   2. 头部
   ============================================================ */
.header {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.header:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.header-logo-row {
    text-align: center;
    padding: 4px 0 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
    width: 100%;
}

.farm-logo {
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}
.farm-logo:hover {
    transform: scale(1.02);
}

.farm-slogan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    letter-spacing: 3px;
    font-weight: 300;
}

.header-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 16px 4px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.user-display:hover {
    background: rgba(255, 255, 255, 0.12);
}

.user-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}
.user-display:hover .user-avatar-img {
    border-color: #43a047;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.header-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.header-stats .stat-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.header-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}
.header-stats .stat-item .num.gold {
    color: #ffd54f;
    font-weight: 700;
}
.header-stats .stat-item .num.diamond {
    color: #b388ff;
    font-weight: 700;
}
.header-stats .stat-item .num.green {
    color: #81c784;
    font-weight: 700;
}

.header-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}
.header-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.header-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.header-right button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(4px);
}
.header-right button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.header-right button:active {
    transform: scale(0.95);
}

.header-badge {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 10px;
    padding: 0 6px;
    border-radius: 12px;
    line-height: 18px;
    min-width: 16px;
    text-align: center;
    margin-left: 4px;
}

/* ============================================================
   3. 功能通栏
   ============================================================ */
.action-bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 20px;
    gap: 6px;
    padding: 6px 20px;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    position: relative;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.04);
}

.action-badge {
    background: #ef5350;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 0px 6px;
    border-radius: 10px;
    line-height: 16px;
    min-width: 16px;
    text-align: center;
    display: none;
}
.action-badge:not(:empty) {
    display: inline-block;
}

/* ★★★ 更多下拉菜单 ★★★ */
#moreDropdown {
    display: none;
    position: fixed !important;
    bottom: 40px !important;
    top: auto !important;
    right: 10px !important;
    left: auto !important;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 99999;
    min-width: 150px;
    padding: 6px 0;
    overflow: hidden;
}

#moreDropdown button {
    display: block;
    width: 100%;
    padding: 10px 18px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    transition: all 0.15s;
}
#moreDropdown button:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* ============================================================
   4. 功能按钮网格（休闲钓鱼、猫咪小屋等）
   ============================================================ */
.feature-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 4px 0;
    grid-column: 1 / -1;
    overflow-x: auto;
}

.feature-grid .feature-btn {
    flex: 0 0 auto;
    padding: 14px 16px;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.feature-grid #dataBoardContainer {
    flex: 1;
    min-width: 80px;
    min-height: 56px;
    padding: 0 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e65100, #bf360c);
    border: 2px solid #ff8f00;
    color: #fff;
    font-size: 13px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.feature-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.feature-btn:active {
    transform: scale(0.95);
}
.feature-btn:hover {
    /*transform: translateY(-3px) scale(1.02);*/
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.feature-btn.btn-fish { background: linear-gradient(135deg, #42a5f5, #1565c0); }
.feature-btn.btn-fish:hover { background: linear-gradient(135deg, #64b5f6, #0d47a1); }
.feature-btn.btn-cat { background: linear-gradient(135deg, #ff8a65, #bf360c); }
.feature-btn.btn-cat:hover { background: linear-gradient(135deg, #ffab91, #d84315); }
.feature-btn.btn-pig { background: linear-gradient(135deg, #f06292, #ad1457); }
.feature-btn.btn-pig:hover { background: linear-gradient(135deg, #f48fb1, #880e4f); }
.feature-btn.btn-cow { background: linear-gradient(135deg, #8d6e63, #4e342e); }
.feature-btn.btn-cow:hover { background: linear-gradient(135deg, #a1887f, #5d4037); }
.feature-btn.btn-order { background: linear-gradient(135deg, #ff8f00, #e65100); }
.feature-btn.btn-order:hover { background: linear-gradient(135deg, #ffb300, #bf360c); }
.feature-btn.btn-factory { background: linear-gradient(135deg, #D32F2F, #B71C1C); }
.feature-btn.btn-factory:hover { background: linear-gradient(135deg, #E53935, #C62828); }
.feature-btn.btn-activity { background: linear-gradient(135deg, #FFD700, #6A1B9A); }
.feature-btn.btn-activity:hover { background: linear-gradient(135deg, #FFE082, #7B1FA2); }

/* ============================================================
   5. 消息通栏
   ============================================================ */
.message-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.95), rgba(255, 243, 224, 0.95));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 204, 2, 0.3);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    color: #5d4037;
    position: relative;
    cursor: default;
    min-height: 44px;
    grid-column: 1 / -1;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
}
.message-bar:hover {
    border-color: rgba(255, 204, 2, 0.5);
}

.message-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    overflow: hidden;
}
.message-content .msg-icon { font-size: 20px; flex-shrink: 0; }
.message-content .msg-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.message-content .msg-time { font-size: 11px; color: #999; flex-shrink: 0; }

.message-close {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 0 6px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.message-close:hover { color: #333; }

/* ============================================================
   6. 等级进度
   ============================================================ */
.level-progress {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.level-progress:hover {
    border-color: rgba(255, 255, 255, 0.1);
}
.level-progress .level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.level-progress .level-info .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
}
.level-progress .level-info .value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.level-progress .level-info .value .highlight { color: #ffd54f; }

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.progress-track .progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffb300, #ffd54f, #ffb300);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
    transition: width 0.8s ease;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================================
   7. 土地网格
   ============================================================ */
.plots-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.plots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   8. 单块土地
   ============================================================ */
.plot {
    aspect-ratio: 1 / 1.05;
    background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.5) 0%, rgba(101, 67, 33, 0.7) 100%);
    border-radius: 14px;
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    min-height: 140px;
    box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.plot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}
.plot:hover:not(.locked) {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.25);
}
.plot:active:not(.locked) { transform: scale(0.96); }

.plot.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: radial-gradient(ellipse at center, rgba(60, 60, 60, 0.6) 0%, rgba(30, 30, 30, 0.8) 100%);
}
.plot.locked .lock-icon { font-size: 36px; opacity: 0.4; }
.plot.locked .lock-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    margin-top: 4px;
}

.plot.status-idle { border-color: rgba(255, 255, 255, 0.06); }
.plot.status-growing { border-color: rgba(66, 165, 245, 0.3); box-shadow: inset 0 -4px 20px rgba(0,0,0,0.3), 0 0 30px rgba(66,165,245,0.05); }
.plot.status-ready {
    border-color: #ffb300;
    animation: glow-gold 2s ease-in-out infinite;
    box-shadow: inset 0 -4px 20px rgba(0,0,0,0.3), 0 0 40px rgba(255,179,0,0.15);
}
.plot.status-weed { border-color: rgba(139, 195, 74, 0.4); }
.plot.status-bug { border-color: rgba(239, 83, 80, 0.4); }
.plot.status-shield {
    border-color: #26c6da;
    box-shadow: inset 0 -4px 20px rgba(0,0,0,0.3), 0 0 40px rgba(38,198,218,0.15);
}

@keyframes glow-gold {
    0%, 100% { box-shadow: inset 0 -4px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255,179,0,0.1); }
    50% { box-shadow: inset 0 -4px 20px rgba(0,0,0,0.3), 0 0 60px rgba(255,179,0,0.25); }
}

.plot .plot-number {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.plot .plant-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 2px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}
.plot:hover:not(.locked) .plant-icon { transform: scale(1.05); }
.plot.status-ready .plant-icon { animation: bounce-plant 1.5s ease-in-out infinite; }

@keyframes bounce-plant {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.plot .status-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    text-align: center;
}
.plot .status-text .badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.plot .status-text .badge.ready { background: #ffb300; color: #000; }
.plot .status-text .badge.growing { background: #42a5f5; color: #fff; }
.plot .status-text .badge.weed { background: #8bc34a; color: #fff; }
.plot .status-text .badge.bug { background: #ef5350; color: #fff; }
.plot .status-text .badge.shield { background: #26c6da; color: #fff; }

.plot .countdown {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-top: 2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.plot .countdown .time.urgent {
    color: #ef5350;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.plot .plot-actions {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.plot .plot-actions button {
    padding: 3px 12px;
    font-size: 10px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}
.plot .plot-actions button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.plot .plot-actions button:active { transform: scale(0.92); }

.btn-plant { background: linear-gradient(135deg, #66bb6a, #2e7d32) !important; }
.btn-harvest { background: linear-gradient(135deg, #ffd54f, #f9a825) !important; color: #333 !important; }
.btn-weed { background: linear-gradient(135deg, #8bc34a, #558b2f) !important; }
.btn-debug { background: linear-gradient(135deg, #ef5350, #c62828) !important; }
.btn-fertilize { background: linear-gradient(135deg, #42a5f5, #0d47a1) !important; }
.btn-speedup { background: linear-gradient(135deg, #ab47bc, #4a148c) !important; }
.btn-shovel { background: linear-gradient(135deg, #8d6e63, #4e342e) !important; }
.btn-shield { background: linear-gradient(135deg, #26c6da, #00838f) !important; }
.btn-shield:hover { background: linear-gradient(135deg, #4dd0e1, #0097a7) !important; }

/* ============================================================
   9. 侧边栏
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-btn {
    padding: 20px 16px;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}
.sidebar-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.sidebar-btn:active { transform: scale(0.95); }
.sidebar-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}
.sidebar-btn.btn-diamond-shop { background: linear-gradient(135deg, #7c4dff, #4a148c); }
.sidebar-btn.btn-diamond-shop:hover { background: linear-gradient(135deg, #8e6eff, #6a1b9a); }
.sidebar-btn.btn-seed { background: linear-gradient(135deg, #43a047, #1b5e20); }
.sidebar-btn.btn-seed:hover { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.sidebar-btn.btn-item { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.sidebar-btn.btn-item:hover { background: linear-gradient(135deg, #42a5f5, #1565c0); }

/* ============================================================
   10. 快捷操作
   ============================================================ */
.quick-actions {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.quick-actions:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.quick-actions h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
    letter-spacing: 0.5px;
}
.quick-actions .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.quick-actions .grid button {
    padding: 10px 6px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}
.quick-actions .grid button:active { transform: scale(0.93); }
.quick-actions .grid button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.quick-actions .btn-green { background: linear-gradient(135deg, #43a047, #1b5e20); }
.quick-actions .btn-red { background: linear-gradient(135deg, #ef5350, #b71c1c); }
.quick-actions .btn-gold { background: linear-gradient(135deg, #ffb300, #f57f17); color: #000 !important; }
.quick-actions .btn-blue { background: linear-gradient(135deg, #42a5f5, #0d47a1); }
.quick-actions .btn-purple { background: linear-gradient(135deg, #ab47bc, #4a148c); }
.quick-actions .btn-weed { background: linear-gradient(135deg, #26c6da, #00695c); }
.quick-actions .btn-orange { background: linear-gradient(135deg, #ff9800, #bf360c); }

/* ============================================================
   11. 弹窗
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.modal-box::-webkit-scrollbar-thumb { background: #43a047; border-radius: 3px; }
.modal-box::-webkit-scrollbar-thumb:hover { background: #2e7d32; }
.modal-box { scrollbar-width: thin; scrollbar-color: #43a047 #f0f0f0; }

@keyframes modalIn {
    from { transform: scale(0.85) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-box .modal-icon { font-size: 48px; text-align: center; margin-bottom: 4px; }
.modal-box .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.modal-box .modal-body {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-box .btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.modal-box .btn-group button {
    padding: 10px 32px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-box .btn-group button:active { transform: scale(0.94); }

.modal-box .btn-group .btn-confirm { background: linear-gradient(135deg, #43a047, #2e7d32); color: #fff; }
.modal-box .btn-group .btn-confirm:hover { box-shadow: 0 4px 24px rgba(67,160,71,0.4); transform: translateY(-2px); }
.modal-box .btn-group .btn-cancel { background: #f5f5f5; color: #555; }
.modal-box .btn-group .btn-cancel:hover { background: #eee; transform: translateY(-2px); }
.modal-box .btn-group .btn-danger { background: linear-gradient(135deg, #ef5350, #c62828); color: #fff; }
.modal-box .btn-group .btn-danger:hover { box-shadow: 0 4px 24px rgba(239,83,80,0.4); transform: translateY(-2px); }
.modal-box .btn-group .btn-steal { background: linear-gradient(135deg, #ff6f00, #e65100); color: #fff; }
.modal-box .btn-group .btn-steal:hover { box-shadow: 0 4px 24px rgba(255,111,0,0.4); transform: translateY(-2px); }

.btn-diamond {
    background: linear-gradient(135deg, #7c4dff, #651fff) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(101, 31, 255, 0.35) !important;
}
.btn-diamond:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 6px 24px rgba(101, 31, 255, 0.5) !important;
}
.btn-diamond:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ============================================================
   12. 商店
   ============================================================ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 4px 0;
}

.shop-card {
    background: #f8f9fa;
    border: 2px solid #e8ecef;
    border-radius: 14px;
    padding: 14px 4px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 100px;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: #43a047;
    background: #e8f5e9;
    box-shadow: 0 6px 24px rgba(67, 160, 71, 0.15);
}
.shop-card:active { transform: scale(0.95); }
.shop-card .shop-card-icon { font-size: 32px; line-height: 1.2; }
.shop-card .shop-card-name {
    font-weight: 600;
    font-size: 13px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.shop-card .shop-card-name .stock-badge {
    font-size: 9px;
    padding: 1px 8px;
    background: #43a047;
    color: #fff;
    border-radius: 12px;
    font-weight: 400;
}
.shop-card .shop-card-price {
    font-weight: 700;
    color: #ef5350;
    font-size: 13px;
    margin-top: 2px;
}

.shop-list .shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    background: #fafafa;
}
.shop-list .shop-item:hover {
    border-color: #43a047;
    background: #e8f5e9;
    transform: translateX(4px);
}
.shop-list .shop-item .left { display: flex; align-items: center; gap: 10px; }
.shop-list .shop-item .left .emoji { font-size: 28px; }
.shop-list .shop-item .left .info .name { font-weight: 600; color: #1a1a2e; }
.shop-list .shop-item .left .info .detail { font-size: 12px; color: #999; }
.shop-list .shop-item .right { font-weight: 700; color: #ef5350; font-size: 14px; }

/* ★★★ 钻石卡片 ★★★ */
.shop-card-diamond {
    background: linear-gradient(135deg, #f3e5f5, #ede7f6) !important;
    border: 2px solid #7c4dff !important;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.15) !important;
}
.shop-card-diamond:hover {
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.3) !important;
}
.diamond-tag {
    font-size: 9px;
    color: #7c4dff;
    background: #ede7f6;
    border-radius: 4px;
    padding: 1px 8px;
    display: inline-block;
    margin-top: 2px;
    font-weight: 600;
}
.price-diamond { color: #7c4dff !important; font-weight: 700; }

/* ============================================================
   13. Toast
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: 90%;
    max-width: 420px;
}
.toast {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    text-align: center;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.toast.success { border-left: 4px solid #43a047; }
.toast.error { border-left: 4px solid #ef5350; }
.toast.warning { border-left: 4px solid #ffb300; }

@keyframes toastIn {
    from { transform: translateY(-40px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============================================================
   14. 通用组件
   ============================================================ */
.stock-badge {
    background: #43a047;
    color: #fff;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

.friend-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef5350;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 4px;
}
.user-list-item:hover { background: #e8f5e9; }
.user-list-item .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 120px;
}
.user-list-item .user-info .name { font-weight: 600; font-size: 14px; }
.user-list-item .user-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.user-list-item .user-actions button {
    padding: 3px 12px;
    border: none;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff !important;
}
.user-list-item .user-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.user-list-item .user-actions .btn-add { background: #43a047; }
.user-list-item .user-actions .btn-view { background: #42a5f5; }
.user-list-item .user-actions .btn-friend { background: #ffb300; color: #000 !important; }
.user-list-item .user-actions .btn-steal { background: #ff6f00; }
.user-list-item .user-actions .btn-remove { background: #ef5350; }

.qty-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 12px 0;
}
.qty-input-group input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}
.qty-input-group input:focus { border-color: #43a047; }
.qty-input-group .qty-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    background: #e8f5e9;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
    transition: all 0.2s ease;
}
.qty-input-group .qty-btn:active { transform: scale(0.92); }
.qty-input-group .qty-btn:hover { background: #c8e6c9; }

.message-badge {
    display: none;
    font-size: 10px;
    color: #999;
    background: #f5f5f5;
    padding: 0 8px;
    border-radius: 12px;
    flex-shrink: 0;
    font-weight: 600;
}

.dog-status-energetic { background: #c8e6c9; color: #2e7d32; padding: 2px 12px; border-radius: 14px; }
.dog-status-good { background: #c8e6c9; color: #2e7d32; padding: 2px 12px; border-radius: 14px; }
.dog-status-hungry { background: #fff3e0; color: #e65100; padding: 2px 12px; border-radius: 14px; }
.dog-status-very-hungry { background: #ffccbc; color: #bf360c; padding: 2px 12px; border-radius: 14px; }
.dog-status-starving { background: #ffcdd2; color: #c62828; padding: 2px 12px; border-radius: 14px; }
.dog-status-none { background: #e0e0e0; color: #757575; padding: 2px 12px; border-radius: 14px; }

/* ============================================================
   15. 响应式
   ============================================================ */
/* 平板 */
@media (max-width: 1024px) {
    .plots-grid { grid-template-columns: repeat(4, 1fr); }
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 手机 */
@media (max-width: 768px) {
    .app-container { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .plots-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .plot { min-height: 120px; }
    .plot .plant-icon { font-size: 38px; }
    .plot .status-text { font-size: 11px; }
    .plot .countdown { font-size: 12px; }
    .plot .plot-actions button { font-size: 9px; padding: 2px 8px; }
    .farm-logo { height: 78px; }
    .farm-slogan { font-size: 11px; letter-spacing: 1px; }
    .header-info-row { flex-direction: column; gap: 10px; align-items: stretch; }
    .header-left { justify-content: center; flex-wrap: wrap; }
    .header-right { justify-content: center; }
    .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .shop-card { min-height: 80px; padding: 10px 4px; }
    .shop-card .shop-card-icon { font-size: 26px; }
    .shop-card .shop-card-name { font-size: 12px; }
    .shop-card .shop-card-price { font-size: 12px; }
	.feature-grid {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px;
    }
    .feature-grid .feature-btn {
        flex: 0 0 calc(33.33% - 8px);
        min-height: 44px;
        font-size: 12px;
        padding: 10px 6px;
        border-radius: 12px;
        white-space: normal;
    }
    #dataBoardContainer {
        flex: 1;
        min-width: 80px;
        min-height: 56px;
        padding: 0 8px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2px;
        background: linear-gradient(135deg, #1a237e, #283593);
        border: 2px solid #5c6bc0;
        color: #fff;
        font-size: 16px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
    }
    .action-bar { justify-content: center; gap: 4px; padding: 4px 8px; }
    .action-btn { font-size: 11px; padding: 3px 8px; }
    .message-bar { font-size: 12px; padding: 8px 12px; border-radius: 10px; }
    .message-content .msg-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    body { padding: 6px; }
    .header { padding: 12px 14px; border-radius: 16px; }
    .header-stats { justify-content: center; }
    .header-stats .stat-item { font-size: 11px; padding: 2px 10px; }
    .user-avatar-img { width: 24px; height: 24px; }
    .user-name { font-size: 13px; }
    .header-right button { font-size: 11px; padding: 4px 10px; }
    .plots-wrapper { padding: 10px; border-radius: 14px; }
    .plots-grid { gap: 8px; }
    .plot { min-height: 100px; padding: 6px 4px 4px; border-radius: 10px; }
    .plot .plant-icon { font-size: 28px; }
    .plot .status-text { font-size: 9px; }
    .plot .status-text .badge { font-size: 8px; padding: 1px 8px; }
    .plot .countdown { font-size: 10px; }
    .plot .plot-actions button { font-size: 7px; padding: 2px 5px; border-radius: 10px; }
    .plot .plot-number { font-size: 9px; top: 4px; left: 8px; }
    .sidebar { grid-template-columns: 1fr; }
    .sidebar-btn { padding: 14px 12px; font-size: 15px; border-radius: 14px; }
    .quick-actions { padding: 14px 12px; border-radius: 14px; }
    .quick-actions .grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .quick-actions .grid button { padding: 8px 4px; font-size: 11px; border-radius: 10px; }
    .farm-logo { height: 60px; }
    .farm-slogan { font-size: 9px; }
    .modal-box { padding: 20px 14px; border-radius: 20px; }
    .modal-box .modal-title { font-size: 18px; }
    .modal-box .btn-group button { padding: 8px 20px; font-size: 13px; }
    .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .shop-card { padding: 8px 3px; min-height: 70px; border-radius: 10px; }
    .shop-card .shop-card-icon { font-size: 22px; }
    .shop-card .shop-card-name { font-size: 10px; }
    .shop-card .shop-card-price { font-size: 10px; }
    .level-progress { padding: 10px 14px; }
    .level-progress .level-info .label { font-size: 11px; }
    .level-progress .level-info .value { font-size: 12px; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .feature-btn { font-size: 11px; padding: 8px 4px; min-height: 38px; border-radius: 10px; }
}

/* 超小屏手机 */
@media (max-width: 380px) {
    .plots-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .plot { min-height: 80px; }
    .plot .plant-icon { font-size: 22px; }
    .header-right button { font-size: 10px; padding: 3px 8px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .shop-card { min-height: 60px; padding: 6px 2px; }
    .shop-card .shop-card-icon { font-size: 18px; }
    .shop-card .shop-card-name { font-size: 9px; }
    .shop-card .shop-card-price { font-size: 9px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .feature-btn { font-size: 10px; padding: 6px 4px; min-height: 34px; border-radius: 8px; }
}

/* 大屏 */
@media (min-width: 769px) {
    .plot { min-height: 160px; max-height: 200px; }
    .plot .plant-icon { font-size: 52px; }
    .plot .status-text { font-size: 13px; }
    .plot .countdown { font-size: 14px; }
    .plot .plot-actions button { font-size: 11px; padding: 4px 14px; }
}

@media (min-width: 1200px) {
    .plot { min-height: 180px; max-height: 220px; }
    .plot .plant-icon { font-size: 56px; }
    .feature-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .feature-btn { font-size: 14px; padding: 12px 8px; min-height: 50px; }
}

/* ★★★ 加工厂配方网格 ★★★ */
.factory-recipes-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 480px) {
    .factory-recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ★★★ 功能通栏 ★★★ */
.action-bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 20px;
    gap: 6px;
    padding: 6px 16px;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    position: relative;
    min-height: 44px;
}

/* ★★★ 小贴士 ★★★ */
.tips-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 120px;
    min-width: 120px;
    overflow: hidden;
    height: 32px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 2px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}
.tips-bar .tips-icon {
    font-size: 14px;
    font-weight: 600;
    color: #ffd54f;
    flex-shrink: 0;
}
.tips-bar #tipsContainer {
    flex: 1;
    overflow: hidden;
    height: 32px;
    position: relative;
}
.tips-bar .tips-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 32px;
    height: 32px;
    display: block;
    padding: 0 2px;
}
.tips-bar .tips-nav {
    display: none;
    gap: 4px;
    flex-shrink: 0;
}
.tips-bar .tips-nav button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 8px;
    padding: 0 4px;
    border-radius: 50%;
    line-height: 14px;
    min-width: 14px;
    transition: all 0.2s;
}
.tips-bar .tips-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.tips-bar .tips-nav button.active {
    background: rgba(255, 215, 0, 0.4);
    color: #ffd54f;
}

/* ★★★ 响应式：手机端 ★★★ */
@media (max-width: 768px) {
    .action-bar {
        padding: 6px 10px;
        gap: 4px;
    }
    
    /* ★★★ 小贴士独占一行 ★★★ */
    .tips-bar {
        flex: 0 0 100%;
        min-width: 100%;
        width: 100%;
        height: 34px;
        padding: 2px 12px;
        border-radius: 14px;
        margin-bottom: 2px;
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .tips-bar .tips-icon {
        font-size: 13px;
    }
    .tips-bar .tips-text {
        font-size: 12px;
        line-height: 34px;
        height: 34px;
    }
    .tips-bar #tipsContainer {
        height: 34px;
    }
    /* ★★★ 手机端显示导航点 ★★★ */
    .tips-bar .tips-nav {
        display: flex !important;
    }
    .tips-bar .tips-nav button {
        font-size: 7px;
        line-height: 12px;
        min-width: 12px;
        padding: 0 3px;
        background: rgba(255, 255, 255, 0.12);
    }
    .tips-bar .tips-nav button.active {
        background: rgba(255, 215, 0, 0.5);
        color: #ffd54f;
    }
    
    /* ★★★ 按钮换行 ★★★ */
    .action-btn {
        font-size: 11px;
        padding: 4px 10px;
        flex-shrink: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
    }
    .action-btn .action-badge {
        font-size: 8px;
        line-height: 14px;
        min-width: 14px;
    }
    .friend-badge {
        font-size: 8px;
        min-width: 14px;
        height: 14px;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .action-bar {
        padding: 4px 6px;
        gap: 3px;
        border-radius: 12px;
    }
    
    .tips-bar {
        height: 30px;
        padding: 2px 10px;
        border-radius: 12px;
        margin-bottom: 2px;
    }
    .tips-bar .tips-text {
        font-size: 11px;
        line-height: 30px;
        height: 30px;
    }
    .tips-bar #tipsContainer {
        height: 30px;
    }
    .tips-bar .tips-icon {
        font-size: 12px;
    }
    .tips-bar .tips-nav button {
        font-size: 6px;
        line-height: 11px;
        min-width: 11px;
        padding: 0 2px;
    }
    
    .action-btn {
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 12px;
    }
}

/* ★★★ 超小屏 ★★★ */
@media (max-width: 380px) {
    .action-bar {
        padding: 3px 4px;
        gap: 2px;
    }
    .tips-bar {
        height: 26px;
        padding: 1px 8px;
        border-radius: 10px;
    }
    .tips-bar .tips-text {
        font-size: 10px;
        line-height: 26px;
        height: 26px;
    }
    .tips-bar #tipsContainer {
        height: 26px;
    }
    .tips-bar .tips-icon {
        font-size: 11px;
    }
    .action-btn {
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 10px;
    }
}

/* ============================================================
   🌙 自动夜间/季节模式 完整样式
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
    --mode-bg: #f0f4f8;
    --mode-card-bg: #ffffff;
    --mode-text: #1a1a2e;
    --mode-border: #e8ecef;
    --mode-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --mode-plot-bg: #f8f9fa;
    --mode-header-bg: linear-gradient(135deg, #2e7d32, #43a047);
    --mode-header-text: #ffffff;
    --mode-modal-bg: #ffffff;
    --mode-input-bg: #fafafa;
    --mode-input-border: #e0e0e0;
    --mode-toast-bg: rgba(0,0,0,0.8);
    --mode-shop-card: #ffffff;
    --mode-badge-bg: rgba(0,0,0,0.06);
    --mode-countdown-color: #555;
    --mode-health-bg: rgba(0,0,0,0.06);
    --mode-plant-icon: #333;
    --mode-separator: #ddd;
}

/* ---------- 顶部模式显示 ---------- */
#modeDisplay {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
    color: #fff;
}

#modeDisplay .mode-icon {
    font-size: 13px;
}

#modeDisplay .mode-separator {
    opacity: 0.4;
    margin: 0 2px;
    color: rgba(255, 255, 255, 0.6);
}

#modeDisplay .mode-season {
    color: rgba(255, 255, 255, 0.95);
}

#modeDisplay .mode-time {
    color: rgba(255, 255, 255, 0.75);
}

/* 夜间模式下的显示 */
body.mode-night #modeDisplay {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.05);
}

/* 季节颜色点缀 */
body.mode-spring #modeDisplay {
    border-color: rgba(255, 183, 77, 0.3);
    box-shadow: 0 0 20px rgba(255, 183, 77, 0.05);
}

body.mode-summer #modeDisplay {
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.05);
}

body.mode-autumn #modeDisplay {
    border-color: rgba(230, 81, 0, 0.3);
    box-shadow: 0 0 20px rgba(230, 81, 0, 0.05);
}

body.mode-winter #modeDisplay {
    border-color: rgba(66, 165, 245, 0.3);
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.05);
}

/* 移动端适配 */
@media (max-width: 600px) {
    #modeDisplay {
        font-size: 10px;
        padding: 2px 10px;
        gap: 4px;
    }
    #modeDisplay .mode-icon {
        font-size: 11px;
    }
}

/* ---------- 夜间模式 ---------- */
body.mode-night {
    --mode-bg: #0f0f1a;
    --mode-card-bg: #1a1a2e;
    --mode-text: #e0e0e0;
    --mode-border: #2a2a4a;
    --mode-shadow: 0 4px 20px rgba(0,0,0,0.4);
    --mode-plot-bg: #1a1a3a;
    --mode-header-bg: linear-gradient(135deg, #0d0d2b, #1a1a4e);
    --mode-header-text: #a8b4ff;
    --mode-modal-bg: #1a1a2e;
    --mode-input-bg: #2a2a4a;
    --mode-input-border: #3a3a5a;
    --mode-toast-bg: rgba(30,30,60,0.95);
    --mode-shop-card: #1a1a3a;
    --mode-badge-bg: rgba(255,255,255,0.08);
    --mode-countdown-color: #aaa;
    --mode-health-bg: rgba(255,255,255,0.06);
    --mode-plant-icon: #ccc;
    --mode-separator: #555;
}

body.mode-night .plot {
    background: var(--mode-plot-bg);
    border-color: #2a2a5a;
    color: var(--mode-text);
}

body.mode-night .plot .plot-number {
    color: #6666aa;
}

body.mode-night .plot .status-text .badge {
    color: #ddd;
}

body.mode-night .plot .countdown .time {
    color: #aaa;
}

body.mode-night .plot .health-bar-container {
    background: rgba(255,255,255,0.06) !important;
}

body.mode-night .top-bar {
    background: var(--mode-header-bg);
}

body.mode-night .top-bar .user-name,
body.mode-night .top-bar .user-points,
body.mode-night .top-bar .user-level {
    color: var(--mode-header-text);
}

body.mode-night #plotsContainer {
    background: var(--mode-bg);
}

body.mode-night .modal-content {
    background: var(--mode-modal-bg);
    color: var(--mode-text);
    border-color: var(--mode-border);
}

body.mode-night .modal-content .modal-title {
    color: var(--mode-text);
}

body.mode-night .modal-content input,
body.mode-night .modal-content select,
body.mode-night .modal-content textarea {
    background: var(--mode-input-bg);
    border-color: var(--mode-input-border);
    color: var(--mode-text);
}

body.mode-night .modal-content input::placeholder {
    color: #666;
}

body.mode-night .shop-card {
    background: var(--mode-shop-card) !important;
    border-color: var(--mode-border) !important;
}

body.mode-night .shop-card .shop-card-name {
    color: var(--mode-text);
}

body.mode-night .shop-card .shop-card-price {
    color: #ff8a80 !important;
}

body.mode-night .btn-confirm {
    background: #4a4a8a;
}

body.mode-night .btn-confirm:hover {
    background: #5a5a9a;
}

body.mode-night .btn-cancel {
    background: #3a3a5a;
    color: #aaa;
}

body.mode-night .btn-cancel:hover {
    background: #4a4a6a;
    color: #fff;
}

body.mode-night #chatPanel {
    background: var(--mode-card-bg);
    border-color: var(--mode-border);
}

body.mode-night #chatMessages {
    background: var(--mode-plot-bg);
}

body.mode-night .chat-msg-bubble-other {
    background: #2a2a4a;
    color: #ddd;
}

body.mode-night .chat-msg-bubble-self {
    background: #3a3a7a;
}

body.mode-night .chat-msg-bubble-self .chat-msg-avatar-self {
    border-color: #4a4a8a;
}

body.mode-night .toast {
    background: var(--mode-toast-bg) !important;
}

body.mode-night .badge {
    background: var(--mode-badge-bg);
}

body.mode-night .countdown .time {
    color: var(--mode-countdown-color);
}

body.mode-night .plant-icon {
    color: var(--mode-plant-icon);
}

body.mode-night .friend-badge {
    background: #ff6f00;
}

body.mode-night .lock-icon {
    color: #8888cc;
}

body.mode-night .status-shield {
    border-color: #26c6da !important;
}

body.mode-night .status-shield .plot-number {
    color: #26c6da;
}

body.mode-night .modal-body p,
body.mode-night .modal-body div,
body.mode-night .modal-body span,
body.mode-night .modal-body label {
    color: var(--mode-text);
}

body.mode-night .modal-body .shop-item {
    background: var(--mode-plot-bg);
    border-color: var(--mode-border);
}

body.mode-night .modal-body .shop-item .name {
    color: var(--mode-text);
}

body.mode-night .modal-body .shop-item .detail {
    color: #999;
}

body.mode-night .modal-body .qty-input-group input {
    background: var(--mode-input-bg);
    border-color: var(--mode-input-border);
    color: var(--mode-text);
}

body.mode-night .modal-body .qty-input-group button {
    background: var(--mode-input-bg);
    color: var(--mode-text);
}

body.mode-night .modal-body .qty-input-group button:hover {
    background: var(--mode-border);
}

body.mode-night .tips-text {
    color: rgba(255,255,255,0.85) !important;
}

body.mode-night .message-text {
    color: rgba(255,255,255,0.9) !important;
}

/* 夜晚模式下的收获按钮 */
body.mode-night .btn-harvest {
    background: #4a4a8a;
    color: #fff;
}

body.mode-night .btn-harvest:hover {
    background: #5a5a9a;
}

/* 夜晚模式下的种植按钮 */
body.mode-night .btn-plant {
    background: #2a5a2a;
    color: #fff;
}

body.mode-night .btn-plant:hover {
    background: #3a6a3a;
}

/* 夜晚模式下的除草/除虫按钮 */
body.mode-night .btn-weed {
    background: #5a4a2a;
    color: #fff;
}

body.mode-night .btn-weed:hover {
    background: #6a5a3a;
}

body.mode-night .btn-debug {
    background: #4a2a4a;
    color: #fff;
}

body.mode-night .btn-debug:hover {
    background: #5a3a5a;
}

/* 夜晚模式下的保护罩按钮 */
body.mode-night .btn-shield {
    background: #1a4a5a;
    color: #fff;
}

body.mode-night .btn-shield:hover {
    background: #2a5a6a;
}

/* 夜晚模式下的铲子按钮 */
body.mode-night .btn-shovel {
    background: #4a3a2a;
    color: #fff;
}

body.mode-night .btn-shovel:hover {
    background: #5a4a3a;
}

/* 夜晚模式下的施肥/加速按钮 */
body.mode-night .btn-fertilize {
    background: #2a4a3a;
    color: #fff;
}

body.mode-night .btn-fertilize:hover {
    background: #3a5a4a;
}

body.mode-night .btn-speedup {
    background: #4a2a3a;
    color: #fff;
}

body.mode-night .btn-speedup:hover {
    background: #5a3a4a;
}

/* 夜晚模式下的锁定土地 */
body.mode-night .plot.locked {
    background: #1a1a2a;
}

body.mode-night .plot.locked .lock-text {
    color: #8888bb;
}

/* 夜晚模式下的未购买土地 */
body.mode-night .plot.status-idle {
    background: #1a1a2a;
}

/* 夜晚模式下的状态文字 */
body.mode-night .status-text .badge.idle {
    color: #88cc88;
}

body.mode-night .status-text .badge.growing {
    color: #88ccff;
}

body.mode-night .status-text .badge.ready {
    color: #ffcc44;
}

body.mode-night .status-text .badge.weed {
    color: #88aa44;
}

body.mode-night .status-text .badge.bug {
    color: #ff6666;
}

/* 夜晚模式下的分割线 */
body.mode-night .modal-content hr {
    border-color: var(--mode-border);
}

body.mode-night .modal-content .border-bottom {
    border-color: var(--mode-border);
}

/* ---------- 季节模式 ---------- */
/* 春天 - 粉色/绿色调 */
body.mode-spring {
    --mode-bg: #f0f7ee;
    --mode-card-bg: #ffffff;
    --mode-text: #2d3a2d;
    --mode-border: #c8e6c9;
    --mode-header-bg: linear-gradient(135deg, #388e3c, #66bb6a);
    --mode-header-text: #ffffff;
    --mode-modal-bg: #ffffff;
    --mode-input-bg: #fafafa;
    --mode-input-border: #e0e0e0;
    --mode-shop-card: #ffffff;
    --mode-separator: #a5d6a7;
}

body.mode-spring .plot.status-ready {
    border-color: #ffb74d;
    box-shadow: 0 0 20px rgba(255,183,77,0.15);
}

body.mode-spring .plot.status-ready .badge.ready {
    background: #ffb74d;
    color: #fff;
}

/* 夏天 - 明亮色调 */
body.mode-summer {
    --mode-bg: #fff8e1;
    --mode-card-bg: #ffffff;
    --mode-text: #4e342e;
    --mode-border: #ffcc80;
    --mode-header-bg: linear-gradient(135deg, #ef6c00, #ff9800);
    --mode-header-text: #ffffff;
    --mode-modal-bg: #ffffff;
    --mode-input-bg: #fafafa;
    --mode-input-border: #e0e0e0;
    --mode-shop-card: #ffffff;
    --mode-separator: #ffcc80;
}

body.mode-summer .plot.status-ready {
    border-color: #ff6f00;
    box-shadow: 0 0 20px rgba(255,111,0,0.15);
}

body.mode-summer .plot.status-ready .badge.ready {
    background: #ff6f00;
    color: #fff;
}

/* 秋天 - 金黄/红色调 */
body.mode-autumn {
    --mode-bg: #fdf5e6;
    --mode-card-bg: #ffffff;
    --mode-text: #3e2723;
    --mode-border: #ffcc80;
    --mode-header-bg: linear-gradient(135deg, #bf360c, #e65100);
    --mode-header-text: #ffffff;
    --mode-modal-bg: #ffffff;
    --mode-input-bg: #fafafa;
    --mode-input-border: #e0e0e0;
    --mode-shop-card: #ffffff;
    --mode-separator: #ffab91;
}

body.mode-autumn .plot.status-ready {
    border-color: #e65100;
    box-shadow: 0 0 20px rgba(230,81,0,0.15);
}

body.mode-autumn .plot.status-ready .badge.ready {
    background: #e65100;
    color: #fff;
}

/* 冬天 - 冷色调 */
body.mode-winter {
    --mode-bg: #e8f0f8;
    --mode-card-bg: #ffffff;
    --mode-text: #1a237e;
    --mode-border: #b3d4fc;
    --mode-header-bg: linear-gradient(135deg, #0d47a1, #42a5f5);
    --mode-header-text: #ffffff;
    --mode-modal-bg: #ffffff;
    --mode-input-bg: #fafafa;
    --mode-input-border: #e0e0e0;
    --mode-shop-card: #ffffff;
    --mode-separator: #90caf9;
}

body.mode-winter .plot.status-ready {
    border-color: #42a5f5;
    box-shadow: 0 0 20px rgba(66,165,245,0.15);
}

body.mode-winter .plot.status-ready .badge.ready {
    background: #1e88e5;
    color: #fff;
}

/* ---------- 季节动画（粒子效果） ---------- */
/* 花瓣飘落 - 春天 */
@keyframes springPetal {
    0% { transform: translateY(-20px) rotate(0deg) scale(0.8); opacity: 0.7; }
    100% { transform: translateY(calc(100vh + 50px)) rotate(720deg) scale(1.2); opacity: 0; }
}

.spring-petal {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: springPetal 6s linear infinite;
    opacity: 0.5;
    font-size: 16px;
    user-select: none;
}

/* 雪花飘落 - 冬天 */
@keyframes winterSnow {
    0% { transform: translateY(-10px) translateX(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(50vh) translateX(30px) rotate(180deg); opacity: 0.6; }
    100% { transform: translateY(calc(100vh + 50px)) translateX(-20px) rotate(360deg); opacity: 0; }
}

.winter-snow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: winterSnow 8s linear infinite;
    opacity: 0.4;
    font-size: 14px;
    user-select: none;
}

/* 落叶飘落 - 秋天 */
@keyframes autumnLeaf {
    0% { transform: translateY(-20px) translateX(0) rotate(0deg) scale(1); opacity: 0.6; }
    100% { transform: translateY(calc(100vh + 50px)) translateX(60px) rotate(720deg) scale(0.8); opacity: 0; }
}

.autumn-leaf {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: autumnLeaf 7s linear infinite;
    opacity: 0.5;
    font-size: 18px;
    user-select: none;
}

/* 夏天暖光粒子 */
@keyframes summerGlow {
    0% { opacity: 0; transform: scale(0.5) translateY(0); }
    50% { opacity: 0.4; transform: scale(1) translateY(-20px); }
    100% { opacity: 0; transform: scale(0.5) translateY(-40px); }
}

.summer-glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: summerGlow 4s ease-out infinite;
    font-size: 10px;
    user-select: none;
    opacity: 0;
    color: #ffd54f;
}

/* ============================================================
   ★★★ 幸运转盘样式 ★★★
   ============================================================ */

.wheel-container {
    text-align: center;
    padding: 10px 0 4px 0;
    user-select: none;
}

.wheel-canvas-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .wheel-canvas-wrapper {
        width: 280px;
        height: 280px;
    }
}

.wheel-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 6px 40px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.wheel-canvas-wrapper canvas:hover {
    transform: scale(1.01);
}

/* 中心按钮 */
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(67,160,71,0.4);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.2;
    z-index: 10;
}

.wheel-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 6px 30px rgba(67,160,71,0.5);
}

.wheel-center-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center-btn .sub {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
}

/* 信息栏 */
.wheel-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 10px;
    margin: 10px 0 6px 0;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 4px;
}

.wheel-info-bar .item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wheel-info-bar .item .num {
    font-weight: 700;
    color: #2e7d32;
}

.wheel-info-bar .item .num.diamond {
    color: #7c4dff;
}

.wheel-info-bar .item .num.warning {
    color: #ef5350;
}

/* 奖品列表 */
.wheel-prizes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 4px;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px 0;
}

.wheel-prizes-list .prize-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 2px;
    text-align: center;
    font-size: 10px;
    border: 1px solid #e8ecef;
    transition: all 0.2s;
}

.wheel-prizes-list .prize-item:hover {
    transform: scale(1.05);
    border-color: #43a047;
}

.wheel-prizes-list .prize-item .icon {
    font-size: 20px;
    display: block;
}

.wheel-prizes-list .prize-item .name {
    font-size: 9px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.wheel-prizes-list .prize-item .prob {
    font-size: 10px;
    color: #ef5350;
    font-weight: 700;
    display: block;
}

/* 结果遮罩 */
.wheel-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: wheelResultFade 0.5s ease;
}

.wheel-result-overlay.show {
    display: flex;
}

.wheel-result-content {
    text-align: center;
    color: #fff;
    transform: scale(1);
    animation: wheelResultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wheel-result-content .big-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 4px;
}

.wheel-result-content .big-name {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.wheel-result-content .big-qty {
    font-size: 14px;
    opacity: 0.9;
}

/* 记录列表 */
.wheel-records-list {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.wheel-records-list .record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.wheel-records-list .record-item .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-records-list .record-item .left .icon {
    font-size: 22px;
}

.wheel-records-list .record-item .left .name {
    font-weight: 600;
}

.wheel-records-list .record-item .right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.wheel-records-list .record-item .badge-free {
    background: #fff3e0;
    color: #e65100;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.wheel-records-list .record-item .badge-guarantee {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.wheel-records-list .record-item .badge-paid {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.wheel-empty {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 14px;
}

/* 动画 */
@keyframes wheelResultFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes wheelResultPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}