/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.header h1 i {
    margin-right: 10px;
    color: #ffd700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 导航样式 */
.navigation {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.navigation li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8f9fa;
}

/* 主要内容区域 */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

.section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 300;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.section h2 i {
    margin-right: 10px;
    color: #667eea;
}

/* 描述容器样式 */
.descriptions-container {
    display: grid;
    gap: 2rem;
}

.description-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.description-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description-content {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* 描述媒体样式 */
.description-media {
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.description-media h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-media h4 i {
    color: #667eea;
}

.description-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.description-media-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.description-media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.description-media-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: #f0f0f0;
}

.description-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.description-media-item:hover .description-media-overlay {
    opacity: 1;
}

.description-media-overlay i {
    color: white;
    font-size: 1.5rem;
}

.description-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* 媒体容器样式 */
.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.media-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.media-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.media-info {
    padding: 1rem;
}

.media-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.media-meta {
    color: #999;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-type {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #bbb;
}

.modal-body {
    text-align: center;
}

.modal-body img,
.modal-body video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.7);
    border-radius: 5px;
    margin-top: 1rem;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.loading i {
    margin-right: 10px;
    color: #667eea;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .navigation ul {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    .media-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .description-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .description-card {
        padding: 1rem;
    }
    
    .description-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .description-media-preview {
        height: 70px;
    }
    
    .media-info {
        padding: 0.8rem;
    }
}
