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

body {
    font-family: 'Arial', sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

.page {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.hidden {
    display: none !important;
}

/* 店铺选择页面样式 */
#store-selection {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 90%;
    text-align: center;
}

.container h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.store-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: #4a5568;
}

.store-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-slideshow, .btn-leaderboard {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-slideshow {
    background: #4a5568;
    color: white;
}

.btn-slideshow:hover {
    background: #2d3748;
}

.btn-leaderboard {
    background: #e2e8f0;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

.btn-leaderboard:hover {
    background: #cbd5e0;
    border-color: #a0aec0;
}

.store-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.store-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* 全屏展示页面样式 */
#slideshow {
    background: #000;
    position: relative;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#current-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

/* 悬浮按钮样式 */
.refresh-btn, .back-btn {
    position: fixed;
    top: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.back-btn {
    left: 20px;
}


.refresh-btn {
    right: 20px;
}

.refresh-btn.visible, .back-btn.visible {
    opacity: 1;
    visibility: visible;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(180deg) scale(0.9);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.back-btn:active {
    transform: scale(0.9);
}

/* 加载状态样式 */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

/* 加载动画 */
.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.visible {
    opacity: 1;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container h1 {
        font-size: 2rem;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .store-card {
        padding: 1.5rem;
    }
    
    .refresh-btn, .back-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 15px;
    }
    
    .refresh-btn {
        right: 15px;
    }
    
    .back-btn {
        left: 15px;
    }
}


/* 现代化排行榜页面样式 */
.modern-leaderboard {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    min-height: 100vh;
    padding: 0;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.modern-leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    pointer-events: none;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    margin: 1rem 0 0;
    position: sticky;
    top: 1rem;
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* 确保与ECharts容器完全对齐 */
    box-sizing: border-box;
}

.leaderboard-header.scrolled {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-display {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.reset-btn {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    backdrop-filter: blur(10px);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.4);
}

.reset-btn:active {
    transform: translateY(0);
}

.modern-back-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.modern-back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.store-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.leaderboard-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.leaderboard-title {
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.leaderboard-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a5568, #2d3748);
    border-radius: 2px;
}

.rankings-list {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #f1f1f1;
}

.rankings-list::-webkit-scrollbar {
    width: 8px;
}

.rankings-list::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 10px;
    margin: 10px 0;
}

.rankings-list::-webkit-scrollbar-thumb {
    background: linear-gradient(#4a5568, #2d3748);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.rankings-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#2d3748, #1a202c);
}

.add-new-record {
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding-top: 2rem;
    position: relative;
}

.add-new-record::before {
    content: '添加新记录';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
}

.input-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.nickname-input {
    flex: 1;
    padding: 1.2rem 1.8rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 500;
    background: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nickname-input:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 4px rgba(74, 85, 104, 0.15);
}

.nickname-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.add-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.4);
    position: relative;
    overflow: hidden;
}

.add-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 85, 104, 0.6);
}

.add-btn:hover::after {
    opacity: 1;
}

.add-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.6);
}

/* 排行榜条目样式 - 优化版 */
.list-group-item {
    border: none !important;
    padding: 1.5rem 2rem !important;
    margin-bottom: 1rem !important;
    border-radius: 18px !important;
    background: white !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.list-group-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-group-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.list-group-item:hover::before {
    opacity: 1;
}

.badge {
    font-size: 1.3rem !important;
    padding: 0.9rem 1.1rem !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nickname {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    flex: 1;
    letter-spacing: -0.01em;
}

.btn-sm {
    padding: 0.9rem 1.2rem !important;
    font-size: 1.1rem !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-success {
    color: #38a169 !important;
    border-color: #38a169 !important;
}

.btn-outline-success:hover {
    background-color: #38a169 !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3) !important;
}

.btn-outline-danger {
    color: #e53e3e !important;
    border-color: #e53e3e !important;
}

.btn-outline-danger:hover {
    background-color: #e53e3e !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3) !important;
}

/* 前三名特殊样式 - 优化版 */
.leaderboard-top-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%) !important;
    border-left: 6px solid #ffc107 !important;
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.leaderboard-top-1 .badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.leaderboard-top-2 {
    background: linear-gradient(135deg, #f5fbff 0%, #e1f0ff 100%) !important;
    border-left: 6px solid #2196f3 !important;
}

.leaderboard-top-2 .badge {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.leaderboard-top-3 {
    background: linear-gradient(135deg, #f9f9f9 0%, #eeeeee 100%) !important;
    border-left: 6px solid #9e9e9e !important;
}

.leaderboard-top-3 .badge {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(158, 158, 158, 0.3);
}

@keyframes goldGlow {
    from {
        box-shadow: 0 4px 25px rgba(255, 193, 7, 0.3);
    }
    to {
        box-shadow: 0 10px 45px rgba(255, 193, 7, 0.5);
    }
}

@keyframes goldGlow {
    from {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    }
    to {
        box-shadow: 0 8px 40px rgba(255, 215, 0, 0.6);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .store-title {
        font-size: 1.8rem;
        white-space: nowrap;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .leaderboard-title h2 {
        font-size: 1.8rem;
    }
    
    .leaderboard-title h2::after {
        width: 40px;
    }
    
    .list-group-item {
        padding: 1.2rem 1.5rem !important;
        gap: 1rem;
    }
    
    .badge {
        font-size: 1.1rem !important;
        padding: 0.7rem 0.9rem !important;
        min-width: 45px;
    }
    
    .nickname {
        font-size: 1.2rem !important;
    }
    
    .btn-sm {
        padding: 0.7rem 0.9rem !important;
        font-size: 1rem !important;
    }
    
    .input-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nickname-input, .add-btn {
        width: 100%;
        padding: 1rem 1.5rem !important;
    }
    
    .leaderboard-container {
        padding: 1rem;
    }
    
    .leaderboard-content {
        padding: 1.5rem;
    }
    
    .add-new-record::before {
        font-size: 0.9rem;
        top: -10px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rankings-list {
    animation: fadeIn 0.5s ease-out forwards;
}

.list-group-item {
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.list-group-item:nth-child(1) { animation-delay: 0.1s; }
.list-group-item:nth-child(2) { animation-delay: 0.2s; }
.list-group-item:nth-child(3) { animation-delay: 0.3s; }
.list-group-item:nth-child(4) { animation-delay: 0.4s; }
.list-group-item:nth-child(5) { animation-delay: 0.5s; }
.list-group-item:nth-child(n+6) { animation-delay: 0.6s; }


/* 全屏时隐藏滚动条 */
#slideshow::-webkit-scrollbar {
    display: none;
}

#slideshow {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 吸底添加记录区域 */
.add-record-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
}

.add-record-content {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.add-record-fixed .nickname-input {
    flex: 2;
    padding: 1.2rem 1.8rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    background: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.add-record-fixed .nickname-input:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.15);
}

.add-record-fixed .add-btn {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.add-record-fixed .add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 85, 104, 0.4);
}

.add-record-fixed .add-btn:active {
    transform: translateY(0);
}

/* 调整排行榜页面底部间距 */
.modern-leaderboard .leaderboard-container {
    padding-bottom: 100px; /* 为吸底按钮预留空间 */
}

/* ECharts图表容器优化 */
#echarts-leaderboard-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0 120px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

#echarts-leaderboard-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 按钮动画效果 */
.add-record-fixed .add-btn.loading {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    cursor: not-allowed;
}

.add-record-fixed .add-btn.success {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

.add-record-fixed .add-btn.error {
    background: linear-gradient(135deg, #ef5350 0%, #f44336 100%);
}

.add-record-fixed .add-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* 旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* 震动动画 */
@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* 输入框焦点增强 */
.add-record-fixed .nickname-input:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.15), 0 0 20px rgba(74, 85, 104, 0.1);
    transform: scale(1.02);
}

/* Toast 优化 */
.toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 喝酒者操作对话框 */
.drinker-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.drinker-dialog-overlay.show {
    opacity: 1;
    transform: scale(1);
}

.drinker-dialog {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.drinker-dialog.loading {
    opacity: 0.7;
    pointer-events: none;
}

.dialog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dialog-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.current-count {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 600;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 120px;
    justify-content: center;
}

.action-btn.add-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.action-btn.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.action-btn.minus-btn {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.action-btn.minus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* 滚动提示 */
.scroll-hint {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(74, 85, 104, 0.1);
    border: 1px solid rgba(74, 85, 104, 0.2);
    border-radius: 20px;
    margin: 1rem 0;
    color: #4a5568;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.scroll-hint i {
    font-size: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.scroll-hint.hidden {
    display: none;
}

/* 重置确认对话框 */
.reset-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reset-dialog-overlay.show {
    opacity: 1;
    transform: scale(1);
}

.reset-dialog {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    min-width: 400px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reset-dialog.loading {
    opacity: 0.7;
    pointer-events: none;
}

.reset-dialog .dialog-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.warning-icon {
    font-size: 3rem;
    color: #ff5722;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.reset-dialog .dialog-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.dialog-content {
    margin-bottom: 2rem;
    text-align: center;
}

.dialog-content p {
    font-size: 1.1rem;
    color: #555;
    margin: 0.8rem 0;
    line-height: 1.5;
}

.dialog-content strong {
    color: #ff5722;
    font-weight: 700;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dialog-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 140px;
    justify-content: center;
}

.cancel-btn {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(158, 158, 158, 0.3);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(158, 158, 158, 0.4);
}

.confirm-btn {
    background: linear-gradient(135deg, #ff5722 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.4);
}

.dialog-btn:active {
    transform: translateY(0);
}