/* 91 修车改装视频社区 - 霸王别姬风格原创样式 */
/* 配色：深红#8B0000 金色#C8A96E 黑#0A0A0F 暗红#1A0508 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",sans-serif; background: #0A0A0F; color: #E8DCC8; line-height: 1.7; }
a { color: #C8A96E; text-decoration: none; transition: color .3s; }
a:hover { color: #E8C97E; }
img { max-width: 100%; height: auto; display: block; }

/* 头部导航 */
.site-header { background: linear-gradient(180deg,#0A0A0F 0%,#1A0508 100%); border-bottom: 2px solid #8B0000; position: sticky; top: 0; z-index: 999; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { width: 48px; height: 48px; border-radius: 8px; border: 1px solid #C8A96E; }
.logo-area h1 { font-size: 22px; color: #C8A96E; font-weight: 700; }
.logo-area h1 span { color: #8B0000; }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a { padding: 6px 14px; font-size: 14px; color: #E8DCC8; border-radius: 4px; transition: all .3s; }
.main-nav a:hover, .main-nav a.active { background: #8B0000; color: #C8A96E; }
.mobile-toggle { display: none; background: none; border: 2px solid #C8A96E; color: #C8A96E; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 18px; }

/* 搜索框 */
.search-bar { background: #1A0508; padding: 12px 0; border-bottom: 1px solid rgba(139,0,0,.3); }
.search-bar-inner { max-width: 680px; margin: 0 auto; padding: 0 20px; display: flex; gap: 8px; }
.search-bar-inner input { flex: 1; padding: 10px 16px; background: #0A0A0F; border: 1px solid #8B0000; border-radius: 6px; color: #E8DCC8; font-size: 14px; outline: none; }
.search-bar-inner input:focus { border-color: #C8A96E; box-shadow: 0 0 8px rgba(200,169,110,.2); }
.search-bar-inner button { padding: 10px 24px; background: #8B0000; color: #C8A96E; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background .3s; }
.search-bar-inner button:hover { background: #A50000; }

/* Banner */
.hero-banner { position: relative; height: 520px; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(10,10,15,.85) 0%,rgba(139,0,0,.4) 50%,rgba(10,10,15,.85) 100%); display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; max-width: 800px; padding: 0 20px; }
.hero-content h2 { font-size: 42px; color: #C8A96E; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(139,0,0,.6); }
.hero-content p { font-size: 17px; color: #E8DCC8; line-height: 1.8; margin-bottom: 20px; }
.hero-content .hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-content .hero-tags span { padding: 6px 16px; background: rgba(139,0,0,.5); border: 1px solid #C8A96E; border-radius: 20px; font-size: 13px; color: #C8A96E; }

/* 通用容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 区块标题 */
.section-title { text-align: center; padding: 50px 0 30px; }
.section-title h2 { font-size: 30px; color: #C8A96E; position: relative; display: inline-block; }
.section-title h2::before, .section-title h2::after { content: ""; position: absolute; top: 50%; width: 60px; height: 2px; background: linear-gradient(90deg,transparent,#8B0000); }
.section-title h2::before { right: calc(100% + 16px); }
.section-title h2::after { left: calc(100% + 16px); background: linear-gradient(90deg,#8B0000,transparent); }
.section-title p { color: #9A8B7A; margin-top: 8px; font-size: 15px; }

/* 视频卡片网格 */
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-bottom: 40px; }
.video-card { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(139,0,0,.3); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,10,15,.5); opacity: 0; transition: opacity .3s; }
.video-card:hover .play-btn { opacity: 1; }
.video-card .play-btn span { width: 56px; height: 56px; background: rgba(139,0,0,.85); border: 2px solid #C8A96E; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #C8A96E; }
.video-card .duration { position: absolute; bottom: 8px; right: 8px; background: rgba(10,10,15,.8); color: #C8A96E; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.video-card .tag { position: absolute; top: 8px; left: 8px; background: #8B0000; color: #C8A96E; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.video-card .card-info { padding: 14px; }
.video-card .card-info h3 { font-size: 15px; color: #E8DCC8; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-meta { display: flex; gap: 14px; font-size: 12px; color: #9A8B7A; }
.video-card .card-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-card .card-tags span { font-size: 11px; padding: 2px 8px; background: rgba(139,0,0,.2); border: 1px solid rgba(139,0,0,.4); border-radius: 3px; color: #C8A96E; }
.video-card .card-desc { font-size: 13px; color: #9A8B7A; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 专家卡片 */
.expert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding-bottom: 40px; }
.expert-card { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; padding: 24px; text-align: center; transition: transform .3s; }
.expert-card:hover { transform: translateY(-4px); }
.expert-card img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #C8A96E; margin: 0 auto 14px; object-fit: cover; }
.expert-card h4 { color: #C8A96E; font-size: 16px; margin-bottom: 6px; }
.expert-card .role { color: #8B0000; font-size: 13px; margin-bottom: 8px; }
.expert-card p { font-size: 13px; color: #9A8B7A; line-height: 1.6; }
.expert-card .expert-btns { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }
.expert-card .expert-btns a { padding: 5px 14px; font-size: 12px; border: 1px solid #8B0000; border-radius: 4px; color: #C8A96E; transition: all .3s; }
.expert-card .expert-btns a:hover { background: #8B0000; }

/* AI赋能 */
.ai-section { background: linear-gradient(135deg,#1A0508 0%,#0A0A0F 100%); padding: 50px 0; }
.ai-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ai-card { background: rgba(139,0,0,.08); border: 1px solid rgba(139,0,0,.3); border-radius: 10px; padding: 28px; text-align: center; transition: transform .3s; }
.ai-card:hover { transform: translateY(-4px); border-color: #C8A96E; }
.ai-card .ai-icon { font-size: 36px; margin-bottom: 14px; }
.ai-card h4 { color: #C8A96E; font-size: 17px; margin-bottom: 10px; }
.ai-card p { font-size: 14px; color: #9A8B7A; line-height: 1.7; }

/* 社区话题 */
.topic-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; padding-bottom: 40px; }
.topic-card { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; padding: 22px; transition: border-color .3s; }
.topic-card:hover { border-color: #C8A96E; }
.topic-card h4 { color: #C8A96E; font-size: 16px; margin-bottom: 8px; }
.topic-card p { font-size: 14px; color: #9A8B7A; line-height: 1.7; }
.topic-card .topic-meta { margin-top: 10px; font-size: 12px; color: #6A5B4A; }

/* FAQ */
.faq-section { padding: 40px 0; }
.faq-item { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-item .faq-q { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #C8A96E; font-size: 15px; font-weight: 600; transition: background .3s; }
.faq-item .faq-q:hover { background: rgba(139,0,0,.15); }
.faq-item .faq-q .arrow { transition: transform .3s; font-size: 18px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }
.faq-item .faq-a p { font-size: 14px; color: #9A8B7A; line-height: 1.7; }

/* 用户评论 */
.review-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; padding-bottom: 40px; }
.review-card { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; padding: 22px; }
.review-card .review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card .review-avatar { width: 44px; height: 44px; border-radius: 50%; background: #8B0000; display: flex; align-items: center; justify-content: center; color: #C8A96E; font-size: 18px; font-weight: 700; }
.review-card .review-name { color: #C8A96E; font-size: 15px; font-weight: 600; }
.review-card .review-date { font-size: 12px; color: #6A5B4A; }
.review-card .stars { color: #C8A96E; font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.review-card p { font-size: 14px; color: #9A8B7A; line-height: 1.7; }

/* 合作品牌墙 */
.brand-wall { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 20px 0 40px; }
.brand-wall .brand-item { width: 140px; height: 70px; background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #C8A96E; font-size: 14px; font-weight: 600; transition: border-color .3s; }
.brand-wall .brand-item:hover { border-color: #C8A96E; }

/* How-To指南 */
.howto-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding-bottom: 40px; }
.howto-step { text-align: center; padding: 24px; background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; }
.howto-step .step-num { width: 44px; height: 44px; background: #8B0000; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #C8A96E; font-size: 20px; font-weight: 700; margin: 0 auto 12px; }
.howto-step h4 { color: #C8A96E; font-size: 15px; margin-bottom: 8px; }
.howto-step p { font-size: 13px; color: #9A8B7A; }

/* 社交分享 */
.share-bar { display: flex; gap: 12px; justify-content: center; padding: 20px 0; }
.share-bar a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #8B0000; display: flex; align-items: center; justify-content: center; color: #C8A96E; font-size: 16px; transition: all .3s; }
.share-bar a:hover { background: #8B0000; border-color: #C8A96E; }

/* 面包屑 */
.breadcrumb { padding: 14px 0; font-size: 13px; color: #6A5B4A; }
.breadcrumb a { color: #C8A96E; }
.breadcrumb span { margin: 0 6px; }

/* 页脚 */
.site-footer { background: #0A0A0F; border-top: 2px solid #8B0000; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-col h4 { color: #C8A96E; font-size: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(139,0,0,.3); }
.footer-col p, .footer-col a { font-size: 13px; color: #9A8B7A; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: #C8A96E; }
.footer-col img { width: 120px; height: 120px; border-radius: 8px; border: 1px solid rgba(139,0,0,.3); margin-top: 8px; }
.footer-bottom { text-align: center; padding: 20px; margin-top: 20px; border-top: 1px solid rgba(139,0,0,.2); font-size: 13px; color: #6A5B4A; }

/* 内页通用 */
.page-hero { background: linear-gradient(135deg,#1A0508,#0A0A0F); padding: 60px 0; text-align: center; border-bottom: 1px solid rgba(139,0,0,.3); }
.page-hero h2 { font-size: 34px; color: #C8A96E; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: #9A8B7A; }
.page-content { max-width: 1280px; margin: 0 auto; padding: 40px 20px; }
.page-content h3 { color: #C8A96E; font-size: 22px; margin: 30px 0 14px; }
.page-content p { font-size: 15px; color: #E8DCC8; line-height: 1.8; margin-bottom: 14px; }

/* 联系页面 */
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.contact-card { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; padding: 28px; }
.contact-card h4 { color: #C8A96E; font-size: 17px; margin-bottom: 14px; }
.contact-card p { font-size: 14px; color: #9A8B7A; margin-bottom: 8px; }

/* MCP前端代码块 */
.mcp-widget { background: #12080C; border: 1px solid rgba(139,0,0,.3); border-radius: 10px; padding: 20px; margin: 20px 0; }
.mcp-widget .mcp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mcp-widget .mcp-status { width: 10px; height: 10px; background: #4CAF50; border-radius: 50%; }
.mcp-widget h4 { color: #C8A96E; font-size: 15px; }
.mcp-widget .mcp-input { width: 100%; padding: 10px; background: #0A0A0F; border: 1px solid #8B0000; border-radius: 6px; color: #E8DCC8; font-size: 14px; margin-bottom: 10px; }
.mcp-widget .mcp-btn { padding: 8px 20px; background: #8B0000; color: #C8A96E; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }

/* 响应式 */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2,1fr); }
  .expert-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .howto-steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0A0A0F; border-bottom: 2px solid #8B0000; padding: 10px; }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero-banner { height: 380px; }
  .hero-content h2 { font-size: 28px; }
  .video-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 24px; }
  .section-title h2::before, .section-title h2::after { width: 30px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 10px 12px; }
  .logo-area h1 { font-size: 18px; }
  .logo-area img { width: 36px; height: 36px; }
  .hero-banner { height: 300px; }
  .hero-content h2 { font-size: 22px; }
  .hero-content p { font-size: 14px; }
  .brand-wall .brand-item { width: 110px; height: 55px; font-size: 12px; }
}
