/* ============================================
   51动漫 - 原创样式表
   品牌色系：51动漫粉 #FF6B9D | 魅力紫 #C850C0 | 暗夜蓝 #1A1A2E | 活力金 #FFD93D
   ============================================ */

/* === 基础重置与全局 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
    background: #0F0F23;
    color: #E8E8F0;
    line-height: 1.8;
    overflow-x: hidden;
}
a { color: #FF6B9D; text-decoration: none; transition: color 0.3s; }
a:hover { color: #FFD93D; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 顶部导航 === */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
    transition: all 0.3s;
}
.site-header.scrolled { background: rgba(15, 15, 35, 0.98); box-shadow: 0 4px 30px rgba(200, 80, 192, 0.1); }
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span { font-size: 1.3rem; font-weight: 700; background: linear-gradient(135deg, #FF6B9D, #C850C0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    color: #E8E8F0; padding: 8px 16px; border-radius: 8px; font-size: 0.95rem;
    transition: all 0.3s; position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: #FFD93D; background: rgba(255, 107, 157, 0.1);
}
.main-nav a.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; background: linear-gradient(90deg, #FF6B9D, #C850C0); border-radius: 2px;
}
.mobile-menu-btn {
    display: none; background: none; border: none; color: #E8E8F0; font-size: 1.5rem; cursor: pointer;
}

/* === 搜索框 === */
.search-bar {
    background: rgba(26, 26, 46, 0.9); border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    padding: 12px 0; margin-top: 70px;
}
.search-bar-inner {
    max-width: 600px; margin: 0 auto; padding: 0 20px; display: flex; gap: 10px;
}
.search-bar input {
    flex: 1; padding: 10px 20px; border-radius: 25px; border: 1px solid rgba(255, 107, 157, 0.3);
    background: rgba(255, 255, 255, 0.05); color: #E8E8F0; font-size: 0.95rem;
    outline: none; transition: border-color 0.3s;
}
.search-bar input:focus { border-color: #FF6B9D; }
.search-bar input::placeholder { color: rgba(232, 232, 240, 0.4); }
.search-bar button {
    padding: 10px 24px; border-radius: 25px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #FF6B9D, #C850C0); color: #fff; font-size: 0.95rem;
    font-weight: 600; transition: all 0.3s;
}
.search-bar button:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4); }

/* === Hero Banner === */
.hero-section {
    position: relative; min-height: 520px; display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.7), rgba(200, 80, 192, 0.3));
}
.hero-content {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 80px 20px;
}
.hero-content h1 {
    font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.3;
    background: linear-gradient(135deg, #FFD93D, #FF6B9D, #C850C0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content h2 { font-size: 1.3rem; color: rgba(232, 232, 240, 0.9); margin-bottom: 24px; font-weight: 400; }
.hero-content p { font-size: 1rem; color: rgba(232, 232, 240, 0.7); max-width: 600px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 30px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #FF6B9D, #C850C0); color: #fff;
    font-size: 1rem; font-weight: 600; transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4); color: #fff; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 30px; cursor: pointer;
    border: 2px solid rgba(255, 107, 157, 0.5); background: transparent; color: #FF6B9D;
    font-size: 1rem; font-weight: 600; transition: all 0.3s;
}
.btn-outline:hover { border-color: #FF6B9D; background: rgba(255, 107, 157, 0.1); color: #FF6B9D; }

/* === 通用板块标题 === */
.section-title {
    text-align: center; margin-bottom: 48px;
}
.section-title h2 {
    font-size: 2rem; font-weight: 700; margin-bottom: 12px;
    background: linear-gradient(135deg, #FF6B9D, #C850C0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: #FFD93D; }
.section-title p { color: rgba(232, 232, 240, 0.6); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-tag {
    display: inline-block; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem;
    background: rgba(255, 107, 157, 0.15); color: #FF6B9D; margin-bottom: 12px;
}

/* === 视频卡片网格 === */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.video-card {
    background: rgba(26, 26, 46, 0.8); border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.4s;
}
.video-card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 157, 0.3); box-shadow: 0 12px 40px rgba(200, 80, 192, 0.15); }
.video-thumb {
    position: relative; padding-top: 56.25%; overflow: hidden; cursor: pointer;
}
.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 {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255, 107, 157, 0.9); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s; z-index: 3;
}
.play-btn::after {
    content: ''; width: 0; height: 0;
    border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
    margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn:hover { background: rgba(200, 80, 192, 1); transform: translate(-50%, -50%) scale(1.1); }
.video-duration {
    position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; border-radius: 4px;
    background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.8rem; z-index: 2;
}
.video-info { padding: 16px; }
.video-info h3 { font-size: 1rem; font-weight: 600; color: #E8E8F0; margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: rgba(232, 232, 240, 0.5); }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.video-tags span {
    padding: 2px 10px; border-radius: 12px; font-size: 0.75rem;
    background: rgba(255, 107, 157, 0.1); color: #FF6B9D;
}

/* === 板块通用 === */
.section-block { padding: 80px 0; }
.section-block:nth-child(even) { background: rgba(26, 26, 46, 0.3); }
.section-block.alt-bg { background: linear-gradient(180deg, rgba(200, 80, 192, 0.05), rgba(15, 15, 35, 0)); }

/* === 功能模块卡片 === */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
    background: rgba(26, 26, 46, 0.6); border-radius: 16px; padding: 32px 24px;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.4s; text-align: center;
}
.feature-card:hover { border-color: rgba(255, 107, 157, 0.3); transform: translateY(-4px); }
.feature-icon {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(200, 80, 192, 0.2));
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.feature-card h4 { font-size: 1.1rem; color: #FFD93D; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: rgba(232, 232, 240, 0.6); line-height: 1.7; }

/* === 专家展示 === */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.expert-card {
    background: rgba(26, 26, 46, 0.7); border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.4s;
}
.expert-card:hover { border-color: rgba(200, 80, 192, 0.3); transform: translateY(-4px); }
.expert-avatar {
    width: 100%; height: 280px; overflow: hidden;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.expert-card:hover .expert-avatar img { transform: scale(1.05); }
.expert-info { padding: 24px; }
.expert-info h4 { font-size: 1.15rem; color: #FFD93D; margin-bottom: 4px; }
.expert-info .role { font-size: 0.9rem; color: #FF6B9D; margin-bottom: 12px; }
.expert-info p { font-size: 0.88rem; color: rgba(232, 232, 240, 0.6); margin-bottom: 16px; line-height: 1.7; }
.expert-info .awards { font-size: 0.82rem; color: rgba(232, 232, 240, 0.5); margin-bottom: 16px; }
.expert-btns { display: flex; gap: 10px; }
.expert-btns a {
    padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.expert-btns .btn-sm-primary { background: linear-gradient(135deg, #FF6B9D, #C850C0); color: #fff; }
.expert-btns .btn-sm-outline { border: 1px solid rgba(255, 107, 157, 0.4); color: #FF6B9D; }

/* === 合作品牌Logo墙 === */
.brand-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; align-items: center; }
.brand-item {
    padding: 20px 32px; background: rgba(26, 26, 46, 0.5); border-radius: 12px;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.3s;
    font-size: 1.1rem; font-weight: 600; color: rgba(232, 232, 240, 0.5);
}
.brand-item:hover { border-color: rgba(255, 107, 157, 0.3); color: #FFD93D; }

/* === 用户评论 === */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.review-card {
    background: rgba(26, 26, 46, 0.6); border-radius: 16px; padding: 28px;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.3s;
}
.review-card:hover { border-color: rgba(200, 80, 192, 0.2); }
.review-stars { color: #FFD93D; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; color: rgba(232, 232, 240, 0.7); line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #C850C0);
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.9rem;
}
.review-author-info .name { font-size: 0.9rem; color: #E8E8F0; font-weight: 600; }
.review-author-info .date { font-size: 0.8rem; color: rgba(232, 232, 240, 0.4); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: rgba(26, 26, 46, 0.5); border-radius: 12px; margin-bottom: 12px;
    border: 1px solid rgba(255, 107, 157, 0.08); overflow: hidden;
}
.faq-question {
    padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; color: #E8E8F0; transition: color 0.3s;
}
.faq-question:hover { color: #FF6B9D; }
.faq-question .arrow { transition: transform 0.3s; color: #FF6B9D; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 24px; color: rgba(232, 232, 240, 0.6); font-size: 0.92rem; line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* === 联系我们 === */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.contact-card {
    background: rgba(26, 26, 46, 0.6); border-radius: 16px; padding: 28px; text-align: center;
    border: 1px solid rgba(255, 107, 157, 0.08);
}
.contact-card h4 { color: #FFD93D; margin-bottom: 12px; font-size: 1.05rem; }
.contact-card p { color: rgba(232, 232, 240, 0.6); font-size: 0.9rem; line-height: 1.8; }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: 8px; }

/* === How-To指南 === */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.howto-step {
    text-align: center; padding: 32px 20px;
    background: rgba(26, 26, 46, 0.5); border-radius: 16px;
    border: 1px solid rgba(255, 107, 157, 0.08);
}
.step-num {
    width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, #FF6B9D, #C850C0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.2rem;
}
.howto-step h4 { color: #FFD93D; margin-bottom: 8px; }
.howto-step p { color: rgba(232, 232, 240, 0.6); font-size: 0.88rem; }

/* === 社交分享 === */
.share-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.share-btn {
    padding: 12px 24px; border-radius: 25px; font-size: 0.9rem; font-weight: 600;
    border: 1px solid rgba(255, 107, 157, 0.3); color: #E8E8F0; background: rgba(26, 26, 46, 0.5);
    cursor: pointer; transition: all 0.3s;
}
.share-btn:hover { background: linear-gradient(135deg, #FF6B9D, #C850C0); border-color: transparent; color: #fff; }

/* === 页脚 === */
.site-footer {
    background: rgba(10, 10, 20, 0.9); border-top: 1px solid rgba(255, 107, 157, 0.1);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #FFD93D; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: rgba(232, 232, 240, 0.5); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #FF6B9D; }
.footer-col img { max-width: 120px; border-radius: 8px; margin-top: 8px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 36px; }
.footer-logo span { font-size: 1.1rem; font-weight: 700; color: #FF6B9D; }
.footer-bottom {
    text-align: center; padding-top: 24px;
    border-top: 1px solid rgba(255, 107, 157, 0.08);
    color: rgba(232, 232, 240, 0.4); font-size: 0.85rem;
}
.footer-bottom a { color: rgba(232, 232, 240, 0.5); }

/* === 面包屑 === */
.breadcrumb {
    padding: 16px 0; font-size: 0.88rem; color: rgba(232, 232, 240, 0.5);
}
.breadcrumb a { color: #FF6B9D; }
.breadcrumb span { margin: 0 8px; }

/* === 内页通用 === */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(200, 80, 192, 0.05));
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; background: linear-gradient(135deg, #FF6B9D, #C850C0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.page-hero p { color: rgba(232, 232, 240, 0.6); max-width: 600px; }
.page-content { padding: 60px 0; }

/* === 响应式 === */
@media (max-width: 768px) {
    .main-nav { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: rgba(15, 15, 35, 0.98); flex-direction: column; padding: 20px; gap: 4px; }
    .main-nav.show { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content h2 { font-size: 1.1rem; }
    .video-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { height: 60px; }
    .search-bar { margin-top: 60px; }
    .hero-section { min-height: 400px; }
    .section-block { padding: 50px 0; }
    .section-title h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.5rem; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* === 数据统计 === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; }
.stat-card {
    text-align: center; padding: 32px 16px;
    background: rgba(26, 26, 46, 0.6); border-radius: 16px;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.4s;
}
.stat-card:hover { border-color: rgba(255, 107, 157, 0.3); transform: translateY(-4px); }
.stat-number {
    font-size: 2rem; font-weight: 800; margin-bottom: 8px;
    background: linear-gradient(135deg, #FFD93D, #FF6B9D);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.88rem; color: rgba(232, 232, 240, 0.6); }

/* === 荣誉资质 === */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.honor-card {
    background: rgba(26, 26, 46, 0.6); border-radius: 16px; padding: 28px;
    border: 1px solid rgba(255, 107, 157, 0.08); transition: all 0.4s;
}
.honor-card:hover { border-color: rgba(200, 80, 192, 0.3); transform: translateY(-4px); }
.honor-icon {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 107, 157, 0.2));
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.honor-card h4 { font-size: 1.05rem; color: #FFD93D; margin-bottom: 10px; }
.honor-card p { font-size: 0.88rem; color: rgba(232, 232, 240, 0.6); line-height: 1.7; }

/* === 动画 === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* === 懒加载占位 === */
.lazy-img { background: rgba(26, 26, 46, 0.5); min-height: 180px; }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0F0F23; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FF6B9D, #C850C0); border-radius: 4px; }

/* === 内页标签列表 === */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list .tag {
    padding: 4px 14px; border-radius: 15px; font-size: 0.82rem;
    background: rgba(255, 107, 157, 0.1); color: #FF6B9D; transition: all 0.3s;
}
.tag-list .tag:hover { background: rgba(255, 107, 157, 0.25); }

/* === 内页文章样式 === */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { font-size: 1.5rem; color: #FFD93D; margin: 32px 0 16px; }
.article-content h3 { font-size: 1.2rem; color: #FF6B9D; margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; color: rgba(232, 232, 240, 0.7); }
