/* ==========================================================================
   aigc-wonder · 设计系统
   深色底 / 纯紫主色 / 小圆角 / 左侧导航
     背景 #000                主色 #590BF6
     卡片 #19191a             导航选中 #202124
     文字 #f4f4f0 / #8c8e89 / #5c5c69
     圆角 4px / 6px           侧栏 168px   内容列 1018px
     标题 24px/500/-1.08px    正文 12px
   ========================================================================== */

:root {
  /* 底色：纯黑，无渐变 */
  --bg:        #000000;
  --bg-2:      #0d0d0d;
  --panel:     #19191a;
  --panel-3:   #141418;
  --hover:     #202124;
  --raise:     #252729;

  /* 主色：纯紫，不用渐变 */
  --accent:    #590bf6;
  --accent-hi: #6f00ff;
  --accent-lo: #cbbcff;
  --accent-dim: rgba(89, 11, 246, .14);

  /* 文字 */
  --tx:        #f4f4f0;
  --tx-2:      #c8cac4;
  --muted:     #8c8e89;
  --muted-2:   #5c5c69;

  /* 线条：极淡 */
  --line:      rgba(255, 255, 255, .06);
  --line-2:    rgba(255, 255, 255, .10);

  /* 状态 */
  --ok:        #4ade80;
  --warn:      #fbbf24;
  --err:       #f87171;
  --info:      #60a5fa;

  /* 尺寸：小圆角 */
  --sb-w:      206px;
  --col-w:     1180px;
  --r-xs:      3px;
  --r-sm:      4px;
  --r:         6px;
  --r-lg:      8px;
  --r-xl:      10px;

  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .8);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "PingFang SC", "Noto Sans", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.6;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, video { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2c; border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3d; }

#root { position: relative; min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }

/* ==========================================================================
   侧栏
   ========================================================================== */
.sidebar {
  width: var(--sb-w);
  flex: 0 0 var(--sb-w);
  background: var(--bg);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 12px;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 16px; }
.brand-logo {
  width: 26px; height: 26px; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--accent);
  font-weight: 700; font-size: 13px; color: #fff;
  flex: 0 0 auto;
}
.brand-txt b { font-size: 13px; font-weight: 600; display: block; letter-spacing: .2px; }
.brand-txt span { font-size: 10.5px; color: var(--muted-2); }

.projsel {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 2px 12px; padding: 8px 11px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); font-size: 12.5px; color: var(--tx-2);
  cursor: pointer; transition: background .12s;
}
.projsel:hover { background: var(--hover); }

.nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav-group { color: var(--muted-2); font-size: 10.5px; padding: 13px 8px 5px; letter-spacing: .3px; }

.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r);
  color: var(--tx-2);
  font-size: 12px;
  margin-bottom: 1px;
  width: 100%; text-align: left;
  transition: background .12s, color .12s;
  line-height: 1.4;
}
.nav-item:hover { background: rgba(255, 255, 255, .045); color: var(--tx); }
.nav-item.on { background: var(--hover); color: var(--tx); font-weight: 600; }
.nav-item .ni { width: 14px; flex: 0 0 14px; opacity: .85; display: grid; place-items: center; }
.nav-item.on .ni { opacity: 1; }
.nav-item .tag {
  margin-left: auto; font-size: 9.5px; font-weight: 600;
  padding: 1px 5px; border-radius: var(--r-xs);
  background: var(--accent); color: #fff;
}
.nav-ext { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.nav-item:hover .nav-ext { color: var(--tx); }

.nav-foot { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 5px; }

.balcard {
  margin: 6px 2px 8px; padding: 9px 10px;
  border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
}
.balcard .lbl { font-size: 10.5px; color: var(--muted-2); }
.balcard .num { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.balcard .num small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 2px; }

/* ==========================================================================
   主区
   ========================================================================== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: var(--bg); position: sticky; top: 0; z-index: 15;
}
.topbar h1 { font-size: 13px; font-weight: 600; }
.topbar .spacer { flex: 1; }

.content { flex: 1; padding: 34px 40px 60px; width: 100%; margin: 0 auto; }
.content.narrow { max-width: var(--col-w); }

/* ==========================================================================
   通用组件
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--hover); color: var(--tx-2);
  font-size: 12px;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--raise); color: var(--tx); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn.pri { background: var(--accent); color: #fff; font-weight: 500; }
.btn.pri:hover { background: var(--accent-hi); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--tx); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 11.5px; }
.btn.lg { height: 34px; padding: 0 16px; font-size: 12.5px; }
.btn.block { width: 100%; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
}
.card.pad-lg { padding: 20px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.field .hint { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.5; }

input[type=text], input[type=password], input[type=number], input[type=search],
textarea, select {
  width: 100%; padding: 7px 10px;
  background: var(--panel-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); outline: none;
  transition: border-color .12s; font-size: 12px;
  color: var(--tx);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 74px; line-height: 1.6; }
select { cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 26px; padding: 0 10px;
  border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .12s;
}
.chip:hover { background: var(--hover); color: var(--tx); border-color: var(--line-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }

.badge {
  display: inline-block; font-size: 10px; font-weight: 500;
  padding: 1px 5px; border-radius: var(--r-xs); line-height: 1.5;
}
.badge.pri { background: var(--accent); color: #fff; }
.badge.ok  { background: rgba(74, 222, 128, .14); color: var(--ok); }
.badge.warn{ background: rgba(251, 191, 36, .14); color: var(--warn); }
.badge.err { background: rgba(248, 113, 113, .14); color: var(--err); }
.badge.info{ background: rgba(96, 165, 250, .14); color: var(--info); }
.badge.mute{ background: rgba(255,255,255,.07); color: var(--muted); }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.empty { text-align: center; padding: 54px 20px; color: var(--muted-2); font-size: 12px; }
.empty .big { font-size: 28px; margin-bottom: 8px; opacity: .4; }

.spin {
  width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.2);
  border-top-color: currentColor; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   首页
   ========================================================================== */
.hero { padding: 74px 0 10px; }
.hero-inner { max-width: var(--col-w); margin: 0 auto; }

.hero h2 {
  font-size: 30px; font-weight: 500; letter-spacing: -1.25px;
  line-height: 1.4; color: var(--tx); margin-bottom: 20px;
}
.hero h2 em { font-style: normal; color: var(--accent-lo); }
.caret {
  display: inline-block; width: 1.5px; height: .82em;
  background: var(--accent-lo); vertical-align: -.06em; margin-left: 3px;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 模式切换：胶囊，纯色 */
.mode-tabs { display: inline-flex; gap: 2px; margin-bottom: 20px; }
.mode-tabs button {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 12px; color: var(--muted);
  transition: all .12s;
}
.mode-tabs button:hover { color: var(--tx); background: var(--hover); }
.mode-tabs button.on { background: var(--accent); color: #fff; font-weight: 500; }

/* 提示词框 */
.promptbox {
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 22px 14px;
  transition: border-color .14s;
}
.promptbox:focus-within { border-color: rgba(89, 11, 246, .5); }
.promptbox textarea {
  border: 0; background: transparent; padding: 2px 0;
  min-height: 132px; font-size: 14px; color: var(--tx); line-height: 1.7;
}
.promptbox textarea:focus { border: 0; }
.promptrow { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

/* 已附加的技能 token */
.attached {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 6px 0 8px; margin-bottom: 9px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(89, 11, 246, .45);
  font-size: 11.5px; width: fit-content; max-width: 100%;
}
.attached .at-ic { display: grid; place-items: center; color: var(--accent-lo); }
.attached .at-nm { font-weight: 600; color: var(--tx); }
.attached .at-ep { color: var(--muted); font-size: 10.5px; }
.attached .at-x { color: var(--muted); padding: 2px; display: grid; place-items: center; }
.attached .at-x:hover { color: var(--err); }

/* 技能自带的其它字段（文件 / 下拉） */
.ce-wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.ce-f label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.ce-drop {
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  padding: 9px 10px; font-size: 11.5px; color: var(--muted-2);
  cursor: pointer; text-align: center; transition: all .12s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ce-drop:hover, .ce-drop.over { border-color: var(--accent); color: var(--tx); background: var(--accent-dim); }
.ce-drop.has { border-style: solid; border-color: rgba(89, 11, 246, .5); color: var(--accent-lo); }

/* 首页内联结果 */
.hp-result {
  margin-top: 12px; padding: 12px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
}
.hp-result.err { border-color: rgba(248, 113, 113, .35); }
.hp-result .media {
  border-radius: var(--r); overflow: hidden; background: var(--panel-3);
  border: 1px solid var(--line); margin-bottom: 10px;
}
.hp-result .media img, .hp-result .media video { width: 100%; }
.hp-result .media audio { width: 100%; padding: 8px; }

.toolpill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 8px;
  border-radius: var(--r-sm);
  background: transparent; color: var(--tx-2);
  font-size: 12px; transition: all .12s;
}
.toolpill:hover { background: var(--hover); color: var(--tx); }
.toolpill.on { background: var(--accent); color: #fff; }

.sendbtn {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  transition: background .12s; flex: 0 0 auto;
}
.sendbtn:hover { background: var(--accent-hi); }

.skillrow { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }

/* 特色大卡 */
.featgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.feat {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  text-align: left; transition: border-color .14s, transform .14s;
}
.feat:hover { border-color: rgba(89, 11, 246, .5); transform: translateY(-2px); }
.feat .thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(140deg, #1a1230, #241a4d 50%, #12203a);
  position: relative; overflow: hidden;
}
.feat .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.feat:hover .thumb img { transform: scale(1.045); }
.feat .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55)),
              radial-gradient(circle at 32% 24%, rgba(89,11,246,.22), transparent 62%);
}
.feat .thumb span { position: relative; z-index: 1; }
.feat .bd { padding: 11px 12px 13px; }
.feat .bd b { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.feat .bd p { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.sec { margin-top: 54px; }
.sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-hd h3 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }

/* ==========================================================================
   应用卡片
   ========================================================================== */
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 10px; }
.appcard {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--panel); padding: 13px;
  text-align: left; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .14s, transform .14s; position: relative; overflow: hidden;
}
.appcard:hover { border-color: rgba(89, 11, 246, .5); transform: translateY(-2px); }
.appcard .ico {
  width: 32px; height: 32px; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--hover); color: var(--accent-lo);
  flex: 0 0 auto; overflow: hidden;
}
.appcard .ico img { width: 100%; height: 100%; object-fit: cover; }
.appcard b { font-size: 12.5px; font-weight: 600; }
.appcard p {
  font-size: 11.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.appcard .meta { display: flex; align-items: center; gap: 5px; margin-top: auto; flex-wrap: wrap; }

/* ==========================================================================
   技能下拉
   ========================================================================== */
.skillpop {
  position: fixed; z-index: 60;
  width: 408px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.skillpop[hidden] { display: none !important; }
.skillpop .sp-hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.skillpop .sp-hd .t { font-size: 12.5px; font-weight: 600; }
.skillpop .sp-tabs { display: flex; gap: 2px; padding: 0 12px 8px; }
.skillpop .sp-tabs button {
  height: 24px; padding: 0 9px; border-radius: var(--r-sm);
  font-size: 11.5px; color: var(--muted); transition: all .12s;
}
.skillpop .sp-tabs button:hover { background: var(--hover); color: var(--tx); }
.skillpop .sp-tabs button.on { background: var(--hover); color: var(--tx); font-weight: 600; }
.skillpop .sp-body { max-height: 372px; overflow-y: auto; padding: 0 6px 6px; }
.skillpop .sp-item {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%; text-align: left; padding: 9px 8px;
  border-radius: var(--r); transition: background .12s;
}
.skillpop .sp-item:hover { background: var(--hover); }
.skillpop .sp-item .si {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 14px;
  background: var(--panel-3); color: var(--accent-lo);
}
.skillpop .sp-item .sc { flex: 1; min-width: 0; }
.skillpop .sp-item .s1 { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; flex-wrap: wrap; }
.skillpop .sp-item .s1 .nm { font-size: 12px; font-weight: 600; color: var(--tx); }
.skillpop .sp-item .s1 .mini {
  font-size: 9.5px; padding: 0 4px; border-radius: 2px; line-height: 1.5;
  border: 1px solid var(--line-2); color: var(--muted);
}
.skillpop .sp-item .s1 .mini.hot { border-color: rgba(251,191,36,.5); color: var(--warn); }
.skillpop .sp-item .sd {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.skillpop .sp-foot {
  border-top: 1px solid var(--line); padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
}
.skillpop .sp-foot .kbd { margin-left: auto; font-size: 10px; color: var(--muted-2); }

/* ==========================================================================
   工作台
   ========================================================================== */
.wt { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .wt { grid-template-columns: 1fr; } }

.wt-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.wt-head .ico {
  width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center;
  font-size: 19px; background: var(--hover); flex: 0 0 auto; overflow: hidden;
}
.wt-head h2 { font-size: 16px; font-weight: 600; margin-bottom: 2px; letter-spacing: -.3px; }
.wt-head p { font-size: 11.5px; color: var(--muted); }

.ep-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }

.drop {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 20px 14px; text-align: center; color: var(--muted);
  font-size: 11.5px; cursor: pointer; transition: all .13s; background: var(--panel-3);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-dim); color: var(--tx); }
.drop .fn { color: var(--accent-lo); font-weight: 600; margin-top: 4px; word-break: break-all; }

.result { min-height: 160px; }
.result .media { border-radius: var(--r); overflow: hidden; background: var(--panel-3); border: 1px solid var(--line); margin-bottom: 10px; }
.result .media img, .result .media video { width: 100%; }
.result .media audio { width: 100%; padding: 8px; }

pre.json {
  background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; font-size: 11px; line-height: 1.55; color: #9ae6b4;
  overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tasklist { display: flex; flex-direction: column; gap: 6px; }
.taskitem {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); font-size: 12px;
}
.taskitem .t { flex: 1; min-width: 0; }
.taskitem .t b { font-weight: 600; display: block; font-size: 12px; }
.taskitem .t span { color: var(--muted-2); font-size: 10.5px; word-break: break-all; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 13px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.stat .k { font-size: 11px; color: var(--muted); }
.stat .v { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin-top: 2px; }

.plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.plan {
  padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--panel); text-align: center; transition: border-color .14s;
}
.plan:hover { border-color: rgba(89, 11, 246, .5); }
.plan .pt { font-size: 11.5px; color: var(--muted); }
.plan .pv { font-size: 23px; font-weight: 700; letter-spacing: -.8px; margin: 5px 0 2px; }
.plan .pv small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.plan .pp { font-size: 11px; color: var(--accent-lo); margin-bottom: 10px; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; padding-top: 8px; }
.bars .b { flex: 1; background: var(--accent); border-radius: 2px; min-height: 2px; position: relative; opacity: .85; }
.bars .b:hover { opacity: 1; }
.bars .b:hover::after {
  content: attr(data-tip); position: absolute; bottom: 104%; left: 50%; transform: translateX(-50%);
  background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 3px 7px; font-size: 10.5px; white-space: nowrap; z-index: 5; color: var(--tx);
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tbl th, table.tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--muted); font-weight: 500; font-size: 11px; }
table.tbl tbody tr:hover { background: rgba(255,255,255,.02); }

/* 模态 */
.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .78);
  display: grid; place-items: center; padding: 20px;
}
.mask[hidden] { display: none !important; }
.modal {
  width: 100%; max-width: 360px;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 22px 20px;
  box-shadow: var(--shadow-pop);
}
.modal h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.modal .sub { font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }

/* Toast */
#toasts {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none;
}
.toast {
  padding: 8px 14px; border-radius: var(--r); background: var(--raise);
  border: 1px solid var(--line-2); font-size: 12px; box-shadow: var(--shadow-pop);
  animation: toastIn .2s ease; max-width: 76vw;
}
.toast.ok { border-color: rgba(74,222,128,.4); color: #86efac; }
.toast.err { border-color: rgba(248,113,113,.4); color: #fca5a5; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } }

/* 顶部活动条 */
.banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 40px 7px 14px; font-size: 12px;
  background: linear-gradient(90deg, #cbbcff, #b9a3ff 55%, #d3c6ff);
  color: #2a0a5e; position: relative; z-index: 25;
}
.banner b { font-weight: 700; }
.banner .cta {
  background: #fff; color: #590bf6; font-weight: 700; font-size: 11.5px;
  padding: 3px 11px; border-radius: var(--r-sm);
}
.banner .x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: .7; font-size: 14px; padding: 3px; }
.banner .x:hover { opacity: 1; }

/* 响应式 */
@media (max-width: 900px) {
  .featgrid { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-pop);
  }
  .sidebar.open { transform: none; }
  .sb-toggle { display: inline-flex !important; }
  .content { padding: 16px 14px; }
  .hero { padding: 30px 0 4px; }
  .hero h2 { font-size: 20px; letter-spacing: -.6px; }
  .skillpop { width: calc(100vw - 24px); }
}
.sb-toggle { display: none; }

/* ==========================================================================
   全部应用（对标 likeadmin /ai/tools：瀑布流大图卡）
   ========================================================================== */
.la-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.la-tabs { display: flex; gap: 6px; }
.la-search { position: relative; width: 280px; }
.la-search input { padding-left: 32px; height: 34px; border-radius: 999px; }
.la-search-ic {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); display: grid; place-items: center; pointer-events: none;
}
.la-count { font-size: 11.5px; margin-bottom: 14px; }

/* 瀑布流：columns 实现高度不等的错落排布 */
.la-grid { columns: 5 232px; column-gap: 14px; }
.la-grid > * { break-inside: avoid; margin-bottom: 14px; display: block; }
@media (max-width: 1400px) { .la-grid { columns: 4 232px; } }
@media (max-width: 1100px) { .la-grid { columns: 3 210px; } }
@media (max-width: 760px)  { .la-grid { columns: 2 160px; } }

.tcard {
  position: relative; width: 100%; padding: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tcard:hover { transform: translateY(-3px); border-color: rgba(89,11,246,.55); box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.tcard-art { display: grid; place-items: center; position: relative; overflow: hidden; height: var(--th, 240px); }
.tcard-ic { color: rgba(255,255,255,.92); position: relative; z-index: 1; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.tcard-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.20), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.72));
}
.tcard-bd { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 1px; }
.tcard-bd b { font-size: 13.5px; font-weight: 650; color: #fff; letter-spacing: -.1px; }
.tcard-bd span { font-size: 11.5px; color: rgba(255,255,255,.62); }
/* ==========================================================================
   物效：悬浮吉祥物 / 打字机 / 特色卡动态预览
   ========================================================================== */
.composer-wrap { position: relative; }
.mascot {
  position: absolute; right: 16px; top: -78px;
  width: 100px; height: 100px; pointer-events: none;
  animation: floaty 6.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.mascot .ms-glow {
  position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.42), transparent 66%);
  filter: blur(7px);
}
.mascot .ms-bell {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 58px; height: 50px;
  border-radius: 52% 52% 42% 42% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 34% 28%, #efe6ff, #8b6cff 40%, #5222e0 76%, #2a0f8a);
  box-shadow: 0 0 26px rgba(124,92,255,.78), inset 0 -7px 15px rgba(0,0,0,.34);
}
.mascot .ms-bell::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  width: 46px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,181,253,.85), transparent 70%);
  filter: blur(2px);
}
.mascot .ms-tent { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); display: flex; gap: 5px; }
.mascot .ms-tent i {
  display: block; width: 3px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(196,181,253,.95), rgba(124,92,255,.22));
  transform-origin: top center;
  animation: sway 2.1s ease-in-out infinite;
}
.mascot .ms-tent i:nth-child(2) { height: 33px; animation-delay: .18s; }
.mascot .ms-tent i:nth-child(3) { height: 37px; animation-delay: .36s; }
.mascot .ms-tent i:nth-child(4) { height: 30px; animation-delay: .54s; }
.mascot .ms-tent i:nth-child(5) { height: 24px; animation-delay: .72s; }
@keyframes sway { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* 特色卡：悬停播放动态预览 */
.feat .thumb img { position: relative; z-index: 1; }
.feat .thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden; transition: opacity .45s ease; z-index: 1;
}
/* 底图默认可见（z-index 0），视频默认完全隐藏 —— 绝不出现黑洞。
   只有「确认在播」（.playing）才显示视频、淡出底图。 */
.feat .thumb img { opacity: 1; transition: opacity .45s ease; z-index: 0; }
.feat.playing .thumb video { opacity: 1; visibility: visible; }
.feat.playing .thumb img { opacity: 0; }
/* 视频失败/卡住：强制保留底图 */
.feat.vidfail .thumb video { opacity: 0 !important; visibility: hidden !important; }
.feat.vidfail .thumb img { opacity: 1 !important; }
.feat .thumb::after { z-index: 2; }

@media (max-width: 900px) { .mascot { display: none; } }
/* ==========================================================================
   工具工作台（对标 likeadmin /ai/tools 制作页）
   ========================================================================== */
.lw-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.lw-hd-txt h2 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; margin-bottom: 3px; }
.lw-hd-txt p { font-size: 12px; color: var(--muted); }

.lw-grid { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .lw-grid { grid-template-columns: 1fr; } }

.lw-form { min-width: 0; }

.field-block { margin-bottom: 20px; }
.field-label { font-size: 12.5px; color: var(--tx-2); font-weight: 600; margin-bottom: 9px; }
.field-label .req { color: var(--err); }
.field-hint { font-size: 11px; color: var(--muted-2); margin-top: 6px; line-height: 1.55; }

/* 上传卡：两个按钮（本地上传 / 粘贴链接） */
.upload-card {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 22px 16px 16px; text-align: center;
  background: var(--panel-3); transition: all .15s;
}
.upload-card:hover, .upload-card.over { border-color: var(--accent); background: var(--accent-dim); }
.upload-card.has { border-style: solid; border-color: rgba(89,11,246,.55); }
.upload-card__icon { color: var(--muted-2); display: grid; place-items: center; margin-bottom: 8px; }
.upload-card:hover .upload-card__icon { color: var(--accent-lo); }
.upload-card__placeholder { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; word-break: break-all; }
.upload-card.has .upload-card__placeholder { color: var(--accent-lo); font-weight: 600; }
.upload-card__library { display: inline-flex; gap: 8px; }
.uc-btn {
  height: 30px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--hover); color: var(--tx-2); font-size: 12px;
  border: 1px solid var(--line-2); transition: all .13s;
}
.uc-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.uc-file { font-size: 11px; color: var(--muted-2); margin-top: 10px; }

/* 档位胶囊 / 参数选项卡 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { height: 32px; padding: 0 16px; font-size: 12.5px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt-card {
  text-align: left; padding: 13px 14px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--panel);
  transition: all .15s;
}
.opt-card b { font-size: 12.5px; font-weight: 600; color: var(--tx-2); }
.opt-card:hover { border-color: var(--line-2); background: var(--hover); }
.opt-card.is-active { border-color: var(--accent); background: var(--accent-dim); }
.opt-card.is-active b { color: #fff; }

/* 底部：成本 + 生成 */
.lw-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.lw-cost { font-size: 12px; color: var(--muted); margin-bottom: 12px; text-align: center; }
.lw-cost b { color: var(--accent-lo); font-size: 15px; font-weight: 700; margin-left: 4px; }

.lw-result { margin-top: 8px; }

/* 右侧：任务与作品 */
.lw-side { border-left: 1px solid var(--line); padding-left: 22px; }
@media (max-width: 1080px) { .lw-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }
.lw-side-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.lw-side-hd b { font-size: 14px; font-weight: 650; }
.lw-works { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; }
.work-card {
  display: flex; gap: 10px; padding: 8px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--panel);
}
.work-card__thumb {
  width: 62px; height: 62px; flex: 0 0 62px; border-radius: var(--r-sm);
  overflow: hidden; background: var(--panel-3); display: grid; place-items: center;
  color: var(--muted-2);
}
.work-card__thumb img, .work-card__thumb video { width: 100%; height: 100%; object-fit: cover; }
.work-card__bd { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.wc-t { font-size: 11.5px; color: var(--tx-2); word-break: break-all; line-height: 1.4; }
.wc-m { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
/* 卡片封面：真实封面图叠在渐变底之上，加载失败自动回落到渐变+图标 */
.tcard-ic { z-index: 0 !important; }
.tcard-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transition: transform .45s ease;
}
.tcard:hover .tcard-cover { transform: scale(1.05); }
.tcard-shine { z-index: 2; }
/* 有真实封面的卡片：封面里已含名称，隐藏底部叠字避免重复 */
.tcard.has-cover .tcard-bd { display: none; }
.tcard.has-cover .tcard-shine { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.42)); }
/* 验证码输入行 */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { flex: 0 0 auto; white-space: nowrap; height: 38px; padding: 0 14px; font-size: 12.5px; }
/* ==========================================================================
   工具台（对齐 likeadmin /ai/tools 的 27 个工具）
   ========================================================================== */
.tl-head { margin: 4px 0 18px; }
.tl-head h2 { font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.tl-head p { font-size: 12.5px; margin-top: 6px; }

.tl-group { margin-bottom: 26px; }
.tl-ghd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.tl-ghd h3 { font-size: 14px; font-weight: 500; }
.tl-ghd .muted { font-size: 11.5px; }

.tl-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.tl-card {
  text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, background .15s, transform .15s;
  min-height: 104px;
}
.tl-card:hover { border-color: var(--accent); background: var(--hover); transform: translateY(-1px); }
.tl-card.tl-wait { opacity: .62; }
.tl-card.tl-wait:hover { border-color: var(--line-2); transform: none; }
.tl-hd { display: flex; align-items: center; gap: 8px; }
.tl-hd b { font-size: 13.5px; font-weight: 500; }
.tl-card p { font-size: 11.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.tl-ft { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tl-ft .muted { font-size: 10.5px; }

.tl-back { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .tl-detail { grid-template-columns: 1fr; } }
.tl-title { margin-bottom: 12px; }
.tl-title h2 { font-size: 20px; font-weight: 500; }
.tl-title p { font-size: 12px; margin-top: 5px; }
.tl-form { padding: 14px 16px; }
.tl-form .field { margin-bottom: 14px; }
.tl-form .field > label { display: block; font-size: 12px; color: var(--tx-2); margin-bottom: 6px; }
.tl-form textarea { min-height: 84px; }
.tl-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--tx-2); cursor: pointer; }

.tl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-pills .pill {
  cursor: pointer; font-size: 11.5px; color: var(--tx-2);
  background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 6px 11px; transition: all .13s;
}
.tl-pills .pill:hover { border-color: var(--line-2); color: var(--tx); }
.tl-pills .pill.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-lo); }

.tl-drop {
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  padding: 16px 12px; text-align: center; cursor: pointer;
  font-size: 12px; color: var(--muted); transition: all .15s;
}
.tl-drop:hover, .tl-drop.over { border-color: var(--accent); color: var(--accent-lo); background: var(--accent-dim); }
.tl-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.tl-thumb { width: 46px; height: 46px; border-radius: var(--r-xs); overflow: hidden; background: var(--panel-3); display: grid; place-items: center; font-size: 9px; }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-url { margin-top: 6px; font-size: 11.5px; }
.tl-hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; }

.tl-run { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tl-resbox { padding: 14px 16px; min-height: 260px; }
.tl-media { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tl-media img, .tl-media video { max-width: 100%; max-height: 320px; border-radius: var(--r-sm); display: block; }
.tl-media audio { width: 100%; }
.tl-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px; max-height: 340px; overflow: auto;
  white-space: pre-wrap; word-break: break-all;
}
.tl-err { color: var(--err); font-size: 12.5px; margin-bottom: 10px; }

/* 等价实现：模式切换 + 说明条 */
.tl-modes { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tl-modes .pill {
  cursor: pointer; font-size: 11.5px; color: var(--tx-2);
  background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 6px 11px; transition: all .13s;
}
.tl-modes .pill.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-lo); }
.tl-note {
  font-size: 11.5px; line-height: 1.7; color: var(--warn);
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .22);
  border-radius: var(--r-sm); padding: 9px 11px; margin-bottom: 12px;
}

/* ==========================================================================
   充值收银台
   ========================================================================== */
.pay-modal { width: 380px; max-width: calc(100vw - 32px); text-align: center; }
.pay-tabs { display: flex; gap: 6px; justify-content: center; margin: 4px 0 12px; }
.pay-tabs .pill {
  cursor: pointer; font-size: 12px; color: var(--tx-2);
  background: var(--panel-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 7px 14px; transition: all .13s;
}
.pay-tabs .pill.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-lo); }
.pay-qrwrap {
  position: relative; width: 208px; height: 208px; margin: 0 auto 10px;
  background: #fff; border-radius: var(--r); display: grid; place-items: center;
  overflow: hidden;
}
.pay-qr img, .pay-qr canvas { display: block; width: 196px !important; height: 196px !important; }
.pay-qr { width: 100%; height: 100%; display: grid; place-items: center; }
.pay-spin {
  position: absolute; inset: 0; background: rgba(255,255,255,.86);
  display: grid; place-items: center;
}
.pay-spin .spin { border-color: rgba(0,0,0,.15); border-top-color: var(--accent); }
.pay-amt { font-size: 12.5px; color: var(--tx-2); margin-bottom: 6px; }
.pay-amt b { color: var(--tx); font-size: 14px; }
.pay-status { font-size: 12px; color: var(--muted); min-height: 20px; margin-bottom: 10px; line-height: 1.6; }
.pay-actions { display: flex; gap: 8px; }
.pay-actions .btn { flex: 1; }
.pay-tip { font-size: 11px; color: var(--muted-2); margin-top: 10px; line-height: 1.6; }

/* 实名认证弹窗 */
.rn-modal { width: 480px; max-width: calc(100vw - 32px); }
.rn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rn-drop {
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); height: 92px;
  display: grid; place-items: center; cursor: pointer; overflow: hidden;
  font-size: 11.5px; color: var(--muted); transition: all .15s;
}
.rn-drop:hover { border-color: var(--accent); color: var(--accent-lo); background: var(--accent-dim); }
.rn-drop img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   工具页 / 工作台：对齐 likeadmin 实测样式
   卡片 274x365 / 圆角 18px / 底 #171717 / 遮罩渐变 / 标题 17px 600
   页面底 #0c0c0d
   ========================================================================== */
.content.la-page { background: #0c0c0d; color: #f2f2f2; }
.content.la-page .la-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.content.la-page .la-head p { font-size: 12px; color: #8c8e89; margin-top: 6px; }
.content.la-page .la-head { margin-bottom: 18px; }

.la-sec { margin: 0 0 22px; }
.la-sechd { font-size: 14px; font-weight: 400; color: #f2f2f2; margin: 0 0 12px; }

/* 工具卡：likeadmin .tools-card */
.la-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  margin-bottom: 8px;
}
.tl-card {
  position: relative; display: block; width: 100%; aspect-ratio: 274 / 365;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: 18px; background: #171717; text-align: left;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.tl-art { position: absolute; inset: 0; display: block; }
.tl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-shine {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 44%, rgba(0,0,0,.26) 70%, rgba(0,0,0,.82) 100%);
}
.tl-bd {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.tl-bd .tl-t { font-size: 17px; font-weight: 600; color: #fff; line-height: 1.25; }
.tl-bd .tl-s { font-size: 12px; color: rgba(255,255,255,.62); }
.tl-tag { margin-top: 4px; }
.tl-tag .badge { font-size: 10.5px; }
.tl-card.tl-wait { opacity: .72; }
.tl-card.tl-wait:hover { transform: none; }

/* 最近使用：小卡（左文右图） */
.la-grid--recent { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.la-rcard {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: #171717; border: 0; border-radius: 14px; padding: 12px 14px;
  text-align: left; transition: background .15s;
}
.la-rcard:hover { background: #1f1f20; }
.la-rbd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.la-rbd b { font-size: 14px; font-weight: 600; color: #f2f2f2; }
.la-rbd span { font-size: 11.5px; color: #8c8e89; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-rcard img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: 0 0 62px; }

/* 筛选栏 */
.la-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.la-tabs { display: flex; gap: 6px; }
.la-tabs .chip {
  font-size: 12.5px; color: #b6b8b3; background: transparent;
  border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.la-tabs .chip.on { background: #26262a; color: #fff; }
.la-search input {
  width: 260px; background: #171717; border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; color: #f2f2f2; padding: 8px 12px; font-size: 12.5px;
}
.la-search input::placeholder { color: #6b6d69; }

.la-note {
  font-size: 12px; line-height: 1.9; color: #8c8e89;
  background: #141415; border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 14px 16px;
}

/* ==========================================================================
   工作台（对齐 likeadmin workspace-page：左表单卡 + 右「任务与作品」+ 右下「立即生成」）
   ========================================================================== */
.ws-wrap { display: grid; grid-template-columns: 394px minmax(0, 1fr); gap: 54px; align-items: start; }
@media (max-width: 1100px) { .ws-wrap { grid-template-columns: 1fr; } }
.ws-left, .ws-right { min-width: 0; }

.ws-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 2px 12px;
}
.ws-back {
  background: #26262a; border: 0; color: #e8e8e6; cursor: pointer;
  border-radius: 10px; padding: 7px 14px; font-size: 13px;
}
.ws-back:hover { background: #303034; }
.ws-cname { font-size: 15px; font-weight: 600; color: #f2f2f2; }

.ws-card { background: #171717; border-radius: 18px; padding: 20px; }
.ws-fields { display: flex; flex-direction: column; gap: 18px; }
.ws-field { display: flex; flex-direction: column; gap: 8px; }
.ws-flabel { font-size: 14px; font-weight: 600; color: #f2f2f2; }
.ws-req { color: #f87171; }

.ws-field textarea, .ws-field input[type=text], .ws-field select {
  width: 100%; background: #101011; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; color: #f2f2f2; padding: 11px 13px; font-size: 13px;
  font-family: inherit; outline: none;
}
.ws-field textarea { min-height: 124px; resize: vertical; }
.ws-field textarea:focus, .ws-field input:focus, .ws-field select:focus { border-color: rgba(255,255,255,.28); }
.ws-field textarea::placeholder, .ws-field input::placeholder { color: #63655f; }

/* 上传区：likeadmin upload-card（+ 号 / 本地上传 / 图库上传） */
.ws-drop {
  border-radius: 14px; background: #101011; border: 1px solid rgba(255,255,255,.06);
  min-height: 214px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: background .15s;
}
.ws-drop:hover { background: #141416; }
.ws-plus { font-size: 26px; line-height: 1; color: #6f716c; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.ws-droptxt { font-size: 13px; color: #9a9c96; }
.ws-lib {
  background: #26262a; border: 0; color: #e8e8e6; cursor: pointer;
  border-radius: 10px; padding: 7px 16px; font-size: 13px;
}
.ws-lib:hover { background: #303034; }
.ws-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; justify-content: center; }
.ws-thumb { width: 78px; height: 78px; border-radius: 10px; overflow: hidden; background: #1c1c1e;
  display: grid; place-items: center; font-size: 10px; }
.ws-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 选项卡：选中项白底黑字（likeadmin field-block 行为） */
.ws-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ws-pills--single { grid-template-columns: 1fr; }
.ws-pills--multi { flex-direction: row; flex-wrap: wrap; }
.ws-opt {
  text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 3px;
  background: rgb(23,23,23); border: 1px solid rgb(34,34,34);
  border-radius: 10px; padding: 10px 14px; min-height: 64px; transition: all .15s;
}
.ws-opt b { font-size: 13.5px; font-weight: 600; color: #e8e8e6; }
.ws-opt span { font-size: 11.5px; color: #7d7f7a; }
.ws-opt:hover { border-color: rgba(255,255,255,.16); }
.ws-opt.on { background: rgb(255,255,255); border-color: rgb(255,255,255); }
.ws-opt.on b { color: #101010; }
.ws-opt.on span { color: #5c5e59; }
.ws-pills--multi .ws-opt { flex-direction: row; justify-content: flex-start; padding: 8px 14px; min-height: 40px; border-radius: 8px; background: rgb(15,15,15); }
.ws-pills--multi .ws-opt.on { background: rgb(255,255,255); }

.ws-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06);
}
.ws-cost { font-size: 11.5px; color: #8c8e89; line-height: 1.5; }
.ws-cost b { font-size: 20px; color: #f2f2f2; font-weight: 600; }
.ws-run {
  margin-left: auto; background: rgba(255,255,255,.24); color: rgba(255,255,255,.5);
  border: 0; cursor: pointer; width: 132px; height: 44px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
}
.ws-run:hover { background: rgba(255,255,255,.32); }
.ws-run:disabled { background: #2a2a2d; color: #6f716c; cursor: not-allowed; }

/* 右侧「任务与作品」 */
.ws-tasks { min-height: 420px; }
.ws-taskhd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ws-tt { font-size: 15px; font-weight: 600; color: #f2f2f2; }
.ws-refresh { background: #26262a; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 10px; padding: 6px 14px; font-size: 12.5px; }
.ws-refresh:hover { background: #303034; }
.ws-empty { text-align: center; color: #6f716c; padding: 90px 20px; }
.ws-empty .big { font-size: 34px; margin-bottom: 12px; }

.tl-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.ws-mode {
  flex: 1; cursor: pointer; font-size: 12px; color: #b6b8b3;
  background: #101011; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 9px 10px; transition: all .14s;
}
.ws-mode.on { background: #f5f5f4; border-color: #f5f5f4; color: #101010; font-weight: 600; }

/* 场景模板库（likeadmin AI商品图：112x112 模板卡 + VIP 角标） */
.ws-scenecat {
  width: 100%; background: #101011; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; color: #f2f2f2; padding: 9px 12px; font-size: 12.5px; margin-bottom: 10px;
}
.ws-scenes { display: grid; grid-template-columns: repeat(3, 112px); gap: 8px; }
.ws-scene {
  position: relative; padding: 0; border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; overflow: hidden; cursor: pointer; background: rgb(15,15,15);
  width: 112px; height: 112px; transition: all .15s;
}
.ws-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-scene:hover { border-color: rgba(255,255,255,.22); }
.ws-scene.on { border-color: #f5f5f4; box-shadow: 0 0 0 2px rgba(245,245,244,.28); }
.ws-vip {
  position: absolute; top: 6px; right: 6px; font-size: 9.5px; font-weight: 700;
  background: linear-gradient(135deg,#f7d774,#e0a92b); color: #3a2a00;
  border-radius: 6px; padding: 1px 6px;
}
.ws-sn {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); padding: 12px 8px 6px;
  text-align: left;
}

/* ==========================================================================
   /ai/create 同款：底部 composer + 作品流
   ========================================================================== */
.ce-wrap { position: relative; min-height: calc(100vh - 190px); padding-bottom: 130px; }
.ce-feed { display: flex; flex-direction: column; gap: 26px; padding: 6px 2px 20px; }
.ce-empty { color: #6f716c; font-size: 13px; padding: 60px 4px; }

.ce-work { border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 22px; }
.ce-wprompt { font-size: 14px; color: #f2f2f2; line-height: 1.6; margin-bottom: 6px; }
.ce-wmeta { font-size: 12px; color: #8c8e89; margin-bottom: 12px; }
.ce-wmedia { display: flex; flex-wrap: wrap; gap: 10px; }
.ce-wmedia img, .ce-wmedia video { max-width: 320px; max-height: 420px; border-radius: 12px; display: block; }
.ce-wait { font-size: 12px; color: #8c8e89; }
.ce-wacts { display: flex; gap: 10px; margin-top: 14px; }
.ce-ghost {
  background: #26262a; border: 0; color: #e8e8e6; cursor: pointer;
  border-radius: 10px; padding: 8px 16px; font-size: 13px;
}
.ce-ghost:hover { background: #303034; }
.ce-del { color: #f0a3a3; }

/* 底部固定 composer（实测 y=900 / w=1024 / h=76，这里按容器宽度自适应） */
.ce-bar {
  position: fixed; left: 0; right: 0; bottom: 22px;
  width: min(1024px, calc(100vw - 300px)); margin: 0 auto;
  display: flex; align-items: flex-end; gap: 12px;
  background: #1b1b1d; border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 12px 14px; z-index: 30;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
}
.ce-plus {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  background: #232326; color: #b6b8b3; display: grid; place-items: center;
  font-size: 22px; cursor: pointer;
}
.ce-plus:hover { background: #2c2c30; color: #fff; }
.ce-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ce-ta {
  width: 100%; background: transparent; border: 0; outline: none; resize: none;
  color: #f2f2f2; font-size: 15px; font-family: inherit; line-height: 1.5;
  min-height: 44px; max-height: 160px;
}
.ce-ta::placeholder { color: #6b6d69; }
.ce-ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.ce-toggle {
  background: transparent; border: 0; color: #9a9c96; cursor: pointer;
  border-radius: 8px; padding: 5px 12px; font-size: 13px;
}
.ce-toggle.on { background: #2b2b2f; color: #fff; }
.ce-chip {
  background: #232326; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 10px; padding: 6px 12px; font-size: 12.5px; white-space: nowrap;
}
.ce-chip:hover { background: #2c2c30; }
.ce-cost { font-size: 12px; color: #9a9c96; white-space: nowrap; padding-bottom: 6px; }
.ce-cost b { color: #f2f2f2; }
.ce-send {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: #f5f5f4; color: #101010; border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.ce-send:hover { background: #fff; }
.ce-send:disabled { background: #3a3a3e; color: #7d7f7a; cursor: not-allowed; }

/* 参数下拉菜单（对齐 likeadmin 的浮层样式：深色卡 + 白字 + 选中打勾） */
.ce-chip--model { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ce-caret { font-style: normal; font-size: 9px; opacity: .6; margin-left: 3px; }
.ce-menu {
  position: fixed; z-index: 90; width: 224px; max-height: 268px; overflow-y: auto;
  background: #202024; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.7);
}
.ce-mi {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: transparent; border: 0; color: #e8e8e6; cursor: pointer;
  border-radius: 9px; padding: 9px 11px; font-size: 13.5px;
}
.ce-mi:hover { background: #2b2b30; }
.ce-mi.on { background: #2b2b30; color: #fff; font-weight: 600; }
.ce-mi span { flex: 1; }
.ce-tick { color: #8ce0a0; font-style: normal; }
.ce-menu::-webkit-scrollbar { width: 6px; }
.ce-menu::-webkit-scrollbar-thumb { background: #3a3a40; border-radius: 3px; }

/* 特色卡：像 yikeai 一样自动循环播放封面视频（图片作为加载前的底图） */
.feat.has-vid .thumb video { opacity: 1; }
.feat.has-vid.playing .thumb img { opacity: 0; }
.feat .thumb img { transition: opacity .3s ease; }

/* ==========================================================================
   yikeai 同款生成工作台（/gen/video、/gen/image）
   左表单 596px，右作品区自适应；深色
   ========================================================================== */
.content.gen-page { padding: 0; }
.yg-wrap { display: grid; grid-template-columns: 596px minmax(0, 1fr); min-height: calc(100vh - 150px); }
@media (max-width: 1200px) { .yg-wrap { grid-template-columns: 1fr; } }

.yg-left { padding: 18px 20px 26px; border-right: 1px solid rgba(255,255,255,.05); overflow-y: auto; }
.yg-tabs { display: flex; gap: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 16px; }
.yg-tab { background: none; border: 0; cursor: pointer; font-size: 15px; color: #8c8e89; padding: 4px 0; position: relative; }
.yg-tab.on { color: #fff; font-weight: 600; }
.yg-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: #fff; }

.yg-panel { display: flex; flex-direction: column; gap: 14px; }
.yg-subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.yg-sub { background: #232326; border: 0; color: #b6b8b3; cursor: pointer; border-radius: 8px; padding: 11px 6px; font-size: 13.5px; }
.yg-sub:hover { background: #2c2c30; }
.yg-sub.on { background: #5b2ee6; color: #fff; font-weight: 600; }

.yg-model { display: flex; align-items: center; gap: 10px; background: #17171a; border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 13px 16px; cursor: pointer; text-align: left; }
.yg-model:hover { background: #1d1d21; }
.yg-mdot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #7a4dff, #2f7bff); flex: 0 0 auto; }
.yg-model b { font-size: 14px; color: #fff; font-weight: 600; }
.yg-hot { background: linear-gradient(135deg,#8b5cf6,#6d28d9); color: #fff; font-size: 11px; border-radius: 6px; padding: 2px 8px; }
.yg-arrow { margin-left: auto; color: #6f716c; font-size: 18px; }

.yg-upload { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 26px 16px; text-align: center; cursor: pointer; background: #131316; }
.yg-upload:hover { background: #17171b; }
.yg-plus { font-size: 24px; color: #8c8e89; }
.yg-uptitle { font-size: 13.5px; color: #cfd1cb; margin-top: 6px; }
.yg-uptitle::before { content: '↑ '; }
.yg-upsub { font-size: 11.5px; color: #6f716c; margin-top: 6px; }

.yg-promptbox { position: relative; background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 14px; }
.yg-ta { width: 100%; background: transparent; border: 0; outline: none; resize: none; color: #f2f2f2;
  font-family: inherit; font-size: 14px; line-height: 1.6; min-height: 140px; }
.yg-ta::placeholder { color: #63655f; }
.yg-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.yg-pill { background: #232327; border: 0; color: #b6b8b3; cursor: pointer; border-radius: 7px; padding: 5px 12px; font-size: 12px; }
.yg-pill:hover { background: #2c2c31; color: #fff; }

.yg-row { display: flex; align-items: center; gap: 12px; }
.yg-rlabel { font-size: 13.5px; color: #cfd1cb; }
.yg-seg { margin-left: auto; display: flex; gap: 8px; }
.yg-sg { background: #232327; border: 0; color: #b6b8b3; cursor: pointer; border-radius: 8px; padding: 8px 16px; font-size: 13px; }
.yg-sg.on { background: #303036; color: #fff; }
.yg-switch { margin-left: auto; width: 44px; height: 24px; border-radius: 12px; border: 0; cursor: pointer; background: #3a3a40; position: relative; }
.yg-switch.on { background: #6d28d9; }
.yg-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s; }
.yg-switch.on::after { left: 23px; }

.yg-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; }
.yg-sel { position: relative; display: flex; align-items: center; gap: 6px; background: transparent; border: 0;
  color: #cfd1cb; cursor: pointer; font-size: 13px; padding: 8px 4px; }
.yg-selopts { position: absolute; bottom: 38px; left: 0; min-width: 120px; background: #202024;
  border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 5px; z-index: 40;
  box-shadow: 0 16px 40px rgba(0,0,0,.7); display: flex; flex-direction: column; }
.yg-selopts[hidden] { display: none; }
.yg-selopts b { font-weight: 400; text-align: left; padding: 8px 10px; border-radius: 7px; color: #e8e8e6; font-size: 13px; cursor: pointer; }
.yg-selopts b:hover { background: #2b2b31; }

.yg-run { width: 100%; border: 0; cursor: pointer; border-radius: 12px; padding: 13px;
  background: linear-gradient(90deg, #6d3bff 0%, #7c3aed 55%, #8b5cf6 100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
.yg-run:hover { filter: brightness(1.08); }
.yg-run:disabled { filter: grayscale(.5) brightness(.8); cursor: not-allowed; }
.yg-runmain { color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.yg-runmain i { font-style: normal; }
.yg-runmain em { font-style: normal; }
.yg-runsub { color: rgba(255,255,255,.65); font-size: 11.5px; }
.yg-foot { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #63655f; }
.yg-water { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.yg-swt { width: 30px; height: 16px; border-radius: 8px; background: #3a3a40; display: inline-block; position: relative; }
.yg-swt.on { background: #6d28d9; }
.yg-swt::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.yg-swt.on::after { left: 16px; }

.yg-right { padding: 18px 20px; overflow-y: auto; }
.yg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; gap: 26px; }
.yg-illo { position: relative; width: 380px; height: 210px; }
.yg-tile { position: absolute; background: linear-gradient(180deg,#2a2a30,#1a1a1e); border-radius: 10px; }
.yg-t1 { left: 40px; top: 18px; width: 116px; height: 74px; display: grid; place-items: center;
  font-size: 9.5px; color: #8c8e89; border: 1px solid rgba(255,255,255,.07); }
.yg-t2 { left: 178px; top: 78px; width: 62px; height: 62px; }
.yg-t3 { left: 248px; top: 78px; width: 62px; height: 62px; }
.yg-t4 { left: 318px; top: 78px; width: 62px; height: 62px; }
.yg-t5 { left: 108px; top: 78px; width: 62px; height: 62px; }
.yg-star { position: absolute; color: #c4b5fd; }
.yg-star1 { left: 258px; top: 14px; font-size: 22px; }
.yg-star2 { left: 300px; top: 40px; font-size: 15px; }
.yg-emptytext { color: #8c8e89; font-size: 14px; }

.yg-work { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 20px; margin-bottom: 20px; }
.yg-wprompt { font-size: 13.5px; color: #e8e8e6; line-height: 1.6; margin-bottom: 5px; }
.yg-wmeta { font-size: 12px; color: #8c8e89; margin-bottom: 12px; }
.yg-wmedia { display: flex; flex-wrap: wrap; gap: 10px; }
.yg-wmedia img, .yg-wmedia video { max-width: 360px; max-height: 420px; border-radius: 12px; display: block; }
.yg-wait { font-size: 12px; color: #8c8e89; }

/* likeadmin 工作台特殊控件 */
/* 多选 + 右上角计数器 */
.ws-flabel--count { display: flex; align-items: center; gap: 8px; }
.ws-cnt { margin-left: auto; font-size: 12px; color: #8c8e89; font-weight: 400; }

/* 独立下拉行（353x40 / 底 rgb(15,15,15) / 圆角 8px） */
.ws-rowsel {
  position: relative; display: flex; align-items: center; gap: 6px;
  width: 100%; height: 40px; padding: 0 12px; cursor: pointer;
  background: rgb(15,15,15); border: 1px solid rgb(34,34,34); border-radius: 8px;
  font-size: 13px; color: #e8e8e6;
}
.ws-rowsel:hover { border-color: rgba(255,255,255,.18); }
.ws-rowselv { flex: 1; }
.ws-rowopts {
  position: absolute; top: 44px; left: 0; right: 0; z-index: 40;
  background: #202024; border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
  padding: 5px; box-shadow: 0 16px 40px rgba(0,0,0,.7); display: flex; flex-direction: column;
}
.ws-rowopts[hidden] { display: none; }
.ws-rowopts b { font-weight: 400; padding: 9px 11px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.ws-rowopts b:hover { background: #2b2b31; }

/* AI 帮写 / AI优化 按钮 */
.ws-flabel--ai { display: flex; align-items: center; gap: 8px; }
.ws-ai {
  margin-left: auto; background: #232327; border: 0; color: #c4b5fd; cursor: pointer;
  border-radius: 7px; padding: 4px 10px; font-size: 11.5px; font-weight: 500;
}
.ws-ai + .ws-ai { margin-left: 0; }
.ws-ai:hover { background: #2c2c33; color: #ddd6fe; }

/* 模特库 */
.ws-mfilters { display: flex; gap: 8px; margin-bottom: 10px; }
.ws-mfilter {
  background: rgb(23,23,23); border: 1px solid rgb(34,34,34); border-radius: 10px;
  color: #e8e8e6; cursor: pointer; padding: 9px 14px; font-size: 12.5px;
}
.ws-mfilter:hover { border-color: rgba(255,255,255,.2); }
.ws-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-mcard {
  position: relative; padding: 0; border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; overflow: hidden; cursor: pointer; background: rgb(15,15,15);
  aspect-ratio: 3 / 4;
}
.ws-mcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-mcard.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.ws-mtag {
  position: absolute; left: 6px; bottom: 6px; font-size: 9.5px; color: #fff;
  background: rgba(0,0,0,.55); border-radius: 5px; padding: 1px 6px;
}
.ws-mselected { margin-top: 12px; background: rgb(15,15,15); border: 1px solid rgb(34,34,34); border-radius: 12px; padding: 10px 12px; }
.ws-mshd { display: flex; align-items: center; font-size: 12.5px; color: #cfd1cb; margin-bottom: 8px; }
.ws-mshd b { margin-left: auto; color: #8c8e89; font-weight: 400; }
.ws-msslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ws-mslot { aspect-ratio: 1 / 1; border-radius: 8px; background: #202024; overflow: hidden; }
.ws-mslot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 生成页：模型下拉（点开显示全部模型，选中的打勾） */
.yg-modelwrap { position: relative; }
.yg-mlist {
  position: absolute; top: 58px; left: 0; right: 0; z-index: 50;
  background: #202024; border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.75);
  max-height: 320px; overflow-y: auto;
}
.yg-mlist[hidden] { display: none; }
.yg-mi {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: transparent; border: 0; color: #e8e8e6; cursor: pointer;
  border-radius: 9px; padding: 10px 12px; font-size: 13.5px;
}
.yg-mi:hover { background: #2b2b31; }
.yg-mi.on { background: #2b2b31; color: #fff; font-weight: 600; }
.yg-mi span { flex: 1; }

/* ==========================================================================
   生成页：yikeai 同款细节（首帧/尾帧、上下分区、chips 两段式、添加链接）
   ========================================================================== */
/* 首帧 / 尾帧 两格 */
.yg-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yg-frame {
  background: #1c1c20; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  min-height: 132px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; cursor: pointer; color: #b6b8b3;
}
.yg-frame:hover { background: #212127; border-color: rgba(255,255,255,.14); }
.yg-fico { font-size: 20px; color: #8c8e89; }
.yg-ftxt { font-size: 13px; }
.yg-frametip { text-align: center; font-size: 12px; color: #6f716c; margin: 10px 0 2px; }

/* 待编辑视频 / 参考图片 两张卡 + 示例 */
.yg-pair { display: flex; flex-direction: column; gap: 12px; }
.yg-paircard {
  position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 12px;
  background: #17171b; border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 12px;
}
.yg-pairtag {
  position: absolute; top: -1px; left: 12px; transform: translateY(-50%);
  background: #6d28d9; color: #fff; font-size: 11px; border-radius: 6px; padding: 2px 8px;
}
.yg-pairtag.ref { background: #3b4ea8; }
.yg-pairthumb { height: 96px; border-radius: 10px; background: #24242a; }
.yg-pairthumb.ref { background: #2a2436; }
.yg-pairup { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.yg-plus.sm { width: 32px; height: 32px; font-size: 18px; }
.yg-uptitle.sm { font-size: 13px; }
.yg-example { font-size: 12px; color: #7d7f7a; line-height: 1.9; }
.yg-exhd { color: #b6b8b3; margin-bottom: 4px; }

/* chips：分组标签 + 展开的选项面板 */
.yg-chips { margin-top: 12px; }
.yg-chipgroup {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
  background: rgba(255,255,255,.03); border-radius: 12px; padding: 10px;
}
.yg-chipitem {
  background: #2a2a31; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 7px; padding: 5px 12px; font-size: 12px;
}
.yg-chipitem:hover { background: #34343c; color: #fff; }
.yg-chirow { display: flex; flex-wrap: wrap; gap: 6px; }
.yg-chipcat {
  background: #f5f5f4; border: 0; color: #101010; cursor: pointer;
  border-radius: 7px; padding: 6px 14px; font-size: 12.5px; font-weight: 500;
}
.yg-chipcat:hover { background: #fff; }
.yg-chipcat.on { background: #6d28d9; color: #fff; }

/* 添加链接 */
.yg-linkbtn {
  margin-top: 10px; margin-left: auto; display: block;
  background: #232327; border: 0; color: #b6b8b3; cursor: pointer;
  border-radius: 8px; padding: 7px 14px; font-size: 12.5px;
}
.yg-linkbtn:hover { background: #2c2c33; color: #fff; }

/* ==========================================================================
   首页输入框的「模式面板」（对齐 yikeai 首页：首帧图 + 时长，紧凑内联）
   ========================================================================== */
.hm-panel { margin-top: 14px; }
.hm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .hm-grid { grid-template-columns: 1fr; } }
.hm-f { display: flex; flex-direction: column; gap: 7px; }
.hm-f label { font-size: 12.5px; color: #8c8e89; }
.hm-drop {
  border: 1px dashed rgba(255,255,255,.16); border-radius: 10px;
  padding: 14px 12px; text-align: center; font-size: 12.5px; color: #9a9c96;
  cursor: pointer; background: rgba(255,255,255,.015);
}
.hm-drop:hover, .hm-drop.over { border-color: rgba(255,255,255,.34); color: #e8e8e6; }
.hm-drop.has { border-style: solid; border-color: rgba(140,224,160,.5); color: #8ce0a0; }
.hm-url {
  width: 100%; background: #131316; border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; color: #e8e8e6; padding: 9px 12px; font-size: 12.5px; font-family: inherit;
}
.hm-url::placeholder { color: #63655f; }
.hm-f select {
  width: 100%; background: #131316; border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; color: #e8e8e6; padding: 9px 12px; font-size: 13px; font-family: inherit;
}
.hm-f select:focus, .hm-url:focus { outline: none; border-color: rgba(255,255,255,.28); }

/* ==========================================================================
   AI视频剪辑 专用（likeadmin 实测）：剪辑模板图库 + 素材区 + 字数计数
   ========================================================================== */
/* 模板图库：3 列带封面的大卡 */
.ws-tplgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-tplcard {
  position: relative; padding: 0; overflow: hidden; cursor: pointer;
  background: rgb(15,15,15); border: 1px solid rgb(34,34,34);
  border-radius: 10px; aspect-ratio: 3 / 4;
}
.ws-tplcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-tplcard.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.ws-tplph { display: block; width: 100%; height: 100%; background: linear-gradient(180deg,#26262c,#1a1a1e); }
.ws-tplname {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); padding: 14px 8px 6px; text-align: left;
}
/* 素材区 */
.ws-flabel--row { display: flex; align-items: center; gap: 8px; }
.ws-assetsbtns { margin-left: auto; display: flex; gap: 6px; }
.ws-abtn {
  background: #232327; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 8px; padding: 6px 12px; font-size: 12px;
}
.ws-abtn:hover { background: #2c2c33; color: #fff; }
.ws-assetsempty {
  background: rgb(15,15,15); border: 1px solid rgb(34,34,34); border-radius: 10px;
  padding: 26px 12px; text-align: center; font-size: 12.5px; color: #6f716c;
}

/* 模型下拉里显示单价 */
.yg-miprice { font-style: normal; font-size: 11px; color: #8c8e89; margin-left: auto; margin-right: 8px; white-space: nowrap; }
.yg-mi.on .yg-miprice { color: #b6b8b3; }

/* ==========================================================================
   全驱数字人 / 对口型数字人（对齐 likeadmin /ai/avatar?tab=image_human）
   左栏 5 区块 + 右栏形象库
   ========================================================================== */
.av-wrap { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 24px; padding: 18px 20px; }
@media (max-width: 1100px) { .av-wrap { grid-template-columns: 1fr; } }
.av-left { display: flex; flex-direction: column; gap: 22px; }
.av-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.av-tab {
  background: rgb(23,23,23); border: 1px solid rgb(34,34,34); color: #b6b8b3;
  cursor: pointer; border-radius: 10px; padding: 16px 10px; font-size: 14px;
}
.av-tab:hover { border-color: rgba(255,255,255,.2); }
.av-tab.on { background: #f5f5f4; border-color: #f5f5f4; color: #101010; font-weight: 600; }

.av-block { display: flex; flex-direction: column; gap: 10px; }
.av-bhd { display: flex; align-items: center; }
.av-bhd h4 { font-size: 14.5px; font-weight: 600; color: #f2f2f2; margin: 0; }
.av-libbtn {
  margin-left: auto; background: #232327; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 8px; padding: 10px 16px; font-size: 12.5px;
}
.av-libbtn:hover { background: #2c2c33; color: #fff; }

.av-drop {
  background: rgb(15,15,15); border: 1px solid rgb(34,34,34); border-radius: 12px;
  min-height: 172px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; cursor: pointer;
}
.av-drop:hover { border-color: rgba(255,255,255,.2); }
.av-dico { font-size: 22px; color: #8c8e89; }
.av-dtxt { font-size: 13.5px; color: #cfd1cb; }
.av-hist {
  background: #26262a; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 8px; padding: 9px 16px; font-size: 12.5px;
}
.av-hist:hover { background: #303038; }
.av-dthumb { width: 100%; height: 172px; border-radius: 10px; overflow: hidden; }
.av-dthumb img { width: 100%; height: 100%; object-fit: contain; }

.av-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.av-mode {
  text-align: left; background: rgb(15,15,15); border: 1px solid rgb(34,34,34);
  border-radius: 12px; padding: 14px; cursor: pointer; display: flex;
  flex-direction: column; gap: 4px;
}
.av-mode b { font-size: 13.5px; color: #e8e8e6; font-weight: 600; }
.av-mode span { font-size: 11.5px; color: #7d7f7a; }
.av-mode.on { background: #f5f5f4; border-color: #f5f5f4; }
.av-mode.on b { color: #101010; }
.av-mode.on span { color: #5c5e59; }

.av-ta-wrap { background: rgb(15,15,15); border: 1px solid rgb(34,34,34); border-radius: 12px; padding: 12px; }
.av-ta {
  width: 100%; min-height: 96px; background: transparent; border: 0; outline: none;
  resize: vertical; color: #f2f2f2; font-size: 13.5px; font-family: inherit; line-height: 1.6;
}
.av-ta::placeholder { color: #63655f; }
.av-ta--sm { min-height: 62px; background: rgb(15,15,15); border: 1px solid rgb(34,34,34); border-radius: 12px; padding: 12px; }
.av-ta-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.av-mini {
  background: #232327; border: 0; color: #d6d7d3; cursor: pointer;
  border-radius: 7px; padding: 6px 12px; font-size: 12px;
}
.av-mini:hover { background: #2c2c33; color: #fff; }
.av-count { margin-left: auto; font-size: 11.5px; color: #7d7f7a; }

.av-run {
  width: 100%; background: #f5f5f4; border: 0; color: #101010; cursor: pointer;
  border-radius: 12px; padding: 15px; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.av-run:hover { background: #fff; }

.av-right { display: flex; flex-direction: column; gap: 16px; }
.av-rtabs { display: flex; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.av-rtab {
  background: none; border: 0; color: #8c8e89; cursor: pointer; font-size: 15px;
  padding: 4px 0 12px; position: relative;
}
.av-rtab.on { color: #fff; font-weight: 600; }
.av-rtab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff; }
.av-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1400px) { .av-gallery { grid-template-columns: repeat(3, 1fr); } }
.av-create {
  background: rgb(23,23,23); border: 1px solid rgb(34,34,34); border-radius: 12px;
  aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; cursor: pointer;
}
.av-create:hover { border-color: rgba(255,255,255,.2); }
.av-cico { font-size: 24px; color: #8c8e89; }
.av-ctxt { font-size: 13px; color: #b6b8b3; }
.av-emptytip { grid-column: 1 / -1; font-size: 12.5px; color: #6f716c; padding: 8px 2px; }

/* 模型下拉里的厂商标签 */
.yg-mivendor { font-style: normal; font-size: 11px; color: #6f716c; margin-left: 6px; }

/* ==========================================================================
   首页模式面板：紧凑版（控件横向一排，不撑高输入框）
   ========================================================================== */
.promptbox.compact textarea { min-height: 76px; }
.promptbox.compact { padding: 18px 20px 12px; }

.hm-panel { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-lb { flex: 0 0 auto; font-size: 12.5px; color: #8c8e89; min-width: 84px; }
.hm-file {
  flex: 1 1 200px; min-width: 160px; height: 34px; display: flex; align-items: center; gap: 8px;
  border: 1px dashed rgba(255,255,255,.16); border-radius: 9px; padding: 0 12px;
  font-size: 12.5px; color: #9a9c96; cursor: pointer; background: rgba(255,255,255,.015);
}
.hm-file:hover, .hm-file.over { border-color: rgba(255,255,255,.34); color: #e8e8e6; }
.hm-file.has { border-style: solid; border-color: rgba(140,224,160,.5); color: #8ce0a0; }
.hm-fico { font-size: 13px; }
.hm-ftext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-url {
  flex: 1 1 180px; min-width: 150px; height: 34px;
  background: #131316; border: 1px solid rgba(255,255,255,.07); border-radius: 9px;
  color: #e8e8e6; padding: 0 12px; font-size: 12.5px; font-family: inherit;
}
.hm-url::placeholder { color: #63655f; }
.hm-sel {
  flex: 0 0 132px; height: 34px; background: #131316; border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; color: #e8e8e6; padding: 0 10px; font-size: 13px; font-family: inherit;
}
.hm-url:focus, .hm-sel:focus { outline: none; border-color: rgba(255,255,255,.28); }
/* 覆盖旧的 hm-grid / hm-drop（已不再使用） */
.hm-grid { display: none !important; }

/* ==========================================================================
   个人信息 / 个人中心
   ========================================================================== */
.pf-head { display: flex; align-items: center; gap: 16px; padding: 4px 2px 2px; }
.pf-ava {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px;
  background: linear-gradient(135deg, #590bf6, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .5px;
}
.pf-id h2 { font-size: 19px; font-weight: 600; margin: 0 0 6px; color: #f2f2f2; }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-tag {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: #26262a; color: #b6b8b3; border: 1px solid rgba(255,255,255,.07);
}
.pf-tag.ok { background: rgba(140,224,160,.14); color: #8ce0a0; border-color: rgba(140,224,160,.28); }
.pf-tag.warn { background: rgba(240,180,90,.14); color: #f0b45a; border-color: rgba(240,180,90,.28); }

.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-h { font-size: 14.5px; font-weight: 600; color: #f2f2f2; margin: 0 0 14px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.pf-row:last-child { border-bottom: 0; }
.pf-row span { color: #8c8e89; }
.pf-row b { color: #e8e8e6; font-weight: 500; text-align: right; word-break: break-all; }
.pf-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-key code {
  flex: 1 1 200px; min-width: 0; background: #131316; border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; padding: 10px 12px; font-size: 12.5px; color: #e8e8e6;
  font-family: ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; white-space: nowrap;
}
.pf-invite { display: flex; gap: 8px; margin-top: 10px; }
.pf-invite .tl-url { flex: 1 1 auto; min-width: 0; }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; }
