/* ============================================
   91爆料网 - 原创样式表
   影视传媒视频社区 | dkpuw.cn
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #2B2D42; background: #F8F9FA; line-height: 1.7; overflow-x: hidden; }
a { color: #E63946; text-decoration: none; transition: color .3s; }
a:hover { color: #F4A261; }
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: #1D3557; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }

/* ============ Header ============ */
.site-header { background: #0D1117; 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: 12px 20px; max-width: 1200px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 42px; width: auto; }
.logo-text { color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; }
.logo-text span { color: #E63946; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { color: #ccc; font-size: .9rem; padding: 8px 14px; border-radius: 6px; transition: all .3s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(230,57,70,.15); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* Search Bar */
.search-bar { background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.search-bar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 10px; }
.search-input-wrap { flex: 1; position: relative; max-width: 600px; }
.search-input-wrap input { width: 100%; padding: 10px 44px 10px 16px; border: 2px solid rgba(230,57,70,.3); border-radius: 25px; background: rgba(255,255,255,.08); color: #fff; font-size: .9rem; outline: none; transition: border-color .3s; }
.search-input-wrap input::placeholder { color: #8D99AE; }
.search-input-wrap input:focus { border-color: #E63946; }
.search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: #E63946; border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: background .3s; }
.search-btn:hover { background: #c62d3a; }
.search-hot-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.search-hot-tags a { color: #8D99AE; font-size: .78rem; padding: 4px 10px; background: rgba(255,255,255,.06); border-radius: 12px; transition: all .3s; }
.search-hot-tags a:hover { color: #F4A261; background: rgba(244,162,97,.1); }

/* ============ Banner ============ */
.hero-banner { position: relative; height: 520px; overflow: hidden; background: #0D1117; }
.hero-banner .banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.55); }
.hero-banner .banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,17,23,.85) 0%, rgba(230,57,70,.2) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-content h1 { color: #fff; font-size: 2.8rem; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-content h1 span { color: #E63946; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 650px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 12px 32px; background: #E63946; color: #fff; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all .3s; border: none; cursor: pointer; }
.btn-primary:hover { background: #c62d3a; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,.4); }
.btn-outline { display: inline-block; padding: 12px 32px; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all .3s; }
.btn-outline:hover { border-color: #F4A261; color: #F4A261; }

/* ============ Section Titles ============ */
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 2rem; margin-bottom: 12px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, #E63946, #F4A261); border-radius: 2px; }
.section-title p { color: #8D99AE; font-size: 1rem; margin-top: 16px; }

/* ============ Video Cards ============ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: all .35s; position: relative; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #1D3557; }
.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.08); }
.play-btn-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .35s; cursor: pointer; }
.video-card:hover .play-btn-overlay { opacity: 1; }
.play-icon { width: 56px; height: 56px; background: rgba(230,57,70,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.play-icon::after { content: ''; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.play-btn-overlay:hover .play-icon { transform: scale(1.15); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.video-info { padding: 14px 16px; }
.video-info h3 { font-size: .95rem; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #2B2D42; }
.video-meta { display: flex; align-items: center; justify-content: space-between; color: #8D99AE; font-size: .78rem; }
.video-meta .views { display: flex; align-items: center; gap: 4px; }
.video-tag { display: inline-block; padding: 2px 8px; background: rgba(230,57,70,.08); color: #E63946; font-size: .72rem; border-radius: 4px; margin-right: 6px; }

/* ============ Category Modules ============ */
.module-dark { background: #0D1117; color: #fff; }
.module-dark h2, .module-dark h3 { color: #fff; }
.module-dark .section-title p { color: #8D99AE; }
.module-alt { background: #f0f2f5; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 32px 24px; text-align: center; transition: all .35s; }
.module-dark .feature-card:hover { background: rgba(230,57,70,.08); border-color: rgba(230,57,70,.3); transform: translateY(-4px); }
.feature-card .icon { width: 64px; height: 64px; margin: 0 auto 18px; background: linear-gradient(135deg, #E63946, #F4A261); 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: #8D99AE; font-size: .88rem; line-height: 1.6; }

/* Light feature cards */
.feature-card-light { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 28px 22px; text-align: center; transition: all .35s; }
.feature-card-light:hover { border-color: #E63946; box-shadow: 0 8px 30px rgba(230,57,70,.1); transform: translateY(-4px); }
.feature-card-light .icon { width: 56px; height: 56px; margin: 0 auto 16px; background: linear-gradient(135deg, #1D3557, #E63946); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.feature-card-light h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card-light p { color: #8D99AE; font-size: .85rem; }

/* ============ Expert Section ============ */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: all .35s; text-align: center; }
.expert-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.expert-avatar { width: 100%; aspect-ratio: 1; overflow: hidden; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.expert-card:hover .expert-avatar img { transform: scale(1.05); }
.expert-info { padding: 20px 16px; }
.expert-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-info .title { color: #E63946; font-size: .82rem; margin-bottom: 10px; }
.expert-info p { color: #8D99AE; font-size: .82rem; line-height: 1.5; margin-bottom: 14px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-btns a { padding: 6px 16px; font-size: .78rem; border-radius: 6px; font-weight: 600; }
.btn-sm-primary { background: #E63946; color: #fff; }
.btn-sm-primary:hover { background: #c62d3a; color: #fff; }
.btn-sm-outline { border: 1px solid #1D3557; color: #1D3557; }
.btn-sm-outline:hover { background: #1D3557; color: #fff; }

/* ============ Reviews ============ */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,.05); transition: all .3s; }
.review-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #E63946, #F4A261); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.review-name { font-weight: 600; font-size: .95rem; }
.review-date { color: #8D99AE; font-size: .78rem; }
.review-stars { color: #F4A261; font-size: .9rem; margin-bottom: 10px; }
.review-text { color: #555; font-size: .9rem; line-height: 1.7; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); overflow: hidden; }
.faq-question { padding: 20px 24px; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background .3s; }
.faq-question:hover { background: rgba(230,57,70,.03); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: #E63946; transition: transform .3s; font-weight: 400; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all .4s ease; }
.faq-item.active .faq-answer { padding: 0 24px 20px; max-height: 300px; }
.faq-answer p { color: #666; font-size: .9rem; line-height: 1.7; }

/* ============ Partners ============ */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.partner-item { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 80px; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: all .3s; }
.partner-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.partner-item span { font-size: 1rem; font-weight: 700; color: #1D3557; text-align: center; }

/* ============ Contact Section ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.contact-info-card h3 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #f0f0f0; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #E63946, #F4A261); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.contact-item .label { color: #8D99AE; font-size: .82rem; }
.contact-item .value { font-weight: 600; font-size: .95rem; margin-top: 2px; }

/* ============ Footer ============ */
.site-footer { background: #0D1117; color: #8D99AE; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #8D99AE; font-size: .88rem; margin-bottom: 10px; transition: color .3s; }
.footer-col a:hover { color: #E63946; }
.footer-qr { display: flex; gap: 20px; margin-top: 20px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 110px; height: 110px; border-radius: 8px; border: 2px solid rgba(255,255,255,.1); }
.footer-qr-item span { display: block; margin-top: 6px; font-size: .78rem; color: #8D99AE; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: .82rem; }
.footer-bottom a { color: #8D99AE; margin: 0 8px; }
.footer-bottom a:hover { color: #E63946; }
.update-time { color: #666; font-size: .78rem; margin-top: 6px; }

/* ============ Social Share ============ */
.share-bar { display: flex; align-items: center; gap: 10px; }
.share-bar span { color: #8D99AE; font-size: .85rem; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem; transition: all .3s; cursor: pointer; }
.share-btn:hover { transform: translateY(-3px); }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* ============ Breadcrumb ============ */
.breadcrumb { padding: 14px 0; font-size: .85rem; color: #8D99AE; }
.breadcrumb a { color: #8D99AE; }
.breadcrumb a:hover { color: #E63946; }
.breadcrumb span { margin: 0 6px; }

/* ============ Inner Page Hero ============ */
.inner-hero { background: linear-gradient(135deg, #0D1117 0%, #1D3557 100%); padding: 60px 0 40px; color: #fff; }
.inner-hero h1 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.inner-hero p { color: rgba(255,255,255,.7); font-size: 1rem; }

/* ============ How-To Guide ============ */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.howto-step { background: #fff; border-radius: 14px; padding: 28px 22px; text-align: center; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.howto-step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; background: #E63946; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.howto-step h4 { margin-top: 8px; margin-bottom: 10px; font-size: 1rem; }
.howto-step p { color: #8D99AE; font-size: .85rem; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; flex-direction: column; width: 100%; padding-top: 10px; }
  .main-nav.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero-banner { height: 400px; }
  .hero-content h1 { font-size: 1.8rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .search-bar-inner { flex-direction: column; }
  .search-hot-tags { justify-content: center; }
  .section-padding { padding: 40px 0; }
  .howto-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner { height: 320px; }
  .hero-content h1 { font-size: 1.5rem; }
}

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

/* ============ Animations ============ */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ Video Stats Bar ============ */
.video-stats { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.stat-item { display: flex; align-items: center; gap: 3px; color: #8D99AE; font-size: .75rem; }

/* ============ Tag Cloud ============ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.tag-cloud a { padding: 6px 14px; background: rgba(230,57,70,.06); color: #E63946; border-radius: 20px; font-size: .82rem; transition: all .3s; }
.tag-cloud a:hover { background: #E63946; color: #fff; }

/* ============ MCP Service Frontend ============ */
.mcp-widget { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 20px; margin-top: 20px; }
.mcp-widget h4 { color: #F4A261; font-size: .9rem; margin-bottom: 10px; }
.mcp-status { display: flex; align-items: center; gap: 8px; }
.mcp-dot { width: 8px; height: 8px; background: #07C160; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.mcp-status span { color: #8D99AE; font-size: .82rem; }

/* ============ Content Article (Privacy/Terms) ============ */
.content-article { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 40px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.content-article h2 { font-size: 1.6rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #f0f0f0; }
.content-article h3 { font-size: 1.15rem; margin: 28px 0 12px; color: #1D3557; }
.content-article p { color: #555; font-size: .95rem; line-height: 1.8; margin-bottom: 14px; }

/* ============ Honors Grid (4-col on desktop) ============ */
@media (max-width: 1024px) {
  .feature-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .feature-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
}

/* ============ Cases Video Grid (3-col override) ============ */
@media (max-width: 768px) {
  .video-grid[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .video-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}
