/* 花动漫在线 - 主样式表 */
/* 全网最全二次元-3d漫画专区视频平台 */

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8a5c2;
    --dark-bg: #1a1a2e;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
    --gradient-pink: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 头部导航样式 */
.header {
    background: var(--dark-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

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

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

.logo-text {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 0;
}

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

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

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

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

.search-btn {
    background: var(--gradient-pink);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

.search-btn:hover {
    opacity: 0.9;
}

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

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

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* Hero Banner */
.hero {
    background: var(--gradient-pink);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    color: white;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-btn {
    display: inline-block;
    background: white;
    color: var(--secondary-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.hero-btn:hover {
    transform: scale(1.05);
}

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

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

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

.section-title h2 {
    font-size: 32px;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.section-title 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 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,107,157,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 white;
    margin-left: 4px;
}

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

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
    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: 4px;
}

/* 专家展示区 */
.experts-section {
    padding: 60px 0;
    background: var(--light-bg);
}

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

.expert-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--accent-color);
}

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

.expert-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

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

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

.expert-btn {
    display: inline-block;
    background: var(--gradient-pink);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.expert-btn:hover {
    opacity: 0.9;
}

/* 合作伙伴 */
.partners-section {
    padding: 60px 0;
    background: #fff;
}

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

.partners-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

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

/* 社区功能区 */
.community-section {
    padding: 60px 0;
    background: var(--dark-bg);
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.community-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: background 0.3s;
}

.community-item:hover {
    background: rgba(255,255,255,0.15);
}

.community-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.community-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.community-item p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

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

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

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-bg);
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-answer {
    color: #666;
    line-height: 1.8;
}

/* 用户评价 */
.reviews-section {
    padding: 60px 0;
    background: var(--light-bg);
}

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

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.review-info h4 {
    font-size: 16px;
    color: var(--dark-bg);
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
}

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

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

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

.contact-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.contact-card h3 {
    font-size: 18px;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

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

.qrcode-img {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    border-radius: 8px;
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
}

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

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

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-qrcodes {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

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

.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.footer-qrcode p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 5px;
}

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

.social-share a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-share a:hover {
    background: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 内页特殊样式 */
.page-header {
    background: var(--gradient-pink);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

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

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

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

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

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

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.tool-card h3 {
    font-size: 18px;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

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

.tool-btn {
    display: inline-block;
    background: var(--gradient-pink);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

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

.post-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    background: var(--accent-color);
}

.post-author h4 {
    font-size: 15px;
    color: var(--dark-bg);
}

.post-time {
    font-size: 12px;
    color: #999;
}

.post-content {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.post-actions span {
    cursor: pointer;
    transition: color 0.3s;
}

.post-actions span:hover {
    color: var(--primary-color);
}

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

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


/* 页面头部 */
.page-header {
    background: var(--gradient-pink);
    padding: 60px 0;
    text-align: center;
    color: white;
}

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

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

/* 内容区域 */
.content-section {
    padding: 60px 0;
    background: #fff;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 政策页面样式 */
.policy-content h2 {
    font-size: 24px;
    color: var(--dark-bg);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul {
    margin: 15px 0 25px 20px;
}

.policy-content li {
    color: #555;
    line-height: 2;
    margin-bottom: 8px;
}

.policy-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* 关于我们页面样式 */
.about-intro {
    margin-bottom: 50px;
}

.about-intro h2 {
    font-size: 28px;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.about-intro p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.stat-item {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.about-history {
    margin-bottom: 50px;
}

.about-history h2 {
    font-size: 28px;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-pink);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-year {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 18px;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

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

.about-awards {
    margin-bottom: 50px;
}

.about-awards h2 {
    font-size: 28px;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.awards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    list-style: none;
}

.awards-list li {
    background: var(--light-bg);
    padding: 15px 20px;
    border-radius: 8px;
    color: #555;
    position: relative;
    padding-left: 35px;
}

.awards-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: var(--secondary-color);
    font-weight: bold;
}

.about-culture {
    margin-bottom: 50px;
}

.about-culture h2 {
    font-size: 28px;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

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

.culture-item {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.culture-item h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.culture-item p {
    color: #666;
    font-size: 14px;
}

.about-contact h2 {
    font-size: 28px;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

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

.contact-info-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
}

.contact-info-item h4 {
    font-size: 18px;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.contact-info-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 专家认证样式 */
.expert-cert {
    color: var(--secondary-color);
    font-size: 12px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background: rgba(196, 69, 105, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* 合作伙伴名称列表 */
.partners-list {
    text-align: center;
    margin-bottom: 30px;
}

.partners-names {
    font-size: 16px;
    color: #666;
    letter-spacing: 2px;
}

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

/* 响应式优化 */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awards-list {
        grid-template-columns: 1fr;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 28px;
    }
}
