/* 活动中心区块样式 */
.events-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.events-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.events-header {
    text-align: center;
    margin-bottom: 50px;
}

.events-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.events-subtitle {
    font-size: 1.1em;
    color: #ccc;
}

/* 活动状态标签 */
.event-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 15px;
}

.event-status.ongoing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    animation: pulse 2s infinite;
}

.event-status.upcoming {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.event-status.ended {
    background: rgba(128, 128, 128, 0.3);
    color: #888;
}

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

/* 活动卡片网格 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.5);
}

.event-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 2px solid #ffd700;
}

.event-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    position: relative;
    overflow: hidden;
}

.event-card.featured .event-card-image {
    height: 250px;
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.5);
}

.event-card-content {
    padding: 25px;
}

.event-card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.event-card.featured .event-card-title {
    font-size: 1.8em;
    color: #ffd700;
}

.event-card-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.9em;
}

.event-countdown {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

/* 倒计时样式 */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.countdown-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.countdown-label {
    font-size: 0.9em;
    color: #999;
    margin-top: 5px;
}

/* 活动奖励展示 */
.event-rewards {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.rewards-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rewards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reward-item {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    color: #ffd700;
    font-size: 0.9em;
}

/* 活动规则 */
.event-rules {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.rules-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    color: #ccc;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rules-list li:before {
    content: '•';
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
}

.rules-list li:last-child {
    border-bottom: none;
}

/* 活动详情模态框 */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5em;
    color: #ffd700;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card.featured {
        grid-column: span 1;
    }

    .countdown-timer {
        gap: 10px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 15px 10px;
    }

    .countdown-value {
        font-size: 1.8em;
    }

    .events-title {
        font-size: 2em;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: slideIn 0.6s ease forwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
