/* Lottery Base Styles - 使用粉色/橙色系 */
:root {
    --lottery-primary: #ff8e64;
    --lottery-primary-rgb: 255, 142, 100;
    --lottery-secondary: #ffb3a0;
    --lottery-secondary-rgb: 255, 179, 160;
    --lottery-tertiary: #ffe5de;
    --lottery-tertiary-rgb: 255, 229, 222;
    --lottery-quaternary: #ff9d7a;
    --lottery-quaternary-rgb: 255, 157, 122;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.lottery-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8e64 0%, #ffb3a0 50%, #ff9d7a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.lottery-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.lottery-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.lottery-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8e64 0%, #ff9d7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* 中奖公告 */
.lottery-page-announcement {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe5de 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 142, 100, 0.2);
}

.lottery-page-announcement .announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.lottery-page-announcement .announcement-icon {
    font-size: 20px;
    color: #ff8e64;
    animation: pulse 2s ease-in-out infinite;
}

.lottery-page-announcement .announcement-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.lottery-page-announcement .announcement-list {
    position: relative;
    height: 40px;
    overflow: hidden;
}

.lottery-page-announcement .announcement-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.lottery-page-announcement .announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 142, 100, 0.15);
}

.lottery-page-announcement .announcement-user {
    color: #666;
    font-weight: 500;
}

.lottery-page-announcement .announcement-prize {
    color: #ff8e64;
    font-weight: 700;
}

/* 免责条款 */
.lottery-page-disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 142, 100, 0.2);
}

.lottery-page-disclaimer .disclaimer-text {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    text-align: center;
}

.lottery-back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lottery-back-btn:hover {
    background: white;
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lottery-back-btn i {
    font-size: 18px;
}

.lottery-btn {
    background: linear-gradient(135deg, #ff8e64 0%, #ff9d7a 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 142, 100, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
    box-sizing: border-box;
}

.lottery-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;
}

.lottery-btn:hover::before {
    width: 300px;
    height: 300px;
}

.lottery-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 142, 100, 0.5);
}

.lottery-btn:active {
    transform: scale(0.98);
}

.lottery-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.result-content {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: popIn 0.4s ease-out;
    box-sizing: border-box;
}

.result-content .lottery-btn {
    margin: 5px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
}

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

.result-icon {
    font-size: 80px;
    margin-bottom: 25px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.result-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.result-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.result-content strong {
    color: #ff8e64;
    font-size: 20px;
}

@media (max-width: 768px) {
    .lottery-content {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .lottery-title {
        font-size: 28px;
    }
    .lottery-back-btn {
        top: 15px;
        left: 15px;
        padding: 10px 18px;
        font-size: 14px;
    }
}

