/* 快播影视 - 全局样式 */
:root {
  --primary: #e50914;
  --primary-dark: #b00610;
  --accent: #f5c518;
  --bg-dark: #0b0e17;
  --bg-darker: #07090f;
  --bg-card: #141927;
  --bg-card-hover: #1c2333;
  --text-main: #f2f4f8;
  --text-muted: #9aa3b2;
  --border: #232b3d;
  --gradient-hero: linear-gradient(135deg, rgba(11,14,23,.92) 0%, rgba(20,10,20,.85) 60%, rgba(11,14,23,.95) 100%);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --radius: 14px;
  --transition: all .35s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,9,15,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; letter-spacing: 1px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #ff5e3a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(229,9,20,.45);
}
.brand-logo svg { width: 20px; height: 20px; fill: #fff; }
.brand span em { color: var(--primary); font-style: normal; }
.nav-menu { display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  padding: 9px 16px; border-radius: 8px; font-size: .95rem; color: var(--text-muted);
  position: relative; transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: rgba(229,9,20,.12); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-cta {
  background: var(--primary); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 16px rgba(229,9,20,.35);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh; display: flex; align-items: center; position: relative;
  padding: 140px 0 90px; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,.12); color: var(--accent);
  border: 1px solid rgba(245,197,24,.35);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  margin-bottom: 22px; animation: fadeInDown .8s ease both;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.25; font-weight: 800;
  letter-spacing: 1px; margin-bottom: 20px; animation: fadeInUp .9s .1s ease both;
}
.hero h1 .highlight { color: var(--primary); position: relative; }
.hero h1 .highlight::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: rgba(229,9,20,.25); z-index: -1; border-radius: 4px;
}
.hero p.lead { color: var(--text-muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 32px; animation: fadeInUp .9s .25s ease both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp .9s .4s ease both; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  transition: var(--transition); cursor: pointer; border: 0;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 26px rgba(229,9,20,.4); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(229,9,20,.5); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-main); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; animation: fadeInUp .9s .55s ease both; }
.hero-stats .stat b { display: block; font-size: 1.9rem; color: var(--accent); font-weight: 800; }
.hero-stats .stat span { color: var(--text-muted); font-size: .88rem; }
.hero-poster { position: relative; animation: fadeInLeft 1s .3s ease both; }
.hero-poster img { border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: var(--transition); }
.hero-poster:hover img { transform: rotate(0) scale(1.02); }
.hero-poster .play-fab {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  background: rgba(229,9,20,.92); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px rgba(229,9,20,.22); cursor: pointer; transition: var(--transition);
}
.hero-poster .play-fab:hover { transform: scale(1.1); }
.hero-poster .play-fab svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

/* ---------- 通用 section ---------- */
.section { padding: 90px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag { color: var(--primary); font-weight: 700; font-size: .85rem; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--text-muted); }

/* ---------- 特性卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); background: var(--bg-card-hover); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(229,9,20,.18), rgba(245,197,24,.12));
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; fill: var(--primary); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .93rem; }

/* ---------- 影视卡片 ---------- */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.movie-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
}
.movie-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(229,9,20,.4); }
.movie-poster { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.08); }
.movie-quality {
  position: absolute; top: 10px; left: 10px; background: var(--primary);
  color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
}
.movie-score {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.65);
  color: var(--accent); font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.movie-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,9,15,.9), transparent 55%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
  opacity: 0; transition: var(--transition);
}
.movie-card:hover .movie-overlay { opacity: 1; }
.movie-overlay .play-btn {
  background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.movie-info { padding: 16px 16px 20px; }
.movie-info h3 { font-size: 1rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-info p { color: var(--text-muted); font-size: .82rem; display: flex; justify-content: space-between; }

/* ---------- 分类标签 ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.cat-filter button {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  padding: 9px 22px; border-radius: 999px; font-size: .9rem; cursor: pointer; transition: var(--transition);
}
.cat-filter button:hover { color: #fff; border-color: var(--primary); }
.cat-filter button.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px rgba(229,9,20,.35); }

/* ---------- 服务介绍 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.service-item {
  display: flex; gap: 20px; background: var(--bg-card); padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition);
}
.service-item:hover { background: var(--bg-card-hover); transform: translateX(6px); border-color: rgba(245,197,24,.35); }
.service-item .num { font-size: 2rem; font-weight: 800; color: rgba(229,9,20,.55); line-height: 1; }
.service-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-item p { color: var(--text-muted); font-size: .9rem; }

/* ---------- 内容区/文章 ---------- */
.prose { color: var(--text-muted); }
.prose h2, .prose h3 { color: var(--text-main); margin: 34px 0 14px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 22px; list-style: disc; }
.prose img { border-radius: var(--radius); margin: 22px 0; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(120deg, rgba(229,9,20,.16), rgba(245,197,24,.08)), var(--bg-darker);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 90px 0;
}
.cta-section h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; font-weight: 800; }
.cta-section p { color: var(--text-muted); max-width: 560px; margin: 0 auto 34px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-darker); border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 18px; color: #fff; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: .9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: .85rem;
}

/* ---------- 新闻列表 ---------- */
.news-list { display: grid; gap: 26px; }
.news-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 26px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(229,9,20,.35); }
.news-card .thumb { height: 100%; min-height: 190px; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-body { padding: 26px 26px 26px 0; }
.news-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: .8rem; margin-bottom: 10px; }
.news-meta .tag { color: var(--primary); font-weight: 600; }
.news-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.news-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.read-more { color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { gap: 10px; }
.read-more { transition: var(--transition); }

/* ---------- 页面 Hero（内页） ---------- */
.page-hero {
  padding: 170px 0 80px; text-align: center; position: relative; isolation: isolate; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% -20%, rgba(229,9,20,.22), transparent 60%), var(--bg-darker);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; transition: var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-muted); font-size: .93rem; }

/* ---------- 联系/关于 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; transition: var(--transition); }
.info-card:hover { transform: translateY(-6px); border-color: rgba(229,9,20,.4); }
.info-card .feature-icon { margin: 0 auto 18px; }
.info-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.info-card p { color: var(--text-muted); font-size: .9rem; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 16px; color: var(--text-main); font-size: .95rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(229,9,20,.15);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--border); display: grid; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -37px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(229,9,20,.2);
}
.timeline-item b { color: var(--accent); display: block; margin-bottom: 4px; }
.timeline-item p { color: var(--text-muted); font-size: .92rem; }

/* ---------- 排行榜侧栏 ---------- */
.layout-aside { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.rank-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.rank-list h3 { margin-bottom: 18px; font-size: 1.1rem; }
.rank-list ol { list-style: none; counter-reset: rank; display: grid; gap: 14px; }
.rank-list ol li { counter-increment: rank; display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--text-muted); }
.rank-list ol li::before {
  content: counter(rank); width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  background: var(--bg-darker); color: var(--text-muted); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rank-list ol li:nth-child(-n+3)::before { background: var(--primary); color: #fff; }
.rank-list ol li a:hover { color: var(--primary); }

/* ---------- 动画 ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-poster { max-width: 420px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .layout-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .thumb { min-height: 200px; }
  .news-body { padding: 0 24px 24px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-darker); border-bottom: 1px solid var(--border); padding: 16px;
    transform: translateY(-130%); transition: transform .4s ease; gap: 4px;
  }
  .nav-menu.open { transform: none; }
  .nav-menu a { padding: 13px 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
