/* ============================================
   媚黑 - 汽车改装视频社区 原创样式
   配色：深碳黑 #0a0a0f + 电光蓝 #00a8ff + 烈焰橙 #ff6b2b
   ============================================ */

/* === 基础重置 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; background: #0a0a0f; color: #e0e0e0; line-height: 1.7; }
a { color: #00a8ff; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ff6b2b; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 头部导航 === */
.site-header { position: sticky; top: 0; z-index: 1000; background: linear-gradient(180deg, #0d0d14 0%, rgba(13,13,20,0.95) 100%); border-bottom: 1px solid #1a1a2e; backdrop-filter: blur(12px); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-wrap a { display: flex; align-items: center; gap: 8px; }
.nav-icon { width: 32px; height: 32px; border-radius: 6px; }
.nav-logo { height: 36px; width: auto; max-width: 140px; }
.main-nav .nav-list { display: flex; gap: 4px; }
.main-nav .nav-list li a { display: block; padding: 8px 16px; border-radius: 8px; font-size: 0.95rem; color: #b0b0c0; font-weight: 500; transition: all 0.3s; }
.main-nav .nav-list li a:hover,
.main-nav .nav-list li.active a { color: #00a8ff; background: rgba(0,168,255,0.08); }

/* 汉堡菜单 */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #e0e0e0; border-radius: 2px; transition: 0.3s; }

/* 搜索栏 */
.search-bar { max-width: 1200px; margin: 0 auto; padding: 8px 20px 12px; }
.search-form { display: flex; max-width: 520px; margin: 0 auto; }
.search-input { flex: 1; padding: 10px 16px; background: #14141f; border: 1px solid #2a2a3e; border-radius: 8px 0 0 8px; color: #e0e0e0; font-size: 0.9rem; outline: none; transition: border-color 0.3s; }
.search-input:focus { border-color: #00a8ff; }
.search-btn { padding: 10px 24px; background: linear-gradient(135deg, #00a8ff, #0070cc); color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.search-btn:hover { background: linear-gradient(135deg, #ff6b2b, #e04500); }

/* 面包屑 */
.breadcrumb { background: #0d0d14; padding: 10px 0; font-size: 0.85rem; color: #888; border-bottom: 1px solid #1a1a2e; }
.breadcrumb a { color: #00a8ff; }

/* === Hero横幅 === */
.hero-section { position: relative; overflow: hidden; margin-bottom: 0; }
.hero-banner { width: 100%; height: 480px; object-fit: cover; filter: brightness(0.7); }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.3) 50%, transparent 100%); padding: 20px; }
.hero-overlay h1 { font-size: 2.8rem; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.hero-overlay h1 .brand-highlight { color: #00a8ff; }
.hero-overlay p { font-size: 1.15rem; color: #ccc; max-width: 680px; }
.hero-overlay .hero-tags { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-overlay .hero-tags span { padding: 6px 16px; background: rgba(0,168,255,0.15); border: 1px solid rgba(0,168,255,0.3); border-radius: 20px; font-size: 0.85rem; color: #00a8ff; }

/* === 通用区块 === */
.section { padding: 60px 0; }
.section:nth-child(even) { background: #0d0d14; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; color: #fff; margin-bottom: 8px; }
.section-header h2 .accent { color: #ff6b2b; }
.section-header p { color: #999; font-size: 1rem; }
.section-header .update-info { font-size: 0.8rem; color: #666; margin-top: 6px; }

/* === 视频卡片网格 === */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.video-card { background: #14141f; border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,168,255,0.15); }
.video-thumb-wrap { position: relative; padding-top: 56.25%; overflow: hidden; }
.video-thumb-wrap video,
.video-thumb-wrap .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb-wrap video { z-index: 1; }
.video-thumb-wrap .video-poster { z-index: 2; transition: opacity 0.3s; }
.video-card:hover .video-poster { opacity: 0.85; }
.video-play-btn { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.video-play-btn svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.video-card:hover .video-play-btn { opacity: 1; }
.video-duration { position: absolute; bottom: 8px; right: 8px; z-index: 4; background: rgba(0,0,0,0.8); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.video-info { padding: 14px 16px; }
.video-title { font-size: 1rem; color: #e8e8e8; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 12px; font-size: 0.8rem; color: #888; }

/* === 服务模块 === */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.service-card { background: linear-gradient(145deg, #14141f, #1a1a2e); border: 1px solid #2a2a3e; border-radius: 14px; padding: 28px 20px; text-align: center; transition: all 0.3s; }
.service-card:hover { border-color: #00a8ff; transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,168,255,0.1); }
.service-icon { font-size: 2.4rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: #999; line-height: 1.6; }

/* === 娱乐专区 === */
.entertainment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ent-card { position: relative; border-radius: 14px; overflow: hidden; height: 220px; cursor: pointer; }
.ent-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ent-card:hover img { transform: scale(1.08); }
.ent-card .ent-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.ent-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.ent-card p { color: #aaa; font-size: 0.8rem; }

/* === AI赋能 === */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ai-card { background: linear-gradient(145deg, #0d1a2e, #14141f); border: 1px solid #1a2a4e; border-radius: 14px; padding: 28px 20px; text-align: center; transition: all 0.3s; position: relative; overflow: hidden; }
.ai-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0,168,255,0.05) 0%, transparent 70%); animation: aiPulse 4s ease-in-out infinite; }
@keyframes aiPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.ai-card:hover { border-color: #00a8ff; box-shadow: 0 0 30px rgba(0,168,255,0.15); }
.ai-card .ai-icon { font-size: 2.2rem; margin-bottom: 12px; position: relative; z-index: 1; }
.ai-card h3 { font-size: 1rem; color: #00a8ff; margin-bottom: 8px; position: relative; z-index: 1; }
.ai-card p { font-size: 0.85rem; color: #999; position: relative; z-index: 1; }

/* === 社区功能 === */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.comm-card { background: #14141f; border: 1px solid #2a2a3e; border-radius: 14px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.3s; }
.comm-card:hover { border-color: #ff6b2b; background: #1a1a2e; }
.comm-card .comm-icon { font-size: 2rem; flex-shrink: 0; }
.comm-card h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.comm-card p { font-size: 0.85rem; color: #999; }

/* === 专家团队 === */
.experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.expert-card { background: #14141f; border-radius: 14px; overflow: hidden; text-align: center; transition: all 0.3s; border: 1px solid #2a2a3e; }
.expert-card:hover { border-color: #00a8ff; transform: translateY(-4px); }
.expert-card img { width: 100%; height: 240px; object-fit: cover; }
.expert-card .expert-info { padding: 20px; }
.expert-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.expert-card .expert-role { color: #00a8ff; font-size: 0.85rem; margin-bottom: 10px; }
.expert-card p { font-size: 0.85rem; color: #999; margin-bottom: 14px; }
.expert-card .expert-btns { display: flex; gap: 10px; justify-content: center; }
.expert-card .expert-btns a { padding: 6px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.btn-contact { background: #00a8ff; color: #fff !important; }
.btn-works { background: transparent; border: 1px solid #ff6b2b; color: #ff6b2b !important; }

/* === 合作品牌 === */
.partners-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.partner-item { background: #14141f; border: 1px solid #2a2a3e; border-radius: 10px; padding: 16px 28px; font-size: 1rem; color: #b0b0c0; font-weight: 600; transition: all 0.3s; }
.partner-item:hover { border-color: #00a8ff; color: #00a8ff; }

/* === How-To指南 === */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.howto-step { text-align: center; padding: 24px 16px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #00a8ff, #0070cc); color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.howto-step h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.howto-step p { font-size: 0.85rem; color: #999; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.faq-item { background: #14141f; border: 1px solid #2a2a3e; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #e0e0e0; transition: background 0.3s; }
.faq-question:hover { background: #1a1a2e; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: #00a8ff; transition: transform 0.3s; }
.faq-item.open .faq-question::after { content: '-'; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s; }
.faq-item.open .faq-answer { padding: 0 20px 16px; max-height: 300px; }
.faq-answer p { font-size: 0.9rem; color: #999; line-height: 1.7; }

/* === 用户评论 === */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.review-card { background: #14141f; border: 1px solid #2a2a3e; border-radius: 12px; padding: 20px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #00a8ff, #ff6b2b); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.review-name { font-weight: 600; color: #e0e0e0; }
.review-stars { color: #ff6b2b; font-size: 0.85rem; }
.review-text { font-size: 0.9rem; color: #bbb; line-height: 1.6; }

/* === 联系我们 === */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.contact-card { background: #14141f; border: 1px solid #2a2a3e; border-radius: 14px; padding: 28px; }
.contact-card h3 { font-size: 1.15rem; color: #fff; margin-bottom: 16px; border-bottom: 2px solid #00a8ff; padding-bottom: 10px; display: inline-block; }
.contact-card p { font-size: 0.9rem; color: #bbb; margin-bottom: 8px; }
.contact-card .contact-label { color: #00a8ff; font-weight: 600; }

/* === 页脚 === */
.site-footer { background: #060610; border-top: 1px solid #1a1a2e; padding: 40px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 30px; }
.footer-brand { }
.footer-brand p { font-size: 0.85rem; color: #888; margin-top: 12px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 8px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-links ul li { margin-bottom: 6px; }
.footer-links ul li a { color: #888; font-size: 0.85rem; }
.footer-links ul li a:hover { color: #00a8ff; }
.footer-contact p { font-size: 0.8rem; color: #888; margin-bottom: 6px; }
.footer-qrcode { display: flex; gap: 16px; }
.qr-item { text-align: center; }
.qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 6px; }
.qr-item span { font-size: 0.75rem; color: #888; }
.footer-social { max-width: 1200px; margin: 20px auto; padding: 16px 20px; border-top: 1px solid #1a1a2e; display: flex; align-items: center; gap: 16px; }
.footer-social span { color: #888; font-size: 0.85rem; }
.footer-social a { padding: 6px 14px; background: #14141f; border: 1px solid #2a2a3e; border-radius: 6px; color: #b0b0c0; font-size: 0.8rem; transition: all 0.3s; }
.footer-social a:hover { border-color: #00a8ff; color: #00a8ff; }
.footer-bottom { text-align: center; padding: 16px 20px; border-top: 1px solid #1a1a2e; }
.footer-bottom p { font-size: 0.8rem; color: #666; margin-bottom: 4px; }

/* === 内页通用 === */
.page-hero { padding: 50px 0 30px; text-align: center; background: linear-gradient(180deg, #0d0d14 0%, #0a0a0f 100%); }
.page-hero h1 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.page-hero p { color: #999; max-width: 600px; margin: 0 auto; }
.page-content { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.page-content h2 { font-size: 1.6rem; color: #fff; margin-bottom: 16px; }
.page-content h3 { font-size: 1.2rem; color: #e0e0e0; margin-bottom: 10px; }
.page-content p { color: #bbb; margin-bottom: 14px; line-height: 1.8; }
.content-author { display: flex; align-items: center; gap: 10px; padding: 14px 0; margin-bottom: 20px; border-bottom: 1px solid #1a1a2e; font-size: 0.85rem; color: #888; }
.content-author strong { color: #00a8ff; }

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

@media (max-width: 768px) {
    .main-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #0d0d14; border-bottom: 1px solid #1a1a2e; padding: 16px; z-index: 999; }
    .main-nav.open { display: block; }
    .main-nav .nav-list { flex-direction: column; gap: 0; }
    .main-nav .nav-list li a { padding: 12px 16px; border-radius: 8px; }
    .hamburger { display: flex; }
    .hero-banner { height: 280px; }
    .hero-overlay h1 { font-size: 1.6rem; }
    .hero-overlay p { font-size: 0.9rem; }
    .video-grid { grid-template-columns: 1fr; gap: 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .entertainment-grid { grid-template-columns: 1fr 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .experts-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-qrcode { justify-content: center; }
    .footer-social { flex-wrap: wrap; }
    .howto-steps { grid-template-columns: 1fr 1fr; }
    .section { padding: 40px 0; }
    .section-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .entertainment-grid { grid-template-columns: 1fr; }
    .howto-steps { grid-template-columns: 1fr; }
    .hero-overlay .hero-tags span { font-size: 0.75rem; padding: 4px 10px; }
}
