/* ============================================================
   电影天堂 Movie Heaven · 官网设计系统
   规范：纯黑影院风 + 主色 #f3d741 黄
   约束：全站无 box-shadow、无 border 线条
   ============================================================ */

:root {
  /* 色彩令牌 */
  --yellow: #f3d741;
  --bg: #0a0a0b;
  --bg-nav: #0d0d10;
  --surface: #141418;
  --surface-2: #0f0f12;
  --surface-3: #1c1c22;
  --footer-bg: #08080a;
  --text: #ffffff;
  --text-2: #b8b8c0;
  --muted: #8a8a93;
  --line: #1e1e24;

  /* 形状令牌 */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 28px;

  /* 间距令牌 */
  --pad-x: 80px;
  --sec-y: 72px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- 导航（全站统一） ---------- */
.nav {
  background: var(--bg-nav);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { width: 44px; height: 44px; border-radius: 10px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
}
 .nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---------- 按钮（无阴影无边框） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  background: none;
  transition: filter .2s, background .2s;
}
.btn-yellow { background: var(--yellow); color: #0a0a0b; }
.btn-dark { background: var(--surface-3); color: var(--text); }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 10px; }
.btn:hover { filter: brightness(1.08); }

/* ---------- 区块（统一节拍） ---------- */
.section { padding: var(--sec-y) 0; }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: 32px; }
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-title { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.section-desc { font-size: 15px; color: var(--text-2); }

/* 卡片（无边框无阴影，纯色面） */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--yellow);
  color: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { display: block; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 14px; color: var(--muted); }

/* ---------- 页脚（全站统一） ---------- */
.footer { background: var(--footer-bg); padding: 56px 0 40px; }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand-name { font-size: 22px; font-weight: 900; }
.footer-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; font-weight: 500; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding-top: 28px;
  background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 40%, rgba(227, 45, 33, .28), transparent 62%),
    radial-gradient(ellipse 45% 45% at 22% 78%, rgba(243, 215, 65, .10), transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-title {
  font-size: 80px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
  margin: 8px 0 14px;
}
.hero-sub { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.hero-desc { font-size: 14px; color: var(--muted); max-width: 560px; margin-bottom: 22px; }
.hero-btns { display: flex; gap: 16px; }

/* 手机样机（无边框无阴影） */
.phone {
  background: #16161c;
  border-radius: 40px;
  padding: 12px;
  flex-shrink: 0;
}
.phone-notch {
  width: 110px;
  height: 26px;
  border-radius: 13px;
  background: #0a0a0b;
  margin: 0 auto 12px;
}
.phone img {
  width: 276px;
  height: 552px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ---------- 数据条 ---------- */
.stats {
  background: var(--surface-2);
  padding: 28px 0;
}
.stats-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: space-between;
  text-align: center;
}
.stat-num { font-size: 36px; font-weight: 900; color: var(--yellow); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 通用网格 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ---------- 下载页 ---------- */
.page-head { padding: 88px 0 40px; }
.page-head .eyebrow { letter-spacing: 3px; }
.page-title { font-size: 44px; font-weight: 900; margin: 8px 0 12px; }
.page-sub { font-size: 16px; color: var(--text-2); }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 20px;
  padding-bottom: 24px;
}
.dl-card { display: flex; flex-direction: column; }
.dl-btn { margin-top: 6px; align-self: flex-start; }

.qr-band { display: flex; align-items: center; gap: 48px; }
.qr-box {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  flex-shrink: 0;
}
.qr-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.qr-desc { font-size: 14px; color: var(--muted); max-width: 420px; }

/* 安装步骤 */
.step-card .card-title { margin-bottom: 10px; }

/* ---------- 关于页 ---------- */
.about-hero { text-align: center; padding: 96px 0 80px; }
.about-hero .logo-big {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 18px;
}
.about-title { font-size: 44px; font-weight: 900; margin: 8px 0 12px; }
.about-sub { font-size: 16px; color: var(--text-2); }

.story-body { font-size: 15px; color: #c8c8d0; max-width: 900px; line-height: 1.9; }

.cta-band { text-align: center; }
.cta-title { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.cta-desc { font-size: 15px; color: var(--text-2); margin-bottom: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --pad-x: 24px; --sec-y: 48px; }

  /* 导航：汉堡菜单 */
  .nav { position: relative; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .nav-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    padding: 8px 24px 16px;
  }
  .nav-links a { padding: 12px 0; font-size: 16px; }

  /* 网格与按钮 */
  .grid-3, .grid-4, .grid-5, .dl-grid { grid-template-columns: 1fr; }
  .dl-card { width: 100%; }

  /* 标题缩放 */
  .hero-title { font-size: 42px; }
  .page-title, .about-title { font-size: 30px; }
  .section-title { font-size: 24px; }
  .stat-num { font-size: 28px; }

  /* 手机样机缩放 */
  .phone { width: 260px; }
  .phone img { width: 236px; height: 480px; }

  /* 弹窗自适应 + 滚动 */
  .modal-card { margin: 6vh 16px; max-height: 84vh; overflow-y: auto; }

  /* 其他 */
  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 下载弹窗 ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 100; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal-card { position: relative; max-width: 460px; margin: 8vh auto 0; background: var(--bg); padding: 32px; border-radius: 16px; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.modal-tip { font-size: 13px; color: var(--yellow); background: var(--surface); padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; line-height: 1.7; }
.modal-tip b { color: #fff; font-weight: 700; letter-spacing: 1px; }
.modal-list { display: flex; flex-direction: column; gap: 12px; }
.modal-list a { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--surface); border-radius: 10px; font-size: 15px; font-weight: 600; color: #fff; transition: background .2s; }
.modal-list a:hover { background: var(--surface-3); }
.modal-list .hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.modal-close { position: absolute; top: 8px; right: 14px; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.modal-close:hover { color: #fff; }
.modal-img { display: block; width: 100%; margin-top: 18px; border-radius: 10px; }
