/* ========================================
   番茄视频 - 全站样式表
   mashuyao.com 影视传媒视频社区
   ======================================== */

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif; color: #222; background: #0a0a1a; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: color .3s; }
a:hover { color: #ff3c83; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header { background: linear-gradient(135deg, #0d0d2b 0%, #1a1a3e 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.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: 45px; width: auto; }
.logo-wrap .brand-name { font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
.logo-wrap .brand-name span { color: #ff3c83; }

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

/* === Search Bar === */
.search-bar { background: linear-gradient(90deg, #1a1a3e, #2d1b4e); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.search-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.search-input-wrap { position: relative; width: 100%; max-width: 600px; }
.search-input-wrap input { width: 100%; padding: 10px 50px 10px 18px; border-radius: 25px; border: 2px solid rgba(255,60,131,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 14px; outline: none; transition: border-color .3s; }
.search-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.search-input-wrap input:focus { border-color: #ff3c83; background: rgba(255,255,255,.12); }
.search-input-wrap .search-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, #ff3c83, #a855f7); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.search-hot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.search-hot a { font-size: 12px; color: rgba(255,255,255,.5); padding: 2px 10px; border-radius: 12px; background: rgba(255,255,255,.05); transition: all .3s; }
.search-hot a:hover { color: #ff3c83; background: rgba(255,60,131,.1); }

/* === Hero Banner === */
.hero-banner { position: relative; overflow: hidden; height: 500px; }
.hero-banner .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.hero-banner .slide.active { opacity: 1; }
.hero-banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner .overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,26,.3), rgba(10,10,26,.8)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero-banner .overlay h1 { font-size: 42px; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-banner .overlay h1 span { color: #ff3c83; }
.hero-banner .overlay p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 700px; margin: 0 auto 24px; }
.hero-banner .overlay .hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; background: linear-gradient(135deg, #ff3c83, #a855f7); color: #fff; border-radius: 30px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: transform .3s, box-shadow .3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,60,131,.4); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; border: 2px solid rgba(255,255,255,.3); color: #fff; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; background: transparent; transition: all .3s; }
.btn-outline:hover { border-color: #ff3c83; color: #ff3c83; }

/* === Section Common === */
.section { padding: 60px 0; }
.section-dark { background: #0a0a1a; }
.section-darker { background: #070714; }
.section-gradient { background: linear-gradient(180deg, #0a0a1a 0%, #12122a 100%); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; color: #fff; margin-bottom: 10px; }
.section-header h2 span { color: #ff3c83; }
.section-header p { font-size: 16px; color: rgba(255,255,255,.6); max-width: 600px; margin: 0 auto; }
.section-header .tag { display: inline-block; padding: 4px 14px; background: rgba(255,60,131,.1); color: #ff3c83; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }

/* === Video Card Grid === */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card { position: relative; border-radius: 12px; overflow: hidden; background: #14142a; transition: transform .3s, box-shadow .3s; cursor: pointer; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,60,131,.2); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .thumb img { transform: scale(1.08); }
.video-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 56px; height: 56px; background: rgba(255,60,131,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-card .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 .duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.video-card .card-body { padding: 12px; }
.video-card .card-body h3 { font-size: 14px; color: #fff; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-card .card-body .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); }
.video-card .card-body .meta .views { display: flex; align-items: center; gap: 4px; }
.video-card .tag-hot { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ff3c83, #ff6b35); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* === Feature Modules === */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: linear-gradient(135deg, #14142a, #1a1a3e); border-radius: 16px; padding: 30px; border: 1px solid rgba(255,255,255,.05); transition: all .3s; }
.feature-card:hover { border-color: rgba(255,60,131,.3); transform: translateY(-3px); }
.feature-card .icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,60,131,.2), rgba(168,85,247,.2)); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* === Expert Section === */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: #14142a; border-radius: 16px; overflow: hidden; text-align: center; border: 1px solid rgba(255,255,255,.05); transition: all .3s; }
.expert-card:hover { border-color: rgba(255,60,131,.3); }
.expert-card .avatar { width: 100%; aspect-ratio: 1; overflow: hidden; }
.expert-card .avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.expert-card:hover .avatar img { transform: scale(1.05); }
.expert-card .info { padding: 16px; }
.expert-card .info h3 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.expert-card .info .title { font-size: 13px; color: #ff3c83; margin-bottom: 8px; }
.expert-card .info p { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.expert-card .info .btns { display: flex; gap: 8px; justify-content: center; }
.expert-card .info .btns a { padding: 6px 14px; border-radius: 20px; font-size: 12px; }
.btn-sm-primary { background: linear-gradient(135deg, #ff3c83, #a855f7); color: #fff; }
.btn-sm-outline { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
.btn-sm-outline:hover { border-color: #ff3c83; color: #ff3c83; }

/* === Brand Wall === */
.brand-wall { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; }
.brand-wall .brand-item { background: rgba(255,255,255,.05); border-radius: 12px; padding: 16px 32px; font-size: 16px; color: rgba(255,255,255,.4); font-weight: 600; border: 1px solid rgba(255,255,255,.05); transition: all .3s; }
.brand-wall .brand-item:hover { border-color: rgba(255,60,131,.3); color: #ff3c83; }

/* === Review Section === */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #14142a; border-radius: 16px; padding: 24px; border: 1px solid rgba(255,255,255,.05); }
.review-card .stars { color: #fbbf24; font-size: 16px; margin-bottom: 10px; }
.review-card .text { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; }
.review-card .reviewer .avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ff3c83, #a855f7); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; }
.review-card .reviewer .name { font-size: 13px; color: #fff; }
.review-card .reviewer .date { font-size: 11px; color: rgba(255,255,255,.3); }

/* === FAQ Section === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #14142a; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.faq-item .question { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 15px; font-weight: 500; transition: background .3s; }
.faq-item .question:hover { background: rgba(255,60,131,.05); }
.faq-item .question .arrow { transition: transform .3s; color: #ff3c83; }
.faq-item.open .question .arrow { transform: rotate(180deg); }
.faq-item .answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .3s; }
.faq-item.open .answer { padding: 0 20px 16px; max-height: 500px; }
.faq-item .answer p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; }

/* === Contact Section === */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon-circle { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,60,131,.2), rgba(168,85,247,.2)); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-item h4 { font-size: 15px; color: #fff; margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: rgba(255,255,255,.5); }
.contact-qrcodes { display: flex; gap: 30px; justify-content: center; align-items: center; }
.contact-qrcodes .qr-item { text-align: center; }
.contact-qrcodes .qr-item img { width: 150px; height: 150px; border-radius: 12px; margin-bottom: 8px; }
.contact-qrcodes .qr-item p { font-size: 13px; color: rgba(255,255,255,.5); }

/* === Footer === */
.site-footer { background: #070714; border-top: 1px solid rgba(255,255,255,.05); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { font-size: 16px; color: #fff; margin-bottom: 14px; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.4); padding: 3px 0; transition: color .3s; }
.footer-col a:hover { color: #ff3c83; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 16px; transition: all .3s; }
.social-links a:hover { background: #ff3c83; color: #fff; }

/* === Breadcrumb === */
.breadcrumb { padding: 14px 0; font-size: 13px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: #ff3c83; }
.breadcrumb span { margin: 0 6px; }

/* === Stats Bar === */
.stats-bar { display: flex; justify-content: center; gap: 60px; padding: 30px 0; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: 700; color: #ff3c83; }
.stat-item .label { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* === Community Cards === */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.community-card { background: linear-gradient(135deg, #14142a, #1a1a3e); border-radius: 16px; padding: 24px; border: 1px solid rgba(255,255,255,.05); transition: all .3s; }
.community-card:hover { border-color: rgba(255,60,131,.3); transform: translateY(-3px); }
.community-card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.community-card .online { font-size: 12px; color: #22c55e; display: flex; align-items: center; gap: 4px; }
.community-card .online::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.community-card p { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 14px; }

/* === Tool Cards === */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { background: #14142a; border-radius: 16px; padding: 30px; text-align: center; border: 1px solid rgba(255,255,255,.05); transition: all .3s; }
.tool-card:hover { border-color: rgba(255,60,131,.3); transform: translateY(-3px); }
.tool-card .tool-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,60,131,.15), rgba(168,85,247,.15)); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.tool-card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.tool-card p { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 16px; }

/* === Page Hero === */
.page-hero { background: linear-gradient(135deg, #0d0d2b, #1a1a3e); padding: 60px 0 40px; text-align: center; }
.page-hero h1 { font-size: 36px; color: #fff; margin-bottom: 12px; }
.page-hero h1 span { color: #ff3c83; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.6); max-width: 600px; margin: 0 auto; }

/* === Tabs === */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tabs .tab { padding: 8px 20px; border-radius: 20px; font-size: 14px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); cursor: pointer; transition: all .3s; border: none; }
.tabs .tab.active, .tabs .tab:hover { background: linear-gradient(135deg, #ff3c83, #a855f7); color: #fff; }

/* === MCP Frontend Placeholder === */
.mcp-widget { background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.1); border-radius: 12px; padding: 20px; text-align: center; color: rgba(255,255,255,.3); font-size: 13px; margin-top: 20px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d0d2b; flex-direction: column; padding: 10px 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 20px; }
  .mobile-menu-btn { display: block; }
  .hero-banner { height: 350px; }
  .hero-banner .overlay h1 { font-size: 26px; }
  .hero-banner .overlay p { font-size: 14px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .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; }
  .stats-bar { gap: 30px; flex-wrap: wrap; }
  .section-header h2 { font-size: 24px; }
  .community-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 10px 15px; }
  .contact-qrcodes { flex-direction: column; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 280px; }
  .hero-banner .overlay h1 { font-size: 22px; }
  .btn-primary, .btn-outline { padding: 10px 24px; font-size: 14px; }
}

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

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

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: #2d2d5e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ff3c83; }
