
/* UI样式系统 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

/* 页面头部 */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

/* 站点介绍 */
.site-intro {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-intro p {
    line-height: 1.8;
    color: #555;
}

/* 区块标题 */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #667eea;
}

.section-desc {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

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

.video-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-card .meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.video-card .one-line {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 列表项 */
.video-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.video-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.video-item.ranked {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-item .rank {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

.video-item .video-info {
    flex: 1;
}

.video-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.video-item .meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.video-item .one-line {
    color: #666;
    line-height: 1.6;
}

.video-item.simple {
    padding: 1rem 1.5rem;
}

.video-item.simple h3 {
    display: inline;
    margin-right: 1rem;
}

.video-item.simple .meta {
    display: inline;
    margin: 0;
}

/* 专题分组 */
.topic-group {
    margin-bottom: 2rem;
}

.genre-title {
    font-size: 1.2rem;
    color: #764ba2;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 4px;
}

/* 详情页 */
.detail-page {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.detail-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.basic-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.basic-info strong {
    display: inline-block;
    width: 80px;
    color: #667eea;
}

.one-line-section .highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    border-left: 4px solid #667eea;
}

.summary-section p,
.review-section p {
    line-height: 1.8;
    color: #555;
    text-indent: 2em;
}

/* 相关推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.related-item:hover {
    background: #f0f0f0;
}

.related-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-item .one-line {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

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

    h1 {
        font-size: 1.5rem;
    }

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

    .detail-page {
        padding: 1rem;
    }

    .basic-info strong {
        width: 70px;
        font-size: 0.9rem;
    }
}
