/* ============================================
   抖音风 影视传媒 - 原创样式表
   品牌: 抖音风 | 域名: 7t5r1n84.cn
   ============================================ */

/* CSS Variables */
:root {
  --primary: #E63946;
  --primary-dark: #C62833;
  --secondary: #1D3557;
  --secondary-light: #264573;
  --accent: #F4A261;
  --accent-light: #F6B97E;
  --bg-dark: #0A0E17;
  --bg-card: #141B2D;
  --bg-card-hover: #1A2340;
  --text-light: #F1FAEE;
  --text-muted: #A8DADC;
  --text-dim: #6B7FA3;
  --border-color: #1E2A45;
  --gradient-primary: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
  --gradient-dark: linear-gradient(180deg, #0A0E17 0%, #141B2D 100%);
  --gradient-card: linear-gradient(145deg, #141B2D 0%, #1A2340 100%);
  --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: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { 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-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-light); }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ============ Header & Navigation ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.site-header.scrolled { background: rgba(10, 14, 23, 0.98); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 0 20px; height: 68px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: 1px; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-muted); font-size: 0.9rem; padding: 8px 14px;
  border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text-light); background: var(--secondary-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-light);
  position: absolute; left: 6px; transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 17px; }

/* Search Bar */
.search-bar {
  max-width: 1440px; margin: 0 auto; padding: 12px 20px;
  background: var(--bg-card); border-bottom: 1px solid var(--border-color);
  margin-top: 68px;
}
.search-wrapper {
  display: flex; align-items: center; max-width: 640px; margin: 0 auto;
  background: var(--bg-dark); border: 1px solid var(--border-color);
  border-radius: 24px; overflow: hidden; transition: var(--transition);
}
.search-wrapper:focus-within { border-color: var(--primary); }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-light); padding: 10px 20px; font-size: 0.95rem;
}
.search-input::placeholder { color: var(--text-dim); }
.search-btn {
  background: var(--primary); border: none; color: #fff; padding: 10px 24px;
  cursor: pointer; font-size: 0.9rem; transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

/* ============ Hero Section ============ */
.hero-section {
  position: relative; min-height: 75vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.5) 0%, rgba(10,14,23,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 40px 20px;
}
.hero-content h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.hero-tag {
  background: rgba(230, 57, 70, 0.15); color: var(--primary); border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--text-light);
  border: 1px solid var(--text-muted);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============ Section Common ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-card); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 640px; margin: 0 auto; }
.section-label {
  display: inline-block; background: rgba(230, 57, 70, 0.12); color: var(--primary);
  padding: 4px 14px; border-radius: 16px; font-size: 0.8rem; margin-bottom: 12px;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ============ Video Card Grid ============ */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--gradient-card); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-color);
  transition: var(--transition); cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); 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); }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); opacity: 0; transition: var(--transition);
}
.video-card:hover .play-btn { opacity: 1; }
.play-icon {
  width: 56px; height: 56px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
}
.play-icon::after {
  content: ''; width: 0; height: 0;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.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.78rem;
}
.video-info { padding: 16px; }
.video-info h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.video-meta { display: flex; align-items: center; gap: 16px; color: var(--text-dim); font-size: 0.82rem; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.video-tags span {
  background: rgba(168, 218, 220, 0.1); color: var(--text-muted);
  padding: 2px 10px; border-radius: 12px; font-size: 0.75rem;
}

/* ============ Feature Modules ============ */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--gradient-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px 24px;
  transition: var(--transition); text-align: center;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(230, 57, 70, 0.12); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ Expert Section ============ */
.expert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--gradient-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px; text-align: center;
  transition: var(--transition);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.expert-avatar {
  width: 96px; height: 96px; 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(--accent); font-size: 0.85rem; margin-bottom: 12px; }
.expert-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; line-height: 1.6; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.expert-btns a {
  padding: 6px 16px; border-radius: var(--radius-sm); font-size: 0.82rem;
  border: 1px solid var(--border-color); color: var(--text-muted);
}
.expert-btns a:hover { border-color: var(--primary); color: var(--primary); }

/* ============ FAQ Section ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer; transition: var(--transition);
  font-weight: 600; font-size: 0.95rem;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-arrow { transition: transform 0.3s ease; color: var(--primary); font-size: 1.2rem; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 24px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* ============ Reviews Section ============ */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--gradient-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px;
}
.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--secondary-light); display: flex; align-items: center;
  justify-content: center; color: var(--text-light); font-weight: 700; font-size: 0.9rem;
}
.review-name { font-size: 0.9rem; font-weight: 600; }
.review-date { font-size: 0.78rem; color: var(--text-dim); }

/* ============ Partners Logo Wall ============ */
.partner-wall {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center;
}
.partner-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px 32px;
  font-size: 1.1rem; font-weight: 700; color: var(--text-dim);
  transition: var(--transition);
}
.partner-item:hover { border-color: var(--accent); color: var(--accent); }

/* ============ How-To Guide ============ */
.howto-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px; counter-reset: step;
}
.howto-step {
  background: var(--gradient-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px; position: relative;
  counter-increment: step;
}
.howto-step::before {
  content: counter(step); position: absolute; top: -12px; left: 20px;
  background: var(--primary); color: #fff; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.howto-step h4 { margin-bottom: 8px; font-size: 1rem; margin-top: 8px; }
.howto-step p { color: var(--text-muted); font-size: 0.88rem; }

/* ============ Contact Section ============ */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--gradient-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px; text-align: center;
}
.contact-card h4 { margin-bottom: 12px; color: var(--accent); }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ============ Share Buttons ============ */
.share-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px; font-size: 0.85rem;
  border: 1px solid var(--border-color); color: var(--text-muted);
  background: var(--bg-card); transition: var(--transition); cursor: pointer;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============ Footer ============ */
.site-footer {
  background: var(--secondary); border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--text-light); }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }
.footer-col a:hover { color: var(--accent); }
.footer-col ul li { margin-bottom: 8px; }
.footer-qr { display: flex; gap: 20px; margin-top: 12px; }
.footer-qr img { width: 100px; height: 100px; border-radius: var(--radius-sm); }
.footer-bottom {
  text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim); font-size: 0.82rem;
}
.footer-logo { height: 36px; margin: 0 auto 12px; }

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 16px 0; font-size: 0.85rem; color: var(--text-dim);
  margin-top: 68px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ============ Inner Page Hero ============ */
.inner-hero {
  background: var(--gradient-card); padding: 48px 0; text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.inner-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.inner-hero p { color: var(--text-muted); font-size: 1rem; }

/* ============ Article Content ============ */
.article-content { padding: 48px 0; max-width: 900px; margin: 0 auto; }
.article-content h2 { font-size: 1.6rem; margin: 32px 0 16px; color: var(--primary); }
.article-content h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.9; }

/* ============ MCP Frontend Placeholder ============ */
.mcp-widget {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px; margin: 24px 0;
  text-align: center;
}
.mcp-widget h4 { margin-bottom: 8px; }
.mcp-widget p { color: var(--text-dim); font-size: 0.85rem; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color); padding: 16px;
    gap: 4px;
  }
  .menu-toggle { display: block; }
  .hero-content h1 { font-size: 2rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .hero-section { min-height: 60vh; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 20px; font-size: 0.88rem; }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Lazy Load Placeholder */
img[loading="lazy"] { background: var(--bg-card); min-height: 120px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--secondary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
