/**
 * 糖心vlog - 原创CSS样式文件
 * 专业影视视频推荐平台
 * 版权所有 2025
 */

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f8fafc;
    min-height: 100vh;
}

a {
    color: #e53e3e;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #c53030;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==================== 布局容器 ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 头部导航 ==================== */
.header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo:hover {
    color: #fc8181;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    background: linear-gradient(90deg, #fc8181, #f687b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fc8181, #f687b3);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fc8181;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #718096;
}

.breadcrumb-item.active {
    color: #2d3748;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #cbd5e0;
}

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

/* ==================== 首页英雄区 ==================== */
.hero-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7e2 100%);
    border-radius: 16px;
    margin-bottom: 45px;
}

.hero-section h1 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==================== 分类页英雄区 ==================== */
.page-hero {
    text-align: center;
    padding: 35px 20px;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-radius: 16px;
    margin-bottom: 35px;
}

.page-hero h1 {
    font-size: 2rem;
    color: #1a202c;
    font-weight: 700;
}

/* ==================== 分类介绍 ==================== */
.category-intro {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-intro h2 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 14px;
}

.category-intro p {
    color: #4a5568;
    line-height: 1.8;
}

/* ==================== 视频板块 ==================== */
.video-section {
    margin-bottom: 50px;
}

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

.section-title h2 {
    font-size: 1.4rem;
    color: #1a202c;
    position: relative;
    padding-left: 14px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #e53e3e, #f687b3);
    border-radius: 2px;
}

/* ==================== 视频网格 ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

/* ==================== 视频卡片 ==================== */
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.video-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-poster img {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    position: relative;
}

.play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #e53e3e;
}

.video-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-info {
    padding: 14px;
}

.video-info h3 {
    font-size: 0.95rem;
    color: #1a202c;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 8px;
}

.video-desc {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 内容页面 ==================== */
.content-page {
    background: #fff;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
}

.content-page h2 {
    font-size: 1.35rem;
    color: #2d3748;
    margin: 30px 0 16px;
}

.content-page p {
    color: #4a5568;
    line-height: 1.9;
    margin-bottom: 16px;
}

.content-page ul {
    margin: 16px 0;
    padding-left: 24px;
}

.content-page li {
    color: #4a5568;
    line-height: 1.9;
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

.content-page li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-weight: bold;
}

/* ==================== 团队介绍网格 ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 22px 0;
}

.team-member {
    background: #f7fafc;
    padding: 22px;
    border-radius: 10px;
    border-left: 4px solid #e53e3e;
}

.team-member h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 50px 0 25px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    margin-bottom: 35px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #fc8181, #f687b3);
}

.footer-nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-nav a,
.footer-links a {
    color: #a0aec0;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
    color: #fc8181;
}

.footer-statement {
    background: rgba(255, 255, 255, 0.06);
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.footer-statement p {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.7;
}

.footer-statement strong {
    color: #fc8181;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-update p,
.footer-copyright p {
    font-size: 0.88rem;
    color: #718096;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hero-section h1 {
        font-size: 1.7rem;
    }
    
    .content-page {
        padding: 25px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

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