:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #f3f3f4;
  background: #101012;
  color-scheme: dark;
  --surface: #1b1b1f;
  --brand-surface: #1f1f23;
  --muted: #b0b0b8;
}
* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; width: 100%; height: 100dvh; min-width: 320px; padding: 0 32px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible { outline: 2px solid #bea4ff; outline-offset: 4px; }
button { color: inherit; }
[hidden] { display: none !important; }
.preview-header, .preview-controls { width: 100%; min-width: 0; max-width: 1400px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.preview-header { height: 76px; font-size: 13px; }
.preview-name { font-size: 16px; font-weight: 600; }
.preview-name span { margin-left: 14px; font-size: 13px; font-weight: 400; color: var(--muted); }
.preview-note { color: var(--muted); }
main { width: 100%; max-width: 1400px; height: 100%; min-height: 0; min-width: 0; margin: auto; display: grid; align-items: center; }
.auth-dialog { position: relative; width: auto; max-width: 100%; aspect-ratio: 1400 / 789; justify-self: center; height: min(789px, 100%); min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(440px, 3fr); overflow: hidden; border-radius: 32px; background: var(--surface); }
.brand { min-width: 0; position: relative; background: var(--brand-surface); overflow: hidden; }
.brand-stage { position: absolute; left: 50%; top: 50%; width: 800px; height: 842px; transform: translate(-50%, -50%) scale(var(--scene-scale, .8)); }
.orbit-plane, .network-plane, .edge-plane { position: absolute; inset: 0; }
.orbit-plane { transform-origin: 398.502px 420px; }
.network-plane { z-index: 1; }
.edge-plane { will-change: transform; }
.connections { display: block; width: 100%; height: 100%; }
.orbit-plane img { position: absolute; left: -100px; top: -90px; display: block; width: 1000px; height: 1020px; max-width: none; }
.edge-plane { transform-origin: 0 0; }
.edge-plane svg { width: 100%; height: 100%; display: block; overflow: visible; }
#nodes { position: absolute; inset: 0; z-index: 1; }
.ring-shell { position: absolute; left: 143.502px; top: 165px; width: 510px; height: 510px; border-radius: 50%; overflow: hidden; contain: paint; transform: translateZ(0); }
#ring-texture { position: absolute; inset: 0; max-width: none; width: 510px; height: 510px; will-change: transform; }
.center-plane { position: absolute; left: 259.444px; top: 281.6px; width: 278.115px; height: 276.8px; border-radius: 50%; background: var(--brand-surface); overflow: hidden; transform: translateZ(0); }
.center-plane svg { width: 100%; height: 100%; display: block; }
.center-refracted { position: absolute; left: 8.402px; top: 30.264px; width: 262.396px; height: 214.421px; opacity: .3; }
.node-anchor { position: absolute; will-change: transform; }
.node { position: absolute; border-radius: 50%; background: var(--brand-surface); border: var(--node-border) solid var(--node-color); will-change: transform; }
.node::after { content: ""; position: absolute; width: 50%; height: 50%; left: 25%; top: 25%; border-radius: 50%; background: var(--node-color); }
.flow-packet { position: absolute; left: 0; top: 0; width: 19px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--flow-color) 48%, #fff); will-change: transform; } /* taste-skill-ignore: 沿用 UI demo 的流光拖尾，仅限连线光点。 */
.brand-copy { position: absolute; z-index: 1; top: 6.5%; left: 28px; right: 28px; text-align: center; }
.brand-copy h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 650; letter-spacing: .015em; margin: 0 0 9px; line-height: 1.35; }
.brand-copy p { color: #d0d0d5; font-size: 17px; margin: 0; }
.brand-player { position: absolute; top: 402px; left: 286px; width: 227.059px; height: 32.941px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.audio-toggle { width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #343439; transition: background 180ms; }
.audio-toggle:hover { background: #46464d; }
.audio-toggle svg { width: 21px; height: 21px; }
.brand-player .audio-toggle { position: relative; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; background: #ffffff0d; -webkit-backdrop-filter: blur(6.667px) saturate(1.15); backdrop-filter: blur(6.667px) saturate(1.15); box-shadow: inset .5px .5px 1px #ffffff24, inset -.5px -.5px 1px #0000002e; } /* taste-skill-ignore: Figma 32px GLASS 播放按钮的局部透底与边缘高光。 */
.brand-player .audio-toggle:hover { background: #ffffff16; }
.brand-player .audio-toggle::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.brand-player .audio-toggle svg { width: 16px; height: 16px; position: relative; }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.waveform { width: 187.059px; height: 32.941px; overflow: visible; color: #fff; }
.brand-features { position: absolute; bottom: 4%; left: 35px; right: 35px; display: grid; grid-template-columns: repeat(7, max-content); justify-content: space-between; font-size: 13px; line-height: 1.5; color: #dddddf; }
.brand-features span { white-space: nowrap; }
.account-panel { position: relative; min-width: 0; min-height: 0; display: grid; place-items: start center; padding: clamp(52px, 7vh, 94px) 44px 40px; overflow-y: auto; }
.account-atmosphere-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.account-atmosphere-layer img { position: absolute; left: 50%; top: 50%; width: 177.6667%; height: auto; max-width: none; transform: translate(-50%, -50%) rotate(90deg); opacity: .05; }
.account-content { position: relative; width: 100%; max-width: 380px; }
.account-heading { text-align: center; margin-bottom: 34px; }
.wordmark { display: flex; justify-content: center; align-items: center; gap: 2px; height: 48px; }
.wordmark img { object-fit: contain; }
.wordmark img:first-child { width: 42px; height: 42px; }
.wordmark img:last-child { width: 200px; height: 45px; }
.account-heading h1 { font-size: 18px; font-weight: 400; letter-spacing: .12em; color: #b7b7bd; margin: 18px 0 0; line-height: 1.5; }
.icon-button { background: none; border: 0; padding: 10px; display: grid; place-items: center; color: #bfbfc8; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.close-button { position: absolute; z-index: 1; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: #252529; color: #eeeef0; }
.close-button:hover { background: #343439; }
.account-tabs { display: flex; position: relative; height: 44px; border-radius: 8px; padding: 4px; background: #252528; margin-bottom: 28px; }
.account-tabs button { position: relative; z-index: 1; width: 50%; border: 0; background: none; border-radius: 5px; font-size: 14px; color: #d7d7dc; font-weight: 500; }
.account-tabs button[aria-selected="true"] { color: #222225; }
.tab-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 5px; background: #f4f4f6; }
.fields { display: grid; gap: 19px; }
.field { display: grid; gap: 9px; font-size: 13px; color: #ccccd2; }
.field > input, .password-input, .code-input { width: 100%; min-width: 0; height: 48px; border-radius: 7px; background: #28282c; border: 1px solid transparent; transition: border-color 120ms, background 120ms; }
.field input { width: 100%; min-width: 0; padding: 0 14px; outline: none; color: #f0f0f4; font-size: 15px; }
.field input::placeholder { color: #a5a5af; font-size: 13px; }
.field > input:focus, .password-input:focus-within, .code-input:focus-within { border-color: #9b78ed; background: #2b2b30; }
.password-input, .code-input { display: flex; align-items: stretch; }
.password-input input, .code-input input { border: 0; background: none; }
.password-toggle { width: 44px; min-width: 44px; padding: 0; }
.eye-slash { opacity: .8; }
.password-visible .eye-slash { display: none; }
.code-input button { padding: 0 12px; white-space: nowrap; border: 0; background: none; color: #c2a8ff; font-size: 13px; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 28px; font-size: 13px; }
.login-options label { display: flex; align-items: center; gap: 7px; color: #d2d2d8; cursor: pointer; }
.login-options input { accent-color: #9162ed; width: 14px; height: 14px; margin: 0; }
.text-button { border: 0; background: none; color: #c2a8ff; padding: 5px 0; font-size: 13px; }
.submit-button { width: 100%; height: 48px; border: 0; border-radius: 7px; background: #8145c5; color: #fff; font-size: 14px; font-weight: 600; transition: background 180ms, transform 140ms; }
.submit-button:hover { background: #9254d7; }
.submit-button:active { transform: translateY(1px); }
.form-message { min-height: 20px; line-height: 20px; margin: 10px 0 0; color: #c6b1f5; font-size: 12px; }
.terms { font-size: 13px; line-height: 1.8; text-align: center; color: #aaaab3; margin: 8px 0 0; }
.term-link { font-size: inherit; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: #d0d0d7; }
.mobile-audio { display: none; }
.preview-controls { min-height: 80px; padding: 16px 0; font-size: 12px; color: var(--muted); }
.preview-controls > p { margin: 0; min-width: 0; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-actions { display: flex; align-items: center; gap: 8px; }
.review-actions > button, .tuning summary { background: #202024; border: 0; color: #d0d0d8; border-radius: 6px; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
.review-actions > button:hover, .tuning summary:hover { background: #2c2c32; }
.review-actions > button[aria-pressed="true"] { color: #fff; background: #4b3768; }
.tuning { position: relative; }
.tuning summary { list-style: none; cursor: pointer; }
.tuning summary::-webkit-details-marker { display: none; }
.tuning-panel { position: absolute; bottom: 46px; right: 0; width: 282px; padding: 20px; background: #303035; border-radius: 10px; color: #e2e2e7; z-index: 4; }
.tuning-panel label { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.tuning-panel input { width: 118px; accent-color: #b49adf; }
.tuning-panel output { min-width: 26px; font-variant-numeric: tabular-nums; }
.tuning-panel p { margin-top: 16px; line-height: 1.8; color: #bdbdc6; white-space: normal; }
.reopen-button { justify-self: center; border: 0; border-radius: 7px; padding: 14px 26px; background: #8145c5; color: #fff; }
@media (max-width: 1199px), (max-height: 650px) {
  .auth-dialog { width: 100%; aspect-ratio: auto; max-width: 560px; margin: auto; grid-template-columns: minmax(0, 1fr); }
  .brand { display: none; }
  .account-panel { padding-top: 86px; }
  .mobile-audio { display: flex; justify-content: center; margin-top: 24px; }
  .mobile-audio .audio-toggle { display: block; width: auto; height: 32px; flex: none; border-radius: 0; background: none; }
}
@media (max-width: 767px) {
  body { padding: 0; background: var(--surface); }
  .preview-header { padding: 16px 20px; height: auto; min-height: 70px; }
  .preview-note { display: none; }
  .preview-name { font-size: 15px; }
  .preview-name span { margin-left: 8px; font-size: 12px; }
  .auth-dialog { height: 100%; border-radius: 0; max-width: none; }
  .account-panel { padding: 40px 24px 24px; }
  .close-button { top: 0; right: 14px; }
  .account-heading { margin-bottom: 30px; }
  .wordmark img:first-child { width: 36px; height: 36px; }
  .wordmark img:last-child { width: 180px; height: 40px; }
  .field input { font-size: 16px; }
  .login-options label { min-height: 32px; }
  .preview-controls { padding: 16px 20px 24px; flex-direction: column; align-items: stretch; gap: 12px; }
  .review-actions { flex-wrap: wrap; }
  .review-actions > button, .tuning summary { min-height: 40px; padding: 10px; }
  .tuning-panel { position: fixed; right: 20px; left: auto; bottom: 82px; width: min(282px, calc(100vw - 40px)); }
  .terms { font-size: 13px; }
  .preview-controls, .review-actions > button, .tuning summary { font-size: 13px; }
}
@media (max-height: 820px) and (min-width: 768px) {
  .preview-header { height: 54px; }
  .preview-controls { min-height: 58px; padding: 10px 0; }
  .account-panel { padding-top: 44px; padding-bottom: 22px; }
  .account-heading { margin-bottom: 22px; }
  .account-heading h1 { margin-top: 10px; }
  .account-tabs { margin-bottom: 18px; }
  .fields { gap: 15px; }
  .login-options { margin: 12px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
