:root {
  --ink: #17213a;
  --muted: #78849a;
  --line: #e4e9f2;
  --canvas: #f3f6fb;
  --panel: #ffffff;
  --blue: #3168df;
  --blue-dark: #244cad;
  --blue-pale: #eff4ff;
  --green: #25aa78;
  --orange: #ef8a42;
  --danger: #d75a63;
  --shadow: 0 18px 45px rgba(38, 61, 100, .09);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; color: var(--muted); gap: 12px; }
.boot-mark, .brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 13px; font-weight: 900; font-size: 19px; background: linear-gradient(145deg, #4c80ee, #264fc1); box-shadow: 0 10px 22px rgba(42, 86, 199, .25); }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.auth-hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 110px); color: #fff; background: linear-gradient(135deg, #172b55, #284f9e 60%, #416fce); }
.auth-hero:before, .auth-hero:after { position: absolute; content: ""; border-radius: 50%; opacity: .17; background: #c8d9ff; }
.auth-hero:before { width: 460px; height: 460px; top: -220px; right: -140px; }.auth-hero:after { width: 340px; height: 340px; left: -160px; bottom: -150px; }
.auth-hero-content { position: relative; z-index: 1; max-width: 570px; }.hero-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }.hero-brand .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.hero-kicker { margin: 78px 0 13px; color: #a9c5ff; letter-spacing: .14em; font-size: 11px; font-weight: 800; }.auth-hero h1 { max-width: 570px; margin: 0; font-size: clamp(35px, 4.1vw, 60px); line-height: 1.18; letter-spacing: -.03em; }.auth-hero p { max-width: 480px; margin: 22px 0 0; color: #d9e5ff; line-height: 1.85; font-size: 15px; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 48px; }.hero-points div { padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(10, 29, 70, .15); font-size: 12px; line-height: 1.55; }.hero-points b { display: block; margin-bottom: 4px; color: #fff; font-size: 13px; }
.auth-card-wrap { display: grid; align-items: center; padding: 38px; background: #fff; }.auth-card { width: min(100%, 420px); margin: auto; }.auth-card h2 { margin: 0 0 7px; font-size: 28px; }.auth-card > p { margin: 0 0 27px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: 10px; background: #f0f3f8; }.auth-tabs button { border: 0; border-radius: 8px; padding: 10px; color: #718096; background: transparent; font-size: 13px; font-weight: 800; }.auth-tabs button.active { color: var(--blue-dark); background: #fff; box-shadow: 0 2px 8px rgba(24, 48, 91, .09); }
.form-stack { display: grid; gap: 13px; }.field-label { display: block; margin: 0 0 6px; color: #5e6d83; font-size: 12px; font-weight: 800; }.field input, .field textarea, .field select { width: 100%; border: 1px solid #d7e0ee; border-radius: 10px; outline: none; color: var(--ink); background: #fff; }.field input, .field select { height: 43px; padding: 0 12px; }.field textarea { min-height: 120px; resize: vertical; padding: 12px; line-height: 1.65; }.field input:focus, .field textarea:focus, .field select:focus { border-color: #77a1f1; box-shadow: 0 0 0 3px rgba(77, 126, 231, .12); }
.primary-button, .secondary-button, .ghost-button, .danger-button, .inline-button { border: 0; border-radius: 10px; font-weight: 800; }.primary-button { padding: 12px 16px; color: #fff; background: linear-gradient(135deg, #477bed, #2a5aca); box-shadow: 0 9px 18px rgba(39, 83, 193, .2); }.primary-button:disabled { opacity: .6; cursor: wait; }.secondary-button { padding: 10px 13px; color: #2856b6; background: #eaf1ff; }.ghost-button { padding: 8px 10px; color: #315fba; border: 1px solid #d9e5fb; background: #fff; }.danger-button { padding: 7px 9px; color: var(--danger); border: 1px solid #f1d5d8; background: #fff8f8; font-size: 11px; }.inline-button { padding: 7px 9px; color: #315fba; border: 1px solid #d7e3fa; background: #f7faff; font-size: 11px; }.form-stack .primary-button { margin-top: 5px; }
.auth-foot { margin-top: 20px; color: #8b96a8; font-size: 11px; line-height: 1.65; }.setup-note { margin: 0 0 17px; padding: 11px 12px; border-radius: 9px; color: #76521d; background: #fff7e6; font-size: 12px; line-height: 1.6; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 14px; border-right: 1px solid #e1e7f0; background: #fff; }.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 24px; }.sidebar-brand .brand-mark { width: 35px; height: 35px; border-radius: 10px; font-size: 15px; }.sidebar-brand b { display: block; font-size: 15px; }.sidebar-brand span { display: block; margin-top: 3px; color: #8c98a9; font-size: 10px; letter-spacing: .08em; }.nav-group { display: grid; gap: 5px; }.nav-button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 10px; padding: 10px 12px; color: #637188; background: transparent; text-align: left; font-size: 13px; font-weight: 700; }.nav-button:hover { background: #f5f7fb; }.nav-button.active { color: #2455b9; background: #eaf1ff; }.nav-button .nav-icon { width: 19px; text-align: center; }.nav-section { margin: 21px 11px 7px; color: #a0a9b7; font-size: 10px; letter-spacing: .12em; font-weight: 800; }.sidebar-bottom { position: absolute; right: 14px; bottom: 20px; left: 14px; padding: 12px; border-radius: 12px; background: #f5f7fb; }.sidebar-bottom b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.sidebar-bottom span { display: block; margin: 4px 0 10px; color: var(--muted); font-size: 11px; }.logout-button { width: 100%; border: 0; padding: 7px; color: #6d7b90; background: transparent; font-size: 11px; }
.portal-main { min-width: 0; padding: 28px clamp(18px, 4vw, 52px) 52px; }.topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }.page-kicker { margin: 0 0 5px; color: #8591a5; font-size: 10px; letter-spacing: .13em; font-weight: 800; }.page-title { margin: 0; font-size: 26px; }.top-status { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; color: #438262; background: #ecf9f1; font-size: 11px; font-weight: 700; }.dot { width: 7px; height: 7px; border-radius: 50%; background: #36bb7d; }.dot.off { background: #d49852; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }.stat-card, .panel, .plan-card { border: 1px solid #e6ebf3; border-radius: 16px; background: #fff; box-shadow: 0 7px 19px rgba(39, 61, 97, .035); }.stat-card { padding: 18px; }.stat-card span { display: block; color: #8390a3; font-size: 11px; }.stat-card b { display: block; margin-top: 7px; font-size: 23px; }.stat-card em { display: block; margin-top: 6px; color: #5574ad; font-style: normal; font-size: 11px; }
.panel { padding: 20px; }.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 15px; }.panel-head h3 { margin: 0; font-size: 16px; }.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .8fr); gap: 18px; }.mini-info { display: grid; gap: 10px; }.mini-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed #e6eaf1; color: #637087; font-size: 12px; }.mini-line b { color: var(--ink); }.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; color: #2c865e; background: #e9f8ef; font-size: 11px; font-weight: 800; }.badge.expired { color: #9a6a29; background: #fff2df; }.referral-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border: 1px dashed #a9c2f6; border-radius: 10px; color: #275bc2; background: #f5f8ff; font-family: Consolas, monospace; font-size: 16px; font-weight: 800; }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.plan-card { position: relative; padding: 20px; overflow: hidden; }.plan-card.featured { border-color: #82a8f5; box-shadow: 0 14px 30px rgba(61, 111, 220, .12); }.plan-card.featured:after { position: absolute; top: 11px; right: -25px; padding: 4px 29px; color: #fff; background: #4174df; content: "推荐"; transform: rotate(40deg); font-size: 10px; }.plan-card h3 { margin: 0; font-size: 16px; }.plan-price { margin: 13px 0 3px; color: #295dcc; font-size: 30px; font-weight: 900; }.plan-price small { font-size: 13px; }.plan-card p { min-height: 38px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }.plan-list { display: grid; gap: 7px; margin: 0 0 17px; padding: 0; list-style: none; color: #596a83; font-size: 11px; }.plan-list li:before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 900; }.plan-card .primary-button { width: 100%; }.live-plan-card { border-color: rgba(93, 224, 255, .55); }.live-plan-code { display: grid; gap: 6px; margin: 0 0 13px; color: var(--muted); font-size: 11px; }.live-plan-code input { width: 100%; min-height: 39px; padding: 9px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; outline: 0; background: var(--field); }.live-plan-code input:focus { border-color: #6c9cff; box-shadow: 0 0 0 3px rgba(103, 126, 255, .16); }
.studio-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.25fr); gap: 18px; }.composer-panel { display: grid; align-content: start; gap: 14px; }.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.smart-info { padding: 11px 12px; border: 1px solid #d6e3ff; border-radius: 10px; color: #4269a9; background: #f4f7ff; font-size: 12px; line-height: 1.65; }.action-row { display: flex; gap: 8px; flex-wrap: wrap; }.action-row > button { flex: 1; min-width: 135px; }.output-panel { min-height: 620px; display: flex; flex-direction: column; }.output-area { flex: 1; min-height: 470px; max-height: 720px; margin: 0; overflow: auto; padding: 16px; white-space: pre-wrap; word-break: break-word; border-radius: 11px; color: #293750; background: #f6f8fb; font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 12px; line-height: 1.75; }.empty-output { display: grid; place-items: center; min-height: 470px; color: #8b97a9; text-align: center; }.empty-output b { display: block; margin-bottom: 8px; color: #63738d; font-size: 14px; }.hint-box { padding: 12px; border-radius: 10px; color: #7c683c; background: #fff8e9; font-size: 12px; line-height: 1.65; }
.table-wrap { overflow: auto; }.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }.data-table th { padding: 10px; color: #8793a6; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; }.data-table td { padding: 11px 10px; border-bottom: 1px solid #eef1f5; color: #516076; white-space: nowrap; }.data-table td strong { color: var(--ink); }.status-paid { color: #23885e; }.status-pending { color: #c77b28; }.admin-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: 18px; }.key-pool { display: grid; gap: 8px; }.key-item { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e5eaf2; border-radius: 10px; color: #56647b; font-size: 12px; }.key-item b { color: #263755; }.key-item span { flex: 1; color: #8491a3; font-family: Consolas, monospace; font-size: 11px; }.key-item button { flex: 0 0 auto; }.notice { padding: 11px 12px; border-radius: 10px; color: #7f6733; background: #fff6e4; font-size: 12px; line-height: 1.6; }
.toast { position: fixed; z-index: 20; bottom: 25px; left: 50%; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 10px; color: #fff; background: #223450; box-shadow: 0 12px 30px rgba(25, 42, 75, .26); opacity: 0; transform: translate(-50%, 16px); transition: .2s ease; pointer-events: none; font-size: 13px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1040px) { .auth-page { grid-template-columns: 1fr; }.auth-hero { min-height: 360px; padding: 45px 30px; }.hero-kicker { margin-top: 45px; }.auth-hero h1 { font-size: 38px; }.auth-card-wrap { padding: 38px 24px; }.portal { grid-template-columns: 1fr; }.sidebar { position: static; height: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow: auto; }.sidebar-brand { flex: 0 0 auto; padding: 0 10px 0 0; }.nav-group { display: flex; gap: 5px; }.nav-button { width: auto; white-space: nowrap; }.nav-section, .sidebar-bottom { display: none; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .studio-layout, .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .portal-main { padding: 20px 14px 35px; }.page-title { font-size: 22px; }.topline { align-items: flex-start; flex-direction: column; }.stats-grid, .plans-grid { grid-template-columns: 1fr; }.hero-points { grid-template-columns: 1fr; }.auth-hero { min-height: auto; }.auth-hero p { font-size: 13px; }.two-fields { grid-template-columns: 1fr; }.output-panel { min-height: 480px; }.output-area { min-height: 360px; }.sidebar { align-items: flex-start; flex-direction: column; }.nav-group { width: 100%; overflow-x: auto; }.sidebar-brand span { display: none; } }

/* 黑白高对比视觉系统 */
:root {
  --ink: #f8fafc;
  --muted: #aeb5c0;
  --line: rgba(255, 255, 255, .15);
  --canvas: #07080a;
  --panel: rgba(16, 18, 23, .86);
  --panel-solid: #12151a;
  --field: #0c0e12;
  --field-hover: #151922;
  --blue: #f8fafc;
  --blue-dark: #07080a;
  --blue-pale: rgba(255, 255, 255, .1);
  --green: #6de3bd;
  --orange: #f3ce7a;
  --danger: #ff9c9c;
  --shadow: 0 22px 60px rgba(0, 0, 0, .4);
}
html[data-theme="light"] {
  --ink: #111318;
  --muted: #596170;
  --line: rgba(16, 20, 28, .16);
  --canvas: #f3f4f6;
  --panel: rgba(255, 255, 255, .9);
  --panel-solid: #ffffff;
  --field: #ffffff;
  --field-hover: #f6f7f9;
  --blue: #111318;
  --blue-dark: #ffffff;
  --blue-pale: rgba(17, 19, 24, .08);
  --green: #087f57;
  --orange: #9d6711;
  --danger: #bb3036;
  --shadow: 0 22px 60px rgba(15, 23, 42, .12);
}
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; color: var(--ink); background: var(--canvas); letter-spacing: .01em; }
body::before { position: fixed; z-index: -2; inset: 0; content: ""; opacity: .36; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
html[data-theme="light"] body::before { opacity: .42; background-image: linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px); }
body::after { position: fixed; z-index: -3; top: -35vh; right: -20vw; width: 70vw; height: 70vw; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 65%); filter: blur(8px); pointer-events: none; }
html[data-theme="light"] body::after { background: radial-gradient(circle, rgba(17,19,24,.08), transparent 65%); }
a { color: inherit; text-underline-offset: 3px; }
.boot-screen { color: var(--muted); background: var(--canvas); }
.boot-mark, .brand-mark { color: var(--blue-dark); border: 1px solid var(--line); background: var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.28); }

.auth-page { position: relative; min-height: 100vh; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr); background: var(--canvas); }
.auth-hero { display: grid; align-content: center; min-height: 100vh; padding: clamp(44px, 9vw, 130px); overflow: hidden; color: var(--ink); border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.055), transparent 40%), var(--canvas); }
.auth-hero::before { width: min(54vw, 650px); height: min(54vw, 650px); top: -250px; right: -220px; border: 1px solid rgba(255,255,255,.22); opacity: 1; background: repeating-radial-gradient(circle, transparent 0 35px, rgba(255,255,255,.08) 36px 37px); }
.auth-hero::after { width: 620px; height: 2px; bottom: 20%; left: -150px; border-radius: 0; opacity: .5; background: linear-gradient(90deg, transparent, var(--ink), transparent); transform: rotate(-24deg); }
html[data-theme="light"] .auth-hero::before { border-color: rgba(0,0,0,.2); background: repeating-radial-gradient(circle, transparent 0 35px, rgba(0,0,0,.065) 36px 37px); }
.auth-hero-content { max-width: 620px; }
.hero-brand { color: var(--ink); font-size: 14px; letter-spacing: .08em; }
.hero-brand .brand-mark { color: var(--blue-dark); background: var(--ink); }
.hero-kicker, .page-kicker { color: var(--muted); font-size: 10px; letter-spacing: .22em; }
.hero-kicker { margin: 74px 0 16px; }
.auth-hero h1 { color: var(--ink); font-size: clamp(38px, 4.4vw, 66px); font-weight: 850; letter-spacing: -.05em; }
.auth-hero h1::after { display: block; width: 56px; height: 4px; margin-top: 25px; content: ""; background: var(--ink); }
.auth-hero p { color: var(--muted); font-size: 15px; }
.hero-points { gap: 11px; margin-top: 52px; }
.hero-points div { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.035); backdrop-filter: blur(10px); }
.hero-points b { color: var(--ink); }
.auth-theme-toggle { position: absolute; z-index: 3; top: 24px; right: 24px; }
.auth-card-wrap { position: relative; padding: clamp(28px, 5vw, 72px); background: transparent; }
.auth-card { position: relative; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card::before { position: absolute; top: -1px; left: 28px; width: 76px; height: 3px; content: ""; background: var(--ink); }
.auth-card h2 { color: var(--ink); font-size: 30px; letter-spacing: -.04em; }
.auth-card > p, .auth-foot { color: var(--muted); }
.auth-tabs { border: 1px solid var(--line); border-radius: 3px; background: var(--field); }
.auth-tabs button { color: var(--muted); border-radius: 2px; }
.auth-tabs button.active { color: var(--blue-dark); background: var(--ink); box-shadow: none; }
.field-label { color: var(--ink); letter-spacing: .04em; }
.field input, .field textarea, .field select { color: var(--ink); border-color: var(--line); border-radius: 3px; background: var(--field); transition: .18s ease; }
.field input:hover, .field textarea:hover, .field select:hover { background: var(--field-hover); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
html[data-theme="light"] .field input:focus, html[data-theme="light"] .field textarea:focus, html[data-theme="light"] .field select:focus { box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
::placeholder { color: var(--muted); opacity: .72; }
.primary-button, .secondary-button, .ghost-button, .danger-button, .inline-button { border-radius: 3px; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.primary-button { color: var(--blue-dark); background: var(--ink); box-shadow: none; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(.92); }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.ghost-button { color: var(--ink); border-color: var(--line); border-radius: 3px; background: transparent; }
.ghost-button:hover, .secondary-button:hover { border-color: var(--ink); background: var(--blue-pale); }
.inline-button { color: var(--ink); border-color: var(--line); border-radius: 3px; background: var(--blue-pale); }
.danger-button { color: var(--danger); border-color: rgba(255,156,156,.38); border-radius: 3px; background: transparent; }
.setup-note, .notice, .hint-box, .smart-info { color: var(--muted); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 3px; background: rgba(255,255,255,.045); }

.portal { grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { z-index: 2; border-right-color: var(--line); background: rgba(9,10,13,.82); backdrop-filter: blur(18px); }
html[data-theme="light"] .sidebar { background: rgba(255,255,255,.82); }
.sidebar-brand { padding-bottom: 30px; color: var(--ink); }
.sidebar-brand b { color: var(--ink); letter-spacing: -.02em; }.sidebar-brand span { color: var(--muted); }
.nav-group { gap: 7px; }
.nav-button { color: var(--muted); border: 1px solid transparent; border-radius: 3px; }
.nav-button:hover { color: var(--ink); border-color: var(--line); background: var(--blue-pale); }
.nav-button.active { color: var(--blue-dark); border-color: var(--ink); background: var(--ink); }
.nav-section { color: var(--muted); }.sidebar-bottom { border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--panel); }.sidebar-bottom b { color: var(--ink); }.sidebar-bottom span, .logout-button { color: var(--muted); }.logout-button:hover { color: var(--ink); }
.portal-main { padding: 34px clamp(18px, 4vw, 58px) 60px; }
.topline { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.page-title { color: var(--ink); font-size: 30px; letter-spacing: -.04em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.theme-toggle:hover { border-color: var(--ink); background: var(--blue-pale); }
.top-status { color: var(--ink); border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }.dot { background: var(--green); }.dot.off { background: var(--orange); }
.stat-card, .panel, .plan-card { border-color: var(--line); border-radius: 4px; background: var(--panel); box-shadow: 0 12px 30px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.stat-card { position: relative; overflow: hidden; }.stat-card::after { position: absolute; top: 0; right: 0; width: 35px; height: 35px; content: ""; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); opacity: .45; }.stat-card span, .stat-card em { color: var(--muted); }.stat-card b { color: var(--ink); }
.panel-head h3 { color: var(--ink); }.panel-head p { color: var(--muted); }.mini-line { color: var(--muted); border-bottom-color: var(--line); }.mini-line b { color: var(--ink); }.badge { color: var(--blue-dark); border-radius: 3px; background: var(--green); }.badge.expired { color: var(--blue-dark); background: var(--orange); }
.referral-code { color: var(--ink); border-color: var(--line); border-radius: 3px; background: var(--field); }
.plan-card { border-radius: 4px; }.plan-card.featured { border-color: var(--ink); box-shadow: 0 18px 44px rgba(0,0,0,.25); }.plan-card.featured::after { color: var(--blue-dark); background: var(--ink); }.plan-card h3, .plan-price { color: var(--ink); }.plan-card p, .plan-list { color: var(--muted); }.plan-list li::before { color: var(--green); }
.smart-info { color: var(--muted); }.output-panel { background: var(--panel-solid); }.output-area { color: var(--ink); border: 1px solid var(--line); border-radius: 3px; background: #080a0e; }.empty-output { color: var(--muted); }.empty-output b { color: var(--ink); }
html[data-theme="light"] .output-area { background: #f7f8fa; }
.data-table { color: var(--ink); }.data-table th { color: var(--muted); border-bottom-color: var(--line); background: rgba(255,255,255,.035); }.data-table td { color: var(--muted); border-bottom-color: var(--line); }.data-table tbody tr { transition: background .14s ease; }.data-table tbody tr:hover { background: var(--blue-pale); }.data-table td strong { color: var(--ink); }.status-paid { color: var(--green); font-weight: 800; }.status-pending { color: var(--orange); font-weight: 800; }.key-item { color: var(--muted); border-color: var(--line); border-radius: 3px; background: var(--field); }.key-item b { color: var(--ink); }.key-item span { color: var(--muted); }.toast { color: var(--blue-dark); border: 1px solid var(--line); border-radius: 3px; background: var(--ink); box-shadow: var(--shadow); }

@media (max-width: 1040px) { .auth-page { grid-template-columns: 1fr; }.auth-hero { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); }.auth-card-wrap { background: transparent; }.top-actions { width: 100%; justify-content: space-between; }.sidebar { background: var(--panel-solid); } }
@media (max-width: 620px) { .auth-hero { min-height: 380px; padding: 34px 24px; }.hero-kicker { margin-top: 56px; }.auth-hero h1 { font-size: 38px; }.auth-card-wrap { padding: 18px 14px 38px; }.auth-card { padding: 26px 20px; }.topline { gap: 15px; }.top-actions { align-items: flex-start; flex-direction: column-reverse; }.theme-toggle { min-height: 38px; }.stats-grid { gap: 10px; }.stat-card { min-height: 112px; }.portal-main { padding: 22px 14px 38px; } }

/* 登录页动态氛围与细节交互 */
.auth-effects { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.star-field { position: absolute; inset: -30%; opacity: .68; background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.5px); background-position: 0 0, 26px 42px, 72px 16px; background-size: 94px 94px, 131px 131px, 173px 173px; animation: star-drift 25s linear infinite; }
html[data-theme="light"] .star-field { opacity: .35; background-image: radial-gradient(circle, rgba(0,0,0,.8) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(0,0,0,.42) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(0,0,0,.28) 0 1px, transparent 1.5px); }
.flow-line { position: absolute; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent); box-shadow: 0 0 10px rgba(255,255,255,.8), 0 0 25px rgba(255,255,255,.42); transform: rotate(-25deg); animation: flow-sweep 8s cubic-bezier(.2,.75,.2,1) infinite; }
.flow-line-one { top: 24%; left: -40%; width: 58%; animation-delay: 1.2s; }.flow-line-two { top: 71%; left: -48%; width: 72%; animation-delay: 5.4s; }
html[data-theme="light"] .flow-line { background: linear-gradient(90deg, transparent, rgba(0,0,0,.75), transparent); box-shadow: 0 0 9px rgba(0,0,0,.32); }
.wave-layer { position: absolute; left: -20%; width: 145%; height: 260px; border: 1px solid rgba(255,255,255,.18); border-bottom: 0; border-radius: 50% 50% 0 0; opacity: .58; transform-origin: center bottom; }
.wave-layer-one { bottom: -180px; animation: wave-breathe 8s ease-in-out infinite; }.wave-layer-two { bottom: -205px; border-color: rgba(255,255,255,.09); animation: wave-breathe 10s ease-in-out -3s infinite reverse; }
html[data-theme="light"] .wave-layer { border-color: rgba(0,0,0,.18); }.auth-hero-content { animation: hero-arrive .75s cubic-bezier(.2,.8,.2,1) both; }.auth-card { animation: card-arrive .72s .08s cubic-bezier(.2,.8,.2,1) both; }
.field { transition: transform .18s ease; }.field:focus-within { transform: translateX(3px); }.field:focus-within .field-label { color: var(--ink); }.field:focus-within input, .field:focus-within textarea, .field:focus-within select { border-color: var(--ink); background: var(--field-hover); }
.password-control { position: relative; display: block; }.password-control input { padding-right: 46px; }.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; color: var(--muted); border: 0; border-radius: 3px; background: transparent; transform: translateY(-50%); font-size: 17px; line-height: 1; }.password-toggle:hover { color: var(--ink); background: var(--blue-pale); }.password-control:focus-within .password-toggle { color: var(--ink); }
.primary-button.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: wait; }.button-spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner .65s linear infinite; }
@keyframes star-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(70px, -86px, 0); } }
@keyframes flow-sweep { 0%, 8% { opacity: 0; transform: translateX(0) rotate(-25deg); } 18% { opacity: .8; } 48% { opacity: .1; } 56%, 100% { opacity: 0; transform: translateX(250%) rotate(-25deg); } }
@keyframes wave-breathe { 0%, 100% { transform: translateX(-3%) scaleY(.92); } 50% { transform: translateX(3%) scaleY(1.08); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-arrive { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spinner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* 深空霓虹：保留高对比文字，增强立体感与色彩层次 */
:root {
  --ink: #f5f8ff;
  --muted: #b7c1d9;
  --line: rgba(169, 199, 255, .24);
  --canvas: #060719;
  --panel: linear-gradient(145deg, rgba(24, 31, 69, .9), rgba(10, 13, 33, .92));
  --panel-solid: #101536;
  --field: rgba(8, 12, 34, .86);
  --field-hover: rgba(28, 37, 79, .92);
  --blue: #65e5ff;
  --blue-dark: #061024;
  --blue-pale: rgba(105, 135, 255, .18);
  --green: #74f0bd;
  --orange: #ffd076;
  --danger: #ff9eb6;
  --shadow: 0 22px 68px rgba(1, 4, 26, .55), 0 1px 0 rgba(255,255,255,.1) inset;
}
html[data-theme="light"] {
  --ink: #17213f;
  --muted: #526280;
  --line: rgba(61, 91, 167, .2);
  --canvas: #edf2ff;
  --panel: linear-gradient(145deg, rgba(255,255,255,.94), rgba(232, 239, 255, .9));
  --panel-solid: #f9fbff;
  --field: rgba(255,255,255,.9);
  --field-hover: #ffffff;
  --blue: #2455de;
  --blue-dark: #ffffff;
  --blue-pale: rgba(67, 112, 240, .12);
  --green: #078e64;
  --orange: #9c6710;
  --danger: #c12852;
  --shadow: 0 20px 58px rgba(67, 91, 151, .17), 0 1px 0 rgba(255,255,255,.95) inset;
}
body { background: radial-gradient(circle at 10% 0%, rgba(64, 108, 255, .31), transparent 31%), radial-gradient(circle at 88% 12%, rgba(199, 87, 255, .22), transparent 28%), radial-gradient(circle at 58% 100%, rgba(49, 224, 238, .13), transparent 34%), var(--canvas); }
html[data-theme="light"] body { background: radial-gradient(circle at 8% 0%, rgba(84, 123, 255, .2), transparent 30%), radial-gradient(circle at 92% 18%, rgba(234, 126, 255, .18), transparent 29%), #edf2ff; }
body::before { opacity: .46; background-image: linear-gradient(rgba(140, 184, 255, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 184, 255, .065) 1px, transparent 1px); }
body::after { width: 84vw; height: 84vw; opacity: .72; background: radial-gradient(circle, rgba(83, 233, 255, .14), rgba(116, 89, 255, .07) 35%, transparent 67%); }
.boot-mark, .brand-mark { color: #fff; border-color: rgba(255,255,255,.38); background: linear-gradient(135deg, #35d4ff, #6864ff 56%, #df5fff); box-shadow: 0 10px 28px rgba(59, 109, 255, .42), 0 0 25px rgba(203, 87, 255, .2); }
.auth-hero { background: radial-gradient(circle at 15% 5%, rgba(77, 213, 255, .24), transparent 28%), radial-gradient(circle at 90% 20%, rgba(198, 87, 255, .25), transparent 34%), linear-gradient(145deg, rgba(20, 31, 80, .89), rgba(7, 9, 28, .96)); }
.auth-hero::before { border-color: rgba(123, 216, 255, .34); background: repeating-radial-gradient(circle, transparent 0 35px, rgba(115, 185, 255, .13) 36px 37px); box-shadow: 0 0 70px rgba(116, 96, 255, .16); }
.auth-hero::after { height: 3px; opacity: .78; background: linear-gradient(90deg, transparent, #55e5ff, #b66fff, transparent); box-shadow: 0 0 20px rgba(117, 161, 255, .75); }
.hero-brand .brand-mark { color: #fff; background: linear-gradient(135deg, #35d4ff, #6864ff 56%, #df5fff); }.hero-kicker, .page-kicker { color: #aab9ff; }.auth-hero h1 { text-shadow: 0 8px 26px rgba(47, 82, 220, .28); }.auth-hero h1::after { width: 92px; background: linear-gradient(90deg, #55e5ff, #ac73ff, #ff83dc); box-shadow: 0 0 18px rgba(115, 160, 255, .6); }
.hero-points div { border-color: rgba(157, 200, 255, .23); background: linear-gradient(135deg, rgba(107, 205, 255, .12), rgba(164, 86, 255, .09)); box-shadow: 0 12px 22px rgba(0,0,0,.14), 0 1px 0 rgba(255,255,255,.08) inset; }
.auth-card { border-color: rgba(155, 186, 255, .35); background: linear-gradient(145deg, rgba(31, 42, 91, .9), rgba(10, 13, 35, .93)); box-shadow: 0 24px 74px rgba(5, 9, 40, .5), 0 1px 0 rgba(255,255,255,.14) inset; }.auth-card::before { width: 118px; background: linear-gradient(90deg, #55e5ff, #a773ff, #ff7cd8); box-shadow: 0 0 16px rgba(113, 176, 255, .7); }.auth-tabs { background: rgba(1, 4, 20, .32); }.auth-tabs button.active { color: #fff; background: linear-gradient(100deg, #277be9, #7262ea 55%, #c15bd5); box-shadow: 0 8px 22px rgba(71, 109, 255, .34); }
html[data-theme="light"] .auth-card { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(232, 239, 255, .94)); }.field input, .field textarea, .field select { border-color: rgba(154, 187, 255, .28); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset; }.field input:focus, .field textarea:focus, .field select:focus, .field:focus-within input, .field:focus-within textarea, .field:focus-within select { border-color: #6c9cff; box-shadow: 0 0 0 3px rgba(103, 126, 255, .16), 0 0 22px rgba(75, 192, 255, .12); }
.primary-button { color: #fff; background: linear-gradient(100deg, #23cfff, #5d75ff 48%, #d75ce7); box-shadow: 0 10px 26px rgba(72, 105, 255, .32), 0 1px 0 rgba(255,255,255,.28) inset; }.primary-button:hover:not(:disabled) { filter: brightness(1.09) saturate(1.08); box-shadow: 0 14px 30px rgba(94, 111, 255, .46), 0 1px 0 rgba(255,255,255,.3) inset; }.secondary-button, .ghost-button, .inline-button { border-color: rgba(142, 176, 255, .32); background: linear-gradient(135deg, rgba(67, 135, 255, .14), rgba(192, 83, 255, .1)); }.ghost-button:hover, .secondary-button:hover { border-color: #7ec7ff; background: linear-gradient(135deg, rgba(77, 193, 255, .24), rgba(192, 83, 255, .17)); }.theme-toggle { border-color: rgba(154, 186, 255, .38); background: linear-gradient(135deg, rgba(74, 148, 255, .14), rgba(207, 90, 245, .12)); }.theme-toggle:hover { border-color: #85ceff; background: linear-gradient(135deg, rgba(80, 210, 255, .22), rgba(197, 92, 247, .2)); }
.sidebar { background: linear-gradient(180deg, rgba(16, 22, 59, .82), rgba(7, 9, 27, .9)); box-shadow: 12px 0 36px rgba(4, 8, 35, .18); }.nav-button.active { color: #fff; border-color: rgba(157, 203, 255, .58); background: linear-gradient(100deg, #247adf, #6861e9 58%, #bd57d7); box-shadow: 0 8px 21px rgba(65, 94, 237, .27), 0 1px 0 rgba(255,255,255,.24) inset; }.nav-button:hover { border-color: rgba(116, 196, 255, .42); background: linear-gradient(135deg, rgba(74, 167, 255, .13), rgba(189, 87, 215, .1)); }.sidebar-bottom { background: linear-gradient(145deg, rgba(71, 100, 177, .18), rgba(20, 26, 57, .5)); }
.top-status { border-color: rgba(142, 196, 255, .28); background: linear-gradient(135deg, rgba(55, 207, 255, .13), rgba(159, 93, 255, .12)); }.stat-card, .panel, .plan-card { border-color: rgba(151, 183, 255, .22); background: var(--panel); box-shadow: 0 18px 38px rgba(4, 8, 34, .22), 0 1px 0 rgba(255,255,255,.1) inset; }.stat-card::after { border-color: rgba(111, 213, 255, .74); }.stat-card:nth-child(2)::after { border-color: rgba(173, 116, 255, .78); }.stat-card:nth-child(3)::after { border-color: rgba(255, 142, 213, .75); }.stat-card:nth-child(4)::after { border-color: rgba(110, 239, 190, .75); }.plan-card.featured { border-color: #7ec7ff; box-shadow: 0 22px 50px rgba(78, 88, 236, .28), 0 1px 0 rgba(255,255,255,.16) inset; }.plan-card.featured::after { color: #fff; background: linear-gradient(135deg, #4cd4ff, #8c6cff, #e85fd8); }
.referral-code, .key-item { border-color: rgba(147, 188, 255, .25); background: linear-gradient(135deg, rgba(43, 92, 193, .18), rgba(117, 56, 153, .12)); }.output-panel { background: linear-gradient(145deg, rgba(25, 33, 75, .96), rgba(9, 12, 30, .97)); }.output-area { background: linear-gradient(145deg, #070b23, #0a0d20); border-color: rgba(138, 184, 255, .2); }.data-table th { background: linear-gradient(90deg, rgba(62, 115, 232, .14), rgba(171, 80, 219, .08)); }.data-table tbody tr:hover { background: linear-gradient(90deg, rgba(57, 173, 255, .1), rgba(192, 84, 240, .08)); }.notice, .hint-box, .smart-info, .setup-note { border-left-color: #5de0ff; background: linear-gradient(90deg, rgba(53, 180, 255, .12), rgba(163, 87, 255, .09)); }
.star-field { background-image: radial-gradient(circle, #c9f7ff 0 1px, transparent 1.6px), radial-gradient(circle, #caa5ff 0 1px, transparent 1.6px), radial-gradient(circle, #ff9ce6 0 1px, transparent 1.6px); }.flow-line { height: 2px; background: linear-gradient(90deg, transparent, #5ee9ff 20%, #a471ff 57%, #ff81dc 75%, transparent); box-shadow: 0 0 12px #5ddcff, 0 0 27px rgba(166, 104, 255, .7); }.wave-layer { border-color: rgba(104, 201, 255, .32); box-shadow: 0 -10px 30px rgba(86, 128, 255, .08); }.wave-layer-two { border-color: rgba(226, 111, 255, .23); }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(248, 251, 255, .92), rgba(223, 233, 255, .88)); }.status-paid { color: #00a66f; }.status-pending { color: #b47408; }

/* 侧栏账户信息卡 */
.sidebar-bottom { display: grid; gap: 5px; padding: 14px; }.sidebar-account-label { margin: 0 0 1px; color: #a9bcf5; font-size: 10px; font-weight: 800; letter-spacing: .14em; }.sidebar-bottom > b { font-size: 14px; }.sidebar-member-state { margin: 0 0 7px; color: #c5d9ff; font-size: 11px; }.sidebar-account-info { display: grid; gap: 8px; padding: 10px 0 8px; border-top: 1px solid rgba(165, 198, 255, .18); border-bottom: 1px solid rgba(165, 198, 255, .18); }.sidebar-account-info > div { display: grid; gap: 3px; }.sidebar-account-info span { color: #9caed8; font-size: 10px; }.sidebar-account-info strong { overflow: hidden; color: #eff6ff; text-overflow: ellipsis; white-space: nowrap; font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 11px; letter-spacing: .01em; }.sidebar-account-info .sidebar-invite-code { color: #8be9ff; font-family: Consolas, "Microsoft YaHei UI", monospace; font-size: 12px; letter-spacing: .06em; }.sidebar-bottom .logout-button { margin-top: 3px; padding: 5px 0 0; text-align: left; }
html[data-theme="light"] .sidebar-account-label { color: #5870a8; }html[data-theme="light"] .sidebar-member-state { color: #46619a; }html[data-theme="light"] .sidebar-account-info { border-color: rgba(64, 104, 179, .17); }html[data-theme="light"] .sidebar-account-info span { color: #6a7da9; }html[data-theme="light"] .sidebar-account-info strong { color: #1d3261; }html[data-theme="light"] .sidebar-account-info .sidebar-invite-code { color: #146fb7; }

/* 分镜生成中的动态处理面板 */
.studio-action-feedback { min-height: 38px; display: flex; align-items: center; padding: 9px 12px; color: #d7e8ff; border: 1px solid rgba(113, 190, 255, .28); border-radius: 5px; background: linear-gradient(100deg, rgba(45, 175, 255, .12), rgba(168, 77, 245, .1)); font-size: 12px; line-height: 1.5; }
.live-plan-quota { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid rgba(94, 220, 255, .34); border-radius: 5px; background: linear-gradient(100deg, rgba(40, 190, 255, .12), rgba(126, 86, 255, .12)); font-size: 12px; line-height: 1.55; }.live-plan-quota b { color: #eaf8ff; }.live-plan-quota span { color: var(--muted); }.live-plan-quota.is-used { border-color: rgba(255, 193, 91, .34); background: linear-gradient(100deg, rgba(255, 174, 54, .1), rgba(162, 83, 239, .1)); }html[data-theme="light"] .live-plan-quota b { color: #263f75; }
html[data-theme="light"] .studio-action-feedback { color: #2f4879; }
.continue-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; color: #f2f7ff; border: 1px solid rgba(113, 206, 255, .46); border-radius: 5px; background: linear-gradient(100deg, rgba(43, 166, 255, .19), rgba(172, 81, 242, .16)); box-shadow: 0 9px 22px rgba(50, 96, 234, .13), 0 1px 0 rgba(255,255,255,.14) inset; font-size: 13px; font-weight: 700; animation: confirm-enter .24s ease-out both; }.continue-confirm > div { display: flex; flex: 0 0 auto; gap: 8px; }.continue-confirm .primary-button, .continue-confirm .ghost-button { min-height: 32px; padding: 6px 12px; font-size: 12px; }.continue-confirm .ghost-button { color: #dbe8ff; border-color: rgba(184, 207, 255, .38); }
html[data-theme="light"] .continue-confirm { color: #253c71; background: linear-gradient(100deg, rgba(157, 223, 255, .42), rgba(231, 181, 255, .32)); }.continue-confirm .primary-button { box-shadow: none; }
.generating-state { position: relative; min-height: 470px; display: grid; align-content: center; justify-items: center; gap: 16px; overflow: hidden; padding: 36px; border: 1px solid rgba(117, 187, 255, .22); border-radius: 5px; background: radial-gradient(circle at 50% 32%, rgba(72, 203, 255, .18), transparent 27%), radial-gradient(circle at 50% 62%, rgba(170, 85, 255, .14), transparent 35%), linear-gradient(145deg, rgba(12, 23, 62, .96), rgba(5, 8, 27, .97)); text-align: center; }
.generating-state::before, .generating-state::after { position: absolute; width: 340px; height: 340px; content: ""; border: 1px solid rgba(103, 208, 255, .2); border-radius: 50%; pointer-events: none; }.generating-state::before { top: -182px; left: 50%; transform: translateX(-50%); animation: orbit-breathe 4s ease-in-out infinite; }.generating-state::after { top: -150px; left: 50%; width: 270px; height: 270px; border-color: rgba(216, 116, 255, .2); transform: translateX(-50%); animation: orbit-breathe 4s ease-in-out -2s infinite reverse; }
.generation-orbit { position: relative; z-index: 1; width: 70px; height: 70px; border: 2px solid rgba(103, 213, 255, .2); border-top-color: #55e7ff; border-right-color: #b275ff; border-radius: 50%; box-shadow: 0 0 24px rgba(72, 181, 255, .33), inset 0 0 19px rgba(169, 92, 255, .13); animation: orbit-spin 2.2s linear infinite; }.generation-orbit::before { position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; content: ""; border: 2px solid transparent; border-bottom-color: #ff83db; border-left-color: #5ff2bc; border-radius: 50%; }.generation-orbit span, .generation-orbit i { position: absolute; display: block; border-radius: 50%; background: #e8fbff; box-shadow: 0 0 14px #55e7ff; }.generation-orbit span { top: -5px; left: 50%; width: 8px; height: 8px; transform: translateX(-50%); }.generation-orbit i { right: 1px; bottom: 10px; width: 5px; height: 5px; background: #ff90e1; box-shadow: 0 0 12px #ff83db; }
.generation-copy { position: relative; z-index: 1; display: grid; gap: 7px; }.generation-copy b { color: #f6fbff; font-size: 16px; letter-spacing: .02em; }.generation-copy span { color: #bcd2f5; font-size: 12px; }
.generation-steps { position: relative; z-index: 1; display: grid; width: min(100%, 345px); gap: 8px; text-align: left; }.generation-step { display: flex; align-items: center; gap: 8px; color: rgba(191, 210, 239, .54); font-size: 11px; transition: color .35s ease, transform .35s ease; }.generation-step i { width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid rgba(156, 192, 255, .52); border-radius: 50%; transition: .35s ease; }.generation-step.active { color: #f4faff; transform: translateX(5px); }.generation-step.active i { border-color: #6deaff; background: #6deaff; box-shadow: 0 0 12px #51cbff; }
.generation-stop-control { position: relative; z-index: 2; display: grid; justify-items: center; gap: 7px; margin-top: 2px; }.generation-stop-control small { color: rgba(194, 211, 240, .72); font-size: 10px; line-height: 1.5; }.generation-stop-button { min-width: 132px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; color: #fff2f4; border: 1px solid rgba(255, 126, 150, .72); border-radius: 4px; outline: 0; background: linear-gradient(135deg, rgba(204, 49, 83, .88), rgba(130, 37, 72, .92)); box-shadow: 0 10px 24px rgba(160, 31, 65, .26), 0 1px 0 rgba(255,255,255,.16) inset; font: 700 12px/1 "Microsoft YaHei UI", sans-serif; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }.generation-stop-button:hover:not(:disabled) { border-color: #ffb0c0; box-shadow: 0 12px 28px rgba(192, 37, 78, .36), 0 0 16px rgba(255, 105, 141, .18); transform: translateY(-1px); }.generation-stop-button:focus-visible { box-shadow: 0 0 0 3px rgba(255, 123, 154, .24), 0 10px 24px rgba(160, 31, 65, .26); }.generation-stop-button:disabled { opacity: .68; cursor: wait; }.generating-state.is-stopping .generation-orbit, .generating-state.is-stopping .generation-shimmer i { animation-play-state: paused; }.generating-state.is-stopping .generation-orbit { border-color: rgba(255, 134, 158, .32); border-top-color: #ff8da7; filter: saturate(.78); }
.generation-shimmer { position: absolute; right: 9%; bottom: 42px; left: 9%; height: 3px; overflow: hidden; border-radius: 20px; background: rgba(144, 190, 255, .12); }.generation-shimmer i { position: absolute; top: 0; left: -30%; width: 32%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #55e7ff, #af75ff, transparent); box-shadow: 0 0 12px rgba(86, 208, 255, .8); animation: loading-sweep 1.75s ease-in-out infinite; }
.output-live { min-height: 470px; display: grid; grid-template-rows: minmax(260px, 1fr) auto; gap: 12px; }.output-live .output-area { min-height: 260px; }.generating-state.compact { min-height: auto; display: flex; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: stretch; align-items: center; gap: 12px; padding: 14px; text-align: left; }.generating-state.compact::before, .generating-state.compact::after, .generating-state.compact .generation-steps, .generating-state.compact .generation-shimmer { display: none; }.generating-state.compact .generation-orbit { width: 42px; height: 42px; flex: 0 0 42px; }.generating-state.compact .generation-orbit::before { top: 5px; right: 5px; bottom: 5px; left: 5px; }.generating-state.compact .generation-orbit span { top: -4px; width: 6px; height: 6px; }.generating-state.compact .generation-copy { min-width: 0; gap: 3px; }.generating-state.compact .generation-copy b { font-size: 13px; }.generating-state.compact .generation-copy span { font-size: 11px; }.generating-state.compact .generation-stop-control { justify-items: end; margin: 0; }.generating-state.compact .generation-stop-control small { max-width: 210px; text-align: right; }.generating-state.compact .generation-stop-button { min-width: 116px; min-height: 34px; padding: 7px 12px; }
html[data-theme="light"] .generating-state { background: radial-gradient(circle at 50% 32%, rgba(72, 203, 255, .16), transparent 27%), radial-gradient(circle at 50% 62%, rgba(170, 85, 255, .1), transparent 35%), linear-gradient(145deg, #fcfdff, #ecf2ff); }.generating-state.compact { background: linear-gradient(135deg, rgba(235, 249, 255, .96), rgba(244, 237, 255, .96)); }html[data-theme="light"] .generation-copy b { color: #263a68; }html[data-theme="light"] .generation-copy span { color: #526b9a; }html[data-theme="light"] .generation-step { color: #7182a4; }html[data-theme="light"] .generation-step.active { color: #263a68; }html[data-theme="light"] .generation-stop-control small { color: #687ba2; }html[data-theme="light"] .generation-stop-button { color: #fff; border-color: #d95b78; background: linear-gradient(135deg, #df5d7b, #a93d62); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }@keyframes orbit-breathe { 0%, 100% { opacity: .45; transform: translateX(-50%) scale(.94); } 50% { opacity: .9; transform: translateX(-50%) scale(1.05); } }@keyframes loading-sweep { 0% { transform: translateX(0); } 100% { transform: translateX(420%); } }
@keyframes confirm-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) { .generating-state { min-height: 365px; padding: 24px 18px; }.output-live { min-height: 365px; grid-template-rows: minmax(210px, 1fr) auto; }.output-live .output-area { min-height: 210px; }.generating-state.compact { display: grid; grid-template-columns: auto minmax(0, 1fr); }.generating-state.compact .generation-stop-control { grid-column: 1 / -1; width: 100%; justify-items: stretch; }.generating-state.compact .generation-stop-control small { max-width: none; text-align: center; }.generating-state.compact .generation-stop-button { width: 100%; }.studio-action-feedback { font-size: 11px; }.continue-confirm { align-items: flex-start; flex-direction: column; }.continue-confirm > div { width: 100%; }.continue-confirm button { flex: 1; } }

/* 移动端布局修复：最后声明，避免后续桌面主题样式覆盖断点规则。 */
@media (max-width: 1040px) {
  html, body { width: 100%; min-width: 0; overflow-x: hidden; }
  .portal { display: block; grid-template-columns: 1fr; min-height: 100dvh; }
  .sidebar { position: static; display: block; width: 100%; height: auto; min-height: 0; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .sidebar-brand { padding: 0 2px 11px; }
  .nav-group { display: flex; width: 100%; gap: 7px; padding: 0 0 3px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .nav-group::-webkit-scrollbar { display: none; }
  .nav-button { width: auto; min-height: 42px; flex: 0 0 auto; padding: 0 13px; white-space: nowrap; }
  .nav-section, .sidebar-bottom { display: none; }
  .portal-main { width: 100%; min-width: 0; padding: 24px 18px 42px; }
  .dashboard-grid, .studio-layout, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 620px) {
  .sidebar { padding: 11px 12px; }
  .sidebar-brand { padding-bottom: 10px; }
  .sidebar-brand span { display: inline; }
  .nav-button { min-height: 40px; padding: 0 11px; font-size: 12px; }
  .portal-main { padding: 19px 12px 32px; }
  .topline { gap: 14px; padding-bottom: 17px; }
  .page-title { font-size: clamp(23px, 7vw, 30px); line-height: 1.14; }
  .top-actions { width: 100%; align-items: center; flex-direction: row; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-width: 0; padding: 14px; }
  .stat-card b { font-size: 20px; word-break: break-word; }
  .plans-grid, .two-fields { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .panel-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .action-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .action-row > button { width: 100%; min-width: 0; }
  .output-panel { min-height: 420px; }
  .output-area { min-height: 300px; padding: 13px; font-size: 11px; }
  .plan-card { padding: 18px; }
  .data-table { min-width: 640px; }
}

/* 三天生成历史 */
.history-panel { min-height: 560px; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.history-card { display: grid; align-content: start; gap: 13px; min-width: 0; padding: 18px; border: 1px solid rgba(151, 183, 255, .22); border-radius: 5px; background: linear-gradient(145deg, rgba(25, 34, 77, .92), rgba(8, 12, 32, .95)); box-shadow: 0 15px 34px rgba(3, 7, 31, .2), 0 1px 0 rgba(255,255,255,.08) inset; }
.history-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.history-card h3 { margin: 7px 0 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.history-status, .history-duration { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border: 1px solid rgba(255, 202, 111, .32); border-radius: 3px; color: var(--orange); background: rgba(255, 191, 79, .09); font-size: 10px; font-weight: 800; }
.history-status.complete { color: var(--green); border-color: rgba(91, 234, 184, .3); background: rgba(62, 213, 159, .08); }
.history-duration { flex: 0 0 auto; color: #a9c8ff; border-color: rgba(126, 186, 255, .28); background: rgba(82, 133, 255, .09); }
.history-progress { margin: 0; color: #e6efff; font-size: 13px; font-weight: 700; line-height: 1.65; }
.history-meta { display: grid; gap: 6px; padding: 11px 0; border-top: 1px solid rgba(154, 189, 255, .16); border-bottom: 1px solid rgba(154, 189, 255, .16); color: var(--muted); font-size: 11px; }
.history-actions { display: flex; gap: 8px; }
.history-actions .primary-button { flex: 1; }
.history-actions .ghost-button { flex: 0 0 auto; }
.history-empty { min-height: 390px; }
html[data-theme="light"] .history-card { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(233, 240, 255, .96)); }
html[data-theme="light"] .history-progress { color: #263a68; }

@media (max-width: 860px) {
  .history-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .history-card { padding: 15px; }
  .history-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .history-actions .ghost-button { width: 100%; }
}

/* 参考视频分析与原创融合工作区 */
.fusion-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 12px; }
.fusion-step { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: rgba(14, 20, 53, .68); }
.fusion-step::after { position: absolute; top: 50%; right: -11px; z-index: 2; width: 11px; height: 1px; content: ""; background: var(--line); }
.fusion-step:last-child::after { display: none; }
.fusion-step i { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #b6c8ef; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 900; }
.fusion-step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.fusion-step.active { color: var(--ink); border-color: rgba(101, 229, 255, .55); background: linear-gradient(135deg, rgba(51, 181, 255, .18), rgba(156, 88, 255, .14)); box-shadow: 0 10px 28px rgba(42, 91, 231, .16); }
.fusion-step.active i { color: #061024; border-color: #74e6ff; background: #74e6ff; box-shadow: 0 0 14px rgba(89, 224, 255, .55); }
.fusion-step.complete { color: var(--ink); }.fusion-step.complete i { color: #061024; border-color: var(--green); background: var(--green); }
.fusion-readiness { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fusion-capability { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 17, 46, .55); font-size: 10px; }
.fusion-capability i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }.fusion-capability.ready i { background: var(--green); box-shadow: 0 0 9px rgba(116, 240, 189, .65); }
.fusion-layout { display: grid; grid-template-columns: minmax(340px, .86fr) minmax(480px, 1.35fr); gap: 18px; align-items: start; }
.fusion-source-panel, .fusion-result-panel { display: grid; gap: 16px; }.fusion-source-panel { position: sticky; top: 18px; }
.upload-zone { display: grid; min-height: 132px; place-items: center; align-content: center; gap: 6px; padding: 18px; cursor: pointer; color: var(--muted); border: 1px dashed rgba(113, 201, 255, .5); border-radius: 6px; background: radial-gradient(circle at 50% 0%, rgba(66, 211, 255, .13), transparent 55%), rgba(5, 10, 31, .55); text-align: center; transition: .2s ease; }
.upload-zone:hover { color: var(--ink); border-color: #70ddff; transform: translateY(-1px); }.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.upload-zone b { max-width: 100%; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }.upload-zone small { font-size: 10px; line-height: 1.6; }.upload-icon { color: #7be7ff; font-size: 27px; line-height: 1; text-shadow: 0 0 16px rgba(89, 219, 255, .7); }
.upload-zone.is-selected { border-style: solid; border-color: rgba(105, 205, 255, .72); background: radial-gradient(circle at 50% 0%, rgba(66, 211, 255, .2), transparent 58%), rgba(5, 10, 31, .62); }
.upload-zone.is-uploading, .upload-zone.is-verifying { cursor: wait; border-style: solid; border-color: rgba(135, 114, 255, .66); box-shadow: 0 0 0 1px rgba(96, 211, 255, .08) inset; }
.upload-zone.is-uploaded { border-style: solid; border-color: rgba(102, 239, 186, .56); }.upload-zone.is-uploaded .upload-icon { color: var(--green); }
.upload-feedback { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; padding: 12px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: rgba(7, 13, 38, .72); }
.upload-feedback > div:not(.upload-feedback-head):not(.upload-progress-track):not(.upload-progress-meta):not(.upload-feedback-actions) { display: grid; min-width: 0; gap: 4px; }
.upload-feedback b { color: var(--ink); font-size: 12px; }.upload-feedback span, .upload-feedback small { min-width: 0; color: var(--muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }.upload-feedback small { color: #9eb1d7; }
.upload-feedback .upload-retention-note, .upload-feedback .upload-eviction-note { margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(133, 178, 255, .15); }
.upload-feedback .upload-retention-note { color: #9fb4d9; }.upload-feedback .upload-eviction-note { color: #ffd18a; }
.upload-feedback-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: #051126 !important; border-radius: 50%; background: #76e5ff; box-shadow: 0 0 16px rgba(79, 216, 255, .34); font-size: 13px !important; font-weight: 900; }
.upload-feedback.is-selected { border-color: rgba(94, 205, 255, .3); }.upload-feedback.is-success { border-color: rgba(93, 235, 177, .36); background: linear-gradient(110deg, rgba(39, 186, 143, .13), rgba(35, 79, 135, .08)); }.upload-feedback.is-success .upload-feedback-icon { background: var(--green); box-shadow: 0 0 16px rgba(86, 236, 179, .28); }
.upload-feedback.is-error { grid-template-columns: auto minmax(0, 1fr) auto; border-color: rgba(255, 128, 154, .38); background: rgba(103, 27, 57, .13); }.upload-feedback.is-error .upload-feedback-icon { color: #fff !important; background: #d85a79; box-shadow: 0 0 16px rgba(225, 78, 115, .24); }.upload-feedback.is-error > button { white-space: nowrap; }
.upload-feedback.is-active { grid-template-columns: minmax(0, 1fr); gap: 9px; border-color: rgba(99, 212, 255, .42); background: linear-gradient(110deg, rgba(30, 165, 225, .13), rgba(121, 68, 216, .12)); box-shadow: 0 10px 25px rgba(28, 78, 173, .1); }
.upload-feedback-head, .upload-feedback-head > div, .upload-feedback-actions, .upload-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }.upload-feedback-head > div { justify-content: flex-start; }.upload-feedback-head > div > div { display: grid; min-width: 0; gap: 3px; }.upload-feedback-head strong { flex: 0 0 auto; color: #8feaff; font-size: 11px; }
.upload-progress-track { position: relative; height: 8px; overflow: hidden; border: 1px solid rgba(121, 188, 255, .18); border-radius: 999px; background: rgba(2, 8, 28, .72); }.upload-progress-track i { position: absolute; inset: 0 auto 0 0; min-width: 2px; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #2bbcff, #5de5e0 55%, #bd69ed); box-shadow: 0 0 14px rgba(72, 216, 255, .42); transition: width .18s ease; }.upload-progress-track i::after { position: absolute; inset: 0; content: ""; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.5) 48%, transparent 78%); animation: uploadShimmer 1.25s linear infinite; }
.upload-progress-meta span { color: #aebfe2; font-variant-numeric: tabular-nums; }.upload-feedback-actions { align-items: flex-start; }.upload-feedback-actions small { flex: 1 1 auto; }.upload-feedback-actions .inline-button { flex: 0 0 auto; }.inline-button.danger { color: #ffafc0; border-color: rgba(255, 127, 154, .35); }.inline-button.danger:hover { color: #fff; border-color: rgba(255, 127, 154, .7); background: rgba(169, 48, 82, .24); }
.upload-verifying-badge { flex: 0 0 auto; padding: 4px 8px; color: #8bead9 !important; border: 1px solid rgba(97, 232, 202, .34); border-radius: 999px; background: rgba(36, 158, 133, .12); white-space: nowrap; }
.fusion-capability-notice { display: grid; gap: 4px; margin-top: -6px; padding: 10px 12px; color: var(--muted); border: 1px solid rgba(245, 184, 88, .3); border-radius: 4px; background: rgba(113, 75, 24, .12); }.fusion-capability-notice b { color: #ffd28d; font-size: 11px; }.fusion-capability-notice span, .fusion-capability-notice small { font-size: 10px; line-height: 1.6; }.fusion-capability-notice small { color: #b8c5df; }.fusion-capability-notice.is-blocked { border-color: rgba(255, 117, 143, .4); background: rgba(112, 24, 53, .14); }.fusion-capability-notice.is-blocked b { color: #ffadc0; }
@keyframes uploadShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.fusion-file-state { display: grid; align-content: end; gap: 7px; }.fusion-file-state strong { min-height: 45px; display: flex; align-items: center; padding: 10px 12px; overflow: hidden; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; background: var(--field); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.rights-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }.rights-check input { margin-top: 3px; accent-color: #65dfff; }
.fusion-script-input { min-height: 220px !important; }.fusion-result-panel { min-height: 720px; }.fusion-result-block { display: grid; gap: 9px; }.fusion-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.fusion-result-head b { color: var(--ink); font-size: 13px; }.fusion-result-head span { color: var(--muted); font-size: 10px; }
.fusion-result-text { width: 100%; min-height: 260px; resize: vertical; padding: 14px; color: var(--ink); border: 1px solid rgba(138, 184, 255, .23); border-radius: 4px; outline: 0; background: linear-gradient(145deg, rgba(7, 11, 35, .96), rgba(11, 15, 36, .98)); font: 12px/1.8 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }.fusion-result-text:focus { border-color: #72cfff; box-shadow: 0 0 0 3px rgba(94, 137, 255, .13); }.fusion-result-text.transcript { min-height: 145px; }.fusion-result-text.merged { min-height: 430px; }.fusion-result-block.merged { padding-top: 14px; border-top: 1px solid var(--line); }
.fusion-loader { display: flex; align-items: center; gap: 15px; padding: 16px; border: 1px solid rgba(103, 204, 255, .28); border-radius: 5px; background: linear-gradient(110deg, rgba(40, 177, 255, .13), rgba(165, 79, 245, .12)); }.fusion-loader .generation-orbit { width: 47px; height: 47px; flex: 0 0 47px; }.fusion-loader > div:last-child { display: grid; gap: 5px; }.fusion-loader b { color: var(--ink); font-size: 13px; }.fusion-loader span { color: var(--muted); font-size: 11px; }.fusion-warning { margin: 0; }.fusion-empty { min-height: 410px; }
.key-scope-field { display: grid; gap: 9px; }
.key-scope-title { display: grid; gap: 3px; }.key-scope-title .field-label { margin: 0; }.key-scope-title > span:last-child { color: var(--muted); font-size: 10px; line-height: 1.55; }
.scope-presets { display: flex; flex-wrap: wrap; gap: 7px; }.scope-presets button { min-height: 34px; }
.key-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--field); }
.scope-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; min-width: 0; padding: 10px; color: var(--muted); border: 1px solid rgba(154, 187, 255, .15); border-radius: 4px; cursor: pointer; background: rgba(255,255,255,.018); font-size: 11px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.scope-option:hover { color: var(--ink); border-color: var(--line); background: var(--blue-pale); transform: translateY(-1px); }
.scope-option input[type="checkbox"], .field .scope-option input[type="checkbox"] { appearance: auto; width: 16px; height: 16px; min-width: 16px; margin: 2px 0 0; padding: 0; flex: 0 0 16px; border: 0; border-radius: 3px; box-shadow: none; accent-color: #58d8ff; }
.scope-option input[type="checkbox"]:focus, .field .scope-option input[type="checkbox"]:focus { border: 0; box-shadow: 0 0 0 3px rgba(88, 216, 255, .2); }
.scope-option:has(input:checked) { color: var(--ink); border-color: rgba(89, 218, 255, .5); background: linear-gradient(135deg, rgba(49, 177, 235, .12), rgba(131, 76, 220, .1)); }
.scope-option-copy { display: grid; min-width: 0; gap: 4px; overflow: visible; white-space: normal; }.scope-option-copy b { color: var(--ink); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }.scope-option-copy small { color: var(--muted); font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.scope-option-all { grid-column: 1 / -1; border-color: rgba(255, 192, 91, .32); background: rgba(137, 83, 24, .1); }.scope-option-all .scope-option-copy b { color: #ffd58d; }.scope-option-all:has(input:checked) { border-color: rgba(255, 188, 77, .7); background: linear-gradient(135deg, rgba(175, 102, 26, .2), rgba(105, 64, 161, .12)); }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.6; }.field-help b { color: #ffd28d; }.key-item { flex-wrap: wrap; }.key-item small { flex: 1 0 100%; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.scope-resource-guide { display: grid; gap: 5px; padding: 10px 11px; color: var(--muted); border: 1px solid rgba(99, 194, 255, .24); border-radius: 4px; background: rgba(38, 111, 168, .09); font-size: 10px; line-height: 1.65; }.scope-resource-guide b { color: #91e7ff; font-size: 11px; }.scope-resource-guide strong { color: var(--ink); }
.key-scope-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 22px; overflow: auto; background: rgba(2, 5, 18, .78); backdrop-filter: blur(7px); }
.key-scope-dialog { display: grid; width: min(900px, 100%); max-height: calc(100vh - 44px); gap: 13px; padding: 18px; overflow: auto; color: var(--ink); border: 1px solid rgba(133, 181, 255, .3); border-radius: 7px; background: linear-gradient(145deg, rgba(17, 25, 61, .98), rgba(15, 15, 42, .99)); box-shadow: 0 26px 80px rgba(0,0,0,.55); }
.key-scope-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.key-scope-dialog-head > div { display: grid; min-width: 0; gap: 4px; }.key-scope-dialog-head span { color: #8deaff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }.key-scope-dialog-head h3 { margin: 0; overflow-wrap: anywhere; font-size: 18px; }.key-scope-dialog-head small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.modal-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: var(--field); font-size: 22px; line-height: 1; }.modal-close:hover { color: var(--ink); border-color: #73dfff; }
.key-scope-edit-grid { max-height: min(52vh, 520px); overflow: auto; }.key-scope-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 3px; }.key-scope-dialog-actions button { min-width: 125px; }
.route-list { display: grid; gap: 8px; }.route-item { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) minmax(110px, auto); align-items: center; gap: 14px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--field); }.route-item > div { display: grid; gap: 3px; }.route-item b { color: var(--ink); font-size: 12px; }.route-item span { color: var(--muted); font-size: 10px; line-height: 1.5; }.route-item code { color: #8deaff; font-size: 11px; }.route-item em { justify-self: end; font-size: 10px; font-style: normal; }
html[data-theme="light"] .fusion-step, html[data-theme="light"] .fusion-capability { background: rgba(255,255,255,.72); }.fusion-step.active { background: linear-gradient(135deg, rgba(144, 226, 255, .32), rgba(217, 177, 255, .28)); }html[data-theme="light"] .upload-zone { background: rgba(242, 248, 255, .78); }html[data-theme="light"] .fusion-result-text { background: linear-gradient(145deg, #fbfdff, #eff4ff); }
html[data-theme="light"] .upload-feedback { background: rgba(247, 250, 255, .96); }html[data-theme="light"] .upload-feedback.is-success { background: linear-gradient(110deg, rgba(226, 255, 244, .98), rgba(237, 247, 255, .95)); }html[data-theme="light"] .upload-feedback.is-error { background: rgba(255, 239, 244, .96); }html[data-theme="light"] .upload-feedback.is-active { background: linear-gradient(110deg, rgba(228, 248, 255, .98), rgba(244, 237, 255, .96)); }html[data-theme="light"] .upload-progress-track { background: rgba(197, 213, 238, .65); }
html[data-theme="light"] .upload-feedback .upload-retention-note { color: #536989; }html[data-theme="light"] .upload-feedback .upload-eviction-note { color: #8a5610; }
html[data-theme="light"] .fusion-capability-notice { background: rgba(255, 248, 232, .96); }html[data-theme="light"] .fusion-capability-notice b { color: #8b5912; }html[data-theme="light"] .fusion-capability-notice.is-blocked { background: rgba(255, 238, 243, .98); }html[data-theme="light"] .fusion-capability-notice.is-blocked b { color: #a82f50; }
html[data-theme="light"] .scope-option { background: rgba(255,255,255,.78); }html[data-theme="light"] .scope-option:hover, html[data-theme="light"] .scope-option:has(input:checked) { background: linear-gradient(135deg, rgba(226, 247, 255, .98), rgba(243, 236, 255, .96)); }html[data-theme="light"] .scope-option-all { background: rgba(255, 248, 231, .96); }html[data-theme="light"] .scope-option-all .scope-option-copy b, html[data-theme="light"] .field-help b { color: #8b5912; }
html[data-theme="light"] .scope-resource-guide { background: rgba(235, 248, 255, .96); }html[data-theme="light"] .scope-resource-guide b { color: #176a86; }html[data-theme="light"] .key-scope-modal { background: rgba(27, 36, 56, .48); }html[data-theme="light"] .key-scope-dialog { background: linear-gradient(145deg, #ffffff, #f2f5ff); box-shadow: 0 26px 70px rgba(26, 42, 77, .24); }

@media (max-width: 1180px) {
  .fusion-layout { grid-template-columns: minmax(0, 1fr); }.fusion-source-panel { position: static; }
}
@media (max-width: 720px) {
  .fusion-pipeline { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }.fusion-step { min-width: 145px; flex: 0 0 145px; }.fusion-step::after { display: none; }.fusion-layout { gap: 12px; }.fusion-readiness { gap: 5px; }.fusion-result-panel { min-height: 560px; }.fusion-result-text { min-height: 220px; }.fusion-result-text.merged { min-height: 330px; }.fusion-empty { min-height: 280px; }.key-scope-grid { grid-template-columns: minmax(0, 1fr); }.route-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }.route-item em { justify-self: start; }
  .scope-option-all { grid-column: auto; }.scope-presets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.scope-presets button { width: 100%; padding-inline: 8px; }.scope-option { padding: 11px 10px; }.scope-option-copy small { font-size: 10px; }
  .key-scope-modal { place-items: start stretch; padding: 10px; }.key-scope-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 14px; }.key-scope-edit-grid { max-height: none; }.key-scope-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: sticky; bottom: -14px; z-index: 2; padding: 12px 0 14px; background: linear-gradient(180deg, transparent, rgba(15, 15, 42, .98) 22%); }.key-scope-dialog-actions button { width: 100%; min-width: 0; }html[data-theme="light"] .key-scope-dialog-actions { background: linear-gradient(180deg, transparent, #f2f5ff 22%); }
  .upload-feedback.is-error { grid-template-columns: auto minmax(0, 1fr); }.upload-feedback.is-error > button { grid-column: 1 / -1; width: 100%; }.upload-feedback-actions { align-items: stretch; flex-direction: column; }.upload-feedback-actions .inline-button { width: 100%; }.upload-progress-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* 移动端账户信息与密钥卡：保留退出入口，并避免后台密钥横向溢出。 */
.mobile-account-bar { display: none; }
.key-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; }
.key-item > small { grid-column: 1 / -1; min-width: 0; }
@media (max-width: 1040px) {
  .mobile-account-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
  .mobile-account-bar > div { display: grid; min-width: 0; gap: 3px; }
  .mobile-account-bar b { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .mobile-account-bar span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .mobile-account-bar button { flex: 0 0 auto; }
}
@media (max-width: 620px) {
  .mobile-account-bar { align-items: flex-start; }
  .mobile-account-bar span { white-space: normal; line-height: 1.5; }
  .key-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .key-item > button { grid-column: 1 / -1; width: 100%; }
}

/* 可回退的角色一致性实验开关 */
.consistency-experiment { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(135deg, rgba(29, 43, 92, .82), rgba(20, 18, 54, .88)); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.consistency-experiment.is-enhanced { border-color: rgba(91, 221, 255, .48); background: radial-gradient(circle at 0 0, rgba(64, 213, 255, .17), transparent 45%), linear-gradient(135deg, rgba(31, 48, 104, .9), rgba(59, 25, 93, .84)); box-shadow: 0 12px 30px rgba(32, 102, 211, .14), 0 0 0 1px rgba(169, 118, 255, .08) inset; }
.consistency-experiment-copy { display: grid; min-width: 0; gap: 7px; }
.consistency-experiment-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.consistency-experiment-copy b { color: var(--ink); font-size: 13px; }
.consistency-experiment-copy p, .consistency-experiment-copy small { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.consistency-experiment-copy small { color: #f4c783; }
.experiment-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; color: #071327; border: 1px solid rgba(125, 239, 255, .82); border-radius: 999px; background: linear-gradient(90deg, #72e7ff, #bb94ff); box-shadow: 0 0 13px rgba(93, 221, 255, .25); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.consistency-experiment.is-legacy .experiment-badge { color: var(--muted); border-color: var(--line); background: var(--field); box-shadow: none; }
.consistency-experiment > button { min-width: 146px; white-space: nowrap; }
html[data-theme="light"] .consistency-experiment { background: linear-gradient(135deg, rgba(247, 250, 255, .98), rgba(237, 239, 255, .98)); }
html[data-theme="light"] .consistency-experiment.is-enhanced { background: radial-gradient(circle at 0 0, rgba(80, 207, 255, .2), transparent 44%), linear-gradient(135deg, #f6fbff, #f6efff); }
html[data-theme="light"] .consistency-experiment-copy small { color: #855718; }

@media (max-width: 620px) {
  .consistency-experiment { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 13px; }
  .consistency-experiment > button { width: 100%; min-width: 0; }
}

/* 分镜工作台双入口：直接剧本与参考视频融合稿保持清晰、可切换。 */
.studio-source-chooser { display: grid; gap: 10px; padding: 13px; border: 1px solid rgba(111, 188, 255, .27); border-radius: 6px; background: linear-gradient(145deg, rgba(42, 133, 216, .09), rgba(138, 73, 204, .08)); }
.studio-source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.studio-source-heading > div { display: grid; gap: 3px; }
.studio-source-heading span { color: #8de8ff; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.studio-source-heading b { color: var(--ink); font-size: 12px; }
.studio-source-heading small { max-width: 280px; color: var(--muted); text-align: right; font-size: 9px; line-height: 1.55; }
.studio-source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.studio-source-card { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: start; gap: 9px; min-width: 0; padding: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: rgba(5, 10, 31, .42); }
.studio-source-card.is-active { border-color: rgba(95, 222, 255, .56); background: linear-gradient(135deg, rgba(49, 177, 235, .15), rgba(131, 76, 220, .12)); box-shadow: 0 9px 24px rgba(30, 91, 190, .1); }
.studio-source-index { display: grid; width: 27px; height: 27px; place-items: center; color: #061126; border-radius: 50%; background: #7be5ff; box-shadow: 0 0 14px rgba(83, 220, 255, .28); font-size: 11px; font-weight: 900; }
.studio-source-card > div { display: grid; min-width: 0; gap: 4px; }
.studio-source-card b { color: var(--ink); font-size: 11px; }
.studio-source-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.studio-source-card em { grid-column: 1 / -1; justify-self: stretch; padding: 5px 8px; color: #82ead8; border: 1px solid rgba(98, 232, 201, .25); border-radius: 3px; background: rgba(50, 182, 152, .08); text-align: center; font-size: 9px; font-style: normal; font-weight: 800; }
.studio-source-card button { grid-column: 1 / -1; width: 100%; min-height: 31px; }
.studio-source-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid rgba(101, 224, 190, .25); border-radius: 4px; background: rgba(34, 160, 125, .07); }
.studio-source-status.is-fusion { border-color: rgba(247, 188, 94, .31); background: rgba(140, 89, 26, .09); }
.studio-source-status > div { display: grid; min-width: 0; gap: 3px; }
.studio-source-status span { color: var(--muted); font-size: 9px; }
.studio-source-status b { color: var(--ink); overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; }
.studio-source-status small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.studio-source-status button { flex: 0 0 auto; max-width: 155px; }
.studio-action-feedback.is-warning { color: #ffd795; border-color: rgba(255, 187, 79, .45); background: linear-gradient(100deg, rgba(164, 91, 21, .17), rgba(137, 57, 118, .12)); }
.fusion-send-action { display: grid; gap: 7px; padding: 12px; border: 1px solid rgba(99, 218, 255, .3); border-radius: 5px; background: linear-gradient(120deg, rgba(32, 167, 223, .12), rgba(149, 72, 211, .1)); }
.fusion-send-action .primary-button { width: 100%; }
.fusion-send-action small { color: var(--muted); text-align: center; font-size: 10px; line-height: 1.55; }
.fusion-send-action small.is-warning { color: #ffd18a; }
html[data-theme="light"] .studio-source-chooser { background: linear-gradient(145deg, rgba(234, 248, 255, .97), rgba(246, 238, 255, .95)); }
html[data-theme="light"] .studio-source-card { background: rgba(255, 255, 255, .82); }
html[data-theme="light"] .studio-source-card.is-active { background: linear-gradient(135deg, rgba(224, 247, 255, .98), rgba(243, 235, 255, .97)); }
html[data-theme="light"] .studio-source-heading span { color: #176b87; }
html[data-theme="light"] .studio-source-status { background: rgba(229, 251, 243, .96); }
html[data-theme="light"] .studio-source-status.is-fusion { background: rgba(255, 247, 231, .97); }
html[data-theme="light"] .studio-action-feedback.is-warning { color: #84510c; background: linear-gradient(100deg, rgba(255, 242, 214, .98), rgba(255, 237, 246, .96)); }
html[data-theme="light"] .fusion-send-action { background: linear-gradient(120deg, rgba(229, 249, 255, .98), rgba(247, 237, 255, .96)); }
html[data-theme="light"] .fusion-send-action small.is-warning { color: #87540d; }
@media (max-width: 720px) {
  .studio-source-heading { display: grid; gap: 5px; }
  .studio-source-heading small { max-width: none; text-align: left; }
  .studio-source-options { grid-template-columns: minmax(0, 1fr); }
  .studio-source-status { align-items: stretch; flex-direction: column; }
  .studio-source-status button { width: 100%; max-width: none; }
}
