/* =====================================================================
   漫影AI 官网 · 公共样式（2026-11 新版）
   ---------------------------------------------------------------------
   用在：index.html（首页）、download.html（下载页）
   设计：深色电影感底 + 新 logo 的青→蓝渐变做主色；内容创作=蓝、商品创作=绿、
        配音=琥珀、小说=紫，四色分赛道（与软件内首页的分色口径一致）。
   约束：
     - 一律不引外部资源（不用 Google 字体 / CDN）：国内访问会卡死或白屏，
       字体走系统中文字体（苹方 / 微软雅黑）。
     - 改颜色只改下面 :root 里的变量，别在各处写死。
   ===================================================================== */

:root {
  --bg: #060a18;
  --bg-2: #0a1026;
  --card: #0d1532;
  --card-2: #111b3d;
  --line: rgba(150, 172, 255, .12);
  --line-2: rgba(150, 172, 255, .24);
  --text: #eef2ff;
  --sub: #aab3d0;
  --mute: #737e9e;
  --blue: #2f6bff;
  --cyan: #19d3ff;
  --violet: #9d86ff;
  --green: #2ad3a0;
  --amber: #ffb547;
  --grad: linear-gradient(120deg, #19d3ff 0%, #2f6bff 55%, #6a4bff 100%);
  --grad-soft: linear-gradient(120deg, rgba(25, 211, 255, .16), rgba(47, 107, 255, .16) 55%, rgba(106, 75, 255, .16));
  --radius: 18px;
  --wrap: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(6, 10, 24, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--sub); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav .btn { flex-shrink: 0; }

/* ---------- 顶部招募公告条（2026-11-17 招代理）----------
   页面 <html> 带 has-bar 才显示；点 × 关掉后本次浏览不再出现（sessionStorage，读写失败就当没关）。
   --bar-h 给各页首屏留出公告条的高度，锚点跳转也要让开（scroll-padding-top）。
   以后不招了：把各页 <html class="has-bar"> 去掉 class 即可，不用删样式。 */
:root { --bar-h: 0px; }
html.has-bar { --bar-h: 40px; }
html { scroll-padding-top: calc(80px + var(--bar-h)); }
.topbar { display: none; }
.has-bar .topbar {
  display: flex; align-items: center; justify-content: center; position: relative;
  height: 40px; padding: 0 48px; font-size: 13.5px; color: #fff;
  background: linear-gradient(90deg, #ff7a59, #ff3d8b 45%, #6a4bff);
}
.topbar-link { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.topbar-link .tb-tag { padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: 1px; background: rgba(255, 255, 255, .22); }
.topbar-link b { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.topbar-link:hover b { text-decoration-thickness: 2px; }
.tb-short { display: none; }
.tb-x {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: #fff; font-size: 18px; line-height: 1; opacity: .8;
}
.tb-x:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
@media (max-width: 560px) {
  .tb-long { display: none; }
  .tb-short { display: inline; }
  .has-bar .topbar { padding: 0 40px 0 12px; justify-content: flex-start; }
}
.nav-links a.nav-hot { color: #ffb08f; font-weight: 700; }
.nav-links a.nav-hot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 2px; background: #ff3d8b; box-shadow: 0 0 0 3px rgba(255, 61, 139, .22); }
.nav-links a.nav-hot.active::after { background: linear-gradient(90deg, #ff7a59, #ff3d8b); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer; border: 0; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(47, 107, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(47, 107, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(150, 172, 255, .4); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16.5px; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- 通用区块 ---------- */
section { position: relative; }
.section { padding: 100px 0; }
/* 隔一节换一档底色，避免整页一个颜色看着发闷 */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 940px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--cyan);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .kicker::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.lead { margin-top: 18px; font-size: 17.5px; color: var(--sub); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; color: var(--sub); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  white-space: nowrap;
}

/* 卡片 */
.card {
  position: relative; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { color: var(--sub); font-size: 15px; }
.card .chips { margin-top: 18px; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan);
}
.icon svg { width: 24px; height: 24px; }
.tag { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; letter-spacing: .5px; background: var(--grad); color: #fff; }

/* 分赛道配色 */
.t-green .icon { color: var(--green); background: rgba(42, 211, 160, .1); border-color: rgba(42, 211, 160, .28); }
.t-amber .icon { color: var(--amber); background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .28); }
.t-violet .icon { color: var(--violet); background: rgba(157, 134, 255, .12); border-color: rgba(157, 134, 255, .3); }
.t-green .kicker { color: var(--green); }
.t-amber .kicker { color: var(--amber); }
.t-violet .kicker { color: var(--violet); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer p, .footer li { color: var(--sub); font-size: 14px; }
.footer h4 { font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a:hover { color: var(--text); }
.contact-line { display: flex; align-items: center; gap: 10px; }
.contact-line svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.contact-phone { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 13px; color: var(--mute);
}
.footer-bottom a:hover { color: var(--sub); }

/* ---------- 进场动画（JS 加了 .js 才隐藏，脚本挂了内容照样看得见） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* 导航 8 个链接，窄于 1100 就收起，只留品牌 + 下载按钮 */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .card { padding: 22px; }
  .lead { font-size: 16px; }
  .nav .btn .long { display: none; }
}
