/* ========================================
   芒果视频 - 全站样式表
   影视传媒公司 + 视频社区
   sjzdzgzj.cn
   ======================================== */

/* CSS 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, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #f8f9fa; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #ff6b9d; text-decoration: none; transition: color .3s; }
a:hover { color: #e91e63; }
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; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  text-align: center; margin-bottom: 40px;
  font-size: 2rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #ff8a65);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center; color: #666; font-size: 1rem;
  margin-top: -30px; margin-bottom: 40px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; max-width: 1200px; margin: 0 auto;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 45px; width: auto; }
.logo-text { color: #fff; font-size: 1.4rem; font-weight: 700; }
.logo-text span { color: #ff6b9d; }

/* Navigation */
.main-nav ul { display: flex; gap: 0; }
.main-nav li { position: relative; }
.main-nav a {
  color: rgba(255,255,255,.85); padding: 22px 16px; display: block;
  font-size: .95rem; transition: all .3s; border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff; border-bottom-color: #ff6b9d;
  background: rgba(255,107,157,.1);
}
.mobile-menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: 10px;
}

/* Search Bar */
.search-bar {
  background: linear-gradient(135deg, #16213e, #1a1a2e);
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex; max-width: 600px; width: 100%;
  border-radius: 25px; overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.2);
}
.search-form input {
  flex: 1; padding: 12px 24px; border: none; outline: none;
  font-size: .95rem; background: #fff;
}
.search-form button {
  padding: 12px 28px; background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  color: #fff; border: none; cursor: pointer; font-size: .95rem;
  transition: opacity .3s;
}
.search-form button:hover { opacity: .9; }

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0; font-size: .85rem; color: #999;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #ff6b9d; }
.breadcrumb span { margin: 0 8px; }

/* Hero Banner */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  min-height: 500px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .4; filter: blur(2px);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: #fff; padding: 60px 20px; width: 100%;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero h1 .brand { color: #ff6b9d; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 700px; margin: 0 auto 30px; }
.hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-tags span {
  background: rgba(255,107,157,.2); border: 1px solid rgba(255,107,157,.4);
  padding: 6px 18px; border-radius: 20px; font-size: .85rem;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 12px 32px; border-radius: 25px; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  color: #fff; box-shadow: 0 4px 15px rgba(255,107,157,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,157,.5); color: #fff; }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* Video Card Grid */
.video-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.video-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  transition: all .3s; cursor: pointer;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s;
}
.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);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,107,157,.9); display: flex;
  align-items: center; justify-content: center;
  transition: all .3s; z-index: 3;
}
.video-play-btn::after {
  content: ''; width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-card:hover .video-play-btn { transform: translate(-50%, -50%) scale(1); }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px;
  border-radius: 4px; font-size: .75rem; z-index: 3;
}
.video-info { padding: 14px; }
.video-info h3 {
  font-size: .95rem; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4;
}
.video-meta {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: #999;
}
.video-meta .views { color: #ff6b9d; }
.video-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-tags span {
  background: #f0f0f0; padding: 2px 10px; border-radius: 10px;
  font-size: .75rem; color: #666;
}

/* Category Tabs */
.category-tabs {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 30px; flex-wrap: wrap;
}
.category-tabs .tab {
  padding: 8px 24px; border-radius: 20px; cursor: pointer;
  background: #f0f0f0; color: #666; font-size: .9rem;
  transition: all .3s; border: none;
}
.category-tabs .tab:hover, .category-tabs .tab.active {
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  color: #fff;
}

/* Expert Cards */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expert-card {
  background: #fff; border-radius: 12px; padding: 30px 20px;
  text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,.08);
  transition: all .3s;
}
.expert-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.expert-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden; border: 3px solid #ff6b9d;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.expert-card .title { color: #ff6b9d; font-size: .85rem; margin-bottom: 10px; }
.expert-card p { font-size: .85rem; color: #666; margin-bottom: 16px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-btns .btn { padding: 6px 16px; font-size: .8rem; }
.expert-social {
  font-size: .75rem; color: #999; margin-bottom: 12px;
  padding: 8px 0; border-top: 1px solid #f0f0f0;
  line-height: 1.6;
}
.expert-card p { text-align: left; }

/* FAQ Section */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 10px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); overflow: hidden;
}
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem; transition: background .3s;
}
.faq-question:hover { background: #fafafa; }
.faq-question::after {
  content: '+'; font-size: 1.3rem; color: #ff6b9d;
  transition: transform .3s; font-weight: 300;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { color: #666; font-size: .9rem; line-height: 1.8; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
}
.review-stars { color: #ffc107; font-size: 1rem; margin-bottom: 10px; }
.review-card p { font-size: .9rem; color: #555; 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: linear-gradient(135deg, #ff6b9d, #ff8a65);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem;
}
.review-author-info .name { font-weight: 600; font-size: .85rem; }
.review-author-info .date { font-size: .75rem; color: #999; }

/* Partner Logos */
.partner-wall {
  display: flex; flex-wrap: wrap; gap: 30px;
  justify-content: center; align-items: center;
}
.partner-logo {
  background: #fff; padding: 20px 30px; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  font-size: 1.1rem; font-weight: 700; color: #666;
  transition: all .3s;
}
.partner-logo:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); color: #ff6b9d; }

/* How-To Guide */
.howto-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.howto-step {
  background: #fff; border-radius: 12px; padding: 30px 20px;
  text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,.08);
  position: relative;
}
.howto-step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto 16px;
}
.howto-step h4 { margin-bottom: 8px; font-size: 1rem; }
.howto-step p { font-size: .85rem; color: #666; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
}
.contact-info-card h3 { margin-bottom: 20px; font-size: 1.2rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: .9rem;
}
.contact-item .label { font-weight: 600; min-width: 80px; color: #333; }
.contact-item .value { color: #666; }

/* Social Share */
.share-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700;
  transition: all .3s; cursor: pointer;
}
.share-btn:hover { transform: translateY(-3px); }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00a1d6; }
.share-btn.qq { background: #12b7f5; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255,255,255,.7); padding: 50px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #ff6b9d; }
.footer-qr { display: flex; gap: 20px; margin-top: 12px; }
.footer-qr img { width: 100px; height: 100px; border-radius: 8px; }
.footer-qr-label { text-align: center; font-size: .75rem; margin-top: 6px; }
.footer-bottom {
  text-align: center; padding: 20px 0;
  font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo img { height: 35px; }

/* Data Stats */
.stats-bar {
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; color: #fff; }
.stat-item .number { font-size: 2.2rem; font-weight: 700; }
.stat-item .label { font-size: .9rem; opacity: .9; }

/* Content Page */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  padding: 50px 0; text-align: center; color: #fff;
}
.page-header h1 { font-size: 2rem; margin-bottom: 10px; }
.page-header p { opacity: .8; font-size: 1rem; }
.page-content { padding: 40px 0; }
.content-card {
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,.08); margin-bottom: 24px;
}
.content-card h2 { font-size: 1.4rem; margin-bottom: 16px; color: #1a1a2e; }
.content-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: #333; }
.content-card p { margin-bottom: 14px; color: #555; }

/* Lazy Load */
.lazy { opacity: 0; transition: opacity .5s; }
.lazy.loaded { opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .main-nav { 
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #1a1a2e; flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
  }
  .main-nav.active { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 1.8rem; }
  .hero { min-height: 400px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .search-form { max-width: 100%; margin: 0 10px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .number { font-size: 1.6rem; }
}
