/* =========================================================
   云幕影库 · 落地页样式
   零依赖：不加载任何外部字体 / CSS / JS
   ========================================================= */

:root {
  color-scheme: dark;

  --bg:        #05070d;
  --bg-soft:   #080b14;
  --surface:   #0b101a;
  --surface-2: #101725;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);

  --text:      #eef2f8;
  --text-2:    #a4b0c2;
  --text-3:    #6b7787;

  --green:     #4ade80;
  --green-dim: #22c55e;
  --blue:      #38bdf8;
  --danger:    #f87171;

  --radius:    16px;
  --radius-lg: 24px;
  --maxw:      1180px;

  --shadow:    0 20px 60px rgba(0, 0, 0, .45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 锚点跳转时避开吸顶导航 */
section[id], main[id] { scroll-margin-top: 88px; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(74, 222, 128, .28); }

/* ---------- 无障碍：跳转链接 / 键盘焦点 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #04120a;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* 鼠标点击不显示焦点框，键盘操作才显示（靠 :focus-visible 自动区分） */
:focus:not(:focus-visible) { outline: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #06080f; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.container.narrow { width: min(100% - 48px, 860px); }

/* ---------- 背景光晕 ---------- */
.aurora {
  position: fixed;
  inset: -20% -10% auto;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 380px at 18% 12%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(700px 420px at 82% 6%,  rgba(74, 222, 128, .13), transparent 70%),
    radial-gradient(900px 500px at 50% 42%, rgba(59, 130, 246, .08), transparent 70%);
  filter: blur(10px);
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 7, 13, .9); }

.nav-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; flex: none; white-space: nowrap; }
.logo-mark {
  width: 28px; height: 28px; flex: none;
  background: url("logo.svg") center/contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, .28));
}
.logo-text { font-size: 17px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; flex: none; }
.nav-links a {
  font-size: 14px; color: var(--text-2);
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* 导航中间跑马灯：服务人数 + 口号 */
.nav-ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.nav-ticker-track {
  display: flex;
  width: max-content;
  animation: nav-ticker 30s linear infinite;
}
.nav-ticker:hover .nav-ticker-track { animation-play-state: paused; }
.nav-ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding-right: 56px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  letter-spacing: .02em;
}
.nav-ticker-item i {
  flex: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, .9);
}
.nav-ticker-item em { font-style: normal; color: rgba(74, 222, 128, .55); }
@keyframes nav-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nav-actions { display: flex; gap: 10px; flex: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #04140a;
  box-shadow: 0 8px 26px rgba(74, 222, 128, .25);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(74, 222, 128, .4); transform: translateY(-1px); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(74, 222, 128, .5); color: var(--green); }

.btn-outline { border: 1px solid var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: rgba(74, 222, 128, .55); color: var(--green); background: rgba(74, 222, 128, .06); }

.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero { padding: 84px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .3px;
  color: var(--green);
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .22);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .15);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(100deg, #4ade80 0%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--text-2); font-size: 16.5px; margin-bottom: 26px; }

.check-list { display: grid; gap: 10px; margin-bottom: 32px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #c8d2e0;
  font-size: 14.5px;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; line-height: 19px;
  text-align: center;
  font-size: 11px; font-weight: 700;
  color: #04140a;
  background: var(--green);
  border-radius: 50%;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }

/* ---------- 海报墙（无限滚动） ---------- */
.hero-visual { position: relative; }

.marquee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 620px;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transform-origin: left center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 78%, transparent);
}
.mq-col { overflow: hidden; }
.mq-col-mid { transform: translateY(-46px); }

.mq-track { animation: mq-up 42s linear infinite; will-change: transform; }
.mq-track-up { animation-duration: 58s; animation-direction: reverse; }
.mq-group { display: grid; gap: 12px; padding-bottom: 12px; }

.marquee:hover .mq-track { animation-play-state: paused; }

@keyframes mq-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.tile {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.tile:hover { transform: translateZ(24px) scale(1.03); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .82));
}
.tile span {
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 600;
  text-wrap: balance;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

/* 真实海报图：渐变背景仍是加载前 / 缺图时的兜底 */
.tile img, .p img, .detail-poster img, .similar .s img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile img { transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
.tile:hover img { transform: scale(1.06); }
.similar .s img { object-position: center 30%; }
.t1 { background: linear-gradient(160deg, #1e3a8a, #0f172a 60%, #4ade80 190%); }
.t2 { background: linear-gradient(160deg, #7c2d12, #1c1917 65%, #f59e0b 200%); }
.t3 { background: linear-gradient(160deg, #0e7490, #082f49 60%, #38bdf8 190%); }
.t4 { background: linear-gradient(160deg, #78350f, #292524 65%, #fbbf24 200%); }
.t5 { background: linear-gradient(160deg, #312e81, #0f172a 60%, #818cf8 190%); }
.t6 { background: linear-gradient(160deg, #581c87, #1e1b4b 60%, #c084fc 190%); }
.t7 { background: linear-gradient(160deg, #065f46, #052e16 60%, #34d399 190%); }
.t8 { background: linear-gradient(160deg, #7f1d1d, #1c1917 65%, #f87171 200%); }
.t9 { background: linear-gradient(160deg, #1f2937, #030712 60%, #64748b 200%); }

.wall-fade {
  position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(180deg, transparent, var(--bg) 88%);
  pointer-events: none;
}
.wall-caption {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  letter-spacing: .3px;
}

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.28;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-2); font-size: 15px; }
.br-m { display: none; }

/* ---------- 对比 ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  background: var(--surface);
}
.compare-col h3 { font-size: 17px; margin-bottom: 20px; }
.compare-old { opacity: .78; }
.compare-old h3 { color: var(--text-3); }
.compare-old li { color: var(--text-3); }
.compare-old li::before { content: "✕"; color: var(--danger); margin-right: 10px; }
.compare-new {
  background: linear-gradient(180deg, rgba(74, 222, 128, .07), transparent 60%), var(--surface);
  border-color: rgba(74, 222, 128, .3);
}
.compare-new li::before { content: "✓"; color: var(--green); margin-right: 10px; }
.compare li { font-size: 14px; margin-bottom: 12px; }
.mark { color: var(--green); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover {
  border-color: rgba(74, 222, 128, .35);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 21px;
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .18);
  margin-bottom: 18px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 13.8px; line-height: 1.75; }

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .3);
  color: var(--green);
  font-weight: 700; font-size: 14px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 13.8px; }
.step-time {
  display: inline-block; margin-top: 16px;
  font-size: 12px; color: var(--text-3);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- 接入指南 ---------- */
.guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.guide-tabs {
  display: flex; gap: 6px;
  padding: 16px 16px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.guide-tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: .2s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--green); border-bottom-color: var(--green); background: rgba(74, 222, 128, .05); }

.tab-panels { padding: 30px 28px 34px; }
.panel { display: none; animation: fade .3s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-lead { color: var(--text-2); font-size: 14.5px; margin-bottom: 20px; }
.panel-lead strong { color: var(--text); }

.num-list { counter-reset: n; display: grid; gap: 14px; margin-bottom: 20px; }
.num-list li {
  counter-increment: n;
  position: relative;
  padding-left: 38px;
  font-size: 14px;
  color: #c8d2e0;
}
.num-list li::before {
  content: counter(n);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; line-height: 24px;
  text-align: center; font-size: 12px; font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, .3);
  border-radius: 50%;
  background: rgba(74, 222, 128, .07);
}
.num-list b { color: var(--text); font-weight: 600; }

.tip {
  font-size: 13px;
  color: var(--text-2);
  background: rgba(56, 189, 248, .06);
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ---------- 价格 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  transition: border-color .25s, transform .25s;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plan-featured {
  border-color: rgba(74, 222, 128, .45);
  background: linear-gradient(180deg, rgba(74, 222, 128, .08), transparent 55%), var(--surface);
  box-shadow: 0 18px 50px rgba(74, 222, 128, .07);
}
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 700;
  color: #04140a;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan header h3 { font-size: 16.5px; margin-bottom: 4px; }
.plan-sub { font-size: 12.5px; color: var(--text-3); min-height: 38px; }

.price { display: flex; align-items: baseline; gap: 2px; margin: 10px 0 4px; }
.price .cur { font-size: 17px; color: var(--text-2); }
.price .num {
  font-size: 42px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1;
}
.price .per { font-size: 13px; color: var(--text-3); margin-left: 4px; }
/* 价格未填写时的占位样式 */
.price .num.is-placeholder { color: var(--text-3); font-weight: 600; letter-spacing: .08em; }
.price-note { font-size: 12px; color: var(--text-3); margin-bottom: 18px; }

.plan-features { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 13.4px;
  color: #c2ccda;
}
.plan-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.pricing-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  line-height: 2;
}
.pricing-foot b { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(74, 222, 128, .28); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px; font-weight: 300;
  color: var(--text-3);
  transition: transform .25s, color .2s;
  flex: none;
}
.faq-item[open] summary { color: var(--green); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-body {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---------- CTA ---------- */
.cta-band {
  margin: 20px auto 84px;
  width: min(100% - 48px, var(--maxw));
  border-radius: 28px;
  padding: 52px 48px;
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(74, 222, 128, .16), transparent 70%),
    radial-gradient(500px 240px at 88% 100%, rgba(56, 189, 248, .14), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-inner p { color: var(--text-2); font-size: 14.5px; max-width: 520px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 34px; background: var(--bg-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.footer-brand p { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.footer-contact a { color: var(--text-2); }
.footer-contact a:hover { color: var(--green); }
.footer-col h4 { font-size: 13px; margin-bottom: 16px; color: var(--text); }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; }
.disclaimer { font-size: 11.5px; color: var(--text-3); line-height: 1.9; max-width: 780px; }
.copyright { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  /* 打开时立刻可见（否则里面拿不到焦点），关闭时等淡出结束再隐藏 */
  transition: opacity .22s, visibility 0s .22s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .22s, visibility 0s; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 8, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(100%, 460px);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(.98);
  transition: transform .25s;
}
.modal.is-open .modal-card { transform: none; }
.modal-card h3 { font-size: 19px; margin-bottom: 14px; }
.modal-body { font-size: 14px; color: var(--text-2); line-height: 1.85; margin-bottom: 22px; }
.modal-body b { color: var(--text); }
.modal-body .price-line {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  font-size: 14px; color: var(--text-3);
  padding: 6px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }


/* =========================================================
   能力滚动条
   ========================================================= */
.ticker {
  width: min(100% - 48px, var(--maxw));
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74,222,128,.05), rgba(56,189,248,.05), rgba(74,222,128,.05));
  overflow: hidden;
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker i { color: var(--green); opacity: .45; font-style: normal; }
.ticker-group { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   界面预览（Emby 界面模拟）
   ========================================================= */
.app-frame {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  background: #070a12;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .6);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .035);
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.dots i:nth-child(1) { background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #4ade80; }
.app-url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-body { display: grid; grid-template-columns: 58px 1fr; min-height: 468px; }
.app-side {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.side-logo {
  width: 26px; height: 26px; margin-bottom: 12px;
  background: url("logo.svg") center/contain no-repeat;
}
.side-item { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.side-item.is-on {
  background: rgba(74, 222, 128, .18);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .4);
}

.app-main { padding: 22px 24px 26px; overflow: hidden; }
.view { display: none; }
.view.is-active { display: block; animation: fade .35s ease; }

.view-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.view-head h3 { font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.chip.is-on {
  color: var(--green);
  border-color: rgba(74, 222, 128, .35);
  background: rgba(74, 222, 128, .08);
}

.poster-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; }
.p {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 10px;
  transition: transform .3s, box-shadow .3s;
}
.p:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 34px rgba(0, 0, 0, .55); }
.p::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .8));
}
.p span { position: relative; z-index: 1; font-size: 10.5px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.p em {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  font-style: normal; font-size: 9px; color: #fbbf24;
  background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 1px 6px;
}

/* 详情视图 */
.detail-hero { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.detail-poster {
  aspect-ratio: 2 / 3; border-radius: 10px; position: relative;
  overflow: hidden; display: flex; align-items: flex-end; padding: 10px;
}
.detail-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .8));
}
.detail-poster span { position: relative; z-index: 1; font-size: 11.5px; font-weight: 600; }
.tag {
  display: inline-block; font-size: 10.5px; color: var(--green);
  border: 1px solid rgba(74, 222, 128, .3);
  background: rgba(74, 222, 128, .08);
  border-radius: 6px; padding: 2px 8px; margin-bottom: 10px;
}
.detail-info h3 { font-size: 22px; margin-bottom: 6px; }
.detail-meta { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.detail-desc {
  font-size: 12.5px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 16px; max-width: 54ch;
}
.detail-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
  font-size: 12px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  background: linear-gradient(135deg, #4ade80, #22c55e); color: #04140a;
}
.mini-btn.ghost {
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text); font-weight: 500;
}
.ep-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.ep { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .02); }
.ep.is-on { border-color: rgba(74, 222, 128, .35); }
.ep span { font-size: 11.5px; color: var(--text-2); }
.ep i {
  display: block; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .08); margin-top: 9px;
  position: relative; overflow: hidden;
}
.ep i::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--p); background: var(--green);
}

/* 相似推荐 */
.similar-title { font-size: 12.5px; color: var(--text-3); margin: 24px 0 10px; letter-spacing: .05em; }
.similar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.similar .s {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  display: flex; align-items: flex-end;
  padding: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .25s;
}
.similar .s:hover { transform: translateY(-3px); }
.similar .s::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .78));
}
.similar .s span { position: relative; z-index: 1; font-size: 10.5px; font-weight: 600; }

.view-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.view-tab {
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; transition: .2s;
}
.view-tab:hover { color: var(--text); border-color: var(--line-2); }
.view-tab.is-active {
  color: var(--green);
  border-color: rgba(74, 222, 128, .4);
  background: rgba(74, 222, 128, .08);
}

/* =========================================================
   设备场景
   ========================================================= */
.devices { display: grid; grid-template-columns: 1.3fr 1fr .72fr; gap: 28px; align-items: end; }
.device { margin: 0; text-align: center; }
.device figcaption { display: grid; gap: 3px; margin-top: 18px; }
.device strong { font-size: 14px; }
.device figcaption span { font-size: 12px; color: var(--text-3); }

.tv, .tablet, .phone { animation: floaty 8s ease-in-out infinite; }
.device:nth-child(2) .tablet { animation-delay: -2.6s; }
.device:nth-child(3) .phone { animation-delay: -5.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.tv {
  background: #101827;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .5);
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #05070d;
  padding: 10px;
}
.tv-screen::after,
.tablet-screen::after,
.phone-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, #05070d 92%);
  pointer-events: none;
}
.tv-stand { width: 34%; height: 6px; margin: 9px auto 0; border-radius: 0 0 6px 6px; background: #1f2937; }

.tablet {
  background: #101827;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 9px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .5);
}
.tablet-screen {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #05070d;
  padding: 9px;
}

.phone {
  position: relative;
  width: 148px;
  margin: 0 auto;
  background: #101827;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .5);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18;
  border-radius: 18px;
  overflow: hidden;
  background: #05070d;
  padding: 8px 6px;
}
.notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px; border-radius: 999px; background: #1f2937; z-index: 2;
}
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; align-content: start; }
.mini-grid i { border-radius: 4px; display: block; aspect-ratio: 2 / 3; }
.phone .mini-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

/* =========================================================
   卡片鼠标光晕
   ========================================================= */
.card, .plan { position: relative; }
.card::before, .plan::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 222, 128, .1), transparent 65%);
  opacity: 0;
  transition: opacity .28s;
}
.card:hover::before, .plan:hover::before { opacity: 1; }

/* =========================================================
   背景光斑随滚动
   ========================================================= */
.aurora { will-change: transform; }

/* ---------- 滚动出现 ---------- */
/* 默认可见：JS 未加载 / 被拦截时内容照常显示 */
.reveal { opacity: 1; transform: none; }
/* 只有脚本确认可用时，才启用入场动画 */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-ticker { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; max-width: 520px; }
  .marquee { transform: none; height: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .devices { grid-template-columns: 1fr 1fr; }
  .device:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container, .container.narrow, .nav-inner { width: min(100% - 32px, var(--maxw)); }
  .ticker { width: calc(100% - 32px); }
  .nav-links {
    position: fixed; inset: 68px 0 auto;
    flex-direction: column; gap: 0;
    background: #05070d;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
    padding: 8px 20px 18px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero { padding: 52px 0 24px; }
  .section { padding: 60px 0; }
  .compare, .steps, .cards, .pricing-grid { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; gap: 36px; }
  .device:last-child { grid-column: auto; }
  .phone { width: 132px; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 18px 16px 20px; }
  .poster-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .poster-grid .p:nth-child(n+9) { display: none; }
  .p span { font-size: 9px; }
  .p em { display: none; }
  .detail-hero { grid-template-columns: 96px 1fr; gap: 14px; }
  .detail-info h3 { font-size: 18px; }
  .detail-desc { display: none; }
  .ep-row { grid-template-columns: repeat(2, 1fr); }
  .similar { grid-template-columns: repeat(3, 1fr); }
  .similar .s:nth-child(n+4) { display: none; }
  .view-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .br-m { display: inline; }
  .tab-panels { padding: 24px 20px 28px; }
  .guide-tabs { padding: 12px 12px 0; }
  .cta-band { padding: 36px 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .wall-caption { display: none; }
}

/* ---------- 跑马灯省电：离开视口 / 后台标签页时暂停 ---------- */
.is-paused .mq-track,
.is-paused .ticker-track,
.is-paused .nav-ticker-track,
html.is-bg .mq-track,
html.is-bg .ticker-track,
html.is-bg .nav-ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
