/* =============================================
   麻豆 - 汽车改装视频社区 主样式表
   Domain: dinubpu.cn
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --primary: #0A1628;
  --accent: #FF6B35;
  --accent2: #FFB347;
  --light-bg: #F5F7FA;
  --card-bg: #FFFFFF;
  --text-main: #1A1A2E;
  --text-sub: #5A6478;
  --text-light: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-hover: 0 8px 40px rgba(255,107,53,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 70px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--light-bg);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--primary); color: var(--text-light); }
.section-gray { background: #EEF2F7; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}
.btn-primary:hover { background: #e85a25; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.4); }
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover { background: var(--accent); color: #fff; }

/* ---- Section Titles ---- */
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-title span { color: var(--accent); }
.section-subtitle {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 40px;
  max-width: 600px;
}
.section-alt .section-title { color: #fff; }
.section-alt .section-subtitle { color: rgba(255,255,255,0.7); }
.title-line {
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0 20px;
}
.title-line.center { margin: 12px auto 20px; }

/* ---- Header / Navigation ---- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,107,53,0.15);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-wrap img {
  height: 44px;
  width: auto;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.logo-text span { color: var(--accent); }

/* ---- Search Bar ---- */
.header-search {
  flex: 0 0 280px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  border-radius: 24px;
  border: 1.5px solid rgba(255,107,53,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,0.45); }
.header-search input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.header-search .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
}
.header-search .search-btn:hover { color: var(--accent); }

/* ---- Main Nav ---- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(255,107,53,0.1);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--primary);
  z-index: 999;
  padding: 20px;
  border-bottom: 2px solid var(--accent);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition);
}
.mobile-nav a:hover { background: rgba(255,107,53,0.15); color: var(--accent); }
.mobile-search {
  margin-bottom: 12px;
  position: relative;
}
.mobile-search input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: 24px;
  border: 1.5px solid rgba(255,107,53,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.mobile-search input::placeholder { color: rgba(255,255,255,0.4); }
.mobile-search .search-btn {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  background: none; border: none; cursor: pointer;
}

/* ---- Hero Banner ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.55) 60%, rgba(255,107,53,0.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  animation: bounce 2s infinite;
}
.hero-scroll::before {
  content: '';
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  border-radius: 2px;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Video Cards ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #111;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  background: rgba(10,22,40,0.45);
}
.video-card:hover .play-btn { opacity: 1; }
.play-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,107,53,0.5);
  transform: scale(0.85);
  transition: var(--transition);
}
.video-card:hover .play-icon { transform: scale(1); }
.play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.video-category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.video-info { padding: 16px; }
.video-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-sub);
}
.video-stats { display: flex; gap: 12px; align-items: center; }
.video-stats span { display: flex; align-items: center; gap: 4px; }

/* ---- Expert Cards ---- */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.expert-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.expert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.expert-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}
.expert-body { padding: 20px; }
.expert-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.expert-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.expert-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}
.expert-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.award-tag {
  background: var(--light-bg);
  color: var(--primary);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-btns .btn { padding: 8px 16px; font-size: 13px; }

/* ---- AI Section ---- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ai-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.ai-card:hover {
  background: rgba(255,107,53,0.1);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.ai-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.ai-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.ai-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ---- Community ---- */
.community-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-sub);
  background: var(--card-bg);
  transition: var(--transition);
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- Partners ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
}
.partner-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-height: 80px;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.partner-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 60px;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-stars { color: #FFB347; font-size: 16px; margin-bottom: 12px; }
.review-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 16px;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.reviewer-label {
  font-size: 12px;
  color: var(--text-sub);
}

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition);
  gap: 16px;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 300;
  color: var(--accent);
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ---- Contact / Footer ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,107,53,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.qr-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.qr-item { text-align: center; }
.qr-item img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid var(--border);
}
.qr-item p {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 8px;
}

/* ---- Social Share ---- */
.social-share {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.share-wechat { background: #07C160; color: #fff; }
.share-weibo { background: #E6162D; color: #fff; }
.share-douyin { background: #010101; color: #fff; border: 1px solid #333; }
.share-bilibili { background: #00A1D6; color: #fff; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ---- Footer ---- */
#site-footer {
  background: #060E1C;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-wrap { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-sub); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2d4a 100%);
  padding: calc(var(--nav-h) + 48px) 0 48px;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
}

/* ---- How-To Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--accent);
  padding: 32px 0;
}
.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; color: #fff; }
.stat-item .num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.stat-item .label {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ---- Lazy Load ---- */
img[data-src] { opacity: 0; transition: opacity 0.4s ease; }
img.loaded { opacity: 1; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .main-nav { display: none; }
  .header-search { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .ai-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .experts-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Distraction tags (hidden, SEO noise) ---- */
.9wkm6 { display: none !important; }

/* ---- H5 Video Preview (inside .video-thumb) ---- */
.video-thumb .video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: #111;
  display: block;
}
.video-card:hover .video-thumb .video-preview { transform: scale(1.04); }
/* 隐藏原生controls，由自定义play-btn控制 */
.video-preview::-webkit-media-controls { display: none !important; }
.video-preview::-webkit-media-controls-enclosure { display: none !important; }
/* 播放中状态 */
.video-preview.playing { cursor: pointer; }

/* ---- Section Title ---- */
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-title span { color: var(--accent); }
.section-alt .section-title { color: #fff; }
.section-subtitle {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 640px;
  line-height: 1.8;
}
.title-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin-bottom: 32px;
}
.title-line.center { margin-left: auto; margin-right: auto; }

/* ---- Search Page ---- */
.search-box-large input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.search-results { display: flex; flex-direction: column; gap: 20px; }
.search-result-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.search-result-item:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}
.search-result-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}
.search-result-title a { color: var(--primary); transition: var(--transition); }
.search-result-title a:hover { color: var(--accent); }
.search-result-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-sub);
}
.search-result-meta time { font-size: 12px; }

/* ---- Privacy Page ---- */
.privacy-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.privacy-content p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 12px;
}
.privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.privacy-content ul li {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 4px;
}
.privacy-notice {
  background: rgba(255,107,53,0.06);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
}
.privacy-notice p { margin: 0; font-size: 14px; }

/* ---- EEAT Trust Signals ---- */
.footer-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.trust-badge .icon { font-size: 18px; }

/* ---- Footer Tags ---- */
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition);
}
.footer-tag:hover { color: var(--accent); border-color: rgba(255,107,53,0.3); }

/* ---- Video Card - H5 video fallback text ---- */
.video-thumb p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: #111;
  margin: 0;
  padding: 8px;
  text-align: center;
}

/* ---- Tab Panel ---- */
.tab-panel { display: none; }
.tab-panel[data-panel] { display: none; }
/* 首个面板默认显示由PHP内联style控制，JS切换时用display:grid */

/* ---- Reveal Animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.fade-in-up { opacity: 1; transform: translateY(0); }

/* ---- Time element ---- */
time { font-size: 12px; color: var(--text-sub); }

/* ---- Mobile Responsive Additions ---- */
@media (max-width: 768px) {
  .footer-trust { gap: 16px; }
  .search-result-item { padding: 16px; }
  .privacy-content h2 { font-size: 18px; }
  .search-result-title { font-size: 15px; }
  .community-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .footer-trust { flex-direction: column; gap: 12px; }
  .search-result-meta { flex-wrap: wrap; gap: 10px; }
}

/* ---- bg-card variable fallback ---- */
:root { --bg-card: #FFFFFF; }
