/* ==========================================================================
   织域 Studio — 视觉系统 v3
   深色底 + 光晕 + 玻璃面板。所有容器圆角，控件以胶囊为主，用渐变高光代替硬边框。
   ========================================================================== */

:root{
  --bg:#07080b;
  --ink:#eef2f9;
  --ink-2:#d7dde9;
  --muted:#a8b3c6;
  --faint:#828c9f;
  --line:rgba(255,255,255,.11);
  --line-2:rgba(255,255,255,.16);
  --a1:#6ee7ff;
  --a2:#9d8bff;
  --a3:#ff8fd0;
  --ok:#4ade80;
  --warn:#fbbf24;
  --bad:#ff8585;
  --r-xl:30px;
  --r-lg:22px;
  --r-md:16px;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --bar-h:64px;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  font-size:15.5px;
  line-height:1.7;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  padding-bottom:128px;
  overflow-x:hidden;
}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-.01em}
p{margin:0}
svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
::selection{background:rgba(110,231,255,.3)}
:focus-visible{outline:2px solid var(--a1);outline-offset:3px}

/* ---------------------------------------------------------------- 背景光晕 */
.aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.aurora i{position:absolute;display:block;border-radius:50%;filter:blur(90px);will-change:transform}
.aurora .o1{
  width:52vw;height:52vw;left:-12vw;top:-18vw;
  background:radial-gradient(circle at 40% 40%,rgba(157,139,255,.55),rgba(157,139,255,0) 68%);
  animation:drift1 26s ease-in-out infinite alternate;
}
.aurora .o2{
  width:44vw;height:44vw;right:-10vw;top:6vh;
  background:radial-gradient(circle at 50% 50%,rgba(110,231,255,.42),rgba(110,231,255,0) 66%);
  animation:drift2 32s ease-in-out infinite alternate;
}
.aurora .o3{
  width:56vw;height:46vw;left:22vw;bottom:-26vw;
  background:radial-gradient(circle at 50% 50%,rgba(255,143,208,.30),rgba(255,143,208,0) 68%);
  animation:drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(6vw,4vh,0) scale(1.12)}}
@keyframes drift2{from{transform:translate3d(0,0,0) scale(1.05)}to{transform:translate3d(-5vw,6vh,0) scale(.95)}}
@keyframes drift3{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-6vw,-4vh,0) scale(1.1)}}

/* ---------------------------------------------------------------- 顶栏 */
.topbar{
  position:sticky;top:0;z-index:40;
  background:rgba(7,8,11,.66);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-in{
  max-width:1060px;margin:0 auto;height:var(--bar-h);
  padding:0 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}
.brand-mark{
  width:30px;height:30px;border-radius:11px;display:block;position:relative;
  background:linear-gradient(135deg,var(--a1),var(--a2) 58%,var(--a3));
  box-shadow:0 8px 22px -8px rgba(110,231,255,.7), inset 0 1px 0 rgba(255,255,255,.45);
}
.brand-mark::after{content:"";position:absolute;inset:8px;border-radius:5px;background:rgba(7,8,11,.82)}
.brand-txt{display:flex;flex-direction:column;line-height:1.2}
.brand-txt strong{font-size:16.5px;font-weight:600;letter-spacing:.01em}
.brand-txt em{font-style:normal;font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:var(--muted);margin-top:3px}

.topbar-act{display:flex;align-items:center;gap:12px}
.svc{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 12px;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;color:var(--ink-2);
}
.svc i{width:6px;height:6px;border-radius:50%;background:var(--muted);display:block;transition:.2s}
.svc[data-state="ok"]{color:#a7f3d0;border-color:rgba(74,222,128,.28);background:rgba(74,222,128,.10)}
.svc[data-state="ok"] i{background:var(--ok);box-shadow:0 0 10px rgba(74,222,128,.9)}
.svc[data-state="warn"]{color:#fde68a;border-color:rgba(251,191,36,.28);background:rgba(251,191,36,.10)}
.svc[data-state="warn"] i{background:var(--warn);box-shadow:0 0 10px rgba(251,191,36,.8)}
.svc[data-state="bad"]{color:#fecaca;border-color:rgba(255,133,133,.3);background:rgba(255,133,133,.10)}
.svc[data-state="bad"] i{background:var(--bad);box-shadow:0 0 10px rgba(255,133,133,.8)}

.txt-btn{
  font-size:13.5px;color:var(--ink);padding:8px 16px;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);
  transition:.18s;
}
.txt-btn:hover{background:rgba(255,255,255,.1);color:var(--ink);border-color:rgba(255,255,255,.18)}

/* 顶栏价格胶囊（内容来自后台配置） */
.price-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 14px;border-radius:999px;white-space:nowrap;
  background:linear-gradient(135deg,rgba(110,231,255,.12),rgba(255,255,255,.03));
  border:1px solid rgba(110,231,255,.26);
  color:#a9e9ff;font-size:12.5px;font-weight:500;letter-spacing:.01em;
  transition:.18s;
}
.price-chip svg{
  width:14px;height:14px;flex:none;opacity:.85;
  fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.price-chip:hover{
  background:linear-gradient(135deg,rgba(110,231,255,.2),rgba(255,255,255,.06));
  border-color:rgba(110,231,255,.44);
}

/* 顶部公告条（后台可写，没写就不占位置） */
.notice-bar{
  display:flex;align-items:center;gap:11px;
  width:calc(100% - 36px);max-width:1000px;margin:14px auto 0;padding:11px 18px;
  border-radius:16px;
  background:linear-gradient(90deg,rgba(110,231,255,.11),rgba(110,231,255,.03));
  border:1px solid rgba(110,231,255,.20);
}
.notice-dot{
  width:6px;height:6px;border-radius:50%;flex:none;
  background:var(--a1);box-shadow:0 0 10px rgba(110,231,255,.9);
}
.notice-bar p{flex:1;min-width:0;font-size:13px;line-height:1.6;color:var(--ink-2)}

/* 顶栏登录用户 */
.mem-badge{
  display:flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;
  background:linear-gradient(135deg,rgba(255,206,120,.18),rgba(255,160,80,.10));
  border:1px solid rgba(255,200,120,.38);color:#ffd9a3;font-size:12px;
  white-space:nowrap;line-height:1.3;
}
.mem-badge b{font-weight:600;letter-spacing:.02em}
.mem-badge i{font-style:normal;font-family:var(--mono);font-size:11px;color:#e9b979;letter-spacing:.04em}
.mem-badge.is-free{
  background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.12);color:#9aa4b6;
}
.mem-badge.is-free i{color:#7f8899}
.mem-badge.expired{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14);color:#98a2b3}
.mem-badge.expired i{color:#7d8798}

.who{
  display:flex;flex-direction:column;justify-content:center;line-height:1.25;
  padding:5px 13px;border-radius:999px;
  background:rgba(110,231,255,.08);border:1px solid rgba(110,231,255,.22);
  max-width:190px;overflow:hidden;
}
.who b{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who i{font-style:normal;font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--a1);white-space:nowrap}
.who.is-out{border-color:rgba(255,140,140,.35);background:rgba(255,120,120,.1)}
.who.is-out i{color:#ffb3b3}
.txt-btn.is-link{text-decoration:none;display:inline-flex;align-items:center}

/* ---------------------------------------------------------------- 章节胶囊导航 */
.index{
  position:sticky;top:var(--bar-h);z-index:30;
  padding:14px 0 6px;
  background:linear-gradient(180deg,rgba(7,8,11,.9),rgba(7,8,11,0));
}
.index-in{
  max-width:1060px;margin:0 auto;padding:0 26px;
  display:flex;align-items:center;justify-content:center;gap:16px;
}
.steps{
  list-style:none;margin:0;padding:5px;display:flex;gap:4px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  overflow-x:auto;scrollbar-width:none;
}
.steps::-webkit-scrollbar{display:none}
.step{
  display:flex;align-items:center;gap:7px;
  padding:7px 15px;border-radius:999px;cursor:pointer;white-space:nowrap;
  color:var(--muted);transition:.2s;
}
.step em{font-family:var(--mono);font-style:normal;font-size:10.5px;letter-spacing:.08em;color:var(--muted);transition:.2s}
.step span{font-size:13.5px;letter-spacing:.02em;font-weight:500}
.step:hover{color:var(--ink-2);background:rgba(255,255,255,.05)}
.step.is-active{
  color:#08121a;font-weight:600;
  background:linear-gradient(135deg,var(--a1),var(--a2));
  box-shadow:0 8px 22px -10px rgba(110,231,255,.9);
}
.step.is-active em{color:rgba(7,15,22,.6)}
.step.is-done{color:var(--ink-2)}
.step.is-done em{color:var(--a1)}
.index-note{font-family:var(--mono);font-size:11px;letter-spacing:.06em;color:var(--faint);white-space:nowrap}

/* ---------------------------------------------------------------- 主文档 */
.doc{position:relative;z-index:1;max-width:1060px;margin:0 auto;padding:14px 26px 0}
.sheet{
  position:relative;
  padding:28px 30px 30px;margin-bottom:20px;
  border-radius:var(--r-xl);
  background:linear-gradient(158deg,rgba(255,255,255,.085),rgba(255,255,255,.022) 48%,rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(26px) saturate(150%);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
  box-shadow:0 40px 80px -60px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.10);
  scroll-margin-top:calc(var(--bar-h) + 74px);
}
.sheet::before{
  content:"";position:absolute;left:26px;right:26px;top:0;height:1px;border-radius:2px;
  background:linear-gradient(90deg,rgba(110,231,255,0),rgba(110,231,255,.55),rgba(157,139,255,.45),rgba(255,143,208,0));
  opacity:.75;
}
.sheet-head{margin-bottom:24px}
.head-line{display:flex;align-items:center;gap:11px;margin-bottom:7px}
.sheet-no{
  display:inline-grid;place-items:center;height:26px;min-width:40px;padding:0 11px;
  border-radius:999px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;color:var(--a1);
  background:rgba(110,231,255,.10);
  border:1px solid rgba(110,231,255,.26);
  box-shadow:0 0 22px -10px rgba(110,231,255,.9);
}
.sheet-head h1{font-size:26px;font-weight:600;letter-spacing:-.01em}
.sheet-head p{font-size:14px;line-height:1.75;color:var(--muted);max-width:660px}

/* ---------------------------------------------------------------- 上传 */
.drop-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}
.drop{
  position:relative;display:block;aspect-ratio:1/1.02;
  border-radius:20px;
  border:1px dashed rgba(255,255,255,.18);
  background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  overflow:hidden;cursor:pointer;transition:.22s;
}
.drop:hover{
  border-color:rgba(110,231,255,.55);
  background:linear-gradient(160deg,rgba(110,231,255,.10),rgba(157,139,255,.06));
  transform:translateY(-2px);
  box-shadow:0 22px 40px -28px rgba(110,231,255,.7);
}
.drop.is-over{border-color:var(--a1);background:rgba(110,231,255,.14)}
.drop.is-filled{border-style:solid;border-color:rgba(255,255,255,.14);background:#0b0d12}
.drop-empty{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  text-align:center;padding:16px;
}
.drop-empty .plus{
  width:40px;height:40px;border-radius:14px;display:grid;place-items:center;margin-bottom:8px;
  background:rgba(110,231,255,.10);
  border:1px solid rgba(110,231,255,.22);
  color:var(--a1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.drop-empty .plus svg{width:16px;height:16px}
.drop-empty strong{font-size:14px;font-weight:600;color:var(--ink)}
.drop-empty small{font-size:12.5px;color:var(--muted)}
.drop-filled{position:absolute;inset:0}
.drop-filled img{width:100%;height:100%;object-fit:cover;display:block}
.drop-filled .tag{
  position:absolute;left:10px;bottom:10px;padding:4px 11px;border-radius:999px;
  background:rgba(8,11,16,.62);color:#e8f6ff;
  font-size:11.5px;letter-spacing:.05em;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
}
.del{
  position:absolute;right:10px;top:10px;width:26px;height:26px;border-radius:50%;
  background:rgba(8,11,16,.6);color:#fff;font-size:15px;line-height:1;
  display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(8px);transition:.18s;
}
.del:hover{background:rgba(255,133,133,.9);border-color:transparent;color:#1a0505}

/* ---------------------------------------------------------------- 字段 */
.field{margin-bottom:22px}
.field:last-child{margin-bottom:0}
.field-label{
  display:block;font-family:var(--mono);font-size:12px;letter-spacing:.05em;font-weight:600;color:var(--ink-2);
  color:var(--muted);margin-bottom:9px;
}
.field-label .opt{font-family:var(--sans);font-size:11.5px;color:var(--faint);margin-left:5px;font-weight:400}
.field-hint{font-size:13px;color:var(--muted);margin-top:9px;line-height:1.6}

.input{
  width:100%;padding:12px 15px;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  font-size:15px;color:var(--ink);outline:none;transition:.18s;
}
.input::placeholder{color:#6d768a}
.input:hover{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
.input:focus{
  border-color:rgba(110,231,255,.6);
  background:rgba(110,231,255,.06);
  box-shadow:0 0 0 4px rgba(110,231,255,.12);
}
.area{resize:vertical;min-height:84px;line-height:1.75}

/* 分段：胶囊 */
.seg{
  display:inline-flex;padding:4px;gap:2px;border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.seg button{padding:8px 16px;border-radius:999px;font-size:13.5px;color:var(--ink-2);transition:.2s;white-space:nowrap}
.seg button:hover{color:var(--ink);background:rgba(255,255,255,.06)}
.seg button.on{
  background:linear-gradient(135deg,var(--a1),var(--a2));
  color:#07121a;font-weight:600;
  box-shadow:0 8px 20px -10px rgba(110,231,255,.85);
}
.seg.small button{padding:8px 14px;font-size:13px}

/* 快捷词 */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chips button{
  padding:7px 14px;border-radius:999px;font-size:12.5px;
  border:1px solid rgba(255,255,255,.10);color:var(--ink-2);
  background:rgba(255,255,255,.04);transition:.18s;
}
.chips button:hover{border-color:rgba(255,255,255,.22);color:var(--ink);background:rgba(255,255,255,.08)}
.chips button.on{
  background:rgba(110,231,255,.16);
  border-color:rgba(110,231,255,.5);
  color:#cdf6ff;
  box-shadow:0 0 20px -8px rgba(110,231,255,.9);
}

.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.grid-3 .input{padding:9px 14px}

.stepper{
  display:inline-flex;align-items:center;padding:4px;gap:4px;border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.stepper button{
  width:32px;height:32px;border-radius:50%;font-size:15px;color:var(--ink-2);
  display:grid;place-items:center;transition:.18s;
}
.stepper button:hover{background:rgba(255,255,255,.1);color:var(--ink)}
.stepper output{font-family:var(--mono);font-size:15px;min-width:34px;text-align:center;color:var(--ink)}

.note{
  margin-top:4px;padding:13px 16px;border-radius:16px;
  font-size:13px;line-height:1.75;color:#cbdfea;
  background:linear-gradient(120deg,rgba(110,231,255,.10),rgba(157,139,255,.05));
  border:1px solid rgba(110,231,255,.18);
}

/* ---------------------------------------------------------------- 空 / 加载 */
.empty{
  padding:40px 20px 42px;text-align:center;border-radius:20px;
  border:1px dashed rgba(255,255,255,.14);
  background:rgba(255,255,255,.022);
}
.empty h3{font-size:16.5px;font-weight:600;margin-bottom:8px}
.empty p{font-size:14px;color:var(--muted);max-width:400px;margin:0 auto;line-height:1.7}
.empty.compact{padding:32px 20px}

.loading{
  padding:40px 20px 42px;text-align:center;border-radius:20px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.03);
}
.loading-line{
  position:relative;width:190px;height:3px;border-radius:999px;
  background:rgba(255,255,255,.09);
  margin:0 auto 20px;overflow:hidden;
}
.loading-line i{
  position:absolute;top:0;left:0;width:40%;height:100%;border-radius:999px;
  background:linear-gradient(90deg,var(--a1),var(--a2));
  box-shadow:0 0 16px rgba(110,231,255,.9);
  animation:sweep 1.5s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes sweep{0%{transform:translateX(-110%)}100%{transform:translateX(310%)}}
.loading h3{font-size:16.5px;font-weight:600;margin-bottom:7px}
.loading p{font-size:14px;color:var(--muted)}

/* ---------------------------------------------------------------- 结果 */
.result-top{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.style-card{
  flex:1 1 420px;min-width:0;padding:20px 22px;border-radius:22px;
  background:linear-gradient(150deg,rgba(157,139,255,.16),rgba(110,231,255,.07) 55%,rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 28px 50px -40px rgba(157,139,255,.9);
}
.style-label{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.16em;font-weight:600;color:#bfe9ff;margin-bottom:8px}
.style-name{
  display:block;width:100%;border:0;background:transparent;outline:none;
  font-size:31px;font-weight:700;line-height:1.3;letter-spacing:-.01em;color:#fff;
  padding:0 0 3px;border-bottom:1px solid transparent;transition:.18s;
}
.style-mood{
  display:block;width:100%;border:0;background:transparent;outline:none;
  font-size:14px;color:#c9d5e8;padding:8px 0 2px;line-height:1.6;
  border-bottom:1px solid transparent;transition:.18s;
}
.style-name:hover,.style-mood:hover{border-bottom-color:rgba(255,255,255,.14)}
.style-name:focus,.style-mood:focus{border-bottom-color:rgba(110,231,255,.6)}
.result-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;padding-top:6px}
.result-meta > span:first-child{
  font-family:var(--mono);font-size:12px;letter-spacing:.05em;color:var(--muted);
  padding:5px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
}
.result-meta .warn{
  font-size:13px;line-height:1.55;text-align:right;max-width:240px;
  color:#fde68a;padding:6px 12px;border-radius:12px;
  background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.26);
}

.block{margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.06)}
.block-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.block-head h3{font-size:15.5px;font-weight:600;letter-spacing:.01em}
.block-head span{font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;color:var(--muted)}

.kv{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:18px}
.kv .k{font-size:12.5px;letter-spacing:.03em;color:var(--ink-2);font-weight:600;padding:13px 0 0}
.kv .v{padding:9px 0;min-width:0;box-shadow:inset 0 -1px 0 rgba(255,255,255,.055)}
.kv textarea{
  display:block;width:100%;border:0;background:transparent;outline:none;
  font-size:14.5px;line-height:1.7;padding:0;resize:none;color:var(--ink);overflow:hidden;
}

.slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.slot{
  padding:12px 14px;border-radius:16px;min-width:0;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
  transition:.18s;
}
.slot:focus-within{border-color:rgba(110,231,255,.4);background:rgba(110,231,255,.06)}
.slot label{display:block;font-family:var(--mono);font-size:11.5px;letter-spacing:.06em;color:var(--ink-2);font-weight:600;margin-bottom:5px}
.slot textarea{
  display:block;width:100%;border:0;background:transparent;outline:none;resize:none;
  font-size:14px;line-height:1.65;min-height:40px;color:var(--ink);
}

.scene-tools{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;align-items:center}
.scene-tools .input{flex:1 1 260px;padding:11px 15px;font-size:14px}

.soft-btn{
  padding:10px 17px;border-radius:999px;font-size:13px;letter-spacing:.01em;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);color:var(--ink-2);
  transition:.18s;white-space:nowrap;
}
.soft-btn:hover{background:rgba(255,255,255,.1);color:var(--ink);border-color:rgba(255,255,255,.22)}
.soft-btn:disabled{opacity:.45;cursor:not-allowed}
.soft-btn.wide{flex:1}

.actions{display:flex;flex-direction:column;gap:9px}
.act{
  display:grid;grid-template-columns:28px minmax(0,1fr);gap:13px;
  padding:13px 15px;border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
  transition:.18s;
}
.act:focus-within{border-color:rgba(110,231,255,.35);background:rgba(110,231,255,.05)}
.act .no{
  width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--mono);font-size:11px;color:#a9e9ff;
  background:rgba(110,231,255,.10);
  border:1px solid rgba(110,231,255,.24);
}
.act .body{min-width:0}
.act .body > textarea{
  display:block;width:100%;border:0;background:transparent;outline:none;resize:none;
  font-size:14px;line-height:1.75;padding:2px 0 0;color:var(--ink);
}
.act .sub{
  display:flex;gap:16px;margin-top:9px;padding-top:9px;font-size:12.5px;color:var(--muted);
  border-top:1px solid rgba(255,255,255,.06);
}
.act .sub span{display:flex;gap:6px;align-items:baseline;min-width:0}
.act .sub b{font-family:var(--mono);font-weight:400;font-size:10.5px;color:var(--faint);flex:0 0 auto}
.act .sub input{color:var(--ink-2)}
.act .sub .sk{margin-left:auto;font-family:var(--mono);font-size:10.5px;color:var(--faint);white-space:nowrap}

/* ---------------------------------------------------------------- 提示词 */
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.tabs button{
  padding:6px 13px;border-radius:999px;
  font-family:var(--mono);font-size:12px;letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--ink-2);
  transition:.18s;
}
.tabs button:hover{background:rgba(255,255,255,.09);color:var(--ink)}
.tabs button.on{
  background:linear-gradient(135deg,var(--a1),var(--a2));
  border-color:transparent;color:#07121a;font-weight:600;
  box-shadow:0 8px 20px -10px rgba(110,231,255,.85);
}

.prompt-card{
  border-radius:20px;overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
}
.prompt-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 10px 10px 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
}
.prompt-head > span{
  font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.prompt-acts{display:flex;gap:6px;flex:0 0 auto}
.prompt-acts .soft-btn{padding:7px 14px;font-size:12.5px}
.ratio-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:11px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.012);
}
.ratio-label{
  flex:0 0 auto;font-family:var(--mono);font-size:10.5px;
  letter-spacing:.12em;color:var(--faint);white-space:nowrap;
}
.ratio-row .seg{margin-right:auto}
.ratio-px{
  flex:0 0 auto;font-family:var(--mono);font-size:11.5px;
  letter-spacing:.02em;color:var(--muted);white-space:nowrap;
}
.prompt-box{
  display:block;width:100%;border:0;outline:none;resize:vertical;
  background:rgba(4,6,10,.45);
  padding:17px 19px;font-size:14px;line-height:1.9;color:#e6ecf7;font-family:var(--sans);
}
.neg{
  display:flex;gap:12px;align-items:flex-start;
  padding:12px 18px 14px;
  border-top:1px solid rgba(255,255,255,.06);
}
.neg span{flex:0 0 auto;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;color:var(--faint);padding-top:2px}
.neg code{font-family:var(--mono);font-size:12px;line-height:1.75;color:#9aa4b6}
.prompt-foot{display:flex;gap:10px;margin-top:12px}
.render-hint{
  margin:10px 0 0;padding:10px 14px;border-radius:12px;
  background:rgba(255,255,255,.035);border:1px dashed rgba(255,255,255,.14);
  font-size:12.5px;line-height:1.7;color:var(--dim);
}
.render-out{padding:0 18px 18px}
.render-out img{width:100%;display:block;border-radius:14px;border:1px solid rgba(255,255,255,.1)}
.render-meta{
  margin:9px 0 0;font-family:var(--mono);font-size:11px;
  letter-spacing:.04em;color:var(--faint);text-align:right;
}

/* ---------------------------------------------------------------- 页脚 */
.foot{padding:26px 4px 34px;text-align:center}
.foot-line{
  font-size:12px;letter-spacing:.16em;color:#707a8d;
  font-weight:500;
}
.foot-line a{color:#a9e9ff;text-decoration:none;border-bottom:1px solid rgba(110,231,255,.3);padding-bottom:1px}
.foot-line a:hover{color:#d6f5ff;border-color:rgba(110,231,255,.6)}

/* ---------------------------------------------------------------- 底部命令栏 */
.dock{
  position:fixed;left:50%;transform:translateX(-50%);bottom:14px;z-index:50;
  width:min(1060px,calc(100% - 28px));
  border-radius:22px;
  background:rgba(14,17,23,.72);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(28px) saturate(160%);
  -webkit-backdrop-filter:blur(28px) saturate(160%);
  box-shadow:0 30px 60px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.12);
}
.dock-in{display:flex;align-items:center;gap:18px;padding:11px 12px 11px 20px}
.dock-facts{display:flex;gap:18px;margin:0;min-width:0;overflow:hidden}
.dock-facts > div{display:flex;align-items:baseline;gap:6px;min-width:0}
.dock-facts dt{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;color:var(--faint);flex:0 0 auto}
.dock-facts dd{
  margin:0;font-size:13px;color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px;
}
.ready{
  font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;
  color:var(--muted);padding:4px 11px;border-radius:999px;
  border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);
  flex:0 0 auto;
}
.ready.ok{color:#a7f3d0;border-color:rgba(74,222,128,.3);background:rgba(74,222,128,.10)}
.ready.warn{color:#fde68a;border-color:rgba(251,191,36,.3);background:rgba(251,191,36,.10)}
.dock-note{font-size:10.5px;color:var(--faint);margin-left:auto;white-space:nowrap}
.primary{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 24px;border-radius:999px;
  background:linear-gradient(135deg,var(--a1),var(--a2) 65%,var(--a3));
  color:#06101a;font-size:13px;font-weight:600;letter-spacing:.02em;
  box-shadow:0 14px 30px -14px rgba(110,231,255,.95), inset 0 1px 0 rgba(255,255,255,.4);
  transition:.2s;flex:0 0 auto;
}
.primary:hover{transform:translateY(-1px);box-shadow:0 18px 38px -14px rgba(157,139,255,1), inset 0 1px 0 rgba(255,255,255,.5)}
.primary:active{transform:translateY(0)}
.primary:disabled{background:rgba(255,255,255,.12);color:#7c8598;box-shadow:none;cursor:not-allowed;transform:none}

/* ---------------------------------------------------------------- Toast */
.toast{
  position:fixed;left:50%;bottom:104px;transform:translate(-50%,12px);
  padding:11px 20px;border-radius:999px;
  background:rgba(16,20,28,.86);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(20px) saturate(160%);
  color:var(--ink);font-size:12.5px;letter-spacing:.02em;
  opacity:0;pointer-events:none;transition:.22s;z-index:90;
  max-width:86vw;text-align:center;
  box-shadow:0 20px 40px -24px rgba(0,0,0,.9);
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------------------------------------------------------------- 说明弹层 */
/* （原使用说明弹窗已改为独立教程页 guide.html，这里只留关闭按钮样式） */
.icon-btn{
  width:30px;height:30px;border-radius:50%;font-size:17px;color:var(--muted);
  line-height:1;display:grid;place-items:center;background:rgba(255,255,255,.05);transition:.18s;
}
.icon-btn:hover{color:var(--ink);background:rgba(255,255,255,.12)}
/* （原使用说明弹窗已改为独立教程页 guide.html，这里只留关闭按钮样式） */

/* -------------------------------------------------------- 会员价格弹窗 */
.price{
  border:1px solid rgba(255,255,255,.14);padding:0;
  max-width:720px;width:calc(100vw - 32px);max-height:calc(100vh - 60px);overflow:auto;
  border-radius:26px;
  background:linear-gradient(160deg,rgba(28,32,42,.97),rgba(12,14,20,.98));
  backdrop-filter:blur(30px);color:var(--ink);
  box-shadow:0 40px 90px -30px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.12);
}
.price::backdrop{background:rgba(3,5,9,.68);backdrop-filter:blur(6px)}
.price-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:20px 22px 14px;border-bottom:1px solid rgba(255,255,255,.07);
}
.price-head h3{font-size:18px;font-weight:600;letter-spacing:.01em}
.price-head p{margin-top:6px;font-size:12.5px;line-height:1.6;color:var(--muted);max-width:44ch}
.price-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
  padding:16px 22px 6px;
}
.price-card{
  display:flex;flex-direction:column;gap:10px;min-width:0;
  padding:16px 15px 15px;border-radius:18px;
  background:linear-gradient(165deg,rgba(255,206,120,.10),rgba(255,255,255,.022));
  border:1px solid rgba(255,205,130,.20);
}
.price-card h4{font-size:14px;font-weight:600;color:#ffd9a3;letter-spacing:.02em}
.price-num{
  display:flex;align-items:baseline;gap:1px;color:#fff;
  font-family:var(--mono);font-size:27px;font-weight:500;line-height:1;letter-spacing:-.01em;
}
.price-num em{font-style:normal;font-size:15px;font-weight:400;color:#ffd9a3}
.price-num span{font-family:var(--sans);font-size:11.5px;font-weight:400;color:var(--muted);margin-left:5px}
.price-card ul{
  list-style:none;margin:2px 0 0;padding:10px 0 0;display:flex;flex-direction:column;gap:6px;
  border-top:1px solid rgba(255,255,255,.07);
}
.price-card li{
  display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  font-size:12px;color:var(--muted);
}
.price-card li b{font-weight:500;color:var(--ink-2);font-family:var(--mono);font-size:12px;white-space:nowrap}
.price-me{
  margin:12px 22px 0;padding:11px 14px;border-radius:14px;
  background:rgba(110,231,255,.07);border:1px solid rgba(110,231,255,.18);
  font-size:12.5px;line-height:1.65;color:var(--ink-2);
}
.price-foot{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:14px;padding:14px 22px 18px;border-top:1px solid rgba(255,255,255,.07);
}
.price-foot p{font-size:12px;line-height:1.6;color:var(--faint);flex:1;min-width:180px}
.price-foot .soft-btn{text-decoration:none;display:inline-flex;align-items:center;white-space:nowrap}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width:1000px){
  .topbar-in,.index-in,.doc{padding-left:18px;padding-right:18px}
  .dock-facts{gap:14px}
  .dock-note{display:none}
  .kv{grid-template-columns:88px minmax(0,1fr)}
}
@media (max-width:820px){
  body{padding-bottom:104px}
  .doc{padding:10px 14px 0}
  .sheet{padding:22px 18px 24px;border-radius:24px;margin-bottom:14px}
  .sheet::before{left:18px;right:18px}
  .sheet-head h1{font-size:19px}
  .sheet-head p{font-size:12px}
  .index{padding:10px 0 4px}
  .index-in{padding:0 14px}
  .index-note{display:none}
  .grid-3{grid-template-columns:1fr 1fr;gap:18px}
  .grid-3 .field:last-child{grid-column:1/-1}
  .slots{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr;gap:20px}
  .dock{bottom:10px;width:calc(100% - 20px);border-radius:20px}
  .dock-in{padding:10px 10px 10px 16px;gap:10px;flex-wrap:nowrap;overflow:hidden}
  .dock-facts{gap:12px;flex:0 1 auto;overflow:hidden}
  .dock-facts > div:nth-child(1),.dock-facts > div:nth-child(2),.dock-facts > div:nth-child(3){display:none}
  .dock-facts dd{max-width:84px}
  .primary{padding:11px 18px;font-size:12.5px;margin-left:auto}
  .toast{bottom:92px}
}
@media (max-width:560px){
  :root{--bar-h:auto}
  /* 顶栏改两行：品牌一行，状态与账号一行，避免挤成竖排 */
  .topbar-in{height:auto;padding:10px 14px;flex-wrap:wrap;gap:9px 10px}
  .brand{order:1}
  .brand-txt strong{font-size:15px}
  .brand-txt em{display:none}
  .brand-mark{width:27px;height:27px;border-radius:10px}
  .topbar-act{order:2;flex:1 1 100%;min-width:0;justify-content:flex-start;gap:8px;flex-wrap:wrap}
  .who{flex:1 1 130px;min-width:0;max-width:100%}
  .mem-badge{flex:none}
  .txt-btn{padding:7px 12px;font-size:12.5px;white-space:nowrap}
  .svc{padding:5px 10px;font-size:10.5px;white-space:nowrap}
  .svc span{white-space:nowrap}
  .who{padding:4px 11px;max-width:calc(100vw - 130px)}
  .who b{font-size:12.5px}
  .mem-badge{padding:4px 10px;font-size:11px}
  .mem-badge i{font-size:10px}
  .price-chip{padding:6px 11px;font-size:11.5px;max-width:46vw}
  .price-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .svc{display:none}
  .notice-bar{width:calc(100% - 28px);padding:10px 14px;margin-top:12px}
  .price-grid{grid-template-columns:1fr;padding:14px 16px 4px}
  .price-head,.price-foot{padding-left:16px;padding-right:16px}
  .price-me{margin:10px 16px 0}
  .who i{font-size:11px}
  .step{padding:7px 10px;gap:5px}
  .step em{font-size:10px;letter-spacing:.04em}
  .step span{font-size:12.5px}
  .grid-3 .seg button{padding:7px 8px}
  .drop-row{gap:8px}
  .drop-empty .plus{width:32px;height:32px;border-radius:11px;margin-bottom:5px}
  .drop-empty strong{font-size:11px}
  .drop-empty small{display:none}
  .seg{width:100%;display:flex}
  .seg button{flex:1 1 auto;text-align:center;padding:7px 6px;font-size:11.5px}
  .style-name{font-size:22px}
  .result-meta{align-items:flex-start;padding-top:0}
  .result-meta .warn{text-align:left}
  .scene-tools .soft-btn{flex:1 1 auto}
  .ratio-row{padding:10px 12px;gap:8px}
  .ratio-row .seg{order:3;flex:1 1 100%;margin-right:0}
  .ratio-px{margin-left:auto}
  .prompt-foot{flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
