/* 户外漏出传媒 - 主样式文件 | tnjenwrn.cn */
:root {
  --primary: #1a3a6e;
  --secondary: #e84c3d;
  --accent: #f5a623;
  --bg-dark: #0d1b2a;
  --bg-light: #f4f7fb;
  --text-main: #1c2b3a;
  --text-muted: #6b7a8d;
  --card-bg: #ffffff;
  --border: #dde4ee;
  --gradient: linear-gradient(135deg, #1a3a6e 0%, #0d5c8a 50%, #0a7a6e 100%);
  --shadow: 0 4px 24px rgba(26,58,110,0.10);
  --radius: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.logo-text span { color: var(--secondary); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(232,76,61,0.2);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* SEARCH BAR */
.search-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 20px;
}

.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar-inner input {
  flex: 1;
  max-width: 520px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  transition: border var(--transition);
}

.search-bar-inner input::placeholder { color: rgba(255,255,255,0.4); }
.search-bar-inner input:focus { border-color: var(--secondary); }

.search-bar-inner button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.search-bar-inner button:hover { background: #c0392b; }

/* ===== HERO / BANNER ===== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,27,42,0.85) 40%, rgba(13,27,42,0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content h1 em { color: var(--accent); font-style: normal; }

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--secondary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: #c0392b; color: #fff; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dots span.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* ===== SECTION COMMON ===== */
.section { padding: 64px 20px; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-gray { background: #eef2f8; }

.container { max-width: 1280px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 44px; }

.section-label {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-dark .section-head h2 { color: #fff; }

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-dark .section-head p { color: rgba(255,255,255,0.65); }

/* ===== VIDEO CARDS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(26,58,110,0.18); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a2a3a;
}

.video-thumb img {
  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: opacity var(--transition);
  background: rgba(0,0,0,0.35);
}

.video-card:hover .play-btn { opacity: 1; }

.play-btn svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 4px;
}

.video-info { padding: 14px 16px; }

.video-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  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: 0.8rem;
  color: var(--text-muted);
}

.video-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--gradient);
  padding: 36px 20px;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item { color: #fff; }
.stat-num { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-num em { color: var(--accent); font-style: normal; }
.stat-label { font-size: 0.88rem; opacity: 0.8; }

/* ===== CATEGORY TABS ===== */
.cat-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}

.cat-tab:hover, .cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== EXPERT CARDS ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.expert-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.expert-card:hover { transform: translateY(-4px); }

.expert-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.expert-info { padding: 18px 16px; }
.expert-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.expert-role { color: var(--secondary); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.expert-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }

.expert-btns { display: flex; gap: 8px; justify-content: center; }

.btn-sm {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-sm-primary { background: var(--primary); color: #fff; }
.btn-sm-primary:hover { background: #0d2a52; color: #fff; }
.btn-sm-outline { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-sm-outline:hover { background: var(--primary); color: #fff; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  font-size: 0.97rem;
}

.faq-q:hover { background: #f0f4fa; }
.faq-q.open { background: var(--primary); color: #fff; }

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: transform var(--transition);
}

.faq-q.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 20px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-a.open { max-height: 300px; padding: 14px 20px; }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
}

.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 10px; }
.review-text { font-size: 0.92rem; color: var(--text-main); line-height: 1.65; margin-bottom: 14px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--text-muted); }

/* ===== PARTNER LOGOS ===== */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.partner-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  min-width: 120px;
  text-align: center;
}

.partner-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}

.contact-icon {
  width: 36px; height: 36px;
  background: rgba(232,76,61,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.qr-row { display: flex; gap: 20px; margin-top: 16px; }
.qr-item { text-align: center; }
.qr-item img { width: 100px; height: 100px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.2); }
.qr-item p { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ===== SOCIAL SHARE ===== */
.social-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition);
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #010101; }
.share-bilibili { background: #00a1d6; }

/* ===== HOW-TO ===== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.howto-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 14px;
}

.howto-step h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 8px; }
.howto-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner a:hover { color: var(--secondary); }
.breadcrumb-sep { color: var(--border); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--gradient);
  padding: 52px 20px;
  text-align: center;
  color: #fff;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: 0.85; max-width: 560px; margin: 0 auto; }

/* ===== INNER PAGE ===== */
.page-intro {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-main);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #060e18;
  color: rgba(255,255,255,0.7);
  padding: 52px 20px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-wrap { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); }

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--secondary); }

/* ===== MOBILE MENU ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #0d1b2a;
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; border-radius: 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .hero-section { min-height: 380px; }
  .hero-content { padding: 60px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  background: #eef2f8;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-hot { background: var(--secondary); color: #fff; }
.badge-new { background: #27ae60; color: #fff; }
.badge-ai { background: var(--accent); color: #fff; }

/* Lazy load placeholder */
img[data-src] { background: #dde4ee; min-height: 100px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f4fa; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
