/* 91 修车改装 - 原创CSS样式 */
/* 配色：碳黑#0D0D0D 深灰#1C1C2E 铬银#C0C0C0 赛车金#D4A843 暗红#8B1A1A */

:root {
  --carbon: #0D0D0D;
  --deep-gray: #1C1C2E;
  --chrome: #C0C0C0;
  --gold: #D4A843;
  --dark-red: #8B1A1A;
  --text-light: #E8E8E8;
  --text-muted: #999;
  --card-bg: #161625;
  --border-color: #2A2A3D;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--carbon);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: #F0C060; }

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

/* 导航栏 */
.site-nav {
  background: linear-gradient(180deg, #0D0D0D 0%, #1C1C2E 100%);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.nav-logo img { height: 42px; width: 42px; border-radius: 6px; }

.nav-links { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }

.nav-links li a {
  color: var(--chrome);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: all .3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: var(--gold);
}

.mobile-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; }

/* 搜索框 */
.search-bar {
  background: var(--deep-gray);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.search-wrap {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.search-wrap input {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: #0D0D0D;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.search-wrap input::placeholder { color: #666; }

.search-wrap button {
  padding: 12px 28px;
  background: var(--gold);
  color: #000;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s;
}

.search-wrap button:hover { background: #F0C060; }

/* Hero Banner */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,.92) 0%, rgba(28,28,46,.75) 50%, rgba(13,13,13,.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 20px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold), #F0C060, var(--chrome));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content h2 {
  font-size: 20px;
  color: var(--chrome);
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-gold {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--gold), #F0C060);
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .3s, box-shadow .3s;
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,67,.4); color: #000; }

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all .3s;
}

.btn-outline:hover { background: var(--gold); color: #000; }

/* 通用区块 */
.section { padding: 60px 0; }
.section-alt { background: var(--deep-gray); }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold);
}

.section-title p {
  color: var(--text-muted);
  font-size: 15px;
}

/* 视频卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform .3s, box-shadow .3s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(212,168,67,.15);
}

.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 .5s;
}

.video-card:hover .video-thumb img { transform: scale(1.08); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background: rgba(212,168,67,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  z-index: 3;
}

.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #000;
  margin-left: 3px;
}

.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info { padding: 16px; }
.video-info h3 { font-size: 15px; margin-bottom: 8px; color: #fff; line-height: 1.4; }

.video-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.video-tags { padding: 0 16px 16px; display: flex; gap: 6px; flex-wrap: wrap; }

.video-tags span {
  background: rgba(212,168,67,.12);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
}

/* 专家卡片 */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.expert-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform .3s;
}

.expert-card:hover { transform: translateY(-4px); }

.expert-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--gold);
}

.expert-card h3 { font-size: 18px; color: var(--gold); margin-bottom: 6px; }
.expert-card .role { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.expert-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.expert-links { display: flex; gap: 10px; justify-content: center; }

.expert-links a {
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 12px;
  color: var(--gold);
  transition: all .3s;
}

.expert-links a:hover { background: var(--gold); color: #000; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  transition: background .3s;
}

.faq-q:hover { background: rgba(212,168,67,.08); }

.faq-q::after { content: "+"; font-size: 20px; color: var(--gold); 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(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.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: 20px; }

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 10px; }
.review-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.review-author { font-size: 13px; color: var(--chrome); font-weight: 600; }

/* 合作品牌 */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.brand-wall span {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 8px;
  color: var(--chrome);
  font-size: 14px;
  font-weight: 600;
}

/* 联系方式 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.contact-card h3 { color: var(--gold); font-size: 16px; margin-bottom: 10px; }
.contact-card p { color: var(--text-muted); font-size: 14px; }
.contact-card img { width: 120px; height: 120px; border-radius: 8px; margin-top: 10px; }

/* How-To */
.howto-steps { max-width: 700px; margin: 0 auto; }

.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--gold), #F0C060);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.step-content h3 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-muted); }

/* 社交分享 */
.share-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.share-btns a {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: transform .3s;
}

.share-btns a:hover { transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; border: 1px solid #333; }
.share-bilibili { background: #00A1D6; }

/* 页脚 */
.site-footer {
  background: linear-gradient(180deg, var(--deep-gray) 0%, #0A0A15 100%);
  padding: 50px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--gold); }

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

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* 面包屑 */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* 回到顶部 */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(212,168,67,.4);
  transition: transform .3s;
}

.back-top:hover { transform: translateY(-3px); }

/* 内页通用 */
.page-header {
  background: var(--deep-gray);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 { font-size: 32px; color: var(--gold); margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 15px; }

.page-content { padding: 40px 0; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--deep-gray); padding: 16px; border-bottom: 1px solid var(--border-color); }
  .nav-links.show { display: flex; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 28px; }
  .hero-content h2 { font-size: 16px; }
  .hero-section { min-height: 400px; }
  .section-title h2 { font-size: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
