/* 蓝影版：蓝色光晕 + 黑色剪影，大圆角 */
:root {
  --bg: #07080d;
  --panel: #1a1c22;
  --line: #2b2e37;
  --ink: #ffffff;
  --muted: #a7adc0;
  --accent: #4a5bff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--ink); text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, b { color: var(--ink); }

/* 顶栏：透明，滚下去后加底色 */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 74px; display: flex; align-items: center; gap: 18px; padding: 0 3vw; background: linear-gradient(rgba(3, 5, 30, .9), rgba(3, 5, 30, .55)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand i { width: 26px; height: 22px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 50% 80%, 0 100%); }
.top-right { display: flex; align-items: center; align-self: stretch; flex: 1; justify-content: flex-end; gap: 14px; }
#nav { display: flex; align-items: center; align-self: stretch; margin: 0 auto; }
.menu { display: flex; align-self: stretch; }
.menu-top { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; padding: 0 17px; cursor: pointer; white-space: nowrap; }
#nav a.btn { display: inline-block; margin-left: 14px; padding: 8px 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background .18s; }
#nav a.btn:hover { background: var(--accent); }
.nav-ink { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--ink); opacity: 0; transition: transform .28s cubic-bezier(.3, .7, .2, 1), width .28s, opacity .18s; pointer-events: none; z-index: 2; }
.drop-bg { position: absolute; left: 0; right: 0; top: 100%; height: 0; background: #26272b; border-radius: 0 0 24px 24px; opacity: 0; visibility: hidden; transition: height .28s cubic-bezier(.3, .7, .2, 1), opacity .2s, visibility .2s; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.top.dropped .nav-ink, .top.dropped .drop-bg { opacity: 1; visibility: visible; }
.panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: 12px; padding: 22px 4vw 26px; visibility: hidden; opacity: 0; transform: translateX(var(--from, 0)); transition: opacity .16s, transform .28s, visibility .16s; }
.menu.open .panel { visibility: visible; opacity: 1; transform: none; }
.panel-lead { margin: 0; align-self: center; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
#nav .panel a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; transition: background .18s; }
#nav .panel a:hover, #nav .panel a:focus-visible { background: #34353b; }
.panel span { color: var(--muted); font-size: .82rem; }
.style-switch { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.style-switch a { color: var(--muted); font-size: .84rem; padding: 3px 11px; border-radius: 999px; transition: background .18s, color .18s; }
.style-switch a[aria-current] { background: #101116; color: var(--ink); font-weight: 700; }
.menu-btn { display: none; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--ink); font: inherit; padding: 5px 14px; }

/* 一屏一个角色 */
.screen { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; scroll-margin-top: 0; }
.figure { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s-handover { background: radial-gradient(70% 90% at 50% 52%, #1750ff 0%, #0526d8 38%, #030a5c 68%, #02030f 100%); }
.s-run { background: radial-gradient(65% 90% at 62% 45%, #0a2bd6 0%, #06189a 40%, #020742 75%, #01020f 100%); }
.s-hand { background: radial-gradient(60% 85% at 48% 42%, #3b1fd6 0%, #1c149a 42%, #0a0746 74%, #02010f 100%); }
.s-dance { background: radial-gradient(55% 90% at 12% 40%, #7a0612 0%, #3a030a 55%, transparent 80%), radial-gradient(55% 95% at 92% 45%, #1b36ff 0%, #0a1796 45%, transparent 80%), #0c0208; }
.screen-text { position: relative; z-index: 2; width: min(92vw, 880px); padding: 90px 0 40px; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.screen h1, .screen h2 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 1.18; margin: 0 0 .25em; font-weight: 800; text-wrap: balance; }
.screen-text > p { font-size: clamp(1rem, 1.7vw, 1.45rem); color: rgba(255, 255, 255, .78); margin: 0 auto 26px; max-width: 34em; }
.pill { display: inline-block; border-radius: 999px; background: rgba(16, 17, 22, .72); padding: 12px 28px; font-weight: 700; transition: background .18s, transform .18s; }
.pill:hover { background: var(--accent); transform: translateY(-2px); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(16, 17, 22, .6); margin-bottom: 22px; }
.tabs button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 22px; cursor: pointer; transition: background .18s, color .18s; }
.tabs button[aria-pressed="true"] { background: #101116; color: var(--ink); }
form.quick { display: flex; flex-direction: row; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; padding: 9px 9px 9px 26px; border: 1px solid #2d2f37; border-radius: 999px; background: #1a1b1f; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
form.quick input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 1.06rem; text-shadow: none; }
form.quick input:focus { box-shadow: none; }
form.quick button { border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 13px 30px; cursor: pointer; white-space: nowrap; transition: filter .18s, transform .18s; }
form.quick button:hover { filter: brightness(1.15); }
form.quick button:active { transform: scale(.97); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px !important; }
.tags span { border-radius: 999px; background: rgba(16, 17, 22, .6); color: var(--ink); padding: 8px 20px; font-size: .9rem; font-weight: 700; }
.scene-note { position: absolute; z-index: 3; right: 3vw; bottom: 18px; margin: 0; font-size: .78rem; }
#art, #motion { margin-left: 8px; border: 0; border-radius: 999px; background: rgba(16, 17, 22, .7); color: var(--ink); font: inherit; padding: 3px 12px; cursor: pointer; }

/* 首屏对比：换成 AI 生成的人物图 */
.screen.art-ai { background: linear-gradient(90deg, #070b14 9.5%, transparent 16%, transparent 89%, #070b14 91.5%), linear-gradient(#070b14 22%, transparent 48%), url("/img/ai-hero.jpg") center bottom / auto 76% no-repeat, #070b14; align-items: flex-start; }
.art-ai .figure { visibility: hidden; }
.art-ai .screen-text { padding-top: 96px; }
.art-ai .screen-text::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; background: linear-gradient(rgba(3, 6, 14, .75), rgba(3, 6, 14, .25) 80%, transparent); }
.art-ai h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }

/* 下面各栏：深色大圆角，结构简单 */
section.plain { padding: 90px 6vw 30px; scroll-margin-top: 74px; }
.head { text-align: center; max-width: 46em; margin: 0 auto 40px; }
.head h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); margin: 0 0 .3em; }
.head p { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border-radius: 24px; padding: 28px; transition: transform .18s, background .18s; }
.card:hover { background: #22252d; transform: translateY(-4px); }
.card ul { padding-left: 1.1em; margin: 0; }
.card p { margin: 0; }
.card h3 { margin: 0 0 .6em; }
#cleanup, [id^="use-"] { scroll-margin-top: 90px; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.table-wrap { overflow-x: auto; max-width: 1180px; margin: 0 auto; background: var(--panel); border-radius: 24px; padding: 8px 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink); }
td:first-child { width: 26%; color: var(--ink); font-weight: 700; }
.note { max-width: 1180px; margin: 16px auto; font-size: .9rem; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; }
.gallery img { grid-column: span 2; width: 100%; height: 220px; object-fit: cover; border-radius: 22px; }
.gallery img:nth-child(n + 4) { grid-column: span 3; }
.placeholder { aspect-ratio: 16 / 9; background: var(--panel); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); font-weight: 700; text-align: center; }
.placeholder small { color: var(--muted); font-weight: 400; }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1180px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border-radius: 20px; padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps span { font-size: .86rem; }

form { display: flex; flex-direction: column; gap: 16px; }
form#lead, form#agent { max-width: 860px; margin: 0 auto; background: var(--panel); border-radius: 28px; padding: 32px; }
form h3, form p { margin: 0; }
form label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--ink); }
input, textarea, select { font: inherit; font-weight: 400; color: var(--ink); background: #101116; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: #6b7086; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
legend { color: var(--ink); font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
form label.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.radio input { width: auto; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label.hp { position: absolute; left: -9999px; }
.btn { border: 0; border-radius: 999px; background: var(--accent); color: #fff; padding: 13px 32px; font: inherit; font-weight: 700; cursor: pointer; transition: filter .18s, transform .18s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.result { font-weight: 700; color: var(--ink); }
.faq { max-width: 860px; margin: 0 auto; }
details { background: var(--panel); border-radius: 18px; padding: 16px 24px; margin-bottom: 10px; }
summary { cursor: pointer; color: var(--ink); font-weight: 700; }
details p { margin: .7em 0 0; }

footer { margin-top: 90px; padding: 50px 6vw; border-top: 1px solid var(--line); background: #050509; font-size: .92rem; text-align: center; }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 14px; }
.office b { display: block; margin-bottom: 4px; }
.office p, .offices > p { margin: 2px 0; font-size: .9rem; overflow-wrap: anywhere; }
.office a { white-space: nowrap; }

.js .reveal > * { opacity: 0; transform: translateY(12px); transition: opacity .35s ease-out, transform .35s ease-out; }
.js .reveal.in > * { opacity: 1; transform: none; }

@media (max-width: 1220px) {
  .menu-top { padding: 0 9px; font-size: .92rem; }
  #nav a.btn { display: none; }
}
@media (max-width: 980px) {
  .top { height: 64px; padding: 0 14px; gap: 8px; }
  .top-right { gap: 8px; }
  .brand { font-size: 1.15rem; gap: 6px; }
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; max-height: calc(100vh - 64px); overflow-y: auto; background: #1a1b1f; border-radius: 0 0 20px 20px; flex-direction: column; align-items: stretch; padding: 6px 18px 18px; }
  #nav.open { display: flex; }
  .nav-ink, .drop-bg { display: none; }
  .menu { display: block; border-bottom: 1px solid var(--line); }
  .menu-top { width: 100%; text-align: left; padding: 13px 2px; }
  .panel { position: static; grid-template-columns: 1fr; gap: 4px; padding: 0; max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: none; transition: max-height .28s ease, opacity .2s, padding .28s, visibility .28s; }
  .menu.open .panel { max-height: 560px; padding: 0 0 12px; visibility: visible; opacity: 1; }
  .panel-lead { display: none; }
  #nav a.btn { display: block; margin: 14px 0 0; text-align: center; }
  .cols, .cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  section.plain { padding: 60px 14px 20px; }
  .cols, .cols.two, .cols.four, .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery img:nth-child(n + 4) { grid-column: span 1; }
  form.quick { flex-direction: column; border-radius: 24px; padding: 12px; }
  form.quick input { width: 100%; text-align: center; }
  form.quick button { width: 100%; }
  form#lead, form#agent { padding: 20px 14px; }
  .scene-note { right: 0; left: 0; text-align: center; }
  footer { padding: 36px 16px; }
}
@media (max-width: 480px) {
  .style-switch a { padding: 3px 6px; font-size: .74rem; }
  .brand { font-size: 1rem; }
  .globe { min-width: 0; height: 30px; padding: 0 5px; gap: 3px; font-size: .76rem; }
  #currency-now { display: none; }
  .menu-btn { padding: 4px 9px; font-size: .82rem; }
}

/* 地球图标语言切换 */
.locale { position: relative; }
.globe { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 58px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; font: inherit; font-size: .84rem; font-weight: 700; white-space: nowrap; background: transparent; color: var(--ink); cursor: pointer; transition: background .18s; }
.globe:hover { background: rgba(255, 255, 255, .14); }
.globe svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } }
.note-ai, .art-ai .note-a { display: none; }
.art-ai .note-ai { display: inline; }
@media (max-width: 700px) {
  .screen.art-ai { background: linear-gradient(#070b14 40%, transparent 60%), url("/img/ai-hero.jpg") center bottom / auto 52% no-repeat, #070b14; }
}
/* AI 图右下角有“AI生成”水印，说明和按钮挪到左边，不能盖住它 */
.art-ai .scene-note { right: auto; left: 3vw; }

/* 收费套餐 */
#pricing .cols { align-items: stretch; }
.pack { display: flex; flex-direction: column; }
.pack .price { margin: 0 0 14px; color: var(--muted); }
.pack .price b { font-size: 1.9rem; color: var(--ink); }
.pack ul { flex: 1; margin-bottom: 20px; }
.pack .btn { align-self: stretch; background: rgba(255, 255, 255, .12); }
.pack .btn:hover { background: var(--accent); }
#nav a.nav-link { align-self: center; padding: 0 17px; font-weight: 700; white-space: nowrap; }
@media (max-width: 1220px) { #nav a.nav-link { padding: 0 9px; font-size: .92rem; } }
@media (max-width: 980px) { #nav a.nav-link { align-self: stretch; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; } }
/* 五档套餐一排 */
.cols.five { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1320px; }
.cols.five .card { padding: 24px 20px; }
@media (max-width: 1220px) { .cols.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .cols.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cols.five { grid-template-columns: 1fr; } }
.pack .minutes { margin: 0 0 14px; color: var(--muted); }
.pack .minutes strong { font-size: 1.5rem; color: #8f9bff; }

/* 语言和货币列表 */
#currency-now { padding-left: 6px; border-left: 1px solid var(--line); font-weight: 400; }
.locale-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 30; width: min(320px, calc(100vw - 20px)); max-height: calc(100vh - 90px); overflow-y: auto; padding: 14px; background: #1a1b1f; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.locale-panel[hidden] { display: none; }
.locale-panel p { margin: 0 4px 6px; font-size: .78rem; color: var(--muted); }
.locale-panel .pick { display: grid; gap: 4px; margin-bottom: 14px; }
.locale-panel .pick:last-child { margin-bottom: 0; }
.pick.langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick.money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick button { padding: 7px 8px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: .86rem; text-align: left; white-space: nowrap; background: transparent; color: var(--ink); cursor: pointer; }
.pick button:hover { background: rgba(255, 255, 255, .1); }
.pick button[aria-pressed="true"] { border-color: var(--accent); background: rgba(74, 91, 255, .22); }
#currency-note[hidden] { display: none; }
/* 日文、韩文用各自的字体，避免套用中文字形 */
html[lang="ja"] body { font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
html[lang="ko"] body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; }

/* 页头登录入口和账号页 */
.account-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }
@media (max-width: 480px) { .account-link { font-size: .74rem; } }
.menu-btn[hidden], #nav[hidden] { display: none; }
[hidden].btn, [hidden].link, .auth [hidden] { display: none !important; }
body.account { background: var(--bg); }
.auth { max-width: 440px; margin: 0 auto; padding: 104px 16px 48px; }
.auth .box { background: #1a1b1f; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; }
.auth h1 { margin: 0 0 18px; font-size: 1.5rem; color: var(--ink); }
.auth h2 { margin: 24px 0 10px; font-size: 1.05rem; color: var(--ink); }
.auth label { display: block; margin-bottom: 14px; }
.auth input, .auth textarea { box-sizing: border-box; display: block; width: 100%; margin-top: 4px; }
.auth form .btn, .auth .google-btn { display: block; box-sizing: border-box; width: 100%; text-align: center; }
.auth .google-btn { background: #fff; color: #17181c; text-decoration: none; }
.auth .or { text-align: center; margin: 12px 0; }
.auth p { margin: 14px 0 0; }
.auth .link { border: 0; padding: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.auth .link.strong { color: var(--ink); font-weight: 700; }
.auth a { color: #8f9bff; }
.auth a.google-btn { color: #17181c; }
.auth .msg { margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; }
.auth .msg.ok { background: rgba(60, 190, 120, .16); color: #8ee0b4; }
.auth .msg.bad { background: rgba(255, 90, 90, .16); color: #ffaaaa; }
.auth .chosen { margin: 0 0 12px; color: var(--ink); }
.auth .requests { padding-left: 18px; margin: 0; }
.auth .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth .actions p { width: 100%; margin: 0; }
.auth .actions a.link { color: var(--muted); }
#resend { margin: 0 0 12px; }
#icp { text-align: center; }

/* 套餐配色：深色底，五档各一种强调色 */
.cols.five .pack { background: linear-gradient(165deg, var(--tint) 0%, #15161b 62%); border: 1px solid color-mix(in srgb, var(--tone) 33%, transparent); }
.cols.five .pack:nth-child(1) { --tone: #3a7bff; --tint: #14235c; }
.cols.five .pack:nth-child(2) { --tone: #18b6d6; --tint: #073a48; --on-tone: #0b0c10; }
.cols.five .pack:nth-child(3) { --tone: #8a4dff; --tint: #2a1260; }
.cols.five .pack:nth-child(4) { --tone: #ff3d6e; --tint: #520c26; }
.cols.five .pack:nth-child(5) { --tone: #ff9a2e; --tint: #512604; --on-tone: #0b0c10; }
.cols.five .pack h3, .cols.five .pack .minutes strong { color: var(--tone); }
.cols.five .pack .btn { background: var(--tone); color: var(--on-tone, #fff); }
.cols.five .pack .btn:hover { background: var(--tone); filter: brightness(1.14); }
/* 价格单位统一放在价格下面一行，五张卡对齐 */
.pack .price span { display: block; }

footer p { margin: 4px 0; }

/* 页脚社交链接 */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.social > * { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.social a:hover { border-color: var(--accent); background: rgba(74, 91, 255, .18); }
