/* 黑料网 - 影视传媒视频社区 CSS样式表 */
/* wjfood.com.cn */

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

html {
    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: #0a0a0f;
}

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

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

ul, ol {
    list-style: none;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========== 头部导航 ========== */
.header {
    background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.95) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(139,92,246,0.2);
    backdrop-filter: blur(10px);
}

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

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

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #8b5cf6;
}

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

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

/* ========== 搜索框 ========== */
.search-bar {
    background: rgba(20,20,30,0.9);
    padding: 15px 0;
    border-bottom: 1px solid rgba(139,92,246,0.1);
    margin-top: 70px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 500px;
    max-width: 90%;
    padding: 12px 20px;
    border: 2px solid rgba(139,92,246,0.3);
    border-radius: 25px;
    background: rgba(30,30,45,0.8);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139,92,246,0.3);
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139,92,246,0.4);
}

/* ========== Banner轮播 ========== */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #8b5cf6;
    transform: scale(1.2);
}

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

.video-card {
    background: rgba(20,20,30,0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(139,92,246,0.1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.3);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(139,92,246,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(139,92,246,0.2);
    color: #8b5cf6;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 10px;
}

/* ========== 专家展示 ========== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.expert-card {
    background: rgba(20,20,30,0.8);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 10px 30px rgba(139,92,246,0.15);
}

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid rgba(139,92,246,0.5);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 14px;
    color: #8b5cf6;
    margin-bottom: 15px;
}

.expert-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.expert-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.expert-social a {
    width: 36px;
    height: 36px;
    background: rgba(139,92,246,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.expert-social a:hover {
    background: #8b5cf6;
    color: #fff;
}

.expert-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139,92,246,0.4);
}

/* ========== 合作伙伴 ========== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.partner-logo {
    width: 180px;
    height: 80px;
    background: rgba(30,30,45,0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    border-color: rgba(139,92,246,0.3);
    transform: translateY(-3px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== 用户评价 ========== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.review-card {
    background: rgba(20,20,30,0.8);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: rgba(139,92,246,0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user-info h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 3px;
}

.review-user-info span {
    font-size: 13px;
    color: #888;
}

.review-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 10px;
}

.review-content {
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(20,20,30,0.8);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(139,92,246,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(139,92,246,0.1);
}

.faq-icon {
    font-size: 20px;
    color: #8b5cf6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 联系我们 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: rgba(20,20,30,0.8);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(139,92,246,0.1);
}

.contact-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139,92,246,0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(139,92,246,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 3px;
}

.contact-text p {
    font-size: 13px;
    color: #888;
}

.qrcode-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qrcode-item p {
    font-size: 13px;
    color: #888;
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(5,5,10,0.95);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(139,92,246,0.2);
}

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

.footer-col h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #8b5cf6;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #888;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #8b5cf6;
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(139,92,246,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #8b5cf6;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139,92,246,0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
}

.footer-bottom a {
    color: #8b5cf6;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 15px 0;
    background: rgba(15,15,25,0.9);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-list a {
    color: #888;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #8b5cf6;
}

.breadcrumb-list span {
    color: #8b5cf6;
}

.breadcrumb-separator {
    color: #555;
}

/* ========== 分类标签 ========== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.category-tab {
    padding: 10px 25px;
    background: rgba(30,30,45,0.8);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 25px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: transparent;
    color: #fff;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,30,45,0.8);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

/* ========== 社交分享 ========== */
.share-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(20,20,30,0.8);
    border-radius: 10px;
    margin-top: 30px;
}

.share-box span {
    color: #888;
    font-size: 14px;
}

.share-btns {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.wechat {
    background: #07c160;
}

.share-btn.weibo {
    background: #e6162d;
}

.share-btn.douyin {
    background: #000;
}

.share-btn.bilibili {
    background: #fb7299;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ========== 工具卡片 ========== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    background: rgba(20,20,30,0.8);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 10px 30px rgba(139,92,246,0.15);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.tool-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ========== 社区帖子 ========== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: rgba(20,20,30,0.8);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: rgba(139,92,246,0.3);
}

.post-thumb {
    width: 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.post-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .search-bar {
        margin-top: 60px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-thumb {
        width: 100%;
        height: 180px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .category-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== 懒加载占位 ========== */
.lazy-load {
    background: linear-gradient(90deg, rgba(30,30,45,0.5) 25%, rgba(50,50,70,0.5) 50%, rgba(30,30,45,0.5) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
}
