/* 99热这里有精品 - 主样式表 */
/* dianyou360.com 影视传媒视频社区 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

a:hover {
    color: #ff4757;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

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

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    color: #ff4757;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #ff4757;
    color: #fff;
}

/* 搜索框 */
.search-bar {
    background: rgba(255,255,255,0.1);
    padding: 12px 0;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    padding: 12px 30px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #ff6b7a;
}

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

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

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

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px;
    color: #fff;
}

.banner-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-desc {
    font-size: 16px;
    opacity: 0.9;
}

/* 视频卡片 */
.video-section {
    padding: 40px 0;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: #1a1a2e;
    position: relative;
    padding-left: 15px;
}

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

.more-link {
    color: #ff4757;
    font-size: 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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.3s ease;
}

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

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

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

.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: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

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

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.video-views,
.video-likes {
    display: flex;
    align-items: center;
}

.video-views::before,
.video-likes::before {
    content: '';
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* 专家展示 */
.expert-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.expert-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ff4757;
}

.expert-name {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.expert-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 15px;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #ff4757;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.3s ease;
}

.expert-btn:hover {
    background: #ff6b7a;
    color: #fff;
}

/* 社区模块 */
.community-section {
    padding: 40px 0;
    background: #fff;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.community-card {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.community-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.community-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.community-content {
    padding: 20px;
    flex: 1;
}

.community-title {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.community-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 用户评价 */
.review-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.review-section .section-title {
    color: #fff;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.review-content {
    color: #fff;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.review-name {
    color: #fff;
    font-size: 14px;
}

.review-date {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* 合作品牌 */
.partner-section {
    padding: 40px 0;
    background: #fff;
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

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

/* 联系我们 */
.contact-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
}

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

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

.qrcode-grid {
    display: flex;
    gap: 30px;
}

.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: #666;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ff4757;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ff4757;
}

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

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

.footer-update {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 10px;
}

/* 社交分享 */
.social-share {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: transform 0.3s ease;
}

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

.social-wechat {
    background: #07c160;
}

.social-weibo {
    background: #e6162d;
}

.social-douyin {
    background: #000;
}

.social-bilibili {
    background: #fb7299;
}

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

.breadcrumb-list {
    display: flex;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list li {
    color: #666;
}

.breadcrumb-list li::after {
    content: '>';
    margin: 0 10px;
    color: #999;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: #666;
}

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

/* FAQ模块 */
.faq-section {
    padding: 40px 0;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 16px;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 内页样式 */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-desc {
    font-size: 16px;
    opacity: 0.8;
}

.page-content {
    padding: 40px 0;
}

/* 筛选器 */
.filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff4757;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expert-grid,
    .community-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    .search-btn {
        border-radius: 25px;
    }
}

/* 懒加载占位 */
.lazy-load {
    background: #f0f0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}
