/* ============================================
   芒果视频 - 影视传媒社区 原创样式表
   品牌色系：玫瑰红 #E8436F / 浅玫瑰 #FF6B9D / 深紫 #2D1B69
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: #1A1A2E;
  background: #FFF5F8;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #E8436F; text-decoration: none; transition: color .25s; }
a:hover { color: #2D1B69; }
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: #1A1A2E; }

/* --- Layout Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-dark { background: linear-gradient(135deg, #2D1B69 0%, #1A1A2E 100%); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- Header / Navigation --- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(232,67,111,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 42px; width: auto; }
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E8436F, #2D1B69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: #1A1A2E;
  transition: all .25s;
}
.main-nav a:hover, .main-nav a.active {
  background: linear-gradient(135deg, #E8436F, #FF6B9D);
  color: #fff;
}
.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: #E8436F; }

/* --- Search Bar --- */
.search-bar-wrap {
  background: linear-gradient(135deg, #E8436F 0%, #FF6B9D 50%, #2D1B69 100%);
  padding: 14px 0;
}
.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(232,67,111,.2);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 24px;
  font-size: 1rem;
  color: #1A1A2E;
  background: transparent;
}
.search-bar button {
  background: linear-gradient(135deg, #E8436F, #2D1B69);
  border: none;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .25s;
}
.search-bar button:hover { opacity: .85; }

/* --- Hero Banner --- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1A1A2E;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.05); }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-content h1 span { color: #FF6B9D; }
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #E8436F, #FF6B9D);
  color: #fff;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(232,67,111,.35);
  transition: transform .25s, box-shadow .25s;
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(232,67,111,.45);
  color: #fff;
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #E8436F, #FF6B9D);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-title p { color: #666; font-size: 1.05rem; }

/* --- Video Card Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(232,67,111,.15);
}
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  cursor: pointer;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 64px;
  height: 64px;
  background: rgba(232,67,111,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  z-index: 3;
}
.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-info { padding: 16px 20px; }
.video-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.video-meta {
  display: flex;
  gap: 16px;
  font-size: .85rem;
  color: #999;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.video-tags span {
  background: #FFF0F3;
  color: #E8436F;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .8rem;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(232,67,111,.06);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(232,67,111,.12);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #FFF0F3, #F8E8FF);
  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 { font-size: .92rem; color: #666; }

/* --- Expert Cards --- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.expert-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  text-align: center;
  transition: transform .3s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 28px auto 16px;
  border: 4px solid #FFF0F3;
}
.expert-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .role { color: #E8436F; font-size: .9rem; margin-bottom: 12px; }
.expert-card p { font-size: .88rem; color: #666; padding: 0 20px; margin-bottom: 16px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; padding-bottom: 24px; }
.btn-sm {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .25s;
}
.btn-primary { background: #E8436F; color: #fff; }
.btn-primary:hover { background: #2D1B69; color: #fff; }
.btn-outline { border: 1px solid #E8436F; color: #E8436F; background: transparent; }
.btn-outline:hover { background: #E8436F; color: #fff; }

/* --- Partner Logos --- */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.partner-logo {
  width: 140px;
  height: 60px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  font-size: .95rem;
  font-weight: 600;
  color: #666;
  transition: box-shadow .25s;
}
.partner-logo:hover { box-shadow: 0 4px 20px rgba(232,67,111,.15); }

/* --- Reviews --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  position: relative;
}
.review-card::before {
  content: '\201C';
  font-size: 4rem;
  color: #FFD6E0;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.review-card p { font-size: .95rem; color: #444; margin-bottom: 16px; padding-top: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8436F, #FF6B9D);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.review-name { font-weight: 600; font-size: .9rem; }
.review-stars { color: #FFB800; font-size: .85rem; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .25s;
}
.faq-question:hover { background: #FFF0F3; }
.faq-question .arrow {
  transition: transform .3s;
  color: #E8436F;
  font-size: 1.2rem;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 24px;
  font-size: .95rem;
  color: #555;
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #E8436F;
}
.contact-card p { font-size: .92rem; color: #555; margin-bottom: 8px; }
.contact-card img { border-radius: 12px; margin-top: 12px; }

/* --- Social Share --- */
.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 20px;
  border-radius: 24px;
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  transition: transform .2s;
}
.share-btn:hover { transform: scale(1.05); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* --- Footer --- */
.site-footer {
  background: #1A1A2E;
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #FF6B9D;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  display: block;
  margin-bottom: 8px;
}
.footer-col a:hover { color: #FF6B9D; }
.footer-col img { border-radius: 8px; max-width: 140px; margin-top: 8px; }
.footer-legal {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.footer-legal a {
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  margin: 0 4px;
}
.footer-legal a:hover { color: #FF6B9D; }
.footer-legal p { font-size: .82rem; color: rgba(255,255,255,.4); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
}
.footer-bottom a { color: #FF6B9D; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: #999;
}
.breadcrumb a { color: #E8436F; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* --- Page Banner --- */
.page-banner {
  background: linear-gradient(135deg, #2D1B69 0%, #E8436F 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.page-banner h1 { font-size: 2.2rem; color: #fff; margin-bottom: 12px; }
.page-banner p { font-size: 1.05rem; color: rgba(255,255,255,.85); }

/* --- How-To Guide --- */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.howto-step {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  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, #E8436F, #FF6B9D);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.howto-step p { font-size: .88rem; color: #666; }

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E8436F, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .9rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* --- MCP Service Block --- */
.mcp-block {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  margin-top: 24px;
}
.mcp-block h3 { color: #2D1B69; margin-bottom: 16px; }
.mcp-block code {
  display: block;
  background: #F8F0FF;
  padding: 16px;
  border-radius: 8px;
  font-size: .85rem;
  color: #2D1B69;
  overflow-x: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero { min-height: 360px; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }
  .stat-num { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { margin: 0 16px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Lazy Load --- */
img[loading="lazy"] { transition: opacity .5s; }

/* --- Animation --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease forwards; }
