/* 蜜桃传媒 品牌修车改装视频社区 - 原创样式 */
/* 配色方案: 深碳黑 #0d0d0d, 赛道橙 #e8530e, 钛金灰 #2a2d32, 铬银 #c0c5cc, 纯白 #ffffff */

:root {
  --brand-black: #0d0d0d;
  --brand-orange: #e8530e;
  --brand-orange-hover: #ff6b24;
  --brand-gray: #2a2d32;
  --brand-silver: #c0c5cc;
  --brand-white: #ffffff;
  --brand-dark-bg: #141618;
  --brand-card-bg: #1a1d21;
  --brand-border: #333639;
  --brand-text: #e0e2e6;
  --brand-text-muted: #8a8f96;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--brand-dark-bg);
  color: var(--brand-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--brand-orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-orange-hover); }

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

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

/* ===== 头部导航 ===== */
.site-header {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--brand-border);
}

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

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 42px; width: auto; }
.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 2px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--brand-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--brand-orange);
  background: rgba(232,83,14,0.1);
}

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

/* ===== 搜索框 ===== */
.search-bar-wrap {
  background: var(--brand-gray);
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-border);
  margin-top: 68px;
}

.search-bar {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  gap: 0;
}

.search-bar input {
  flex: 1;
  padding: 10px 18px;
  background: var(--brand-dark-bg);
  border: 2px solid var(--brand-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--brand-text);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus { border-color: var(--brand-orange); }

.search-bar input::placeholder { color: var(--brand-text-muted); }

.search-bar button {
  padding: 10px 24px;
  background: var(--brand-orange);
  color: var(--brand-white);
  border: 2px solid var(--brand-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); }

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

/* ===== Banner ===== */
.hero-banner {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

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

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  line-height: 1.3;
}

.hero-content h1 em {
  color: var(--brand-orange);
  font-style: normal;
}

.hero-content p {
  font-size: 18px;
  color: var(--brand-silver);
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--brand-orange);
  color: var(--brand-white);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232,83,14,0.4);
}

.hero-btn:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,83,14,0.5);
  color: var(--brand-white);
}

/* ===== 通用区块 ===== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--brand-black);
}

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

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

.section-title h2 em {
  color: var(--brand-orange);
  font-style: normal;
}

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

/* ===== 视频卡片网格 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--brand-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--brand-border);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-orange);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb img,
.video-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-thumb video { z-index: 0; }
.video-thumb .video-poster { z-index: 1; }

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

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(232,83,14,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
}

.play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--brand-white);
  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.8);
  color: var(--brand-white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
}

.video-info { padding: 14px; }

.video-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-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;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--brand-text-muted);
}

.video-meta span { display: flex; align-items: center; gap: 4px; }

.video-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(232,83,14,0.15);
  color: var(--brand-orange);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 6px;
}

/* ===== 分类标签栏 ===== */
.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-nav a {
  padding: 8px 20px;
  background: var(--brand-card-bg);
  color: var(--brand-text);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--brand-border);
  transition: var(--transition);
}

.tab-nav a:hover, .tab-nav a.active {
  background: var(--brand-orange);
  color: var(--brand-white);
  border-color: var(--brand-orange);
}

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

.expert-card {
  background: var(--brand-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--brand-border);
  transition: var(--transition);
}

.expert-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.expert-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--brand-orange);
}

.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }

.expert-card h4 {
  font-size: 16px;
  color: var(--brand-white);
  margin-bottom: 4px;
}

.expert-card .role {
  font-size: 13px;
  color: var(--brand-orange);
  margin-bottom: 10px;
}

.expert-card p {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.expert-card .btn-sm {
  display: inline-block;
  padding: 6px 18px;
  background: transparent;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 4px;
}

.expert-card .btn-sm:hover {
  background: var(--brand-orange);
  color: var(--brand-white);
}

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

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

.faq-question {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--brand-orange); }

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-orange);
  transition: var(--transition);
}

.faq-item.active .faq-question::after { content: "-"; }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--brand-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* ===== 用户评论 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.review-card:hover { border-color: var(--brand-orange); }

.review-stars { color: #f5a623; font-size: 14px; margin-bottom: 10px; }

.review-text {
  font-size: 14px;
  color: var(--brand-text);
  margin-bottom: 14px;
  line-height: 1.6;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  font-weight: 700;
  font-size: 14px;
}

.review-author-info { font-size: 13px; }
.review-author-info strong { color: var(--brand-white); display: block; }
.review-author-info span { color: var(--brand-text-muted); font-size: 12px; }

/* ===== 合作品牌墙 ===== */
.fg2boss {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.yn5yzi {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-silver);
  transition: var(--transition);
}

.yn5yzi:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* ===== AI赋能模块 ===== */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.ai-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ai-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-orange), #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}

.ai-card h4 {
  font-size: 17px;
  color: var(--brand-white);
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 13px;
  color: var(--brand-text-muted);
  line-height: 1.6;
}

/* ===== 社区模块（3列改4列适配8个卡片） ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.community-card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.community-card:hover {
  border-color: var(--brand-orange);
}

.community-card h4 {
  font-size: 16px;
  color: var(--brand-white);
  margin-bottom: 8px;
}

.community-card p {
  font-size: 13px;
  color: var(--brand-text-muted);
  line-height: 1.6;
}

.community-card .count {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--brand-orange);
  font-weight: 600;
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.contact-block {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.contact-block h4 {
  font-size: 18px;
  color: var(--brand-white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--brand-text);
}

.contact-item strong { color: var(--brand-silver); min-width: 70px; }

/* ===== 社交分享 ===== */
.gaprtd {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ffmlx5 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-white);
  transition: var(--transition);
}

.ffmlx5:hover { transform: translateY(-2px); color: var(--brand-white); }
.ffmlx5.wechat { background: #07c160; }
.ffmlx5.weibo { background: #e6162d; }
.ffmlx5.douyin { background: #161823; border: 1px solid #444; }
.ffmlx5.bilibili { background: #00a1d6; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--brand-black);
  border-top: 1px solid var(--brand-border);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .logo-text { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px;
  color: var(--brand-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.uufuaqlh {
  display: flex;
  gap: 16px;
}

.y8qvfyi9 {
  text-align: center;
}

.y8qvfyi9 img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.y8qvfyi9 span {
  font-size: 11px;
  color: var(--brand-text-muted);
}

.footer-col h5 {
  font-size: 15px;
  color: var(--brand-white);
  margin-bottom: 16px;
  font-weight: 600;
}

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

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

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

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

/* ===== How-To指南 ===== */
.g0azp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.zrsb8a {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
}

.jt8c9yt4 {
  width: 40px;
  height: 40px;
  background: var(--brand-orange);
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.zrsb8a h4 {
  font-size: 15px;
  color: var(--brand-white);
  margin-bottom: 8px;
}

.zrsb8a p {
  font-size: 13px;
  color: var(--brand-text-muted);
  line-height: 1.5;
}

/* ===== 内页通用 ===== */
.page-header {
  padding: 40px 0 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-white);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 15px;
  color: var(--brand-text-muted);
}

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

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--brand-black);
    padding: 16px;
    border-bottom: 1px solid var(--brand-border);
  }
  .hero-banner { height: 360px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .g0azp { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 280px; }
  .hero-content h1 { font-size: 22px; }
  .search-bar { flex-direction: column; }
  .search-bar input { border-right: 2px solid var(--brand-border); border-radius: var(--radius-sm); }
  .search-bar button { border-radius: var(--radius-sm); margin-top: 8px; }
}

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

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.rsunqi { animation: fadeInUp 0.5s ease forwards; }
