/* 糖心vlog - 主样式表 */
/* 纯原创CSS布局 */

/* ===== 基础重置 ===== */
* {
    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: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

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

a:hover {
    color: #e74c3c;
}

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

ul, ol {
    list-style: none;
}

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

/* ===== 头部导航 ===== */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

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

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

.main-nav a {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

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

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item:hover {
    color: #e74c3c;
}

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

.breadcrumb-separator {
    color: #999;
    font-size: 0.8rem;
}

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

/* ===== 页面标题区 ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    color: #fff;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== 板块标题 ===== */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    position: relative;
    padding-left: 15px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #e74c3c;
    border-radius: 2px;
}

/* ===== 视频卡片网格 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    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(0, 0, 0, 0.15);
}

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

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

.video-card:hover .video-card-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(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

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

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

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

.video-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.video-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-source {
    font-size: 0.75rem;
    color: #999;
    margin-top: 8px;
}

/* ===== 分类描述区 ===== */
.category-intro {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-intro h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.category-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

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

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

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e74c3c;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

.footer-statement {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.footer-statement p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-update {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== EEAT页面样式 ===== */
.content-page {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-page h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.content-page h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #e74c3c;
}

.content-page p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

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

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

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.team-member {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.team-member h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.contact-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    color: #1a1a2e;
}

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

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .content-page {
        padding: 25px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .page-header {
        padding: 25px 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
}
