/* 
 * 寸止挑战 - 原创影视传媒与视频社区
 * 全局样式表
 */

:root {
    --primary-color: #E8537A; /* 玫瑰粉，品牌主色调 */
    --secondary-color: #FF8C69; /* 珊瑚暖色，辅助色 */
    --dark-bg: #121212; /* 深色背景，适合视频网站 */
    --card-bg: #1E1E1E; /* 卡片背景 */
    --text-main: #FFFFFF; /* 主文本色 */
    --text-muted: #AAAAAA; /* 次要文本色 */
    --border-color: #333333; /* 边框颜色 */
    --hover-color: #FF6B8B; /* 悬停颜色 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

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

/* 头部导航 */
.header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo img {
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu li a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

/* 搜索框 */
.search-container {
    position: relative;
    width: 100%;
    background-color: #1A1A1A;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* 英雄横幅 */
.hero-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.2) 0%, rgba(18,18,18,0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    color: #E0E0E0;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(232, 83, 122, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 83, 122, 0.6);
    color: white;
}

/* 模块标题 */
.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

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

.video-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.video-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

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

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

.play-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(232, 83, 122, 0.5);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    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;
    color: var(--text-muted);
    font-size: 13px;
}

.video-tags {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(232, 83, 122, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 专家团队 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.expert-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.expert-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.expert-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* FAQ 手风琴 */
.faq-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255,255,255,0.02);
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

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

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

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

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.review-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    color: rgba(232, 83, 122, 0.1);
    font-family: serif;
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.review-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.review-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 14px;
    color: #E0E0E0;
    line-height: 1.6;
}

/* 底部区域 */
.footer {
    background-color: #0A0A0A;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

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

.footer-about p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-qr {
    display: flex;
    gap: 15px;
}

.qr-box {
    text-align: center;
}

.qr-box img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    padding: 5px;
}

.qr-box span {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 14px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-main);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-menu li {
        padding: 10px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/* ===== 新增模块样式 ===== */

/* 分类导航栏 */
.category-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}
.cat-item:hover, .cat-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.cat-icon {
    font-size: 22px;
}

/* 视频徽章 */
.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* 视频元数据 */
.video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* 视频标签 */
.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tag {
    background: rgba(232, 83, 122, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(232, 83, 122, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 播放按钮覆盖层 */
.play-btn-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    cursor: pointer;
}
.video-card:hover .play-btn-overlay,
.photo-card:hover .play-btn-overlay,
.tiktok-card:hover .play-btn-overlay {
    opacity: 1;
}
.play-icon {
    width: 64px;
    height: 64px;
    background: rgba(232, 83, 122, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(232, 83, 122, 0.5);
}
.play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

/* 美少女写真 & 车模图片网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.photo-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
}
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

/* TikTok风格短视频网格 */
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.tiktok-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
}

/* 社区美图瀑布流 */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-hover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(232, 83, 122, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: bold;
    font-size: 15px;
}
.gallery-item:hover .gallery-hover {
    opacity: 1;
}

/* 响应式补充 */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-nav {
        gap: 8px;
    }
    .cat-item {
        padding: 8px 12px;
        min-width: 65px;
    }
}
@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tiktok-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
}
