/* ===== Events页面专用样式 ===== */

/* 活动容器 */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 活动头部 */
.events-header {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.events-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

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

.events-header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.events-header p {
    font-size: 1.3em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* 活动筛选 */
.events-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

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

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-image {
    height: 220px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    font-size: 1.5em;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9em;
    opacity: 0.8;
}

.event-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.event-status.upcoming {
    background: #2196F3;
}

.event-status.ongoing {
    background: #FF9800;
}

.event-status.completed {
    background: #9E9E9E;
}

.event-content {
    padding: 25px;
}

.event-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.meta-item i {
    color: #ff6b6b;
    margin-right: 10px;
    width: 16px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.event-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6b6b;
}

.event-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.event-btn:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* 特色活动区域 */
.featured-events {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 60px;
    color: white;
}

.featured-events .section-title {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.featured-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.featured-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 活动统计 */
.events-stats {
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b6b;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1.1em;
    font-weight: 500;
}

/* 空状态 */
.empty-events {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-events h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #999;
}

.empty-events p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .events-container {
        padding: 10px;
    }
    
    .events-header {
        padding: 50px 20px;
    }
    
    .events-header h1 {
        font-size: 2.5em;
    }
    
    .events-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-events,
    .events-stats {
        padding: 40px 20px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .events-header h1 {
        font-size: 2em;
    }
    
    .events-header p {
        font-size: 1.1em;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .event-btn {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2em;
    }
}

/* 照片上传样式 */
.photo-upload-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.photo-upload-item {
    flex: 1;
    min-width: 200px;
}

.photo-upload-label {
    display: block;
    cursor: pointer;
}

.photo-preview {
    width: 100%;
    height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-icon {
    font-size: 2em;
    margin-bottom: 10px;
    opacity: 0.6;
}

.photo-preview span {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.photo-upload-item input[type="file"] {
    display: none;
}

/* 视频上传样式 */
.video-upload-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.video-upload-item {
    flex: 1;
    min-width: 200px;
}

.video-upload-label {
    display: block;
    cursor: pointer;
}

.video-preview {
    width: 100%;
    height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-preview:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.upload-tips {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    text-align: center;
}