/* 西洋影视 - 欧美热播剧站点样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* 导航栏 - 移动端单行显示 */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap; /* 关键：禁止换行 */
    overflow-x: auto; /* 允许横向滚动 */
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.nav-list li {
    flex-shrink: 0; /* 防止缩小 */
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap; /* 文字不换行 */
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8f9fa;
}

/* 主内容区 */
main {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-section h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1rem;
    color: #666;
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-header h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
}

/* 内容区块 */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.more-link:hover {
    color: #764ba2;
}

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

.video-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.video-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    min-height: 80px;
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

.video-card-body {
    padding: 15px;
}

.video-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.video-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f0f0f0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

/* 详情页 */
.video-detail {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detail-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
}

.meta-info span {
    padding: 5px 15px;
    background-color: #f8f9fa;
    border-radius: 15px;
    color: #666;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 15px;
}

.detail-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.one-line {
    font-style: italic;
    color: #667eea;
    font-weight: 500;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.related-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.related-item:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.related-item a {
    text-decoration: none;
    color: #333;
}

.related-item:hover a {
    color: white;
}

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

.related-item p {
    font-size: 0.85rem;
    color: #666;
}

.related-item:hover p {
    color: rgba(255,255,255,0.9);
}

/* 底部 */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.site-footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }

    .site-subtitle {
        font-size: 0.9rem;
    }

    .nav-list a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

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

    .video-detail {
        padding: 20px;
    }

    .detail-header h2 {
        font-size: 1.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

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

    .site-title {
        font-size: 1.5rem;
    }
}
