/* 幻镜 AI · 全站样式
   深色星空 + 极光渐变，移动端优先响应式 */

:root {
  --bg: #05060f;
  --bg-soft: #0a0c18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --muted: #8d95ab;
  --violet: #7b5cff;
  --cyan: #29d3ff;
  --pink: #ff4fa3;
  --amber: #ffc46b;
  --grad: linear-gradient(100deg, #7b5cff 0%, #29d3ff 48%, #ff4fa3 100%);
  --grad-soft: linear-gradient(120deg, rgba(123, 92, 255, .22), rgba(41, 211, 255, .12) 50%, rgba(255, 79, 163, .18));
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
::selection { background: rgba(123, 92, 255, .45); }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

/* ===== 背景 ===== */
.bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(1200px 600px at 12% -8%, rgba(123, 92, 255, .18), transparent 60%),
  radial-gradient(900px 500px at 88% 4%, rgba(41, 211, 255, .12), transparent 62%),
  radial-gradient(700px 500px at 50% 100%, rgba(255, 79, 163, .10), transparent 65%), var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; }
.blob.b1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle, rgba(123, 92, 255, .55), transparent 68%); animation: drift 22s ease-in-out infinite alternate; }
.blob.b2 { width: 40vw; height: 40vw; right: -10vw; top: 6vw; background: radial-gradient(circle, rgba(41, 211, 255, .40), transparent 68%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.blob.b3 { width: 38vw; height: 38vw; left: 28vw; bottom: -18vw; background: radial-gradient(circle, rgba(255, 79, 163, .34), transparent 70%); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, -2vw, 0) scale(.96); }
}
.grid-mask { position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 72%); }

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn.lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn.primary { background: var(--grad); color: #08090f; box-shadow: 0 12px 34px rgba(123, 92, 255, .35); background-size: 180% 100%; }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 16px 44px rgba(41, 211, 255, .32); }
.btn.ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font-size: 12.5px; color: var(--muted); letter-spacing: .02em; backdrop-filter: blur(6px);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; color: #cfd4e6; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }

/* ===== 导航 ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 7, 16, .72); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { width: min(1320px, calc(100% - 40px)); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(123, 92, 255, .14); border: 1px solid rgba(123, 92, 255, .32); box-shadow: inset 0 0 18px rgba(123, 92, 255, .28); }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.brand-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-badge { font-size: 10px; letter-spacing: .12em; padding: 2px 6px; border-radius: 5px; color: var(--cyan); border: 1px solid rgba(41, 211, 255, .35); background: rgba(41, 211, 255, .08); }
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a { position: relative; padding: 8px 13px; font-size: 14px; color: var(--muted); border-radius: 9px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 196, 107, .32); background: rgba(255, 196, 107, .08); color: var(--amber); font-size: 13px; font-weight: 600; }
.avatar { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: #14172a; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu { position: relative; }
.user-drop { position: absolute; right: 0; top: 48px; width: 210px; padding: 8px; border-radius: 16px; background: rgba(14, 16, 30, .96); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(20px); display: none; }
.user-drop.open { display: block; animation: fadeUp .18s ease both; }
.user-drop-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.user-drop-head strong { font-size: 14px; }
.user-drop-head small { color: var(--muted); font-size: 12px; }
.user-drop a { display: block; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: #cdd2e3; }
.user-drop a:hover { background: rgba(255, 255, 255, .07); }
.user-drop a.danger { color: #ff7b8f; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 148px 0 40px; }
.hero-glow { position: absolute; left: 50%; top: 60px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(123, 92, 255, .26), transparent 62%); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.hero-copy h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.06; letter-spacing: -0.035em; margin: 22px 0 20px; }
.hero-copy > p { color: var(--muted); font-size: clamp(14.5px, 1.3vw, 17px); max-width: 640px; margin: 0 auto; }

.composer-wrap { position: relative; max-width: 880px; margin: 0 auto; }
.composer-glow { position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px); background: conic-gradient(from 120deg, rgba(123,92,255,.55), rgba(41,211,255,.35), rgba(255,79,163,.45), rgba(123,92,255,.55)); filter: blur(18px); opacity: .55; z-index: -1; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer { position: relative; border-radius: var(--radius-lg); padding: 18px; background: linear-gradient(180deg, rgba(19, 22, 40, .92), rgba(10, 12, 22, .94)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07); backdrop-filter: blur(20px); }
.composer-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 2px 4px 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #59607a; }
.dot.live { background: #45e0a0; box-shadow: 0 0 10px #45e0a0; }
.composer-modes { margin-left: auto; display: flex; gap: 4px; background: rgba(255, 255, 255, .05); padding: 3px; border-radius: 999px; }
.mode { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 5px 12px; border-radius: 999px; transition: .2s; }
.mode.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.mode:disabled { opacity: .45; cursor: not-allowed; }
#prompt { width: 100%; resize: vertical; min-height: 84px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; line-height: 1.6; padding: 4px 6px 8px; }
#prompt::placeholder { color: #626a85; }
.composer-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 4px 14px; font-size: 12px; color: #6d7590; }
.sug { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #aeb5c9; font-size: 12px; padding: 4px 10px; border-radius: 999px; transition: .2s; }
.sug:hover { border-color: rgba(41, 211, 255, .45); color: #fff; background: rgba(41, 211, 255, .1); }
.composer-controls { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--line); }
.control { display: flex; align-items: center; gap: 12px; }
.control > label { flex: 0 0 34px; font-size: 12px; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #b9c0d4; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; transition: .18s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: rgba(255, 255, 255, .26); color: #fff; }
.chip.active { background: var(--grad-soft); border-color: rgba(123, 92, 255, .55); color: #fff; box-shadow: inset 0 0 16px rgba(123, 92, 255, .2); }
.r-ico { display: inline-block; border: 1px solid currentColor; border-radius: 2px; opacity: .7; }
.r-1-1 { width: 11px; height: 11px; }
.r-3-4 { width: 9px; height: 12px; }
.r-4-3 { width: 12px; height: 9px; }
.r-16-9 { width: 14px; height: 8px; }
.r-9-16 { width: 8px; height: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.03); }
.stepper button { width: 26px; height: 26px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text); font-size: 14px; line-height: 1; }
.stepper button:hover { background: rgba(255, 255, 255, .14); }
.stepper input { width: 30px; border: 0; background: transparent; text-align: center; font-size: 13px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.composer-foot { display: flex; align-items: center; gap: 14px; padding: 14px 4px 2px; border-top: 1px solid var(--line); }
.cost-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cost-hint svg { color: var(--amber); }
.cost-hint b { color: var(--amber); }
.generate-btn { margin-left: auto; height: 48px; padding: 0 26px; position: relative; overflow: hidden; }
.generate-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); }
.generate-btn:hover::after { transform: translateX(120%); transition: transform .7s ease; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 780px; margin: 42px auto 0; }
.hero-stats > div { text-align: center; padding: 12px; border-left: 1px solid var(--line); }
.hero-stats > div:first-child { border-left: 0; }
.hero-stats b { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--muted); }

/* ===== 滚动字幕 ===== */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); margin-top: 48px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 32px; align-items: center; width: max-content; animation: marq 34s linear infinite; }
.marquee-track span { font-size: 15px; color: #9aa2ba; letter-spacing: .12em; white-space: nowrap; }
.marquee-track i { color: rgba(123, 92, 255, .7); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ===== 区块 ===== */
.section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head.center { justify-content: center; text-align: center; flex-direction: column; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-desc { color: var(--muted); margin-top: 10px; font-size: 14.5px; }

/* 作品瀑布 */
.masonry { columns: 4; column-gap: 16px; }
.work-card { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); position: relative; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; display: block; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, .45); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.work-img { overflow: hidden; background: #0d1020; }
.work-img img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .work-img img { transform: scale(1.06); }
.work-meta { padding: 12px 14px 14px; }
.work-meta p { font-size: 12.5px; color: #c3c9dc; line-height: 1.55; margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-sub { display: flex; justify-content: space-between; font-size: 11.5px; color: #6f7791; }

/* 能力矩阵 */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card { position: relative; padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; }
.cap-card::before { content: ""; position: absolute; inset: -40% -10% auto; height: 180px; background: radial-gradient(ellipse at center, rgba(123, 92, 255, .28), transparent 65%); opacity: 0; transition: opacity .4s; }
.cap-card:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, .4); }
.cap-card:hover::before { opacity: 1; }
.cap-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(123, 92, 255, .13); border: 1px solid rgba(123, 92, 255, .3); color: #b9a8ff; margin-bottom: 16px; }
.cap-card h3 { font-size: 17px; margin-bottom: 8px; }
.cap-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.cap-arrow { display: inline-block; margin-top: 14px; font-size: 12px; color: #7d86a3; transition: color .25s; }
.cap-card:hover .cap-arrow { color: var(--cyan); }

/* 流程 */
.flow { padding-top: 40px; }
.flow-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.flow-copy h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 14px 0 26px; }
.steps { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step b { font-family: var(--mono); font-size: 13px; color: var(--cyan); padding-top: 2px; }
.step h4 { font-size: 15.5px; margin-bottom: 3px; }
.step p { font-size: 13px; color: var(--muted); }
.flow-visual { position: relative; }
.flow-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.flow-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.flow-frame-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 12px 16px; font-size: 11.5px; color: #cfd6ea; background: linear-gradient(0deg, rgba(5,6,15,.85), transparent); font-family: var(--mono); }
.flow-chip { position: absolute; font-size: 12px; padding: 8px 13px; border-radius: 999px; background: rgba(12, 14, 26, .88); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.flow-chip.c1 { top: 8%; left: -6%; color: #b9a8ff; border-color: rgba(123,92,255,.5); animation: float 6s ease-in-out infinite; }
.flow-chip.c2 { bottom: 14%; right: -5%; color: #7fe6ff; border-color: rgba(41,211,255,.4); animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* CTA */
.cta { padding: 40px 0 100px; }
.cta-inner { position: relative; text-align: center; padding: 70px 24px; border-radius: 32px; overflow: hidden; border: 1px solid rgba(123, 92, 255, .35); background:
  radial-gradient(120% 140% at 50% 0%, rgba(123,92,255,.35), transparent 55%), radial-gradient(80% 100% at 90% 100%, rgba(41,211,255,.22), transparent 60%), rgba(10, 12, 24, .8); }
.cta-inner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity: .25; mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 70%); }
.cta-inner h2 { font-size: clamp(26px, 3.6vw, 42px); position: relative; z-index: 1; }
.cta-inner p { color: #c2c8db; margin: 14px auto 26px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: rgba(5, 6, 15, .75); padding: 56px 0 24px; }
.footer-inner { width: min(1240px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 14px 0 18px; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { font-size: 12px; color: #8f97ad; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.footer-social a:hover { color: #fff; border-color: var(--line-strong); }
.footer-col h4 { font-size: 13px; margin-bottom: 14px; color: #dfe3f0; }
.footer-col a { display: block; font-size: 12.5px; color: #818aa3; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { width: min(1240px, calc(100% - 48px)); margin: 40px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #6b738c; flex-wrap: wrap; }

/* ===== 认证页 ===== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px; background:
  radial-gradient(80% 80% at 20% 10%, rgba(123,92,255,.35), transparent 60%), radial-gradient(70% 70% at 90% 90%, rgba(41,211,255,.25), transparent 60%), #070810; }
.auth-visual-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 110px 42px 42px; opacity: .8; transform: rotate(-4deg) scale(1.08); }
.auth-visual-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,15,.35), rgba(5,6,15,.92)); }
.auth-visual .brand, .auth-quote { position: relative; z-index: 2; }
.auth-quote h3 { font-size: 26px; line-height: 1.4; margin-bottom: 12px; }
.auth-quote p { color: #aab2c9; font-size: 13.5px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: #a6adc3; margin-bottom: 7px; }
.field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: rgba(123, 92, 255, .7); box-shadow: 0 0 0 3px rgba(123, 92, 255, .16); }
.field .hint { font-size: 11.5px; color: #6d7590; margin-top: 6px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }
.auth-alt a { color: var(--cyan); }
.auth-terms { font-size: 11.5px; color: #6d7590; margin-top: 18px; line-height: 1.7; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: 12.5px; margin-bottom: 16px; border: 1px solid; }
.alert.error { background: rgba(255, 77, 109, .1); border-color: rgba(255, 77, 109, .4); color: #ff9db0; }
.alert.ok { background: rgba(69, 224, 160, .1); border-color: rgba(69, 224, 160, .4); color: #8bf0c5; }

/* ===== 创作台 ===== */
.studio-page { min-height: 100vh; padding-top: 72px; }
.studio-layout { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 72px); }
.studio-panel { border-right: 1px solid var(--line); padding: 22px; background: rgba(255, 255, 255, .02); position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.studio-panel h2 { font-size: 17px; margin-bottom: 4px; }
.studio-panel > p { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.sp-field { margin-bottom: 16px; }
.sp-field label { display: flex; justify-content: space-between; font-size: 12px; color: #a6adc3; margin-bottom: 7px; }
.sp-field label span { color: #656d87; }
.sp-field textarea, .sp-field input[type=text] { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); padding: 11px 12px; font-size: 13px; outline: 0; resize: vertical; }
.sp-field textarea { min-height: 112px; }
.sp-field textarea:focus, .sp-field input:focus { border-color: rgba(123, 92, 255, .6); }
.sp-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sp-styles .chip { justify-content: center; font-size: 12px; padding: 8px 6px; }
.sp-ratio { display: flex; gap: 6px; }
.sp-ratio .chip { flex: 1; justify-content: center; }
.sp-actions { margin-top: 18px; }
.sp-note { font-size: 11px; color: #616980; text-align: center; margin-top: 10px; }
.studio-main { padding: 22px 26px 40px; min-width: 0; }
.studio-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.studio-topbar h1 { font-size: 20px; }
.studio-topbar .sep { color: #4e556c; }
.studio-topbar .meta { font-size: 12px; color: var(--muted); }
.studio-topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.canvas-empty { border: 1px dashed rgba(255,255,255,.14); border-radius: 22px; padding: 64px 24px; text-align: center; background: radial-gradient(60% 60% at 50% 30%, rgba(123,92,255,.1), transparent 70%); }
.canvas-empty h3 { font-size: 18px; margin-bottom: 8px; }
.canvas-empty p { color: var(--muted); font-size: 13px; max-width: 420px; margin: 0 auto; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.result-card { position: relative; border-radius: 16px; overflow: hidden; background: #0b0e1c; border: 1px solid var(--line); animation: fadeUp .45s ease both; }
.result-card img { width: 100%; height: auto; display: block; transition: transform .5s; }
.result-card:hover img { transform: scale(1.03); }
.result-actions { position: absolute; inset: auto 0 0; display: flex; gap: 6px; padding: 10px; background: linear-gradient(0deg, rgba(5,6,15,.9), transparent); opacity: 0; transition: opacity .25s; }
.result-card:hover .result-actions { opacity: 1; }
.result-actions button, .result-actions a { flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.08); color: #fff; font-size: 12px; display: grid; place-items: center; backdrop-filter: blur(6px); }
.result-actions button:hover, .result-actions a:hover { background: rgba(255,255,255,.18); }
.skeleton { aspect-ratio: 1/1; border-radius: 16px; background: linear-gradient(100deg, #10132a 20%, #1a1e3c 40%, #10132a 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 14px; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s ease; }
.studio-status { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.history-strip { margin-top: 34px; }
.history-strip h3 { font-size: 13px; color: #a6adc3; margin-bottom: 10px; display: flex; justify-content: space-between; }
.history-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.history-list a { flex: 0 0 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.history-list img { width: 96px; height: 96px; object-fit: cover; }
.history-list .empty { font-size: 12px; color: #666e86; }

/* ===== 作品详情 ===== */
.work-detail { padding-top: 100px; padding-bottom: 80px; }
.wd-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.wd-image { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #0b0e1c; box-shadow: var(--shadow); }
.wd-image img { width: 100%; height: auto; }
.wd-side h1 { font-size: 22px; line-height: 1.5; margin-bottom: 16px; }
.wd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.wd-author { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 18px; }
.wd-author img { width: 38px; height: 38px; border-radius: 50%; }
.wd-author strong { font-size: 13.5px; display: block; }
.wd-author span { font-size: 11.5px; color: var(--muted); }
.wd-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.wd-info div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.wd-info small { display: block; font-size: 11px; color: #6d7590; }
.wd-info b { font-size: 13px; font-family: var(--mono); }
.wd-prompt { font-size: 12.5px; color: #b6bdd1; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.wd-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 作品广场 ===== */
.explore-head { padding: 120px 0 24px; }
.explore-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.explore-head p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; align-items: center; }
.filters form { display: flex; gap: 8px; margin-left: auto; }
.filters input[type=search] { height: 38px; width: 220px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; outline: 0; }
.filters input[type=search]:focus { border-color: rgba(41,211,255,.5); }
.filter-chip { font-size: 12.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: #b0b7cc; background: rgba(255,255,255,.03); }
.filter-chip.active { background: var(--grad-soft); border-color: rgba(123,92,255,.55); color: #fff; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ===== 个人中心 / 价格 ===== */
.page-head { padding: 116px 0 10px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.page-head p { color: var(--muted); margin-top: 8px; }
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 28px 0 80px; align-items: start; }
.profile-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(123,92,255,.16), rgba(255,255,255,.02)); padding: 26px; text-align: center; position: sticky; top: 96px; }
.profile-card img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; border: 2px solid rgba(255,255,255,.18); }
.profile-card h2 { font-size: 19px; }
.profile-card .email { font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.profile-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.profile-stat div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px; }
.profile-stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.profile-stat span { font-size: 11px; color: var(--muted); }
.account-main h3 { font-size: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); padding: 18px; margin-bottom: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; color: #798199; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .plus { color: #6fe6b4; }
.data-table .minus { color: #ff8fa3; }
.mini-works { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mini-works a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mini-works img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 30px 0 40px; }
.price-card { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.price-card.hot { border-color: rgba(123,92,255,.55); background: linear-gradient(170deg, rgba(123,92,255,.18), rgba(255,255,255,.02)); box-shadow: 0 20px 60px rgba(123,92,255,.18); }
.price-badge { position: absolute; top: 16px; right: 16px; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #08090f; font-weight: 700; }
.price-card h3 { font-size: 17px; }
.price-card .amount { font-size: 34px; margin: 14px 0 4px; font-weight: 700; }
.price-card .amount small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 12.5px; color: #b2b9cd; }
.price-card li { padding: 5px 0; display: flex; gap: 8px; }
.price-card li::before { content: "✓"; color: #6fe6b4; }

/* ===== 后台 ===== */
.admin-body { padding-top: 72px; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.admin-side { border-right: 1px solid var(--line); padding: 20px 14px; background: rgba(255,255,255,.02); }
.admin-side a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: #a9b0c6; }
.admin-side a.active, .admin-side a:hover { background: rgba(123,92,255,.16); color: #fff; }
.admin-main { padding: 26px; min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255,255,255,.03); }
.stat-card small { font-size: 11px; color: var(--muted); }
.stat-card b { display: block; font-size: 24px; margin-top: 4px; }
.admin-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.admin-tools input, .admin-tools select { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); padding: 0 10px; font-size: 12.5px; }
.admin-main h3 { font-size: 15px; margin: 22px 0 10px; }

/* ===== Toast / Lightbox ===== */
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 120; padding: 12px 20px; border-radius: 999px; background: rgba(16, 18, 32, .95); border: 1px solid var(--line-strong); color: #fff; font-size: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3, 4, 10, .92); backdrop-filter: blur(10px); display: none; place-items: center; padding: 32px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox .close { position: absolute; top: 22px; right: 26px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; }

/* ===== 动画 ===== */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .masonry { columns: 3; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow-visual { max-width: 460px; margin: 0 auto; }
  .wd-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-panel { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .nav-inner { height: 64px; width: calc(100% - 28px); gap: 12px; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 18px; background: rgba(7, 8, 18, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn.ghost { display: none; }
  .brand-badge { display: none; }
  .hero { padding-top: 108px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .composer { padding: 14px; border-radius: 20px; }
  .composer-controls { gap: 10px; }
  .control { align-items: flex-start; flex-direction: column; gap: 7px; }
  .control.compact { flex-direction: row; align-items: center; }
  .composer-foot { flex-direction: column; align-items: stretch; }
  .generate-btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .masonry { columns: 2; column-gap: 10px; }
  .work-card { margin-bottom: 10px; border-radius: 12px; }
  .work-meta { padding: 9px 10px 11px; }
  .work-meta p { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .flow-frame { transform: none; }
  .flow-chip.c1 { left: 0; }
  .flow-chip.c2 { right: 0; }
  .result-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .studio-main { padding: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .mini-works { grid-template-columns: repeat(3, 1fr); }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .filters form { width: 100%; margin-left: 0; }
  .filters input[type=search] { flex: 1; width: auto; }
  .explore-head { padding-top: 100px; }
  .page-head { padding-top: 96px; }
  .work-detail { padding-top: 90px; }
}
@media (max-width: 420px) {
  .masonry { columns: 1; }
  .masonry .work-card .work-meta p { display: block; }
  .hero-copy h1 { font-size: 34px; }
}

/* AI 模型设置表单 */
.ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.ai-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#8d95ab}
.ai-form input,.ai-form select,.ai-form textarea{width:100%;background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:8px;color:#e8ecf7;padding:9px 10px;font-size:13px;outline:none;font-family:inherit}
.ai-form input:focus,.ai-form select:focus,.ai-form textarea:focus{border-color:#7c5cff;box-shadow:0 0 0 3px rgba(124,92,255,.15)}
.ai-form select option{background:#12132a;color:#e8ecf7}
@media(max-width:720px){.ai-grid{grid-template-columns:1fr}}
