/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.8;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* 头部 */
header {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-area {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.site-logo {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.site-logo a {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-nav {
    background: #2c3e50;
}

.nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.nav-list a {
    display: block;
    color: #ecf0f1;
    padding: 15px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
    background: #34495e;
    color: #fff;
}

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

/* 首页样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 60px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.site-desc {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section,
.hot-section,
.category-section,
.new-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.intro-section h2,
.hot-section h2,
.category-section h2,
.new-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.intro-section p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.video-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-card h3 a {
    color: #2c3e50;
}

.video-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.video-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.category-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cat-link {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s;
}

.cat-link:hover {
    transform: scale(1.05);
    color: #fff;
}

.video-list {
    list-style: none;
    padding: 0;
}

.video-list li {
    border-bottom: 1px solid #ecf0f1;
    padding: 15px 0;
}

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

.video-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
}

.video-list a:hover {
    color: #667eea;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
}

.video-year {
    color: #95a5a6;
    font-size: 14px;
}

.more-link {
    margin-top: 25px;
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.more-link a {
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
}

/* 列表页样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.page-desc {
    font-size: 16px;
    line-height: 1.8;
}

.list-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.video-list-full {
    list-style: none;
    padding: 0;
}

.video-list-full li {
    border-bottom: 1px solid #ecf0f1;
    padding: 15px 0;
}

.video-list-full a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #2c3e50;
}

.video-list-full .video-title {
    flex: 2;
    font-size: 16px;
    font-weight: 500;
}

.video-list-full .video-meta {
    flex: 1;
    color: #7f8c8d;
    font-size: 14px;
}

.video-list-full .video-genre {
    flex: 1;
    color: #95a5a6;
    font-size: 14px;
}

.video-list-ranked {
    list-style: none;
    padding: 0;
}

.video-list-ranked li {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ecf0f1;
    padding: 20px 0;
}

.rank-num {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-grid-topic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card-topic {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.video-card-topic:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 {
    font-size: 18px;
    margin: 0;
}

.video-type {
    background: #667eea;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.video-tags {
    color: #95a5a6;
    font-size: 13px;
    margin: 8px 0;
}

.video-list-latest {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-item-latest {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.video-item-latest:hover {
    background: #e9ecef;
}

.update-time {
    min-width: 80px;
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

.video-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* 详情页样式 */
.detail-page {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.detail-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

.detail-info,
.detail-oneline,
.detail-summary,
.detail-review,
.detail-related {
    margin-bottom: 35px;
}

.detail-info h2,
.detail-oneline h2,
.detail-summary h2,
.detail-review h2,
.detail-related h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
}

.info-list .label {
    font-weight: bold;
    color: #555;
    min-width: 80px;
}

.info-list .value {
    color: #333;
}

.oneline-text {
    font-size: 18px;
    line-height: 1.8;
    color: #667eea;
    font-weight: 500;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.summary-text,
.review-text {
    font-size: 16px;
    line-height: 2;
    color: #555;
    text-align: justify;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.related-meta {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 8px;
}

.related-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-title {
        font-size: 28px;
    }

    .site-desc {
        font-size: 16px;
    }

    .nav-list a {
        padding: 12px 5px;
        font-size: 13px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .category-links {
        flex-direction: column;
    }

    .detail-page {
        padding: 20px;
    }

    .detail-header h1 {
        font-size: 28px;
    }

    .video-list-full a {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-item-latest {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 20px;
    }

    .main-title {
        font-size: 24px;
    }

    .site-desc {
        font-size: 14px;
    }
}
