/* ===================================================================
   Modern Flat Redesign - style.css
   =================================================================== */

/* 1. Global Styles & Variables
   ------------------------------------------------------------------- */
:root {
    /* 量子飞升系统 - 科技感配色方案 */
    --primary-color: #6366F1;        /* 量子紫 */
    --primary-color-dark: #4F46E5;   /* 深量子紫 */
    --accent-color: #06B6D4;         /* 量子青 */
    --accent-color-dark: #0891B2;    /* 深量子青 */
    
    --quantum-gradient: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
    --quantum-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    --success-color: #10B981;        /* 量子绿 */
    --error-color: #EF4444;          /* 量子红 */
    --warning-color: #F59E0B;        /* 量子橙 */

    --text-dark: #0F172A;           /* 深空蓝 */
    --text-normal: #475569;         /* 星云灰 */
    --text-light: #64748B;          /* 轻星云 */

    --bg-light: #F8FAFC;           /* 量子白 */
    --bg-white: #FFFFFF;
    --bg-dark: #0F172A;            /* 深空背景 */
    --border-color: #E2E8F0;       /* 量子边框 */

    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.15);
    --shadow-quantum: 0 8px 32px rgba(99, 102, 241, 0.2);

    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --transition-speed: 0.3s;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-normal);
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===================================================================
   2. Layout
   =================================================================== */

/* Main Container for larger screens */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.top-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-speed) ease;
}

.main-content {
    padding: 24px 0;
    padding-bottom: 100px; /* Add padding to avoid overlap with sticky footer */
}

.bottom-footer {
    background-color: var(--bg-white);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    z-index: 100;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.footer-points {
    color: var(--text-normal);
    font-weight: 600;
}

#totalPoints {
    font-weight: 800;
    color: var(--primary-color);
    padding: 0 4px;
}

.footer-admin-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.footer-admin-link:hover {
    color: var(--primary-color);
}

/* Page Transitions */
.page {
    display: none;
}
.page.active {
    display: block;
    animation: fadeIn var(--transition-speed) ease-out;
}

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

/* ===================================================================
   3. Components
   =================================================================== */



/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 4px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.nav-item {
    background-color: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-normal);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.nav-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.nav-item.active {
    background: var(--quantum-gradient);
    color: white;
    box-shadow: var(--shadow-quantum);
    transform: translateY(-1px);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--quantum-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.nav-icon {
    font-size: 1.25rem;
}



/* Grids */
.checkin-grid, .shop-grid, .achievements-grid, .deduction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Cards (Checkin, Shop, Achievement, Deduction) */
.item-card, .checkin-item, .shop-item, .achievement-item, .deduction-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card:hover, .checkin-item:hover, .shop-item:hover, .achievement-item:hover, .deduction-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-quantum);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.item-card:hover::before, .checkin-item:hover::before, .shop-item:hover::before, .achievement-item:hover::before, .deduction-item:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--quantum-gradient);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    pointer-events: none;
    opacity: 0.6;
}

.item-header, .checkin-info-wrapper, .shop-info-wrapper, .achievement-info-wrapper, .deduction-info-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

.item-icon, .checkin-icon, .shop-icon, .achievement-icon, .deduction-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
}

.item-info, .checkin-info, .shop-info, .achievement-info, .deduction-info {
    flex-grow: 1;
}

.item-name, .checkin-name, .shop-name, .achievement-name, .deduction-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.item-description, .checkin-points, .shop-price, .achievement-description, .deduction-points, .shop-stock {
    font-size: 0.9rem;
    color: var(--text-normal);
}

.checkin-points { color: var(--success-color); font-weight: 600; }
.deduction-points { color: var(--error-color); font-weight: 600; }
.shop-price { color: var(--accent-color); font-weight: 600; }

/* Buttons */
.btn {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn-primary {
    background: var(--quantum-gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--quantum-gradient);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-quantum);
}

.btn-primary:hover::before {
    opacity: 0.2;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    color: white;
    border: none;
    position: relative;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-normal);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 43, 77, 0.5);
    backdrop-filter: blur(4px);
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.2s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    font-size: 1.2rem;
    color: var(--text-dark);
}
.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Forms */
.cute-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.cute-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Page Header */
.page-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* ===================================================================
   4. Page-Specific Styles
   =================================================================== */

/* Checkin Page */
.checkin-item.completed {
    opacity: 0.6;
}
.checkin-item.completed .checkin-icon {
    background-color: var(--success-color);
    color: white;
}
.checkin-item .streak-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--warning-color);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--border-radius-lg);
}

/* Shop Page */
.shop-item.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
}
.buy-btn {
    width: 100%;
    margin-top: auto; /* Push button to the bottom */
}

/* Profile Page */
.profile-content {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
}
.avatar-section {
    text-align: center;
    margin-bottom: 24px;
}
.avatar-emoji-large {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.stat-item {
    background-color: var(--bg-light);
    padding: 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-normal);
}
.recent-records h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.record-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.record-item:last-child {
    border-bottom: none;
}
.record-points.positive { color: var(--success-color); }
.record-points.negative { color: var(--error-color); }

/* Achievements Page */
.achievement-item.unlocked .achievement-icon {
    background-color: var(--warning-color);
}
.achievement-item.locked {
    opacity: 0.6;
    filter: grayscale(80%);
}

/* Deduction Section */
.deduction-section {
    margin-top: 48px;
}
.deduction-section .section-header h3 {
    color: var(--error-color);
}
.deduction-item .deduction-icon {
    background-color: rgba(222, 53, 11, 0.1);
    color: var(--error-color);
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, -10px);
}
.toast.success { background-color: var(--success-color); }
.toast.error { background-color: var(--error-color); }
.toast.warning { background-color: var(--warning-color); color: var(--text-dark); }
.toast.info { background-color: var(--text-dark); }

/* Remove old decorative elements */
.bg-decorations, .floating-hearts {
    display: none;
}

/* ===================================================================
   5. Responsive Design
   =================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .top-header {
        padding: 8px 12px;
    }

    .main-navigation {
        width: 100%;
        justify-content: space-around;
    }

    .bottom-footer {
        padding: 6px 12px;
    }

    .nav-label {
        display: none; /* Icon only on mobile */
    }
    .nav-item {
        padding: 10px;
    }

    .checkin-grid, .shop-grid, .achievements-grid, .deduction-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .item-card, .checkin-item, .shop-item, .achievement-item, .deduction-item {
        flex-direction: row;
        align-items: center;
    }

    /* 商城页面小屏优化 - 网格布局 */
    .shop-item {
        padding: 12px;
        gap: 0;
        display: grid;
        grid-template-columns: 48px 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "icon title button"
            "icon details button";
        align-items: center;
        column-gap: 12px;
        row-gap: 4px;
    }

    .shop-info-wrapper {
        display: contents; /* 让子元素直接参与网格布局 */
    }

    .shop-icon {
        grid-area: icon;
        font-size: 1.5rem;
        width: 48px;
        height: 48px;
        align-self: center;
    }

    .shop-info {
        display: contents; /* 让子元素直接参与网格布局 */
    }

    .shop-name {
        grid-area: title;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-details {
        grid-area: details;
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 0.8rem;
        margin: 0;
    }

    .shop-price {
        background-color: var(--accent-color);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
        font-size: 0.75rem;
        margin: 0;
    }

    .shop-stock {
        background-color: var(--bg-light);
        color: var(--text-normal);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.75rem;
        margin: 0;
    }

    .buy-btn {
        grid-area: button;
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 50px;
        white-space: nowrap;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 页面标题小屏优化 */
    .page-header {
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
}

/* ===================================================================
   评价系统样式
   =================================================================== */

.evaluation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.evaluation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.evaluation-card.evaluated {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
}

.evaluation-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.evaluation-icon {
    font-size: 24px;
    margin-right: 12px;
}

.evaluation-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.evaluation-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.evaluation-form {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.score-selector {
    margin-bottom: 16px;
}

.score-selector label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* 新的评分系统样式 */
.rating-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    min-height: 48px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #e0e0e0;
}

.rating-option.selected {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    background: #f1f8e9;
}

.rating-emoji {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
}

.rating-label {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

.rating-option.selected .rating-label {
    color: #4CAF50;
    font-weight: 600;
}

/* 响应式设计 - 更详细的移动端适配 */
@media (max-width: 768px) {
    .evaluation-card {
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .rating-selector {
        gap: 6px;
        padding: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .rating-option {
        min-width: 48px;
        min-height: 48px;
        padding: 8px 6px;
        flex: 1;
        max-width: calc(20% - 5px);
    }
    
    .rating-emoji {
        font-size: 22px;
    }
    
    .rating-label {
        font-size: 10px;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .evaluation-card {
        margin-bottom: 12px;
        padding: 12px;
    }
    
    .rating-selector {
        gap: 4px;
        padding: 8px;
    }
    
    .rating-option {
        min-width: 44px;
        min-height: 44px;
        padding: 6px 4px;
    }
    
    .rating-emoji {
        font-size: 20px;
    }
    
    .rating-label {
        font-size: 9px;
    }
    
    .submit-evaluation-btn {
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .comment-input textarea {
        min-height: 80px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

@media (max-width: 360px) {
    .rating-selector {
        gap: 3px;
        padding: 6px;
    }
    
    .rating-option {
        min-width: 42px;
        min-height: 42px;
        padding: 5px 3px;
    }
    
    .rating-emoji {
        font-size: 18px;
    }
    
    .rating-label {
        font-size: 8px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .rating-option {
        min-width: 48px;
        min-height: 48px;
    }
    
    .rating-option:hover {
        transform: none;
    }
    
    .rating-option:active {
        transform: scale(0.95);
        background: #e8f5e8;
    }
}

/* 评分反馈动画 */
@keyframes ratingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes ratingShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes successGlow {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.rating-option.pulse {
    animation: ratingPulse 0.3s ease-in-out;
}

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

.submit-evaluation-btn.success {
    animation: successGlow 1s ease-out;
}

/* 加载状态 */
.rating-option.loading {
    opacity: 0.6;
    pointer-events: none;
}

.submit-evaluation-btn.loading {
    position: relative;
    color: transparent;
}

.submit-evaluation-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* 状态提示 */
.rating-feedback {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.rating-feedback.show {
    opacity: 1;
}

.rating-feedback::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rating-emoji {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 评分显示样式 */
.rating-display-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.rating-display-item .rating-emoji {
    font-size: 20px;
}

.rating-display-item .rating-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 二选评分样式 */
.binary-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.binary-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 80px;
}

.binary-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.binary-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-quantum);
}

.binary-option .binary-emoji {
    font-size: 24px;
    margin-bottom: 4px;
}

.binary-option .binary-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.binary-option.selected .binary-label {
    color: white;
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star-rating .star {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
}

.star-rating .star:hover,
.star-rating .star.selected {
    opacity: 1;
    transform: scale(1.1);
}

.comment-input {
    margin-bottom: 16px;
}

.comment-input textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.submit-evaluation-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-evaluation-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.submit-evaluation-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.evaluation-result {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars .star {
    font-size: 18px;
}

.stars .star.filled {
    color: #FFD700;
}

.comment {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-style: italic;
    color: #555;
    border-left: 4px solid #4CAF50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .evaluation-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .evaluation-icon {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .evaluation-name {
        font-size: 16px;
    }
    
    .star-rating .star {
        font-size: 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    opacity: 0.8;
}
    }
}

/* 老虎机动画效果 - 多阶段转轮动画（性能优化版） */
.reel-symbols {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.reel-spinning {
    animation: reelSpin 0.1s linear infinite;
}

.reel-spinning-fast {
    animation: reelSpinFast 0.05s linear infinite;
}

.reel-spinning-slow {
    animation: reelSpinSlow 0.2s linear infinite;
}

.reel-stopping {
    animation: reelStop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 使用transform3d启用硬件加速 */
@keyframes reelSpin {
    0% { transform: translate3d(0, 0px, 0); }
    100% { transform: translate3d(0, -46px, 0); }
}

@keyframes reelSpinFast {
    0% { transform: translate3d(0, 0px, 0); }
    100% { transform: translate3d(0, -46px, 0); }
}

@keyframes reelSpinSlow {
    0% { transform: translate3d(0, 0px, 0); }
    100% { transform: translate3d(0, -46px, 0); }
}

@keyframes reelStop {
    0% { 
        transform: translate3d(0, 0px, 0);
        filter: blur(1px);
    }
    70% { 
        transform: translate3d(0, -10px, 0);
        filter: blur(0.5px);
    }
    85% { 
        transform: translateY(5px);
        filter: blur(0.5px);
    }
    95% { 
        transform: translateY(-2px);
        filter: blur(0px);
    }
    100% { 
        transform: translateY(0px);
        filter: blur(0px);
    }
}

/* 转轮发光效果 */
.reel-glowing {
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    animation: reelGlow 1s ease-in-out infinite alternate;
}

@keyframes reelGlow {
    0% { 
        box-shadow: 
            inset 0 0 20px rgba(0, 0, 0, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.1),
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
    }
    100% { 
        box-shadow: 
            inset 0 0 20px rgba(0, 0, 0, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.1),
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6);
    }
}

/* 符号高亮效果 */
.symbol-highlight {
    background: 
        linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%) !important;
    color: #000 !important;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5) !important;
    animation: symbolPulse 0.6s ease-in-out infinite alternate;
    z-index: 10 !important;
    transform: scale(1.1) !important;
}

@keyframes symbolPulse {
    0% { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.8);
    }
}

.jackpot-animation {
    animation: jackpot 2s ease-in-out;
}

@keyframes jackpot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.winning-glow {
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 20px #f39c12; }
    100% { box-shadow: 0 0 40px #f39c12, 0 0 60px #f39c12; }
}

/* ===================================================================
   老虎机样式
   =================================================================== */

/* 抽奖系统整体容器 - 全新3D赌场风格 */
.slot-machine-container {
    max-width: 900px;
    margin: 20px auto;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.slot-machine-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.03) 0%, transparent 40%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="casino-pattern" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="0.8" fill="rgba(255,215,0,0.08)"/><circle cx="6" cy="6" r="0.4" fill="rgba(255,255,255,0.05)"/><circle cx="19" cy="19" r="0.4" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23casino-pattern)"/></svg>');
    pointer-events: none;
    opacity: 0.6;
    animation: backgroundShimmer 8s ease-in-out infinite;
}

@keyframes backgroundShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.lottery-info {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%),
        linear-gradient(45deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 69, 0, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lottery-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: infoShine 3s ease-in-out infinite;
}

@keyframes infoShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.lottery-info h3 {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.lottery-info p {
    color: #2c3e50;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.lottery-status {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lottery-status span {
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lottery-status span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.lottery-status span:hover::before {
    left: 100%;
}

.free-chance.available {
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(0, 200, 81, 0.4),
        0 0 0 1px rgba(0, 200, 81, 0.3);
    border-color: rgba(0, 200, 81, 0.5);
}

.free-chance.available:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 200, 81, 0.5),
        0 0 0 1px rgba(0, 200, 81, 0.4);
}

.free-chance.used {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(255, 68, 68, 0.4),
        0 0 0 1px rgba(255, 68, 68, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
}

.free-chance.used:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 68, 68, 0.5),
        0 0 0 1px rgba(255, 68, 68, 0.4);
}

.lottery-draws {
    background: linear-gradient(135deg, #ffbb33 0%, #ff8800 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(255, 187, 51, 0.4),
        0 0 0 1px rgba(255, 187, 51, 0.3);
    border-color: rgba(255, 187, 51, 0.5);
}

.lottery-draws:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 187, 51, 0.5),
        0 0 0 1px rgba(255, 187, 51, 0.4);
}

.points-cost {
    background: linear-gradient(135deg, #aa66cc 0%, #9933aa 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(170, 102, 204, 0.4),
        0 0 0 1px rgba(170, 102, 204, 0.3);
    border-color: rgba(170, 102, 204, 0.5);
}

.points-cost:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(170, 102, 204, 0.5),
        0 0 0 1px rgba(170, 102, 204, 0.4);
}

.slot-machine-wrapper {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    position: relative;
    perspective: 1000px;
}

.slot-machine {
    background: 
        linear-gradient(145deg, #2c2c54 0%, #40407a 50%, #2c2c54 100%),
        radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 3px #ffd700,
        0 0 0 6px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 4px solid transparent;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: machineGlow 4s ease-in-out infinite;
}

@keyframes machineGlow {
    0%, 100% { 
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.4),
            0 0 0 3px #ffd700,
            0 0 0 6px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.1),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 35px 70px rgba(0, 0, 0, 0.5),
            0 0 0 3px #ffd700,
            0 0 0 6px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.15),
            inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    }
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 69, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: machineShimmer 6s linear infinite;
}

@keyframes machineShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(360deg); }
}

.slot-machine-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.slot-title {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    position: relative;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.slot-lights {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.light {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #e74c3c);
    box-shadow: 
        0 0 15px #e74c3c,
        0 0 30px rgba(231, 76, 60, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: casinoLights 1.8s infinite;
    position: relative;
}

.light::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: lightReflection 1.8s infinite;
}

.light:nth-child(1) { animation-delay: 0s; }
.light:nth-child(2) { animation-delay: 0.2s; }
.light:nth-child(3) { animation-delay: 0.4s; }
.light:nth-child(4) { animation-delay: 0.6s; }
.light:nth-child(5) { animation-delay: 0.8s; }

@keyframes casinoLights {
    0%, 70%, 100% { 
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 
            0 0 5px #e74c3c,
            0 0 10px rgba(231, 76, 60, 0.2);
    }
    15%, 55% { 
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 
            0 0 20px #e74c3c,
            0 0 40px rgba(231, 76, 60, 0.8),
            0 0 60px rgba(231, 76, 60, 0.4);
    }
}

@keyframes lightReflection {
    0%, 70%, 100% { opacity: 0.3; }
    15%, 55% { opacity: 1; }
}

.slot-display {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    background: 
        linear-gradient(145deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 0 2px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.slot-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%);
    pointer-events: none;
    animation: displayScan 3s linear infinite;
}

@keyframes displayScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.slot-reel {
    width: 90px;
    height: 140px;
    background: 
        linear-gradient(145deg, #0a0a0a 0%, #1f1f1f 50%, #0a0a0a 100%);
    border: 3px solid #333;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.slot-reel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 20%, 
            transparent 80%, 
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.reel-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.1s ease;
    z-index: 1;
}

.symbol {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: 
        linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    border-bottom: 2px solid #444;
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    transition: all 0.3s ease;
}

.symbol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.symbol:hover {
    background: 
        linear-gradient(135deg, #3498db 0%, #2980b9 50%, #3498db 100%);
    transform: scale(1.05);
    z-index: 3;
}

.slot-result {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 10px;
    border: 2px solid #f39c12;
}

.result-window {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.result-symbol {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #f39c12;
}

.lottery-controls {
    text-align: center;
    margin: 30px 0;
}

.slot-lever {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 16px rgba(231, 76, 60, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.slot-lever::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.slot-lever:hover:not(:disabled)::before {
    left: 100%;
}

.slot-lever:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(231, 76, 60, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.slot-lever:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(231, 76, 60, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slot-lever:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.lever-handle {
    font-size: 24px;
    margin-bottom: 5px;
}

.lever-text {
    font-size: 16px;
    font-weight: 600;
}

.lottery-cost-info {
    margin-top: 12px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.prize-list {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prize-list h4 {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 20px;
    color: #2c3e50;
}

/* 奖励表格样式 */
.rewards-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.table-header {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.header-cell {
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.header-cell:last-child {
    border-right: none;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 120px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.table-row:hover {
    background: linear-gradient(90deg, rgba(var(--row-color-rgb), 0.05) 0%, rgba(var(--row-color-rgb), 0.02) 100%);
    transform: translateX(4px);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f0f0f0;
}

.table-cell:last-child {
    border-right: none;
}

.prize-icon-large {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.prize-name-large {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.prize-value-large {
    font-weight: 500;
    color: #27ae60;
    font-size: 14px;
}

.probability-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.probability-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
    position: relative;
    background: linear-gradient(90deg, var(--fill-color) 0%, var(--fill-color-light) 100%);
}

.probability-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 奖励统计摘要 */
.rewards-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.summary-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.summary-desc {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 400;
}

/* 移动端奖励表格优化 */
@media (max-width: 768px) {
    .table-header {
        grid-template-columns: 50px 1fr 80px 100px;
        font-size: 12px;
    }
    
    .header-cell {
        padding: 12px 8px;
    }
    
    .table-row {
        grid-template-columns: 50px 1fr 80px 100px;
    }
    
    .table-cell {
        padding: 12px 8px;
    }
    
    .prize-icon-large {
        font-size: 24px;
    }
    
    .prize-name-large {
        font-size: 14px;
    }
    
    .prize-value-large {
        font-size: 12px;
    }
    
    .probability-bar {
        height: 20px;
    }
    
    .probability-text {
        font-size: 10px;
    }
    
    .rewards-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .summary-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .table-header {
        grid-template-columns: 40px 1fr 70px 80px;
        font-size: 11px;
    }
    
    .header-cell {
        padding: 10px 6px;
    }
    
    .table-row {
        grid-template-columns: 40px 1fr 70px 80px;
    }
    
    .table-cell {
        padding: 10px 6px;
    }
    
    .prize-icon-large {
        font-size: 20px;
    }
    
    .prize-name-large {
        font-size: 12px;
    }
    
    .prize-value-large {
        font-size: 11px;
    }
    
    .probability-bar {
        height: 18px;
    }
    
    .probability-text {
        font-size: 9px;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .summary-icon {
        font-size: 24px;
    }
    
    .summary-value {
        font-size: 18px;
    }
    
    .summary-title {
        font-size: 12px;
    }
    
    .summary-desc {
        font-size: 10px;
    }
}

/* 符号组合分值对照表样式 */
.symbol-combinations-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.symbol-combinations-section h4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.combinations-table {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.combinations-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.combinations-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.combinations-row:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.combinations-row:last-child {
    border-bottom: none;
}

.combo-cell {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.combinations-header .combo-cell {
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 600;
}

.symbol-display {
    font-size: 24px;
    letter-spacing: 8px;
    margin-bottom: 4px;
}

.combo-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.combo-desc {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.combo-reward {
    font-weight: 700;
    font-size: 16px;
}

.combo-probability {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.probability-bar-small {
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.probability-fill-small {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 符号说明区域 */
.combinations-legend {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.combinations-legend h5 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
}

.legend-symbol {
    font-size: 20px;
    margin-right: 10px;
    width: 30px;
    text-align: center;
}

.legend-name {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

/* 游戏提示区域 */
.combinations-tips {
    padding: 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    border: 1px solid #90caf9;
}

.combinations-tips h5 {
    margin: 0 0 12px 0;
    color: #1565c0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.combinations-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #1976d2;
}

.combinations-tips li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .symbol-combinations-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .symbol-combinations-section h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .combinations-header,
    .combinations-row {
        grid-template-columns: 1.5fr 2fr 1fr 1fr;
        font-size: 12px;
    }
    
    .combo-cell {
        padding: 12px 8px;
    }
    
    .combinations-header .combo-cell {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .symbol-display {
        font-size: 18px;
        letter-spacing: 4px;
    }
    
    .combo-name {
        font-size: 12px;
    }
    
    .combo-desc {
        font-size: 10px;
    }
    
    .combo-reward {
        font-size: 13px;
    }
    
    .combo-probability {
        font-size: 12px;
    }
    
    .probability-bar-small {
        width: 40px;
        height: 4px;
    }
    
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .legend-item {
        padding: 6px 10px;
    }
    
    .legend-symbol {
        font-size: 16px;
        width: 24px;
        margin-right: 8px;
    }
    
    .legend-name {
        font-size: 12px;
    }
    
    .combinations-tips {
        padding: 12px;
    }
    
    .combinations-tips h5 {
        font-size: 14px;
    }
    
    .combinations-tips li {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .combinations-header,
    .combinations-row {
        grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr;
        font-size: 11px;
    }
    
    .combo-cell {
        padding: 10px 6px;
    }
    
    .symbol-display {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .combo-name {
        font-size: 11px;
    }
    
    .combo-desc {
        display: none; /* 在超小屏幕隐藏描述 */
    }
    
    .combo-reward {
        font-size: 12px;
    }
    
    .combo-probability {
        font-size: 11px;
    }
    
    .probability-bar-small {
        width: 30px;
        height: 3px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .slot-machine-container {
        padding: 12px;
        margin: 0;
    }
    
    .lottery-info {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .lottery-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .lottery-info p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .lottery-status {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .lottery-status span {
        text-align: center;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .slot-machine-wrapper {
        margin: 20px 0;
        padding: 0 8px;
        /* 移动端减少3D透视效果 */
        perspective: 800px;
    }
    
    .slot-machine {
        padding: 12px;
        margin: 0;
        border-radius: 16px;
        max-width: 100%;
        box-sizing: border-box;
        /* 移动端减少变换效果 */
        transform: rotateX(5deg);
    }
    
    .slot-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .slot-lights {
        gap: 6px;
        margin-bottom: 12px;
        /* 移动端减少灯光数量 */
        justify-content: center;
    }
    
    .light {
        width: 10px;
        height: 10px;
    }
    
    /* 移动端隐藏部分装饰灯光 */
    .light:nth-child(n+11) {
        display: none;
    }
    
    .slot-display {
        gap: 6px;
        padding: 10px;
        margin-bottom: 15px;
        /* 移动端优化扫描线效果 */
        background-size: 100% 2px;
    }
    
    .slot-reel {
        width: 60px;
        height: 90px;
        /* 移动端减少阴影效果 */
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(255, 215, 0, 0.2);
    }
    
    .symbol {
        height: 30px;
        font-size: 18px;
        /* 移动端优化符号显示 */
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .slot-result {
        margin-top: 15px;
        padding: 12px;
    }
    
    .result-window {
        gap: 10px;
    }
    
    .result-symbol {
        width: 45px;
        height: 45px;
        font-size: 20px;
        /* 移动端优化结果符号 */
        box-shadow: 
            inset 0 2px 4px rgba(255, 255, 255, 0.2),
            0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .lottery-controls {
        margin: 20px 0;
        padding: 0 16px;
    }
    
    .slot-lever {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 160px;
        border-radius: 12px;
        width: 100%;
        max-width: 280px;
        /* 移动端优化按钮触摸体验 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .lever-handle {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .lever-text {
        font-size: 13px;
    }
    
    .buy-draws-btn {
        margin-top: 12px;
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
        border-radius: 10px;
        /* 移动端优化按钮触摸体验 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-icon {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .btn-text {
        font-size: 13px;
    }
    
    .lottery-cost-info {
        margin-top: 10px;
        font-size: 13px;
        padding: 0 16px;
    }
    
    .prize-list {
        margin-top: 30px;
        padding: 16px;
        border-radius: 10px;
    }
    
    .prize-list h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .prize-item {
        padding: 12px;
        border-radius: 8px;
    }
    
    .prize-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .prize-name {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .prize-value {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .prize-probability {
        font-size: 11px;
    }
    
    /* 移动端动画优化 */
    .reel-spinning {
        animation-duration: 0.8s; /* 移动端缩短动画时间 */
    }
    
    .reel-spinning-fast {
        animation-duration: 0.6s;
    }
    
    .reel-spinning-slow {
        animation-duration: 1.2s;
    }
    
    /* 移动端减少粒子效果 */
    .jackpot-animation {
        animation-duration: 2s; /* 缩短中奖动画时间 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .slot-machine-container {
        padding: 8px;
    }
    
    .lottery-info {
        padding: 12px;
    }
    
    .lottery-info h3 {
        font-size: 16px;
    }
    
    .lottery-info p {
        font-size: 12px;
    }
    
    .slot-machine-wrapper {
        /* 超小屏幕进一步减少3D效果 */
        perspective: 600px;
        padding: 0 4px;
    }
    
    .slot-machine {
        padding: 10px;
        /* 超小屏幕减少变换 */
        transform: rotateX(2deg);
    }
    
    .slot-title {
        font-size: 16px;
    }
    
    /* 超小屏幕只显示核心灯光 */
    .light:nth-child(n+8) {
        display: none;
    }
    
    .slot-display {
        gap: 4px;
        padding: 8px;
    }
    
    .slot-reel {
        width: 50px;
        height: 75px;
        /* 超小屏幕简化阴影 */
        box-shadow: 
            inset 0 1px 2px rgba(0, 0, 0, 0.3),
            0 1px 4px rgba(255, 215, 0, 0.2);
    }
    
    .symbol {
        height: 25px;
        font-size: 16px;
        /* 超小屏幕简化文字阴影 */
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    }
    
    .result-window {
        gap: 6px;
    }
    
    .result-symbol {
        width: 40px;
        height: 40px;
        font-size: 18px;
        /* 超小屏幕简化结果符号阴影 */
        box-shadow: 
            inset 0 1px 2px rgba(255, 255, 255, 0.2),
            0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .slot-lever {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
        /* 超小屏幕优化触摸区域 */
        min-height: 48px;
    }
    
    .lever-handle {
        font-size: 16px;
    }
    
    .lever-text {
        font-size: 12px;
    }
    
    .buy-draws-btn {
        /* 超小屏幕优化触摸区域 */
        min-height: 44px;
        padding: 10px 20px;
    }
    
    .prize-list {
        padding: 12px;
    }
    
    .prize-list h4 {
        font-size: 16px;
    }
    
    .prize-item {
        padding: 10px;
    }
    
    .prize-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    /* 超小屏幕进一步优化动画性能 */
    .reel-spinning {
        animation-duration: 0.6s;
    }
    
    .reel-spinning-fast {
        animation-duration: 0.4s;
    }
    
    .reel-spinning-slow {
        animation-duration: 1s;
    }
    
    .jackpot-animation {
        animation-duration: 1.5s;
    }
    
    /* 超小屏幕禁用部分复杂动画 */
    .slot-machine {
        animation: none;
    }
    
    .slot-lights .light {
        animation-duration: 2s; /* 减慢灯光闪烁 */
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .slot-machine-container {
        padding: 8px;
    }
    
    .lottery-info {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .slot-machine-wrapper {
        margin: 16px 0;
    }
    
    .slot-machine {
        padding: 10px;
    }
    
    .slot-display {
        margin-bottom: 12px;
    }
    
    .slot-reel {
        width: 55px;
        height: 80px;
    }
    
    .symbol {
        height: 27px;
        font-size: 17px;
    }
    
    .lottery-controls {
        margin: 16px 0;
    }
    
    .slot-lever {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .prize-list {
        margin-top: 20px;
        padding: 12px;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .prize-item {
        padding: 8px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .slot-machine-container {
        padding: 20px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .slot-machine-wrapper {
        perspective: 1200px;
    }
    
    .slot-machine {
        transform: rotateX(8deg);
        padding: 20px;
    }
    
    .slot-display {
        gap: 12px;
    }
    
    .slot-reel {
        width: 80px;
        height: 120px;
    }
    
    .symbol {
        height: 40px;
        font-size: 24px;
    }
    
    .result-symbol {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .slot-lever {
        padding: 18px 36px;
        font-size: 18px;
        max-width: 320px;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 触摸设备通用优化 */
@media (hover: none) and (pointer: coarse) {
    .slot-lever:hover,
    .buy-draws-btn:hover,
    .shop-buy-btn:hover {
        transform: none; /* 禁用悬停变换效果 */
    }
    
    .slot-lever:active,
    .buy-draws-btn:active,
    .shop-buy-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 优化触摸反馈 */
    .symbol:hover {
        transform: none;
    }
    
    .prize-item:hover {
        transform: none;
    }
    
    /* 增大触摸目标 */
    .slot-lever,
    .buy-draws-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .symbol,
    .result-symbol {
        /* 高分辨率屏幕优化文字渲染 */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .slot-machine {
        /* 高分辨率屏幕优化边框 */
        border-width: 0.5px;
    }
}

/* 减少动画的用户偏好 */
@media (prefers-reduced-motion: reduce) {
    .reel-spinning,
    .reel-spinning-fast,
    .reel-spinning-slow,
    .reel-stopping {
        animation-duration: 0.3s;
        animation-iteration-count: 1;
    }
    
    .jackpot-animation,
    .winning-glow {
        animation: none;
    }
    
    .slot-lights .light {
        animation: none;
        opacity: 0.8;
    }
    
    .symbol-highlight {
        animation: none;
        background: linear-gradient(45deg, #ffd700, #ffed4e);
    }
}

/* 粒子效果样式 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 50%, transparent 100%);
    border-radius: 50%;
    animation: particleFall 3s ease-out forwards;
    opacity: 0;
}

.particle.gold {
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 50%, transparent 100%);
    box-shadow: 0 0 6px #ffd700;
}

.particle.silver {
    background: radial-gradient(circle, #c0c0c0 0%, #e8e8e8 50%, transparent 100%);
    box-shadow: 0 0 6px #c0c0c0;
}

.particle.diamond {
    background: radial-gradient(circle, #b9f2ff 0%, #ffffff 50%, transparent 100%);
    box-shadow: 0 0 8px #b9f2ff;
    animation: particleFallDiamond 3s ease-out forwards;
}

.particle.star {
    width: 12px;
    height: 12px;
    background: none;
    color: #ffd700;
    font-size: 12px;
    text-shadow: 0 0 6px #ffd700;
    animation: particleFallStar 4s ease-out forwards;
}

@keyframes particleFall {
    0% {
        opacity: 1;
        transform: translateY(-20px) translateX(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateY(0px) translateX(0) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(calc(100vh + 20px)) translateX(var(--drift, 0px)) rotate(360deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(calc(100vh + 40px)) translateX(var(--drift, 0px)) rotate(360deg) scale(0.3);
    }
}

@keyframes particleFallDiamond {
    0% {
        opacity: 1;
        transform: translateY(-20px) translateX(0) rotate(0deg) scale(0.3);
    }
    15% {
        opacity: 1;
        transform: translateY(10px) translateX(0) rotate(45deg) scale(1.2);
    }
    85% {
        opacity: 0.9;
        transform: translateY(calc(100vh + 20px)) translateX(var(--drift, 0px)) rotate(405deg) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translateY(calc(100vh + 40px)) translateX(var(--drift, 0px)) rotate(450deg) scale(0.2);
    }
}

@keyframes particleFallStar {
    0% {
        opacity: 1;
        transform: translateY(-30px) translateX(0) rotate(0deg) scale(0.4);
    }
    20% {
        opacity: 1;
        transform: translateY(0px) translateX(0) rotate(72deg) scale(1.3);
    }
    80% {
        opacity: 0.7;
        transform: translateY(calc(100vh + 30px)) translateX(var(--drift, 0px)) rotate(432deg) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translateY(calc(100vh + 50px)) translateX(var(--drift, 0px)) rotate(504deg) scale(0.3);
    }
}

/* 烟花效果 */
.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: fireworkExplode 1.5s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        opacity: 1;
        transform: scale(0.1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.4);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
        box-shadow: 0 0 40px 20px rgba(255, 215, 0, 0);
    }
}

/* 中奖文字动画 */
.jackpot-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    pointer-events: none;
    animation: jackpotTextAnimation 3s ease-out forwards;
    opacity: 0;
}

@keyframes jackpotTextAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(1deg);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }
}

/* 彩带效果 */
.confetti {
    position: absolute;
    width: 10px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    animation: confettiFall 4s ease-out forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-20px) translateX(0) rotateZ(0deg);
    }
    10% {
        opacity: 1;
        transform: translateY(0px) translateX(0) rotateZ(180deg);
    }
    90% {
        opacity: 0.6;
        transform: translateY(calc(100vh + 20px)) translateX(var(--drift, 0px)) rotateZ(1800deg);
    }
    100% {
        opacity: 0;
        transform: translateY(calc(100vh + 40px)) translateX(var(--drift, 0px)) rotateZ(2160deg);
    }
}

/* 光环效果 */
.halo-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 3px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, #ffd700, #ffed4e, #ffd700, #ffed4e, #ffd700);
    mask: radial-gradient(circle, transparent 90px, black 93px, black 97px, transparent 100px);
    -webkit-mask: radial-gradient(circle, transparent 90px, black 93px, black 97px, transparent 100px);
    animation: haloRotate 2s linear infinite;
    opacity: 0;
}

.halo-effect.active {
    opacity: 0.8;
    animation: haloRotate 2s linear infinite, haloFade 3s ease-out forwards;
}

@keyframes haloRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes haloFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* 交互反馈效果 */
/* 按钮悬停和点击效果 */
.btn, .slot-lever, .buy-draws-btn, .shop-buy-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover, .slot-lever:hover, .buy-draws-btn:hover, .shop-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active, .slot-lever:active, .buy-draws-btn:active, .shop-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 按钮点击波纹效果 */
.btn::before, .slot-lever::before, .buy-draws-btn::before, .shop-buy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::before, .slot-lever:active::before, 
.buy-draws-btn:active::before, .shop-buy-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 卡片悬停效果 */
.checkin-item, .shop-item, .prize-item, .summary-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkin-item:hover, .shop-item:hover, .prize-item:hover, .summary-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 输入框聚焦效果 */
input[type="text"], input[type="password"], input[type="number"], textarea, select {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: scale(1.02);
}

/* 加载状态效果 */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功/错误状态反馈 */
.success-feedback {
    animation: successPulse 0.6s ease-out;
    border-color: #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.1) !important;
}

.error-feedback {
    animation: errorShake 0.6s ease-out;
    border-color: #f44336 !important;
    background-color: rgba(244, 67, 54, 0.1) !important;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 数字计数动画 */
.counter {
    transition: all 0.3s ease;
}

.counter.updating {
    animation: counterUpdate 0.5s ease-out;
}

@keyframes counterUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #4CAF50; }
    100% { transform: scale(1); }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .btn:hover, .slot-lever:hover, .buy-draws-btn:hover, .shop-buy-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .checkin-item:hover, .shop-item:hover, .prize-item:hover, .summary-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* 备注样式 */
.item-notes {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 4px;
    padding: 6px 8px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-color);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 响应式备注样式 */
@media (max-width: 768px) {
    .item-notes {
        font-size: 0.8em;
        padding: 4px 6px;
        margin-top: 3px;
    }
}

@media (max-width: 480px) {
    .item-notes {
        font-size: 0.75em;
        padding: 3px 5px;
        margin-top: 2px;
        line-height: 1.3;
    }
}

// ... existing code ...