/* 98堂app - 影视传媒视频社区 样式表 */
/* 网站: 08405.hk */

/* ===== 基础重置 ===== */
* {
    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", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

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;
    gap: 10px;
}

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

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

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

.nav-menu a {
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #ff6b6b;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

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

/* ===== 搜索框 ===== */
.search-bar {
    background: rgba(255,255,255,0.1);
    padding: 15px 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: 16px;
    outline: none;
}

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

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

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

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

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

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

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

/* ===== Hero区域 ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    color: #fff;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #ff6b6b;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff6b6b;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a1a2e;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px 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 15px 30px 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,107,107,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: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

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

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

.video-stats {
    display: flex;
    gap: 15px;
}

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

/* ===== 分类模块 ===== */
.category-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #fff;
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== 专家展示 ===== */
.expert-section {
    padding: 60px 0;
    background: #fff;
}

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

.expert-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.expert-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #ff6b6b;
}

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

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

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

.expert-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.expert-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.expert-btn {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 20px;
}

/* ===== 用户评价 ===== */
.review-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    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-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

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

.review-user span {
    font-size: 12px;
    opacity: 0.7;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
}

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

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

.partner-logo {
    width: 120px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: #ff6b6b;
    color: #fff;
}

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

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

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #fff;
}

.contact-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
    font-size: 14px;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 60px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

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

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.8;
}

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

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

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

.footer-links a {
    opacity: 0.7;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ff6b6b;
}

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

.footer-qrcode h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.qrcode-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

.qrcode-item img {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qrcode-item span {
    font-size: 12px;
    opacity: 0.7;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b6b;
}

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

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

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

.page-content {
    padding: 60px 0;
    background: #fff;
}

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

.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
}

.tool-card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== 社区卡片 ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.community-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.community-image {
    height: 200px;
    overflow: hidden;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.community-card:hover .community-image img {
    transform: scale(1.05);
}

.community-content {
    padding: 25px;
}

.community-content h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.community-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 懒加载 ===== */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}
