/* ============================================
   丫丫影院 - 全站样式表
   品牌：丫丫影院 | 域名：jchdsyc.cn
   影视传媒公司 + 视频社区
   ============================================ */

/* 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", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif; color: #2D3142; background: #F7F8FC; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: #E8375A; text-decoration: none; transition: color .3s; }
a:hover { color: #F5A623; }
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: #1A1E2E; }

/* Color Variables */
:root {
  --primary: #1A1E2E;
  --accent: #E8375A;
  --gold: #F5A623;
  --bg: #F7F8FC;
  --text: #2D3142;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --gradient: linear-gradient(135deg, #1A1E2E, #2D4059);
  --shadow: 0 4px 24px rgba(26,30,46,0.10);
  --shadow-sm: 0 2px 8px rgba(26,30,46,0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

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

/* ============ Header & Navigation ============ */
.site-header { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(0,0,0,0.2); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: var(--white); font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; }
.header-contact { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.header-contact a { color: var(--gold); }

.main-nav { background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.1); }
.nav-list { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nav-list li a { display: block; padding: 12px 18px; color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500; transition: all .3s; position: relative; }
.nav-list li a:hover, .nav-list li a.active { color: var(--gold); background: rgba(245,166,35,0.1); }
.nav-list li a.active::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px; background: var(--gold); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 10px; }

/* Search Bar */
.search-bar { background: rgba(255,255,255,0.08); padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.search-form { display: flex; max-width: 600px; margin: 0 auto; }
.search-form input { flex: 1; padding: 10px 18px; border: 2px solid rgba(255,255,255,0.15); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: rgba(255,255,255,0.1); color: var(--white); font-size: 0.95rem; outline: none; transition: border-color .3s; }
.search-form input::placeholder { color: rgba(255,255,255,0.5); }
.search-form input:focus { border-color: var(--gold); }
.search-form button { padding: 10px 24px; background: var(--accent); color: var(--white); border: 2px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem; cursor: pointer; transition: background .3s; }
.search-form button:hover { background: #d02e4e; }

/* ============ Breadcrumb ============ */
.breadcrumb { padding: 14px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ============ Hero Banner ============ */
.hero-banner { position: relative; height: 520px; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,30,46,0.85), rgba(45,64,89,0.7)); display: flex; align-items: center; }
.hero-content { max-width: 700px; padding: 0 40px; }
.hero-content h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 28px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-tags span { background: rgba(232,55,90,0.2); color: var(--white); padding: 5px 14px; border-radius: 20px; font-size: 0.85rem; border: 1px solid rgba(232,55,90,0.4); }
.hero-btns { display: flex; gap: 14px; 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: all .3s; border: none; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #d02e4e; color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,55,90,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--primary); }
.btn-gold:hover { background: #e09a1f; transform: translateY(-2px); }

/* ============ Section Common ============ */
.section { padding: 60px 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-gray { background: #F0F1F5; }
.section-header { text-align: center; margin-bottom: 42px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; }
.section-header h2 em { font-style: normal; color: var(--accent); }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 650px; margin: 0 auto; }
.section-header .divider { width: 60px; height: 3px; background: var(--accent); margin: 16px auto 0; border-radius: 2px; }

/* ============ Video Card Grid ============ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; position: relative; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.video-thumb { position: relative; padding-top: 133%; 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; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,30,46,0.4); opacity: 0; transition: opacity .3s; cursor: pointer; }
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn::after { content: ''; width: 56px; height: 56px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.video-play-btn::before { content: ''; position: absolute; z-index: 2; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent var(--white); margin-left: 4px; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.video-stats { position: absolute; top: 8px; left: 8px; display: flex; gap: 8px; }
.video-stats span { background: rgba(0,0,0,0.6); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; }
.video-info { padding: 14px; }
.video-info h4 { font-size: 0.95rem; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-info .meta { display: flex; align-items: center; justify-content: space-between; color: var(--text-light); font-size: 0.8rem; }
.video-info .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-info .tags span { background: #F0F1F5; color: var(--text-light); padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; }
.video-badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: var(--white); padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }

/* ============ Feature Grid ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--white); padding: 32px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); transition: all .3s; border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--accent), #FF6B8A); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--white); }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ============ Expert Team ============ */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; transition: all .3s; }
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 24px auto 14px; overflow: hidden; border: 3px solid var(--accent); }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .role { color: var(--accent); font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; }
.expert-card .desc { color: var(--text-light); font-size: 0.85rem; padding: 0 16px; margin-bottom: 14px; line-height: 1.5; }
.expert-card .social { display: flex; justify-content: center; gap: 10px; padding-bottom: 20px; }
.expert-card .social a { width: 32px; height: 32px; border-radius: 50%; background: #F0F1F5; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.8rem; transition: all .3s; }
.expert-card .social a:hover { background: var(--accent); color: var(--white); }
.expert-btns { display: flex; gap: 8px; justify-content: center; padding: 0 16px 20px; }
.expert-btns a { padding: 6px 14px; font-size: 0.8rem; border-radius: 6px; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); }
.faq-question { padding: 18px 24px; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-question:hover { background: #F9FAFB; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--accent); transition: transform .3s; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all .3s; }
.faq-item.active .faq-answer { padding: 0 24px 18px; max-height: 500px; }
.faq-answer p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* ============ Reviews ============ */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.1rem; }
.review-name { font-weight: 600; font-size: 0.95rem; }
.review-date { color: var(--text-light); font-size: 0.8rem; }
.review-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 8px; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.9rem; line-height: 1.7; }

/* ============ Partner Logos ============ */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.partner-logo { width: 140px; height: 60px; background: var(--white); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); padding: 10px; font-weight: 700; color: var(--text-light); font-size: 0.85rem; border: 1px solid var(--border); transition: all .3s; }
.partner-logo:hover { border-color: var(--accent); box-shadow: var(--shadow); }

/* ============ How-To Guide ============ */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.howto-step { text-align: center; position: relative; counter-increment: step; }
.howto-step::before { content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 14px; }
.howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.howto-step p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

/* ============ Contact Section ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--white); padding: 28px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); }
.contact-card h4 { font-size: 1.05rem; margin-bottom: 12px; color: var(--accent); }
.contact-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: var(--radius-sm); }

/* ============ Share Buttons ============ */
.share-bar { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.share-bar span { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.85rem; font-weight: 700; transition: all .3s; cursor: pointer; }
.share-btn:hover { transform: scale(1.1); }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* ============ Footer ============ */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 14px; }
.footer-col h5 { color: var(--white); font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color .3s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-qr { display: flex; gap: 16px; margin-top: 12px; }
.footer-qr img { width: 100px; border-radius: 6px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; }
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: var(--gold); }

/* ============ Inner Page ============ */
.page-hero { background: var(--gradient); padding: 60px 0; text-align: center; }
.page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.page-content { padding: 40px 0 60px; }
.page-content h2 { font-size: 1.6rem; margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.page-content h3 { font-size: 1.3rem; margin: 24px 0 12px; color: var(--accent); }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text); }
.page-content ul { margin: 12px 0 20px 20px; }
.page-content ul li { margin-bottom: 8px; position: relative; padding-left: 16px; color: var(--text); }
.page-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Article Card for inner pages */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .content { padding: 18px; }
.article-card h4 { font-size: 1rem; margin-bottom: 8px; }
.article-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

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

@media (max-width: 768px) {
  .hero-banner { height: 420px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content { padding: 0 20px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  
  .menu-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-list li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  
  .header-top { flex-direction: column; gap: 6px; }
  .hero-btns { flex-direction: column; }
  .howto-steps { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 1.5rem; }
}

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

/* ============ Animations ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ============ Lazy Load ============ */
img.lazyload { opacity: 0; transition: opacity .5s; }
img.lazyloaded { opacity: 1; }

/* ============ Video Overlay Styles ============ */
.video-overlay-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(232,55,90,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .3s; cursor: pointer; z-index: 5; }
.video-card:hover .video-overlay-play { opacity: 1; }
.play-triangle { width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

/* ============ Stat Counter ============ */
.stat-bar { display: flex; justify-content: center; gap: 48px; padding: 32px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ============ Tag Cloud ============ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a { padding: 6px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; color: rgba(255,255,255,0.8); font-size: 0.85rem; transition: all .3s; }
.tag-cloud a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* MCP Service Frontend Placeholder */
.mcp-widget { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.15); border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 20px; }
.mcp-widget p { color: rgba(255,255,255,0.5); font-size: 0.82rem; }

/* 面包屑导航栏 */
.breadcrumb-bar { background: #f0f1f5; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 0.85rem; }
.breadcrumb-bar .breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-bar .breadcrumb a { color: var(--accent); }
.breadcrumb-bar .breadcrumb .sep { color: var(--text-light); font-size: 0.75rem; }
.breadcrumb .sep { color: var(--text-light); font-size: 0.75rem; margin: 0 2px; }

/* 页脚信任区域 */
.footer-trust { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; margin-top: 24px; text-align: center; }
.footer-trust p { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer-trust a { color: rgba(255,255,255,0.55); }
.footer-trust a:hover { color: var(--gold); }

/* 回到顶部按钮 */
.back-to-top { position: fixed; bottom: 40px; right: 30px; width: 44px; height: 44px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 999; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* 专家资质标签 */
.expert-certs { font-size: 0.78rem; color: var(--text-light); margin: 8px 0; padding: 6px 10px; background: #f0f1f5; border-radius: 6px; line-height: 1.5; }
.expert-btns { display: flex; gap: 8px; margin-top: 10px; }
