/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #ff416c;
    --secondary: #38ef7d;
    --accent: #ffd166;
    --dark: #1a1a2e;
    --darker: #0d0d1a;
    --light: #f0f0f0;
    --gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

body {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--light);
    min-height: 100vh;
    padding-bottom: 60px;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 头部导航 */
header {
    background: rgba(13, 13, 26, 0.85);
    padding: 15px 5%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

h1 {
    font-size: 2.2rem;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover, nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* 主要内容容器 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
}

.card-content {
    padding: 25px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.card p {
    line-height: 1.6;
    color: #e0e0e0;
}

/* 内容页面 */
.content-page {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    display: none;
}

.content-page.active {
    display: block;
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-header h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.content-header p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.content-intro {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-intro p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 媒体网格 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.media-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-thumbnail {
    height: 180px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail i {
    position: absolute;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.media-card:hover .media-thumbnail i {
    transform: scale(1.2);
    opacity: 1;
}

.media-info {
    padding: 20px;
}

.media-info h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.media-info p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #999;
    font-size: 0.85rem;
}

.media-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 3;
}

/* 媒体模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: rgba(26, 26, 46, 0.95);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent);
    text-decoration: none;
}

#modalVideo {
    width: 100%;
    border-radius: 10px;
    background: #000;
    display: none;
}

#modalImage {
    max-height: 70vh;
    border-radius: 10px;
    display: none;
    margin: 0 auto;
}

.media-info-modal {
    padding: 20px 0;
    text-align: center;
}

.media-info-modal h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.media-info-modal p {
    color: #ccc;
    line-height: 1.6;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}