/* 51漫画 - iyinying.com 全新原创样式 */
/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #FF6B9D;
    --primary-purple: #9B59B6;
    --secondary-blue: #3498DB;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
    --card-bg: #252542;
    --gradient-main: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.top-bar {
    background: var(--darker-bg);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { color: var(--gray-text); }
.top-bar-left span { color: var(--primary-pink); font-weight: 600; }
.top-bar-right a { color: var(--gray-text); margin-left: 20px; }
.top-bar-right a:hover { color: var(--primary-pink); }

/* 主导航 */
.main-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 45px; width: auto; }
.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.main-nav { display: flex; gap: 8px; }
.main-nav a {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { background: var(--gradient-main); color: #fff; }
.header-search {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 25px;
    padding: 8px 15px;
    width: 280px;
}
.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--light-text);
    font-size: 14px;
}
.header-search input::placeholder { color: var(--gray-text); }
.header-search button {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(155,89,182,0.3));
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 60px 0;
}
.hero-badge {
    display: inline-block;
    background: var(--gradient-main);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 35px;
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,157,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--light-text);
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--primary-pink); color: var(--primary-pink); }

/* 统计数据 */
.stats-bar {
    background: var(--darker-bg);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.stat-item p { color: var(--gray-text); font-size: 14px; }

/* 视频卡片区域 */
.section { padding: 70px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-size: 32px; font-weight: 700; }
.section-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle { color: var(--gray-text); font-size: 15px; margin-top: 8px; }
.section-more { color: var(--primary-pink); font-size: 14px; }

/* 视频网格 */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.video-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}
.video-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-btn {
    width: 60px; height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.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-duration {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.video-live {
    position: absolute;
    top: 10px; left: 10px;
    background: #ff4757;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}
.video-info { padding: 18px; }
.video-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.video-meta { display: flex; justify-content: space-between; color: var(--gray-text); font-size: 13px; }

/* 分类标签 */
.category-tabs { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.category-tab {
    padding: 10px 24px;
    background: var(--card-bg);
    border-radius: 25px;
    font-size: 14px;
    color: var(--gray-text);
    cursor: pointer;
}
.category-tab:hover, .category-tab.active { background: var(--gradient-main); color: #fff; }

/* 专家团队 */
.expert-section { background: var(--darker-bg); padding: 80px 0; }
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.expert-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.expert-card:hover { transform: translateY(-10px); border-color: var(--primary-pink); }
.expert-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-pink);
}
.expert-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.expert-title { color: var(--primary-pink); font-size: 14px; margin-bottom: 12px; }
.expert-desc { color: var(--gray-text); font-size: 13px; line-height: 1.6; }
.expert-credentials { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: var(--gray-text); }

/* 社区功能 */
.community-section { padding: 80px 0; background: linear-gradient(180deg, var(--dark-bg), var(--darker-bg)); }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.community-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}
.community-card:hover { transform: translateY(-8px); }
.community-icon {
    width: 70px; height: 70px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}
.community-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.community-desc { color: var(--gray-text); font-size: 14px; line-height: 1.7; }

/* AI功能区 */
.ai-section { padding: 80px 0; background: var(--darker-bg); }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.ai-content h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.ai-content h2 span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ai-content p { color: var(--gray-text); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.ai-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ai-feature { display: flex; align-items: center; gap: 12px; padding: 15px; background: var(--card-bg); border-radius: 12px; }
.ai-feature-icon { width: 45px; height: 45px; background: var(--gradient-main); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ai-image { border-radius: 20px; overflow: hidden; }

/* FAQ区域 */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border-radius: 16px; margin-bottom: 15px; overflow: hidden; }
.faq-question { padding: 25px 30px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.faq-question::after { content: '+'; font-size: 24px; color: var(--primary-pink); }
.faq-answer { padding: 0 30px 25px; color: var(--gray-text); line-height: 1.8; display: none; }
.faq-item.active .faq-answer { display: block; }

/* 用户评价 */
.review-section { padding: 80px 0; background: var(--darker-bg); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-card { background: var(--card-bg); border-radius: 20px; padding: 35px; }
.review-stars { color: #ffc107; font-size: 18px; margin-bottom: 15px; }
.review-text { color: var(--gray-text); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.review-author-info h4 { font-size: 15px; font-weight: 600; }
.review-author-info span { color: var(--gray-text); font-size: 13px; }

/* 页脚 */
.footer { background: var(--darker-bg); padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr) 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: var(--gray-text); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; background: var(--card-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gradient-main); }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--gray-text); font-size: 14px; }
.footer-col a:hover { color: var(--primary-pink); }
.footer-qr { text-align: center; }
.footer-qr img { width: 120px; height: 120px; border-radius: 12px; margin-bottom: 10px; }
.footer-qr p { color: var(--gray-text); font-size: 13px; }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.footer-bottom p { color: var(--gray-text); font-size: 13px; }
.footer-bottom a { color: var(--primary-pink); }

/* 面包屑导航 */
.breadcrumb { padding: 15px 0; background: var(--darker-bg); }
.breadcrumb-list { display: flex; align-items: center; gap: 10px; list-style: none; font-size: 14px; }
.breadcrumb-list li:not(:last-child)::after { content: '>'; color: var(--gray-text); margin-left: 10px; }
.breadcrumb-list a { color: var(--gray-text); }
.breadcrumb-list li:last-child { color: var(--primary-pink); }

/* 页面标题 */
.page-hero { padding: 60px 0; text-align: center; background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg)); }
.page-hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 15px; }
.page-hero h1 span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { color: var(--gray-text); font-size: 18px; }

/* 更新时间提示 */
.update-notice { background: rgba(255,107,157,0.1); border-left: 4px solid var(--primary-pink); padding: 15px 25px; margin: 20px 0; border-radius: 0 10px 10px 0; }
.update-notice p { color: var(--gray-text); font-size: 14px; }
.update-notice strong { color: var(--light-text); }

/* 响应式设计 */
@media (max-width: 1200px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .header-inner { flex-wrap: wrap; gap: 15px; }
    .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .video-grid, .expert-grid, .community-grid, .review-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
