/* 麻豆 修车改装视频社区 - 原创样式表 */
/* 色彩系统：深空蓝 #0a1628 | 极光蓝 #1e90ff | 钛金灰 #2d3748 | 烈焰橙 #ff6b35 | 冰银白 #f0f4f8 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-dark: #0a1628;
  --c-blue: #1e90ff;
  --c-gray: #2d3748;
  --c-orange: #ff6b35;
  --c-light: #f0f4f8;
  --c-white: #ffffff;
  --c-text: #e2e8f0;
  --c-muted: #94a3b8;
  --c-card: #131e33;
  --c-border: #1e3a5f;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1280px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--c-dark);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--c-blue); text-decoration: none; transition: color .3s; }
a:hover { color: var(--c-orange); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: background .3s;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px; height: 68px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 42px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--c-blue); letter-spacing: 2px; }

.main-nav { display: flex; gap: 0; }
.main-nav a {
  padding: 22px 16px; font-size: .95rem; color: var(--c-text);
  position: relative; font-weight: 500; transition: color .3s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
  background: var(--c-orange); transition: all .3s; transform: translateX(-50%);
}
.main-nav a:hover, .main-nav a.active { color: var(--c-orange); }
.main-nav a:hover::after, .main-nav a.active::after { width: 70%; }

.mobile-toggle { display: none; background: none; border: none; color: var(--c-text); font-size: 1.5rem; cursor: pointer; }

/* ===== 搜索框 ===== */
.search-bar {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  padding: 12px 0;
  margin-top: 68px;
}
.search-bar .container { display: flex; justify-content: center; }
.search-wrap {
  display: flex; max-width: 640px; width: 100%;
  border: 2px solid var(--c-border); border-radius: 30px; overflow: hidden;
  background: var(--c-dark); transition: border-color .3s;
}
.search-wrap:focus-within { border-color: var(--c-blue); }
.search-wrap input {
  flex: 1; padding: 12px 20px; background: transparent; border: none;
  color: var(--c-text); font-size: .95rem; outline: none;
}
.search-wrap input::placeholder { color: var(--c-muted); }
.search-wrap button {
  padding: 12px 28px; background: var(--c-blue); border: none;
  color: var(--c-white); font-weight: 600; cursor: pointer; transition: background .3s;
}
.search-wrap button:hover { background: var(--c-orange); }

/* ===== Banner ===== */
.hero-banner {
  position: relative; height: 560px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-banner .bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.45);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 0 20px;
}
.hero-content h1 {
  font-size: 3rem; font-weight: 900; color: var(--c-white);
  margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1.3;
}
.hero-content h1 span { color: var(--c-orange); }
.hero-content p {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  margin-bottom: 28px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 30px; font-weight: 600;
  font-size: .95rem; transition: all .3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--c-orange); color: var(--c-white); }
.btn-primary:hover { background: #e55a2b; color: var(--c-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.4); }
.btn-outline { background: transparent; color: var(--c-white); border: 2px solid var(--c-white); }
.btn-outline:hover { background: var(--c-white); color: var(--c-dark); }

/* ===== 通用板块 ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--c-card); }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem; font-weight: 800; color: var(--c-white);
  margin-bottom: 12px; position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--c-orange); margin: 12px auto 0; border-radius: 2px;
}
.section-title p { color: var(--c-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== 视频卡片网格 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--c-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--c-border);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; background: rgba(255,107,53,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s; z-index: 3;
}
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-left: 18px solid var(--c-white);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.8); color: var(--c-white);
  padding: 2px 8px; border-radius: 4px; font-size: .75rem;
}
.video-info { padding: 16px; }
.video-info h3 {
  font-size: 1rem; font-weight: 700; color: var(--c-white);
  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: 16px; color: var(--c-muted); font-size: .82rem;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.video-tags span {
  padding: 3px 10px; background: rgba(30,144,255,0.15);
  color: var(--c-blue); border-radius: 20px; font-size: .75rem;
}

/* ===== 特色模块网格 ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all .3s;
}
.feature-card:hover {
  border-color: var(--c-blue);
  box-shadow: 0 0 30px rgba(30,144,255,0.15);
  transform: translateY(-4px);
}
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-orange));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-white); margin-bottom: 10px; }
.feature-card p { color: var(--c-muted); font-size: .9rem; line-height: 1.6; }

/* ===== 专家展示 ===== */
.expert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
.expert-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-photo { height: 280px; overflow: hidden; }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.expert-card:hover .expert-photo img { transform: scale(1.05); }
.expert-detail { padding: 24px; }
.expert-detail h3 { font-size: 1.15rem; font-weight: 700; color: var(--c-white); margin-bottom: 4px; }
.expert-role { color: var(--c-orange); font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.expert-detail p { color: var(--c-muted); font-size: .88rem; margin-bottom: 16px; line-height: 1.6; }
.expert-btns { display: flex; gap: 10px; }
.expert-btns a {
  padding: 8px 18px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--c-blue); color: var(--c-blue); transition: all .3s;
}
.expert-btns a:hover { background: var(--c-blue); color: var(--c-white); }

/* ===== 合作品牌 ===== */
.brand-wall {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 32px;
  padding: 20px 0;
}
.brand-item {
  width: 140px; height: 70px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--c-muted);
  transition: all .3s;
}
.brand-item:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--c-card);
}
.faq-q {
  padding: 18px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--c-white); transition: background .3s;
}
.faq-q:hover { background: rgba(30,144,255,0.08); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--c-orange); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 24px; color: var(--c-muted); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 18px; }

/* ===== 用户评论 ===== */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.review-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  transition: all .3s;
}
.review-card:hover { border-color: var(--c-blue); }
.review-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: var(--c-text); font-size: .92rem; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-orange));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white); font-weight: 700; font-size: .9rem;
}
.review-name { font-weight: 600; color: var(--c-white); font-size: .88rem; }
.review-date { color: var(--c-muted); font-size: .78rem; }

/* ===== 页脚 ===== */
.site-footer {
  background: #060e1a; border-top: 1px solid var(--c-border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 1rem; font-weight: 700; color: var(--c-white);
  margin-bottom: 16px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 3px; background: var(--c-orange); border-radius: 2px;
}
.footer-col p, .footer-col li { color: var(--c-muted); font-size: .88rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col li a { color: var(--c-muted); transition: color .3s; }
.footer-col li a:hover { color: var(--c-blue); }
.footer-qr { display: flex; gap: 20px; margin-top: 12px; }
.footer-qr img { width: 110px; height: 110px; border-radius: 8px; border: 1px solid var(--c-border); }
.footer-qr-label { text-align: center; font-size: .78rem; color: var(--c-muted); margin-top: 6px; }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 0; text-align: center;
  color: var(--c-muted); font-size: .82rem;
}
.footer-bottom a { color: var(--c-muted); }

/* ===== 社交分享 ===== */
.share-bar { display: flex; gap: 12px; justify-content: center; padding: 20px 0; flex-wrap: wrap; }
.share-btn {
  padding: 10px 20px; border-radius: 20px; font-size: .85rem;
  font-weight: 600; border: 1px solid var(--c-border); color: var(--c-text);
  background: var(--c-card); transition: all .3s; cursor: pointer;
}
.share-btn:hover { border-color: var(--c-blue); color: var(--c-blue); background: rgba(30,144,255,0.08); }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0; margin-top: 68px;
  font-size: .85rem; color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-card);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb span { margin: 0 8px; }

/* ===== 内页通用 ===== */
.page-hero {
  padding: 100px 0 50px; text-align: center;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-card) 100%);
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--c-white); margin-bottom: 12px; }
.page-hero p { color: var(--c-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.content-area { padding: 48px 0; }
.content-area h2 { font-size: 1.5rem; font-weight: 700; color: var(--c-white); margin: 32px 0 16px; }
.content-area h3 { font-size: 1.2rem; font-weight: 700; color: var(--c-white); margin: 24px 0 12px; }
.content-area p { color: var(--c-text); margin-bottom: 16px; line-height: 1.8; }

/* ===== How-To 指南 ===== */
.howto-steps { max-width: 700px; margin: 0 auto; }
.howto-step {
  display: flex; gap: 20px; margin-bottom: 28px;
  padding: 20px; background: var(--c-card); border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.step-num {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-orange));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--c-white);
}
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--c-white); margin-bottom: 6px; }
.step-content p { color: var(--c-muted); font-size: .9rem; margin: 0; }

/* ===== 联系信息 ===== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
}
.contact-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
}
.contact-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-white); margin-bottom: 16px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 12px; color: var(--c-muted); font-size: .9rem; }
.contact-label { font-weight: 600; color: var(--c-text); min-width: 80px; }

/* ===== MCP 前端代码块 ===== */
.mcp-widget {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px; margin: 24px 0;
}
.mcp-widget h4 { color: var(--c-white); margin-bottom: 12px; }
.mcp-status {
  display: flex; align-items: center; gap: 8px;
  color: #22c55e; font-size: .88rem;
}
.mcp-status::before {
  content: ''; width: 8px; height: 8px;
  background: #22c55e; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .main-nav { 
    display: none; position: fixed; top: 68px; left: 0; width: 100%;
    background: rgba(10,22,40,0.98); flex-direction: column;
    padding: 20px; gap: 0; border-bottom: 1px solid var(--c-border);
  }
  .main-nav.show { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-border); }
  .mobile-toggle { display: block; }
  
  .hero-banner { height: 420px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: .95rem; }
  
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 1.5rem; }
  
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  
  .header-inner { height: 56px; }
  .search-bar { margin-top: 56px; }
  .breadcrumb { margin-top: 56px; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 360px; }
  .hero-content h1 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: .88rem; }
}

/* ===== 图片显示 ===== */
img { opacity: 1; }
img[loading="lazy"] { transition: opacity .5s; }

/* ===== 动画 ===== */
.fade-in {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s, transform .6s;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== EEAT信任信号条 ===== */
.trust-bar {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6a 100%);
  padding: 28px 0;
  border-bottom: 1px solid var(--c-border);
}
.trust-items {
  display: flex; justify-content: center; align-items: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  display: block; font-size: 1.6rem; font-weight: 900;
  color: var(--c-orange); line-height: 1.2;
}
.trust-label {
  display: block; font-size: .82rem; color: var(--c-muted);
  margin-top: 4px;
}

/* ===== 专家资质标签 ===== */
.expert-certs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.cert-tag {
  padding: 3px 10px; font-size: .72rem; font-weight: 600;
  background: rgba(255,107,53,0.12); color: var(--c-orange);
  border: 1px solid rgba(255,107,53,0.3); border-radius: 20px;
}

/* ===== 底部信任链接 ===== */
.footer-trust {
  border-top: 1px solid var(--c-border);
  padding: 16px 0; margin-top: 20px;
}
.footer-trust-links {
  display: flex; justify-content: center; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: .82rem; color: var(--c-muted);
}
.footer-trust-links a {
  color: var(--c-muted); transition: color .3s;
}
.footer-trust-links a:hover { color: var(--c-blue); }

/* ===== 关于页面 ===== */
.about-timeline {
  max-width: 700px; margin: 0 auto; position: relative;
  padding-left: 40px;
}
.about-timeline::before {
  content: ''; position: absolute; left: 16px; top: 0;
  width: 2px; height: 100%; background: var(--c-border);
}
.timeline-item {
  position: relative; margin-bottom: 32px;
  padding: 20px; background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--radius);
}
.timeline-item::before {
  content: ''; position: absolute; left: -32px; top: 24px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-orange); border: 2px solid var(--c-dark);
}
.timeline-year {
  font-size: .82rem; font-weight: 700; color: var(--c-orange);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1rem; color: var(--c-white); margin-bottom: 6px; }
.timeline-item p { color: var(--c-muted); font-size: .88rem; margin: 0; }

/* ===== 隐私政策页面 ===== */
.privacy-content {
  max-width: 800px; margin: 0 auto;
}
.privacy-content h2 {
  font-size: 1.3rem; color: var(--c-white);
  margin: 32px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.privacy-content p {
  color: var(--c-muted); font-size: .92rem; line-height: 1.8;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .trust-items { gap: 24px; }
  .trust-num { font-size: 1.3rem; }
}
