/**
 * 草莓视频 - 原创CSS样式
 * 精选视频推荐平台
 * 纯原创设计，响应式布局
 */

/* ==================== 基础重置 ==================== */
*, *::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", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

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

/* ==================== 头部导航 ==================== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text span {
    color: #ffd93d;
}

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

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item:hover:not(.active) {
    color: #667eea;
}

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

.breadcrumb-separator {
    color: #adb5bd;
}

/* ==================== 主内容区 ==================== */
.main-content {
    padding: 40px 0;
}

/* 页面标题区 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 2rem;
    color: #2d3436;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.05rem;
    color: #636e72;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 网站介绍 */
.site-intro {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.site-intro p {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.9;
    text-indent: 2em;
}

/* 分类描述 */
.category-desc {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    border-left: 4px solid #667eea;
}

.category-desc h2 {
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 15px;
}

.category-desc p {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.9;
}

/* 板块标题 */
.section-title {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e9ecef 0%, transparent 100%);
    margin-left: 20px;
}

/* ==================== 视频卡片网格 ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

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

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s 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.5);
    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: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 20px solid #667eea;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* 评分标签 */
.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff9f43 100%);
    color: #2d3436;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 217, 61, 0.4);
}

/* 视频信息 */
.video-info {
    padding: 15px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-desc {
    font-size: 0.82rem;
    color: #636e72;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: #adb5bd;
}

.video-meta span {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
}

.video-rating {
    font-size: 0.8rem;
    color: #ff9f43;
    font-weight: 600;
    margin-top: 8px;
}

.video-rating .source {
    font-size: 0.7rem;
    color: #adb5bd;
    font-weight: 400;
}

/* ==================== EEAT页面内容 ==================== */
.eeat-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.eeat-content h2 {
    font-size: 1.4rem;
    color: #2d3436;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.eeat-content h2:first-child {
    margin-top: 0;
}

.eeat-content p {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.9;
    margin-bottom: 15px;
}

.eeat-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.eeat-content li {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.eeat-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 团队介绍网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.team-member {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid #667eea;
}

.team-member h4 {
    font-size: 1.1rem;
    color: #2d3436;
    margin-bottom: 10px;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #b2bec3;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #667eea;
    padding-left: 5px;
}

/* EEAT声明 */
.footer-statement {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

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

/* 更新时间 */
.footer-update {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.footer-update p {
    font-size: 0.85rem;
    color: #636e72;
}

/* 版权信息 */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #667eea;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==================== 响应式设计 ==================== */
@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-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav a {
        padding: 12px 15px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .eeat-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 0.85rem;
    }
    
    .video-desc {
        font-size: 0.75rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
}
