/* ============================================
   福利姬 - 汽车改装视频社区
   原创配色：深钛灰 + 赛车红 + 碳纤维黑
   ============================================ */

:root {
  --primary: #C41E3A;
  --primary-dark: #9B1B30;
  --primary-light: #E8394D;
  --secondary: #1A1D23;
  --secondary-light: #2A2D35;
  --accent: #D4AF37;
  --accent-light: #F0D060;
  --bg-dark: #0D0F12;
  --bg-card: #15181E;
  --bg-section: #111318;
  --text-main: #E8E9EB;
  --text-muted: #8A8D95;
  --text-bright: #FFFFFF;
  --border-color: #2A2D35;
  --gradient-hero: linear-gradient(135deg, #0D0F12 0%, #1A1D23 50%, #2A1520 100%);
  --gradient-red: linear-gradient(135deg, #C41E3A 0%, #9B1B30 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F0D060 100%);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(196,30,58,0.25);
  --radius: 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: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

/* ========== 顶部导航 ========== */
.site-header {
  background: rgba(13,15,18,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

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

.nav-logo span { background: var(--gradient-red); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

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

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--text-bright);
  background: var(--secondary-light);
}

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

/* ========== 搜索栏 ========== */
.search-bar {
  background: var(--secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.search-wrap {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  gap: 10px;
}

.search-wrap input {
  flex: 1;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-wrap input:focus { border-color: var(--primary); }

.search-wrap button {
  padding: 10px 24px;
  background: var(--gradient-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-wrap button:hover { opacity: 0.9; transform: translateY(-1px); }

/* ========== Hero区域 ========== */
.hero {
  background: var(--gradient-hero);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,30,58,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-bright);
  position: relative;
}

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

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.hero-stats .stat-item { text-align: center; }

.hero-stats .stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

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

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-red);
  border-radius: 2px;
}

.section-desc { color: var(--text-muted); margin-bottom: 36px; font-size: 1rem; }

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

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

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

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

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

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

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

.video-play::after {
  content: '';
  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 .video-play { 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: 0.8rem;
}

.video-info { padding: 14px; }

.video-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  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: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.video-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(196,30,58,0.15);
  color: var(--primary-light);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 8px;
}

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

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

.team-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary);
}

.team-card h4 { font-size: 1.05rem; color: var(--text-bright); margin-bottom: 4px; }

.team-card .role { font-size: 0.85rem; color: var(--accent); margin-bottom: 10px; }

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

.team-card .btn-sm {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--gradient-red);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
}

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

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

.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-bright);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

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

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

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

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

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

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

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

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-name { font-weight: 600; color: var(--text-bright); }

.review-stars { color: var(--accent); font-size: 0.85rem; }

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

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

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

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

/* ========== HowTo指南 ========== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.howto-step:hover { border-color: var(--primary); }

.step-num {
  width: 44px;
  height: 44px;
  background: var(--gradient-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 14px;
}

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

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

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

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

.contact-card h4 { color: var(--text-bright); margin-bottom: 10px; font-size: 1.05rem; }

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

/* ========== 页脚 ========== */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
}

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

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.footer-brand img { height: 36px; border-radius: 6px; }

.footer-brand span { font-size: 1.2rem; font-weight: 700; color: var(--text-bright); }

.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.footer-col h5 { color: var(--text-bright); font-size: 1rem; margin-bottom: 14px; }

.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; }

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

.footer-qr { display: flex; gap: 20px; margin-top: 16px; }

.footer-qr .qr-item { text-align: center; }

.footer-qr img { width: 100px; height: 100px; border-radius: 8px; border: 1px solid var(--border-color); }

.footer-qr p { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

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

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* ========== 内页通用 ========== */
.page-hero {
  background: var(--gradient-hero);
  padding: 50px 0 40px;
  text-align: center;
}

.page-hero h1 { font-size: 2rem; color: var(--text-bright); margin-bottom: 10px; }

.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

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

/* ========== 分享按钮 ========== */
.share-bar { display: flex; gap: 10px; margin-top: 20px; }

.share-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; border: 1px solid #444; }
.share-bilibili { background: #00A1D6; }

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

@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--secondary); flex-direction: column; padding: 10px; border-bottom: 1px solid var(--border-color); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-num { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .howto-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .section { padding: 40px 0; }
}

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