/* 官网首页（多元宇宙短剧）。法律页等仍用 styles.css。 */
:root {
  --bg: #000; --card: #121214; --card-2: #1a1a1f; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --text: #f5f5f7; --text-2: #a1a1aa; --text-3: #6b6b74;
  --violet: #a855f7; --violet-soft: #c084fc; --pink: #ff4d8f; --cyan: #22d3ee; --amber: #fbbf24;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 800; }
.display { font-family: Sora, Inter, system-ui, sans-serif; letter-spacing: -0.03em; }
:lang(zh-Hans) .display, :lang(th) .display { letter-spacing: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .login:focus-visible, .lang-btn:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 40px rgba(168,85,247,.35); }
.btn-primary:hover { background: #b36bf8; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.eyebrow { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-soft); }

/* nav */
nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
nav.solid { background: rgba(0,0,0,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.logo img { width: 28px; height: 28px; object-fit: contain; }
nav .links { display: flex; gap: 26px; font-size: 14.5px; color: var(--text-2); }
nav .links a { white-space: nowrap; }
nav .links a:hover { color: var(--text); }
nav .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.login { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); padding: 0 8px; white-space: nowrap; }
.login:hover { color: var(--text); }
.login.is-user { color: var(--text); }
.login .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: #2a2a3e; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; box-shadow: 0 0 0 2px rgba(168,85,247,.55); }

.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-2); font: 500 13px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); border-color: var(--line-2); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; list-style: none; padding: 6px; background: #141418; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.6); z-index: 120; }
.lang-menu a { padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255,255,255,.05); color: var(--text); outline: none; }
.lang-menu a[aria-current="true"] { color: var(--text); }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.reel { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.reel .col { position: relative; overflow: hidden; }
.reel .strip { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; animation: drift 38s linear infinite; }
.reel .col:nth-child(2n) .strip { animation-direction: reverse; animation-duration: 46s; }
.reel img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); background: #111; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.92) 80%, #000 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0), rgba(0,0,0,.45)); }
.hero-copy { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: 56px; }
.hero-copy .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 92px); line-height: .98; max-width: 820px; }
:lang(th) .hero h1, :lang(th) h2.display { line-height: 1.25; }
:lang(zh-Hans) .hero h1 { line-height: 1.1; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #c084fc, #22d3ee 55%, #ff4d8f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 20px; font-size: 18px; color: #d4d4d8; max-width: 560px; }
.hero .ctas { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.hero .ctas .note { font-size: 12.5px; color: var(--text-3); text-align: center; }

section.block { padding: 120px 0; position: relative; }
#create, #freedom { padding-top: 40px; }
.head { max-width: 760px; }
.head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; margin-top: 14px; }
.head p { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 620px; }

/* 01 multiverse */
.verse { position: relative; margin-top: 48px; height: min(78vh, 720px); min-height: 520px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse 80% 70% at 50% 110%, #1a0f2e 0%, #07060c 55%, #000 100%); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.verse:active { cursor: grabbing; }
.verse canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.verse::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); pointer-events: none; z-index: 1; }
.verse .legend { position: absolute; left: 22px; bottom: 20px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); z-index: 2; }
.verse .legend span { display: inline-flex; align-items: center; gap: 7px; }
.verse .legend i { width: 18px; height: 3px; border-radius: 2px; display: block; }
.verse .legend i.dashed { background: repeating-linear-gradient(90deg, var(--amber) 0 5px, transparent 5px 8px); }
.verse .hint { position: absolute; right: 22px; bottom: 20px; font-size: 12.5px; color: var(--text-3); z-index: 2; }
.verse .float { position: absolute; z-index: 2; background: rgba(18,18,20,.78); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 14px; font-size: 13px; max-width: 260px; pointer-events: none; }
.verse .float b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.verse .float small { display: block; color: var(--text-2); }
.verse .float .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); margin: 8px 0 6px; overflow: hidden; }
.verse .float .bar i { display: block; height: 100%; width: 78%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 4px; animation: fund 4s ease-in-out infinite alternate; }
@keyframes fund { from { width: 52%; } to { width: 100%; } }
.verse .f1 { top: 24px; left: 24px; }
.verse .f2 { top: 24px; right: 24px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.mini { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 22px; }
.mini h3 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.mini p { font-size: 14px; color: var(--text-2); }
.ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }

/* 02 create */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.studio { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 28px; padding: 22px 22px 130px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; min-height: 480px; }
.studio .portrait { border-radius: 18px; overflow: hidden; position: relative; }
.studio .portrait img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; display: block; transition: opacity .3s; }
.studio .portrait .name { position: absolute; left: 10px; bottom: 10px; font-weight: 700; font-size: 15px; text-shadow: 0 2px 10px #000; }
.studio .looks { display: flex; gap: 6px; margin-top: 10px; }
.studio .looks img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; opacity: .55; border: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.studio .looks img.on { opacity: 1; border-color: var(--violet); }
.chat { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; }
.msg.me { align-self: flex-end; background: #2b1650; border: 1px solid rgba(168,85,247,.35); border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3); color: #e9d5ff; }
/* 有 JS 时逐条出现；没 JS / 减少动效时直接全显示 */
.js .step { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.js .step.show { opacity: 1; transform: none; }
.js .chips.step .chip { opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s; }
.js .chips.step.show .chip { opacity: 1; transform: none; }
.js .chips.step.show .chip:nth-child(2) { transition-delay: .12s; }
.js .chips.step.show .chip:nth-child(3) { transition-delay: .24s; }
.js .chips.step.show .chip:nth-child(4) { transition-delay: .36s; }
.seeds { position: absolute; left: -22px; bottom: -30px; width: 250px; height: 150px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10,8,16,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.seeds small { font-size: 11.5px; color: var(--text-2); }
.seeds svg { width: 100%; height: 110px; }
.list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; list-style: none; }
.list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: #d4d4d8; }
.list b { color: var(--text); }
.list .n { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; color: var(--violet-soft); }

/* 03 earn */
.earn { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 48px; }
.dash { border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, #15101f, #0b0b0e 60%); padding: 28px; position: relative; overflow: hidden; }
.dash .tag { position: absolute; top: 20px; right: 20px; font-size: 11px; color: var(--text-3); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.dash .big { font-size: 54px; font-weight: 800; margin-top: 6px; }
.dash .big small { font-size: 16px; color: #4ade80; font-weight: 600; margin-left: 10px; font-family: Inter, sans-serif; letter-spacing: 0; }
.dash svg { width: 100%; height: 150px; margin-top: 10px; }
.rows { margin-top: 12px; display: flex; flex-direction: column; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: #d4d4d8; }
.rows div span:last-child { color: var(--text); font-weight: 600; }
.ways { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.way { border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.way .ic { width: 46px; height: 46px; border-radius: 14px; }
.way h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.way p { color: var(--text-2); font-size: 14.5px; }
.zero { margin-top: 20px; display: flex; align-items: center; gap: 18px; border: 1px solid rgba(168,85,247,.35); background: rgba(168,85,247,.07); border-radius: 22px; padding: 20px 24px; }
.zero b { font-size: 18px; flex: none; }
.zero span { color: var(--text-2); font-size: 14.5px; }

/* 04 freedom */
.freedom { border-radius: 32px; border: 1px solid var(--line); overflow: hidden; position: relative; padding: 72px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(255,77,143,.22), transparent 60%), radial-gradient(ellipse 50% 70% at 10% 20%, rgba(168,85,247,.25), transparent 60%), #0a0a0d; }
.freedom h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1; margin-top: 14px; }
.freedom p { margin-top: 18px; color: #d4d4d8; font-size: 17px; max-width: 520px; }
.badge18 { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--text-2); }
.badge18 i { font-style: normal; font-weight: 700; border: 1.5px solid var(--pink); color: var(--pink); border-radius: 8px; padding: 1px 7px; }
.blurwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.blurwall div { border-radius: 14px; overflow: hidden; position: relative; }
.blurwall img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; display: block; }
.blurwall .locked img { filter: blur(14px) saturate(1.2); transform: scale(1.15); }
.blurwall .lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.blurwall .lock span { background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 999px; }

.final { text-align: center; padding: 140px 0 120px; position: relative; overflow: hidden; }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; }
.final p { color: var(--text-2); margin: 18px auto 0; max-width: 520px; font-size: 17px; }
.final .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 500px; max-width: 100%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(168,85,247,.25), transparent 65%); pointer-events: none; }

/* footer（Footer.astro 的结构） */
footer { border-top: 1px solid var(--line); padding: 36px 24px 48px; color: var(--text-3); font-size: 13px; }
.footer-inner { max-width: 1192px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner .logo { color: var(--text); }
.logo-dot { width: 24px; height: 24px; display: flex; }
.logo-dot img { width: 100%; height: 100%; object-fit: contain; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  nav .links { display: none; }
  .hero-copy .wrap { flex-direction: column; align-items: stretch; }
  .hero .ctas { min-width: 0; }
  .reel { grid-template-columns: repeat(2, 1fr); }
  .reel .col:nth-child(n+3) { display: none; }
  .three, .earn, .split, .freedom { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .studio { grid-template-columns: 1fr; }
  .studio .portrait { max-width: 200px; }
  .seeds { left: 12px; bottom: -40px; width: 220px; }
  .freedom { padding: 56px 22px 40px; }
  section.block { padding: 88px 0; }
  .verse .f2 { display: none; }
  .verse .float { max-width: 210px; font-size: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  nav .wrap { gap: 12px; }
  .login .login-text { display: none; }
  .login:not(.is-user) { display: none; }
  .hero p { font-size: 16px; }
  .zero { flex-direction: column; align-items: flex-start; }
  .verse .hint { display: none; }
  .verse { min-height: 460px; }
  .dash .big { font-size: 42px; }
}
@media (max-width: 380px) {
  .lang-btn svg { display: none; }
  .nav-start { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel .strip, .verse .float .bar i { animation: none; }
}
