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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.stats-card h2 {
    margin-bottom: 20px;
    color: #4a5568;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f56565;
    transition: background 0.3s ease;
}

.status-dot.completed {
    background: #48bb78;
    animation: pulse 2s infinite;
}

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

.plan-info {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.plan-info h3 {
    margin-bottom: 20px;
    color: #4a5568;
    text-align: center;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.plan-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-5px);
}

.plan-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.plan-bonus {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 赞助按钮（每个档位） */
.plan-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    text-decoration: none;
    backdrop-filter: blur(2px);
}
.plan-link-btn:hover {
    background: rgba(255,255,255,0.3);
}

.admin-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-panel h3 {
    margin-bottom: 20px;
    color: #4a5568;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#wordInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#wordInput:focus {
    outline: none;
    border-color: #667eea;
}

.update-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.update-btn:hover {
    transform: translateY(-2px);
}

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

/* 赞助与直播扩展区域 */
.extra-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}
.extra-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}
.extra-title {
    font-weight: 600;
    margin-bottom: 8px;
}
.link-btn {
    display: inline-block;
    padding: 10px 14px;
    background: #3182ce;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}
.link-btn:hover {
    background: #2b6cb0;
}
.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.status-dot.live {
    background: #48bb78;
}

.last-update {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.celebration.show {
    display: flex;
    animation: fadeIn 0.5s ease;
}

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

.celebration-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    animation: celebrationBounce 0.8s ease;
}

@keyframes celebrationBounce {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: celebrationSpin 1s ease-in-out;
}

@keyframes celebrationSpin {
    0% { transform: rotate(0deg) scale(0.5); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.celebration h2 {
    color: #48bb78;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
}

.update-time {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .plan-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .update-btn {
        width: 100%;
    }
}
