/* ============================================
   海角网 - 修车改装视频社区 外部样式表
   域名: cdannxk.cn
   ============================================ */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f8f9fa; line-height: 1.8; }
a { color: #e63946; text-decoration: none; transition: color 0.3s; }
a:hover { color: #c1121f; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-wrap img { height: 50px; width: auto; }
.logo-wrap .brand-name { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; }
.logo-wrap .brand-name span { color: #e63946; }

/* Navigation */
.main-nav { background: rgba(0,0,0,0.2); }
.main-nav ul { display: flex; justify-content: center; gap: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 12px 24px; color: #ddd; font-size: 0.95rem; font-weight: 500; transition: all 0.3s; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(230,57,70,0.2); border-bottom-color: #e63946; }

/* Search Bar */
.search-bar { padding: 15px 0; background: rgba(0,0,0,0.15); }
.search-bar form { display: flex; max-width: 600px; margin: 0 auto; }
.search-bar input[type="text"] { flex: 1; padding: 10px 20px; border: 2px solid rgba(255,255,255,0.2); border-right: none; border-radius: 25px 0 0 25px; background: rgba(255,255,255,0.1); color: #fff; font-size: 0.95rem; outline: none; transition: border-color 0.3s; }
.search-bar input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }
.search-bar input[type="text"]:focus { border-color: #e63946; }
.search-bar button { padding: 10px 25px; background: #e63946; color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: 0.95rem; transition: background 0.3s; }
.search-bar button:hover { background: #c1121f; }

/* Banner / Hero */
.hero-banner { position: relative; height: 500px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-banner .banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 2.8rem; margin-bottom: 15px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); line-height: 1.3; }
.hero-content h1 span { color: #e63946; }
.hero-content p { font-size: 1.15rem; margin-bottom: 25px; opacity: 0.95; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.hero-content .btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 25px; font-size: 1rem; font-weight: 600; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: #e63946; color: #fff; }
.btn-primary:hover { background: #c1121f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230,57,70,0.4); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #1a1a2e; }

/* Section Common */
.section { padding: 60px 0; }
.section-dark { background: #1a1a2e; color: #fff; }
.section-gray { background: #f0f2f5; }
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 2rem; color: #1a1a2e; margin-bottom: 10px; position: relative; display: inline-block; }
.section-dark .section-title h2 { color: #fff; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: #e63946; margin: 10px auto 0; }
.section-title p { color: #666; font-size: 1.05rem; }
.section-dark .section-title p { color: #aaa; }

/* Video Card Grid */
.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.08); transition: all 0.3s; position: relative; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.video-card .thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #000; }
.video-card .thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(230,57,70,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; cursor: pointer; z-index: 5; }
.video-card:hover .play-btn { opacity: 1; }
.video-card .play-btn::after { content: ''; display: block; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.video-card .duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; z-index: 3; }
.video-card .card-body { padding: 15px; }
.video-card .card-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-body h3 a { color: #333; }
.video-card .card-body h3 a:hover { color: #e63946; }
.video-card .meta { display: flex; justify-content: space-between; align-items: center; color: #999; font-size: 0.85rem; }
.video-card .meta .views { display: flex; align-items: center; gap: 4px; }
.video-card .tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.video-card .tags span { background: #f0f2f5; color: #666; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; }

/* Expert / Team Cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.team-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; padding: 30px 20px; transition: all 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.team-card .avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px; overflow: hidden; border: 3px solid #e63946; }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.15rem; margin-bottom: 5px; color: #1a1a2e; }
.team-card .role { color: #e63946; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p { color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.team-card .social-links { display: flex; justify-content: center; gap: 10px; }
.team-card .social-links a { width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; display: flex; align-items: center; justify-content: center; color: #666; transition: all 0.3s; font-size: 0.85rem; }
.team-card .social-links a:hover { background: #e63946; color: #fff; }

/* FAQ Section */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.faq-item .faq-question { padding: 18px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #1a1a2e; transition: background 0.3s; }
.faq-item .faq-question:hover { background: #f8f9fa; }
.faq-item .faq-question .icon { width: 24px; height: 24px; border-radius: 50%; background: #e63946; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s; }
.faq-item.active .faq-answer { padding: 0 25px 18px; max-height: 500px; }
.faq-item .faq-answer p { color: #666; line-height: 1.8; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.review-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); position: relative; }
.review-card::before { content: '\201C'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: #e63946; opacity: 0.15; font-family: Georgia, serif; line-height: 1; }
.review-card .stars { color: #ffc107; margin-bottom: 10px; font-size: 1.1rem; letter-spacing: 2px; }
.review-card p { color: #555; font-size: 0.95rem; margin-bottom: 15px; line-height: 1.7; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; }
.review-card .reviewer .r-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #e63946, #f77f00); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; }
.review-card .reviewer .r-info { font-size: 0.85rem; }
.review-card .reviewer .r-info strong { color: #333; }
.review-card .reviewer .r-info span { color: #999; display: block; }

/* Partner Logos */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.partner-wall .partner-item { background: #fff; padding: 20px 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); min-width: 150px; text-align: center; font-weight: 700; color: #555; font-size: 1.1rem; transition: all 0.3s; }
.partner-wall .partner-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-3px); }

/* How-To Guide */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; counter-reset: step; }
.howto-step { background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.08); position: relative; counter-increment: step; }
.howto-step::before { content: counter(step); display: block; width: 50px; height: 50px; border-radius: 50%; background: #e63946; color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 50px; margin: 0 auto 15px; }
.howto-step h4 { margin-bottom: 10px; color: #1a1a2e; }
.howto-step p { color: #666; font-size: 0.9rem; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.contact-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.contact-card h4 { color: #1a1a2e; margin-bottom: 15px; font-size: 1.15rem; border-bottom: 2px solid #e63946; padding-bottom: 10px; display: inline-block; }
.contact-card .info-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #555; }
.contact-card .info-item .label { font-weight: 600; min-width: 80px; color: #333; }

/* Share Buttons */
.share-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 20px 0; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 20px; color: #fff; font-size: 0.85rem; transition: all 0.3s; cursor: pointer; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00a1d6; }

/* Footer */
.site-footer { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #ccc; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: #e63946; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 0.9rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: #e63946; }
.footer-col .qr-code { width: 120px; height: 120px; border-radius: 8px; overflow: hidden; margin-top: 10px; }
.footer-col .qr-code img { width: 100%; height: 100%; object-fit: cover; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; color: #888; }
.footer-bottom a { color: #e63946; }

/* Breadcrumb */
.breadcrumb { padding: 15px 0; background: #fff; border-bottom: 1px solid #eee; }
.breadcrumb ul { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; }
.breadcrumb ul li::after { content: '/'; margin-left: 8px; color: #ccc; }
.breadcrumb ul li:last-child::after { content: ''; }
.breadcrumb ul li a { color: #666; }
.breadcrumb ul li a:hover { color: #e63946; }
.breadcrumb ul li.current { color: #e63946; font-weight: 500; }

/* AI Section */
.ai-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.ai-card { background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 12px; padding: 30px; color: #fff; position: relative; overflow: hidden; transition: all 0.3s; }
.ai-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.ai-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%); }
.ai-card h4 { font-size: 1.15rem; margin-bottom: 12px; color: #e63946; }
.ai-card p { color: #bbb; font-size: 0.9rem; line-height: 1.7; }

/* Community Stats */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2.5rem; font-weight: 700; color: #e63946; }
.stat-item .label { color: #666; font-size: 0.95rem; margin-top: 5px; }
.section-dark .stat-item .label { color: #aaa; }

/* Category Tabs */
.tab-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-nav .tab-btn { padding: 8px 22px; border: 2px solid #e63946; border-radius: 25px; color: #e63946; background: transparent; cursor: pointer; font-size: 0.9rem; transition: all 0.3s; }
.tab-nav .tab-btn.active, .tab-nav .tab-btn:hover { background: #e63946; color: #fff; }

/* Page Content */
.page-content { padding: 40px 0; min-height: 60vh; }
.page-content h2 { color: #1a1a2e; margin-bottom: 20px; }
.page-content p { margin-bottom: 15px; color: #555; }

/* MCP Frontend Placeholder */
.mcp-widget { background: #f8f9fa; border: 2px dashed #ddd; border-radius: 12px; padding: 30px; text-align: center; margin: 20px 0; }
.mcp-widget h4 { color: #1a1a2e; margin-bottom: 10px; }
.mcp-widget p { color: #999; font-size: 0.9rem; }

/* Lazy Load Placeholder */
.lazy { opacity: 0; transition: opacity 0.5s; }
.lazy.loaded { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .hero-banner { height: 350px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
  .main-nav a { padding: 10px 15px; font-size: 0.85rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item .num { font-size: 1.8rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top { flex-direction: column; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .ai-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-banner { height: 280px; }
  .hero-content h1 { font-size: 1.4rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .video-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #e63946; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c1121f; }

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

/* Video overlay for H5 */
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; z-index: 4; }
.video-card:hover .video-overlay { opacity: 1; }

/* Update time */
.update-time { color: #999; font-size: 0.8rem; margin-top: 5px; }
