/* 鉴黄师官网 - 外部CSS样式表 */
/* 主色调：深蓝 #1a237e 金色 #ffd700 */

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

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;
}

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

/* 顶部信息栏 */
.header-top {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #ffd700;
}

/* 主导航 */
.header-main {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

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

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

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

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

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1a237e;
    border-bottom-color: #ffd700;
}

/* 搜索框 */
.search-bar {
    background: #f0f0f0;
    padding: 15px 0;
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.search-form button {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-form button:hover {
    background: linear-gradient(135deg, #283593 0%, #3949ab 100%);
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner h1 span {
    color: #ffd700;
}

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

.banner-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #ffd700;
    color: #1a237e;
}

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

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1a237e;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 15px auto 0;
}

.section-title p {
    color: #666;
    margin-top: 10px;
}

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

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

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

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 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;
}

.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(26, 35, 126, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

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

.video-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.video-tag.live {
    background: #e53935;
    color: #fff;
}

.video-tag.hot {
    background: #ffd700;
    color: #1a237e;
}

.video-tag.new {
    background: #4caf50;
    color: #fff;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 14px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.video-author {
    color: #1a237e;
}

/* 核心服务 */
.services-section {
    padding: 60px 0;
    background: #f9f9f9;
}

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

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #ffd700;
}

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

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

/* 娱乐专区 */
.entertainment-section {
    padding: 60px 0;
    background: #fff;
}

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

.entertainment-card {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.entertainment-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.entertainment-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* 社区功能 */
.community-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

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

.community-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.community-icon {
    width: 60px;
    height: 60px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #1a237e;
}

.community-card h4 {
    color: #1a237e;
    margin-bottom: 8px;
}

.community-card p {
    font-size: 13px;
    color: #666;
}

/* AI工具 */
.ai-section {
    padding: 60px 0;
    background: #fff;
}

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

.ai-card {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.ai-card h4 {
    margin-bottom: 10px;
}

.ai-card p {
    font-size: 13px;
    opacity: 0.9;
}

.ai-card a {
    display: inline-block;
    margin-top: 15px;
    color: #ffd700;
    font-size: 13px;
}

/* 专家团队 */
.experts-section {
    padding: 60px 0;
    background: #f9f9f9;
}

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

.expert-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
}

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

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

.expert-card h4 {
    color: #1a237e;
    margin-bottom: 5px;
}

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

.expert-desc {
    font-size: 13px;
    color: #666;
    padding: 0 15px 20px;
}

.expert-btn {
    display: block;
    background: #1a237e;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    transition: background 0.3s;
}

.expert-btn:hover {
    background: #283593;
}

/* 用户评价 */
.reviews-section {
    padding: 60px 0;
    background: #fff;
}

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

.review-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.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-name {
    font-weight: bold;
    color: #1a237e;
}

.review-date {
    font-size: 12px;
    color: #999;
}

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

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

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

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

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #1a237e;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #ffd700;
}

.faq-item.active .faq-question::after {
    content: '-';
}

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

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

/* 二维码区域 */
.qrcode-section {
    padding: 60px 0;
    background: #fff;
}

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

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

.qrcode-item img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.qrcode-item p {
    margin-top: 15px;
    color: #1a237e;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a237e 0%, #0d1442 100%);
    color: #fff;
    padding: 50px 0 20px;
}

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

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

.footer-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background: #ffd700;
    color: #1a237e;
}

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

.footer ul {
    list-style: none;
}

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

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

.footer ul a:hover {
    color: #ffd700;
}

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

.footer-bottom a {
    color: #ffd700;
}

/* 面包屑 */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #1a237e;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

/* 内页Banner */
.page-banner {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

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

.page-banner p {
    opacity: 0.9;
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #1a237e;
    border-radius: 2px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid,
    .community-grid,
    .ai-grid,
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .entertainment-grid,
    .community-grid,
    .ai-grid,
    .experts-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .qrcode-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-btns {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}

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

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

/* 联系页面样式 */
.contact-section {
    padding: 60px 0;
}

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

.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.contact-info-card h3 {
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: #1a237e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    flex-shrink: 0;
}

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

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

/* 工具页面样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tool-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.tool-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tool-content {
    padding: 20px;
}

.tool-content h3 {
    color: #1a237e;
    margin-bottom: 10px;
}

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

.tool-btn {
    display: inline-block;
    background: #1a237e;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s;
}

.tool-btn:hover {
    background: #283593;
}

/* 特色功能样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffd700;
    flex-shrink: 0;
}

.feature-content h3 {
    color: #1a237e;
    margin-bottom: 10px;
}

.feature-content p {
    color: #666;
    font-size: 14px;
}

/* 统计数据 */
.stats-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: #fff;
}

.stat-item h3 {
    font-size: 36px;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-item p {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .contact-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
