/* ==================== 信息填写表单 ==================== */
.form-section {
    margin: 20px 0;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.form-card h3 {
    text-align: center;
    color: #0AB4C8;
    font-size: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #1A3A40;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8F8FA;
    border-radius: 12px;
    font-size: 16px;
    color: #1A3A40;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #0AB4C8;
    box-shadow: 0 0 0 3px rgba(10, 180, 200, 0.2);
}

.form-group input::placeholder {
    color: #aaa;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.user-info-display {
    text-align: center;
    font-size: 18px;
    color: #1A3A40;
    margin-bottom: 15px;
    font-weight: bold;
}

.user-info-display span {
    color: #0AB4C8;
}

/* ==================== 底部信息 ==================== */
:root {
    --primary-teal: #0AB4C8;
    --primary-teal-dark: #089DAE;
    --deep-teal: #067A8A;
    --darker-teal: #045A66;
    --accent-orange: #FF8C00;
    --accent-gold: #FFD700;
    --accent-gold-light: #FFC107;
    --white: #FFFFFF;
    --light-cyan: #E8F8FA;
    --text-dark: #1A3A40;
    --bg-gradient: linear-gradient(135deg, #0AB4C8 0%, #067A8A 100%);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    --button-gradient: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--white);
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/kv_bg_teal.png');
    background-size: cover;
    background-position: center;
    z-index: -3;
}

.radiating-rays {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        transparent 50%);
    z-index: -2;
    animation: rotate 30s linear infinite;
}

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

.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    animation: float-up linear infinite;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

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

.header {
    text-align: center;
    padding: 20px 0;
}

.logo-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 30px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.brand-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.brand-slogan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.hero-section {
    text-align: center;
    padding: 30px 0;
}

.title-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.title-618 {
    font-size: 80px;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    line-height: 1;
    letter-spacing: -2px;
}

.title-sub {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.lottery-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.lottery-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.prizes-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.prize-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.1) 100%);
    pointer-events: none;
}

.prize-icon {
    font-size: 40px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.prize-info {
    flex: 1;
}

.prize-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.prize-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.prize-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-orange);
}

.prize-badge {
    background: var(--gold-gradient);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

.prize-1 { border-left: 4px solid #FFD700; }
.prize-2 { border-left: 4px solid #FF8C00; }
.prize-3 { border-left: 4px solid #0AB4C8; }

.draw-section {
    text-align: center;
    margin: 30px 0;
}

.consult-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.draw-button {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: var(--button-gradient);
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(255, 140, 0, 0.5),
        0 0 0 8px rgba(255, 215, 0, 0.3),
        0 0 0 16px rgba(255, 215, 0, 0.15),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2),
        inset 0 5px 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 10px 40px rgba(255, 140, 0, 0.5),
            0 0 0 8px rgba(255, 215, 0, 0.3),
            0 0 0 16px rgba(255, 215, 0, 0.15),
            inset 0 -5px 20px rgba(0, 0, 0, 0.2),
            inset 0 5px 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 15px 50px rgba(255, 140, 0, 0.6),
            0 0 0 12px rgba(255, 215, 0, 0.4),
            0 0 0 24px rgba(255, 215, 0, 0.2),
            inset 0 -5px 20px rgba(0, 0, 0, 0.2),
            inset 0 5px 20px rgba(255, 255, 255, 0.3);
    }
}

.draw-button:hover { transform: scale(1.1); }
.draw-button:active { transform: scale(0.95); }
.draw-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: shine 3s ease-in-out infinite;
}

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

.draw-tip {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
}

.footer-consult {
    font-size: 13px !important;
    color: rgba(255, 215, 0, 0.9) !important;
    font-weight: bold;
}

.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: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active { display: flex; }

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

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #E8F8FA 100%);
    border-radius: 24px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 215, 0, 0.5);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.congrats-text {
    font-size: 32px;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.prize-display {
    background: linear-gradient(135deg, rgba(10, 180, 200, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.prize-level-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.prize-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1.4;
}

.prize-qr {
    background: rgba(10, 180, 200, 0.1);
    border-radius: 12px;
    padding: 15px;
}

.prize-qr p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.modal-footer { text-align: center; }

.close-button {
    background: var(--button-gradient);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
}

.close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

@media (max-width: 360px) {
    .title-618 { font-size: 60px; }
    .lottery-title { font-size: 28px; }
    .draw-button {
        width: 160px;
        height: 160px;
        font-size: 24px;
    }
    .prize-card { padding: 12px 15px; }
    .prize-icon { font-size: 32px; }
}

.draw-button.loading .btn-text { visibility: hidden; }

.draw-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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