/* ============================================
   探花 - 汽车改装与视频社区
   原创CSS样式 | 配色：深橙 #E85D04 + 暗碳灰 #1A1A2E
   ============================================ */

/* === 基础重置与变量 === */
:root {
  --primary: #E85D04;
  --primary-dark: #C44D03;
  --primary-light: #FF7B2E;
  --dark: #1A1A2E;
  --dark-mid: #16213E;
  --dark-light: #0F3460;
  --text: #E0E0E0;
  --text-muted: #9A9AB0;
  --bg: #0D0D1A;
  --bg-card: #151528;
  --bg-card-hover: #1C1C35;
  --border: #2A2A45;
  --accent: #FF6B35;
  --success: #00C853;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(232,93,4,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { 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", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

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

/* === 顶部导航 === */
.top-nav {
  background: linear-gradient(180deg, var(--dark) 0%, rgba(26,26,46,0.95) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img { height: 42px; width: auto; }

.nav-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

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

.nav-links a {
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(232,93,4,0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* === 面包屑 === */
.breadcrumb {
  padding: 85px 0 10px;
  font-size: 0.85rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); margin: 0 6px; }
.breadcrumb .current { color: var(--primary); }

/* === 搜索栏 === */
.search-bar {
  padding: 10px 0 20px;
}

.search-wrap {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}

.search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.15);
}

.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 24px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

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

.search-wrap button {
  background: var(--primary);
  border: none;
  padding: 12px 28px;
  color: var(--white);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.search-wrap button:hover { background: var(--primary-dark); }

/* === Banner轮播 === */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 40px;
  aspect-ratio: 21/9;
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,26,0.85) 0%, rgba(13,13,26,0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.hero-text { max-width: 550px; }

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-text h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots span.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* === 通用按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,4,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* === 板块标题 === */
.section { padding: 50px 0; }

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 16px;
}

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

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

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 3px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.video-info { padding: 16px; }

.video-info h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

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

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

.video-tag {
  display: inline-block;
  background: rgba(232,93,4,0.15);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 10px;
  font-weight: 500;
}

/* === 内链按钮组 === */
.link-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* === 服务卡片网格 === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

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

.expert-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

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

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

.expert-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

.expert-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.expert-exp {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

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

.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.expert-btns a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

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

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

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

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

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

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

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.review-name { font-weight: 600; color: var(--white); }
.review-date { font-size: 0.8rem; color: var(--text-muted); }

.review-stars {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.review-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === 合作品牌 === */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
}

.brand-wall-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.brand-wall-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === 荣誉奖项 === */
.award-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.award-card:hover { border-color: var(--primary); }

.award-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.award-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.award-card p { color: var(--text-muted); font-size: 0.85rem; }

/* === 联系我们 === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info h3 { margin-bottom: 20px; font-size: 1.2rem; }

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item strong { color: var(--white); min-width: 80px; }

.contact-qr {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.qr-box {
  text-align: center;
}

.qr-box img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.qr-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === 社交分享 === */
.share-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === How-To指南 === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.howto-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  counter-increment: step;
}

.howto-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.howto-step p { color: var(--text-muted); font-size: 0.85rem; }

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

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

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  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(--primary);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* === noscript === */
.noscript-notice {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-overlay { padding: 0 24px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.5rem; }
  .hero-banner { aspect-ratio: 16/9; }
  .share-bar { flex-wrap: wrap; }
  .link-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.3rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
}

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

/* === 内页通用 === */
.page-hero {
  padding: 100px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--bg) 100%);
}

.page-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

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

.content-section h2 { font-size: 1.6rem; margin-bottom: 20px; }

.content-section p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
