/* ============================================
   麻豆网站 - 主样式表
   影视传媒公司 + 视频社区
   hjyunwei.com
   ============================================ */

/* CSS Variables */
:root {
  --primary: #FF6B6B;
  --primary-dark: #e55a5a;
  --secondary: #4ECDC4;
  --secondary-dark: #3dbdb5;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0f0f23;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
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(--dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============ Header / Navigation ============ */
.site-header {
  background: var(--bg);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }
.logo span { font-size: 1.2rem; font-weight: 700; color: var(--dark); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: rgba(255,107,107,0.08);
}

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 8px; }

/* Search Bar */
.search-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex;
  max-width: 600px;
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,107,0.15); }
.search-form input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ============ Hero Banner ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: transform 0.5s;
}
.hero:hover .hero-bg { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85), rgba(78,205,196,0.4));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
  color: #fff;
}
.hero-content h1 { font-size: 2.4rem; margin-bottom: 16px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.15rem; margin-bottom: 24px; opacity: 0.9; max-width: 600px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); color: #fff; }

/* ============ Section Common ============ */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-header .tag {
  display: inline-block;
  background: rgba(255,107,107,0.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ============ Video Card Grid ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(255,107,107,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.video-play-btn::after {
  content: '';
  display: block;
  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-btn { 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: 16px; }
.video-info h3 { font-size: 1rem; margin-bottom: 8px; 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); flex-wrap: wrap; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-tags span {
  background: var(--bg-light);
  color: var(--text-light);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* ============ Category Cards ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.category-overlay h3 { font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.category-overlay p { font-size: 0.85rem; opacity: 0.85; }

/* ============ Expert Cards ============ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
}
.expert-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.expert-card .role { color: var(--primary); font-size: 0.85rem; margin-bottom: 10px; }
.expert-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.expert-actions { display: flex; gap: 8px; justify-content: center; }
.expert-actions a {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.expert-actions .btn-sm-primary { background: var(--primary); color: #fff; }
.expert-actions .btn-sm-outline { border: 1px solid var(--border); color: var(--text); }

/* ============ Partner Logo Wall ============ */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}
.partner-wall .partner-item {
  background: var(--bg);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}
.partner-wall .partner-item:hover { box-shadow: var(--shadow-hover); color: var(--primary); }

/* ============ 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;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: var(--transition); }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* ============ Reviews ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.review-stars { color: #FFB800; font-size: 0.9rem; margin-bottom: 10px; }
.review-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-author-info .name { font-weight: 600; font-size: 0.9rem; }
.review-author-info .date { font-size: 0.75rem; color: var(--text-muted); }

/* ============ 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(--bg);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  counter-increment: step;
}
.howto-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.howto-step h4 { margin-bottom: 8px; }
.howto-step p { font-size: 0.85rem; color: var(--text-light); }

/* ============ Contact Info ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card h4 { margin-bottom: 12px; color: var(--primary); }
.contact-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 6px; }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: var(--radius); }

/* ============ Social Share ============ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.share-bar span { font-weight: 600; font-size: 0.9rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #fff;
  transition: var(--transition);
}
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.85rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; }
.footer-qr { display: flex; gap: 20px; margin-top: 12px; }
.footer-qr img { width: 100px; border-radius: var(--radius); }
.footer-qr-label { font-size: 0.75rem; text-align: center; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ============ Page Content ============ */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2rem; color: #fff; margin-bottom: 10px; }
.page-hero p { opacity: 0.8; }
.page-content { padding: 40px 0; }
.page-content h2 { font-size: 1.5rem; margin-bottom: 16px; }
.page-content p { margin-bottom: 16px; color: var(--text-light); line-height: 1.8; }

/* ============ Stats Bar ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
  padding: 30px 0;
}
.stat-item h3 { font-size: 2rem; color: var(--primary); margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); }

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

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero { min-height: 300px; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 1.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { padding: 10px 16px; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
