/* ============================================
   91修车改装 - 原创样式表
   配色：法拉利红 #DC143C + 碳纤维黑 #1A1A2E + 银灰 #C0C0C0
   ============================================ */
:root {
  --ferrari-red: #DC143C;
  --carbon-black: #1A1A2E;
  --dark-steel: #16213E;
  --silver-gray: #C0C0C0;
  --light-bg: #F5F5F0;
  --warm-white: #FAFAF7;
  --accent-gold: #D4A843;
  --text-dark: #2C2C2C;
  --text-light: #8A8A8A;
  --border-subtle: #E8E8E3;
  --shadow-soft: rgba(26,26,46,0.08);
  --shadow-hover: rgba(220,20,60,0.15);
  --gradient-red: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
  --gradient-dark: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--ferrari-red); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #8B0000; }

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

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

/* 干扰标签隐藏 */
.noise-wrap { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: -9999; }

/* ========== 顶部导航 ========== */
.top-bar {
  background: var(--carbon-black);
  color: var(--silver-gray);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 2px solid var(--ferrari-red);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--silver-gray); }
.top-bar a:hover { color: var(--ferrari-red); }

.main-nav {
  background: rgba(26,26,46,0.97);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px var(--shadow-soft);
}
.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.nav-logo img { width: 42px; height: 42px; border-radius: 6px; }
.nav-logo span {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.nav-logo .brand-accent { color: var(--ferrari-red); }

.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links li a {
  display: block;
  color: #ddd;
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: rgba(220,20,60,0.1);
  border-bottom-color: var(--ferrari-red);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  width: 160px;
  transition: all 0.3s;
}
.nav-search input:focus {
  outline: none;
  border-color: var(--ferrari-red);
  width: 200px;
  background: rgba(255,255,255,0.15);
}
.nav-search button {
  background: var(--ferrari-red);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}
.nav-search button:hover { background: #8B0000; }

/* 移动端菜单 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* ========== Banner区域 ========== */
.hero-banner {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--carbon-black);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(139,0,0,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 30px;
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}
.hero-content h1 .red { color: var(--ferrari-red); }
.hero-content p {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-tags span {
  background: rgba(220,20,60,0.25);
  border: 1px solid rgba(220,20,60,0.5);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

/* ========== 通用区块 ========== */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--light-bg);
}
.section-dark {
  background: var(--gradient-dark);
  color: #fff;
}
.section-title {
  text-align: center;
  margin-bottom: 45px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  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: 4px;
  background: var(--gradient-red);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-title p { color: rgba(255,255,255,0.7); }

/* ========== 视频卡片网格 ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.video-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-soft);
  transition: all 0.35s ease;
  position: relative;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow-hover);
}
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--carbon-black);
}
.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px; height: 56px;
  background: rgba(220,20,60,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 5;
}
.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:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.video-info {
  padding: 14px 16px;
}
.video-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}
.video-stats { display: flex; gap: 12px; }
.video-stats span { display: flex; align-items: center; gap: 3px; }
.video-tag {
  background: rgba(220,20,60,0.08);
  color: var(--ferrari-red);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* 视频卡片暗色版 */
.section-dark .video-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.section-dark .video-info h3 { color: #fff; }
.section-dark .video-meta { color: rgba(255,255,255,0.5); }

/* ========== 模块卡片 ========== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-soft);
  transition: all 0.35s;
  border-top: 4px solid transparent;
}
.module-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--ferrari-red);
  box-shadow: 0 12px 32px var(--shadow-hover);
}
.module-icon {
  width: 64px; height: 64px;
  background: var(--gradient-red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: #fff;
}
.module-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.module-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== 专家卡片 ========== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.expert-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-soft);
  transition: all 0.35s;
}
.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-hover);
}
.expert-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.expert-info {
  padding: 22px;
}
.expert-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.expert-role {
  color: var(--ferrari-red);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.expert-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}
.expert-btns {
  display: flex;
  gap: 10px;
}
.btn-outline {
  padding: 7px 18px;
  border: 1px solid var(--ferrari-red);
  color: var(--ferrari-red);
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--ferrari-red);
  color: #fff;
}

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px var(--shadow-soft);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.faq-question:hover { background: rgba(220,20,60,0.04); }
.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--ferrari-red);
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}
.faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 300px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== 用户评论 ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.review-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow-soft);
  border-left: 4px solid var(--ferrari-red);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.review-name { font-weight: 600; font-size: 15px; }
.review-stars { color: var(--accent-gold); font-size: 14px; }
.review-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== 合作品牌墙 ========== */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}
.brand-item {
  background: #fff;
  padding: 18px 32px;
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--shadow-soft);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.3s;
}
.brand-item:hover {
  box-shadow: 0 6px 20px var(--shadow-hover);
  transform: translateY(-2px);
}

/* ========== 社交分享 ========== */
.share-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; opacity: 0.9; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* ========== 页脚 ========== */
.site-footer {
  background: var(--carbon-black);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-brand .red { color: var(--ferrari-red); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-qr {
  display: flex;
  gap: 16px;
}
.footer-qr-item { text-align: center; }
.footer-qr-item img {
  width: 100px; height: 100px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.footer-qr-item span { font-size: 12px; display: block; }

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--ferrari-red);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: all 0.3s;
}
.footer-col ul li a:hover {
  color: var(--ferrari-red);
  padding-left: 4px;
}
.footer-contact p {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--ferrari-red); }
.breadcrumb span { margin: 0 6px; }

/* ========== 内页头部 ========== */
.page-header {
  background: var(--gradient-dark);
  padding: 50px 0;
  text-align: center;
  color: #fff;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 16px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== 内容区域 ========== */
.content-area {
  padding: 40px 0;
}
.content-area h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  border-left: 4px solid var(--ferrari-red);
  padding-left: 14px;
}
.content-area h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.content-area p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--text-dark);
}
.content-area article {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px var(--shadow-soft);
}

/* ========== 话题卡片 ========== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 12px var(--shadow-soft);
  border-top: 3px solid var(--ferrari-red);
  transition: all 0.3s;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}
.topic-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.topic-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== 顾问卡片 ========== */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.advisor-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px var(--shadow-soft);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.advisor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--ferrari-red);
}
.advisor-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.advisor-role {
  color: var(--ferrari-red);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.advisor-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== 联系信息 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.contact-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px var(--shadow-soft);
}
.contact-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ferrari-red);
}
.contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.contact-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--text-dark);
}
.contact-value { color: var(--text-light); }

/* ========== How-To指南 ========== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.howto-step {
  background: #fff;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-soft);
  position: relative;
  counter-increment: step;
}
.howto-step::before {
  content: counter(step);
  display: block;
  width: 40px; height: 40px;
  background: var(--gradient-red);
  color: #fff;
  border-radius: 50%;
  line-height: 40px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.howto-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.howto-step p {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--carbon-black);
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-links li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-search { display: none; }
  
  .hero-banner { height: 380px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .advisor-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  
  .share-bar { flex-wrap: wrap; }
  .brand-wall { gap: 14px; }
  
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 24px; }
  .page-header h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .hero-banner { height: 300px; }
  .hero-content h1 { font-size: 22px; }
  .advisor-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ========== 懒加载 ========== */
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }
