/* ===== 咪咔漫画app - 全站样式 ===== */
/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.6; color: #1a1a2e; background: #fafbff; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #c44dff; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 8px; flex-wrap: nowrap; }
.nav-item { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all 0.3s; }
.nav-item:hover { background: #f0e6ff; color: #c44dff; }
.nav-item.active { background: linear-gradient(135deg, #ff6b9d, #c44dff); color: #fff; }
.header-search { flex-shrink: 0; }
.search-form { display: flex; border: 2px solid #e8e0f0; border-radius: 25px; overflow: hidden; transition: border-color 0.3s; }
.search-form:focus-within { border-color: #c44dff; }
.search-input { border: none; outline: none; padding: 8px 16px; font-size: 14px; width: 180px; background: transparent; }
.search-btn { border: none; background: linear-gradient(135deg, #ff6b9d, #c44dff); color: #fff; padding: 8px 18px; font-size: 14px; cursor: pointer; transition: opacity 0.3s; }
.search-btn:hover { opacity: 0.9; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s; }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); padding: 80px 0; overflow: hidden; }
.hero-section .container { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; color: #fff; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; background: linear-gradient(135deg, #ff6b9d, #c44dff, #6c63ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.3; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 30px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 30px; font-size: 15px; font-weight: 600; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, #ff6b9d, #c44dff); color: #fff; box-shadow: 0 4px 20px rgba(196,77,255,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(196,77,255,0.6); color: #fff; }
.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #c44dff; background: rgba(196,77,255,0.1); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 20px; }
.hero-stats { display: flex; gap: 40px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: #c44dff; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-image { flex: 1; max-width: 500px; }
.hero-image img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* Breadcrumb */
.breadcrumb { padding: 15px 0; font-size: 14px; color: #666; border-bottom: 1px solid #f0f0f0; }
.breadcrumb a { color: #c44dff; }
.breadcrumb a:hover { text-decoration: underline; }

/* Sections */
.section { padding: 70px 0; }
.section:nth-child(even) { background: #fff; }
.section-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 12px; color: #1a1a2e; }
.section-desc { text-align: center; color: #666; font-size: 1rem; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Video Grid */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(196,77,255,0.15); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.3s; }
.video-card:hover .play-btn-overlay { opacity: 1; }
.video-tag { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, #ff6b9d, #c44dff); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.video-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.75); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; }
.video-info { padding: 16px; }
.video-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-item { font-size: 12px; color: #999; }

/* Comic Grid */
.comic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.comic-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: all 0.3s; }
.comic-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(196,77,255,0.12); }
.comic-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.comic-cover img { width: 100%; height: 100%; object-fit: cover; }
.comic-rating { position: absolute; top: 8px; right: 8px; background: rgba(255,107,157,0.9); color: #fff; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.comic-info { padding: 12px; }
.comic-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comic-author { font-size: 12px; color: #888; margin-bottom: 6px; }
.comic-genre { display: inline-block; font-size: 11px; color: #c44dff; background: #f5eeff; padding: 2px 8px; border-radius: 8px; }

/* Media Grid */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.media-card { background: #fff; border-radius: 16px; padding: 30px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s; border: 1px solid #f0e6ff; }
.media-card:hover { transform: translateY(-4px); border-color: #c44dff; box-shadow: 0 8px 30px rgba(196,77,255,0.12); }
.media-icon { font-size: 2.5rem; margin-bottom: 16px; }
.media-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #1a1a2e; }
.media-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* AI Grid */
.ai-section { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.ai-section .section-title { color: #fff; }
.ai-section .section-desc { color: rgba(255,255,255,0.7); }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ai-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(196,77,255,0.3); border-radius: 16px; padding: 30px 24px; transition: all 0.3s; }
.ai-card:hover { background: rgba(196,77,255,0.1); border-color: #c44dff; transform: translateY(-4px); }
.ai-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.ai-card p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.ai-tag { display: inline-block; background: linear-gradient(135deg, #ff6b9d, #c44dff); color: #fff; padding: 3px 10px; border-radius: 10px; font-size: 11px; }

/* Community Grid */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.community-card { background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s; border-left: 4px solid #c44dff; }
.community-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(196,77,255,0.12); }
.community-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.community-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* Expert Section */
.expert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.expert-card { display: flex; gap: 24px; background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; }
.expert-card:hover { box-shadow: 0 8px 30px rgba(196,77,255,0.12); }
.expert-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #f0e6ff; flex-shrink: 0; }
.expert-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.expert-title { color: #c44dff; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.expert-desc { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.expert-certs, .expert-works, .expert-social { font-size: 13px; color: #888; margin-bottom: 4px; }
.expert-btns { display: flex; gap: 10px; margin-top: 12px; }

/* Partner Section */
.partner-logos { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.partner-item { background: #f8f5ff; border: 1px solid #e8e0f0; border-radius: 12px; padding: 20px 30px; font-size: 15px; font-weight: 600; color: #555; transition: all 0.3s; }
.partner-item:hover { border-color: #c44dff; color: #c44dff; transform: translateY(-2px); }

/* How-To Section */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { background: #fff; border-radius: 16px; padding: 30px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: relative; }
.step-num { display: inline-block; font-size: 2rem; font-weight: 800; color: #c44dff; opacity: 0.3; margin-bottom: 12px; }
.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* FAQ Section */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); overflow: hidden; border: 1px solid #f0e6ff; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; transition: background 0.3s; }
.faq-question:hover { background: #faf5ff; }
.faq-question h3 { font-size: 15px; font-weight: 600; flex: 1; }
.faq-toggle { font-size: 20px; color: #c44dff; font-weight: 700; transition: transform 0.3s; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s; }
.faq-answer p { padding-bottom: 18px; font-size: 14px; color: #666; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* Review Section */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #f0e6ff; transition: all 0.3s; }
.review-card:hover { border-color: #c44dff; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-name { font-weight: 600; font-size: 15px; }
.review-stars { color: #ffb800; font-size: 14px; }
.review-text { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 10px; }
.review-date { font-size: 12px; color: #999; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #1a1a2e; }
.contact-info p { font-size: 14px; color: #555; margin-bottom: 10px; line-height: 1.6; }
.contact-links { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.contact-qrcodes { display: flex; gap: 30px; justify-content: center; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 180px; height: 180px; border-radius: 12px; border: 2px solid #f0e6ff; margin-bottom: 10px; }
.qrcode-item p { font-size: 14px; color: #666; }

/* Share Section */
.share-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 25px; font-size: 14px; font-weight: 500; color: #fff; transition: all 0.3s; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00a1d6; }

/* Footer */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 12px; }
.footer-logo { height: 35px; width: auto; filter: brightness(2); }
.footer-nav h4, .footer-contact h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-nav a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color 0.3s; }
.footer-nav a:hover { color: #c44dff; }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* Channel Hero */
.channel-hero { background: linear-gradient(135deg, #1a1a2e, #0f3460); padding: 50px 0; }
.channel-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 12px; background: linear-gradient(135deg, #ff6b9d, #c44dff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.channel-desc { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.8; max-width: 700px; }

/* Responsive */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .comic-grid { grid-template-columns: repeat(3, 1fr); }
    .media-grid, .ai-grid, .community-grid, .howto-steps { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 999; }
    .main-nav.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    .header-search { display: none; }
    .hero-section .container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 1.8rem; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { max-width: 100%; }
    .video-grid { grid-template-columns: 1fr; }
    .comic-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid, .ai-grid, .community-grid, .howto-steps { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-qrcodes { flex-direction: column; align-items: center; }
    .footer-top { grid-template-columns: 1fr; }
    .partner-logos { gap: 15px; }
    .partner-item { padding: 12px 20px; font-size: 13px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .comic-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .share-btns { flex-direction: column; align-items: center; }
}
