/* 织影官网。纯静态，不依赖任何外部资源。配色与产品界面一致：墨色底 + 放映机的暖光。 */
:root {
  --bg: #0d0e12;
  --surface: #15171d;
  --raised: #1c1f27;
  --line: #262a34;
  --line-strong: #363b48;
  --text: #eceef2;
  --muted: #9aa1af;
  --faint: #666d7b;
  --accent: #f2a93b;
  --accent-ink: #1a1203;
  --ok: #4ecb8f;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans", "Noto Sans Thai", "Noto Sans Devanagari", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background: rgb(13 14 18 / 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: 0.5px; }
:lang(zh) .brand { letter-spacing: 4px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav nav a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; white-space: nowrap; }

/* 登录状态：没登录显示 data-guest 的，登录了显示 data-user 的 */
[data-user] { display: none !important; }
.authed [data-user] { display: inline-flex !important; }
.authed [data-guest] { display: none !important; }
.foot .authed-fix { display: none; }
.authed .foot-grid nav a[data-user] { display: block !important; }

/* 语言切换：导航最右边的一个小圆角按钮（地球 + 语言代号） */
.lang { position: relative; font-size: 12px; color: var(--muted); }
.lang summary {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; cursor: pointer; list-style: none;
  border: 1px solid var(--line-strong); font-weight: 600; letter-spacing: 0.5px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--raised); }
.lang ul {
  position: absolute; right: 0; top: 40px; margin: 0; padding: 6px; list-style: none; min-width: 168px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
}
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--muted); }
.lang li a:hover { background: var(--raised); color: var(--text); }
.lang li a[aria-current] { color: var(--accent); }
.nav-cta .login { font-size: 14px; color: var(--muted); }
.nav-cta .login:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent); transition: filter 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { height: 34px; padding: 0 16px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--raised); filter: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 首屏 */
.hero {
  padding: 84px 20px 40px; text-align: center;
  background: radial-gradient(900px 420px at 50% -80px, rgb(242 169 59 / 0.13), transparent 70%);
}
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.15; font-weight: 700; letter-spacing: 1px; }
h1, h2 { text-wrap: balance; }
.hero h1 { max-width: 980px; margin: 0 auto; }
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(th) .hero h1, :lang(hi) .hero h1, :lang(vi) .hero h1, :lang(ms) .hero h1, :lang(en) .hero h1 { font-size: clamp(34px, 5.2vw, 58px); }
h1 .m { display: none; }
.lede { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: 17px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chips { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.chips li { display: flex; align-items: center; gap: 7px; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* 数字条 */
.stats {
  max-width: var(--max); margin: 64px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stats div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--surface), transparent); }
.stats b { display: block; font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }

.player {
  max-width: 960px; margin: 56px auto 0; padding: 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
}
.prompt-chip { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px 12px; font-size: 14px; }
.prompt-chip span {
  flex: none; font-size: 12px; color: var(--accent); padding: 1px 8px; border-radius: 999px; background: rgb(242 169 59 / 0.14);
}
.player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.player figcaption { padding: 10px 8px 4px; font-size: 13px; color: var(--muted); }
.player figcaption b { color: var(--text); font-weight: 500; }

/* 通用区块 */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 20px 0; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; font-weight: 650; }
.sub { margin-top: 12px; color: var(--muted); max-width: 680px; }
h3 { font-size: 17px; font-weight: 600; }

/* 流程 */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.steps li { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.steps li.wide { grid-column: 1 / -1; }
.steps li > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal;
  font-size: 13px; font-weight: 600; color: var(--accent); background: rgb(242 169 59 / 0.14);
}
.script { margin-top: 16px; padding: 14px 16px; background: var(--bg); border-radius: 10px; font-size: 14px; color: var(--muted); }
.script b { color: var(--text); font-weight: 500; }
.script .say { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--accent); color: var(--text); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.pair figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.illus { display: block; width: 100%; height: auto; margin-top: 16px; }

/* 风格样张 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery figure { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 11px; border-radius: 999px; font-size: 12px;
  color: #fff; background: rgb(13 14 18 / 0.66); backdrop-filter: blur(6px);
}

/* 画布 */
.shot-frame { margin-top: 36px; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.shot-frame img { width: 100%; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; margin-top: 44px; }
.split .graph { margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.callouts { display: grid; gap: 24px; }
.callouts h3 { padding-left: 12px; border-left: 3px solid var(--accent); }

/* 图标 */
.icon { display: block; width: 28px; height: 28px; margin-bottom: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.big { width: 34px; height: 34px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }

/* 计费四步 */
.billing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; counter-reset: b; }
.billing li { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.billing li:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 9px; height: 9px; margin-top: -5px; z-index: 1;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg);
}
.billing li:nth-child(3) .icon { stroke: var(--ok); }
.billing p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 常见问题 */
.section.narrow { max-width: 820px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 20px; line-height: 1.2; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 2px 20px; color: var(--muted); font-size: 15px; max-width: 700px; }
.callouts p, .grid p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.nav nav a { transition: color 0.15s; }
@media (max-width: 1040px) and (min-width: 861px) { .nav nav { gap: 16px; } .nav { gap: 16px; } }

/* 能力 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.grid article { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* 模型 */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.models > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.models h3 { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.models p { font-size: 19px; font-weight: 600; margin-top: 2px; }
.state { font-size: 12px; padding: 2px 9px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line-strong); }
.state.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.fine { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* 算力节点 */
#gpu h2 .state { vertical-align: middle; margin-left: 8px; font-weight: 500; }
.gpu-steps-title { margin-top: 40px; font-size: 17px; }
.gpu-steps { margin-top: 16px; }
.gpu-dl { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.gpu-dl ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; padding: 0; }
.gpu-dl a { color: var(--text); }
.gpu-dl p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.gpu-dl pre { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow-x: auto; }
.gpu-dl code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); white-space: pre; }

/* 内测 */
.join { text-align: center; padding-bottom: 20px; }
.join .sub { margin: 14px auto 28px; }
.join-card {
  padding: 52px 24px 56px; border: 1px solid var(--line-strong); border-radius: 24px;
  background: radial-gradient(600px 260px at 50% 0, rgb(242 169 59 / 0.16), transparent 70%), var(--surface);
}
.join-card img { margin: 0 auto 18px; }

/* 页脚：左边品牌和一句话，右边三列链接，最下面一行版权和语言 */
.foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.foot-grid { max-width: var(--max); margin: 0 auto; padding: 52px 20px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { color: var(--text); font-size: 17px; }
.foot-brand p { margin-top: 12px; max-width: 300px; color: var(--muted); }
.foot nav h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text); }
.foot-grid nav a { display: block; padding: 5px 0; }
.foot a:hover { color: var(--text); }
.foot-bottom {
  max-width: var(--max); margin: 0 auto; padding: 20px 20px 36px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; font-size: 13px; color: var(--faint);
}
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-langs a[aria-current] { color: var(--text); }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  h1 .m { display: inline; }
  .hero { padding-top: 56px; }
  .lede br, .join .sub br { display: none; }
  .steps, .grid, .grid.four, .split { grid-template-columns: 1fr; }
  .shots, .models, .stats, .gallery, .billing { grid-template-columns: 1fr 1fr; }
  .billing li::after { display: none; }
  .split { gap: 28px; }
  .stats { margin-top: 44px; }
  .stats b { font-size: 32px; }
  .nav-cta .login { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 用户协议、隐私政策 */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 24px; line-height: 1.8; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .meta { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--text); font-weight: 600; border-top: 0; white-space: nowrap; }
.legal td:first-child { color: var(--text); width: 34%; }
.legal .draft { margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); font-size: 14px; }
@media (max-width: 640px) { .legal table, .legal tbody, .legal tr, .legal td { display: block; width: auto; } .legal thead { display: none; } .legal td { border-top: 0; padding: 2px 0; } .legal tr { padding: 10px 0; border-top: 1px solid var(--line); } .legal td:first-child { width: auto; } }

/* 样片：横屏和竖屏混排，统一高度，按比例定宽 */
.samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.samples figure { margin: 0; }
.samples video { display: block; height: 340px; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.samples .wide video { aspect-ratio: 16 / 9; }
.samples .tall video { aspect-ratio: 9 / 16; }
.samples .tall { width: calc(340px * 9 / 16); }
.samples figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 10px; font-size: 14px; }
.samples figcaption b { font-weight: 600; }
.samples figcaption span { color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) {
  .samples .wide { width: 100%; }
  .samples .wide video { width: 100%; height: auto; }
  .samples .tall { width: calc(300px * 9 / 16); }
  .samples .tall video { height: 300px; }
}
