/* 大肚漫剧工坊 · 官网复刻样式（对齐 app.pavo-ai.cn 首页） */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --siderbar-width: 6.125rem;         /* 98px */
  --primary: #121212;
  --secondary: #717171;
  --helper: #9c9c9c;
  --muted: #414141;
  --bg-body: #faf4ec;
  --bg-tab: #f2f2f2;
  --green: #7AC130;
  --teal: #24AFCF;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-body);
  min-width: 1200px;
  color: var(--primary);
}

img { display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* ===== 背景水彩 ===== */
.app-page-background {
  min-height: 100vh;
  background: #fff;
}
.app-page-background::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../assets/home/home-background.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ===== 侧栏 ===== */
.layout-has-sider { position: relative; z-index: 1; }
.side-content {
  position: fixed !important;
  z-index: 101;
  height: 100vh;
  width: var(--siderbar-width);
  overflow: visible;
  background: transparent;
}
.side-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px 0 40px;
}
.side-top { display: flex; flex-direction: column; align-items: center; }
.logo-btn { margin-top: 12px; margin-bottom: 80px; display: flex; border-radius: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  border-radius: 12px;
  transition: color .2s ease;
}
.nav-ico { display: flex; height: 32px; width: 32px; align-items: center; justify-content: center; }
.nav-ico img { opacity: .55; transition: opacity .2s ease; }
.nav-label { font-size: 14px; line-height: 17px; color: var(--secondary); }
.nav-item.active .nav-label { color: var(--primary); }
.nav-item.active .nav-ico img { opacity: 1; }
.nav-item:hover .nav-label { color: var(--primary); }
.nav-item:hover .nav-ico img { opacity: 1; }
.side-bottom { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.nav-wechat, .nav-setting { display: flex; opacity: .75; }

/* ===== 主内容 ===== */
.main-content {
  margin-left: var(--siderbar-width);
  min-height: 100vh;
  width: calc(100% - var(--siderbar-width));
  position: relative;
  isolation: isolate;
}
.container { width: 100%; max-width: 1454px; margin: 0 auto; }

/* 通知条 */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0;
  width: fit-content;
  max-width: 90%;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 2px 10px rgba(218,218,218,.25);
}
.promo-link { color: var(--green); text-decoration: none; font-weight: 500; }
.promo-close { display: flex; opacity: .6; }
.promo-close:hover { opacity: 1; }

/* 顶栏 */
.topbar { width: 100%; padding: 12px 56px 0; }
.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.btn-login {
  display: flex;
  width: 128px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--primary);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s ease;
}
.btn-login:hover { background: var(--bg-tab); border-color: var(--secondary); }
/* 已登录：头像 + 昵称 */
.btn-login.is-user { width: auto; min-width: 128px; padding: 0 18px 0 6px; gap: 8px; border-color: #e2ded6; background: #fff; }
.btn-login.is-user .user-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7AC130, #24AFCF); color: #fff; font-size: 15px; font-weight: 600; flex: 0 0 auto;
}
.btn-login.is-user .user-name { font-size: 14px; color: var(--primary); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-login.is-user .user-credits {
  font-size: 12px; font-weight: 600; color: #b06f14; background: rgba(245, 166, 35, .14);
  border: 1px solid rgba(245, 166, 35, .35); border-radius: 999px; padding: 1px 8px; flex: 0 0 auto;
}
.btn-login.is-user .user-credits::before { content: '◆ '; font-size: 9px; }

/* ===== 充值卡密弹窗 ===== */
.redeem-dialog { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; }
.redeem-mask { position: absolute; inset: 0; background: rgba(15, 17, 21, .45); backdrop-filter: blur(2px); }
.redeem-box {
  position: relative; z-index: 1; width: min(360px, calc(100vw - 48px)); background: #fff; border-radius: 18px;
  padding: 26px 24px 20px; box-shadow: 0 18px 60px rgba(0, 0, 0, .22); font-family: inherit;
}
.redeem-title { font-size: 18px; font-weight: 700; color: #1f2430; margin-bottom: 6px; }
.redeem-sub { font-size: 12.5px; color: #8a8f99; margin-bottom: 16px; line-height: 1.6; }
.redeem-input {
  width: 100%; box-sizing: border-box; border: 1.5px solid #e2ded6; border-radius: 10px; padding: 11px 12px;
  font-size: 16px; letter-spacing: 2px; text-align: center; font-family: Consolas, monospace; outline: none; background: #faf9f7;
}
.redeem-input:focus { border-color: #f5a623; background: #fff; }
.redeem-tip { min-height: 20px; font-size: 12.5px; margin-top: 8px; color: #8a8f99; text-align: center; }
.redeem-tip.ok { color: #2f9e63; font-weight: 600; }
.redeem-tip.err { color: #d64541; }
.redeem-btns { display: flex; gap: 10px; margin-top: 12px; }
.redeem-btns button {
  flex: 1; border: 0; border-radius: 10px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.redeem-cancel { background: #f0eee9; color: #5c6068; }
.redeem-go { background: linear-gradient(135deg, #f5a623, #e8722a); color: #fff; }

/* ===== 首屏 ===== */
.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 40px;
}
.home-page > .container { padding: 0 32px; }
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 48px 0 32px;
  text-align: left;
}
.hero-line1 { display: block; font-size: 48px; font-weight: 500; line-height: 1.2; color: #121212; }
.hero-line2 {
  display: block;
  font-size: 64px;
  font-weight: 550;
  line-height: 1.2;
  background: linear-gradient(to right, #7AC130, #24AFCF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 创作输入卡 ===== */
.composer-wrap { position: relative; z-index: 50; width: 100%; }
.composer-deco {
  pointer-events: none;
  position: absolute;
  left: 70%;
  top: 0;
  z-index: 0;
  height: 600px;
  width: 280px;
  transform: translate(-50%, -56%);
  object-fit: contain;
  mix-blend-mode: screen;
  user-select: none;
}
.composer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 214px;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  border: 1px solid #dcdcdc;
  padding: 16px 20px;
  box-shadow: 0 10px 17px 0 rgba(160,170,150,.28);
  background-image: linear-gradient(135deg,
    rgba(240,244,224,.78) 0%,
    rgba(246,246,246,.72) 60%,
    rgba(205,240,238,.72) 80%,
    rgba(246,246,237,.72) 95%);
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.composer:focus-within { border-color: #d5d5d5; }
.composer-row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.upload-box { width: 56px; height: 70px; flex-shrink: 0; position: relative; overflow: visible; }
.upload-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  height: 70px;
  width: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px dashed #cdcdcd;
  background: rgba(255,255,255,.9);
  transform: rotate(-8deg);
  transition: transform .2s ease, background .2s ease;
}
.upload-btn:hover { transform: rotate(-8deg) scale(1.06); background: rgba(255,255,255,.95); }
.composer-input-area { position: relative; flex: 1; min-width: 0; align-self: stretch; }
.composer-placeholder {
  position: absolute;
  z-index: 2;
  top: 4px;
  width: 100%;
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.625;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}
.composer-input {
  position: relative;
  z-index: 10;
  outline: none;
  width: 100%;
  height: 100%;
  min-height: 70px;
  max-height: 140px;
  overflow-y: auto;
  color: #333;
  font-size: 16px;
  line-height: 1.625;
  word-break: break-all;
  padding: 6px 0;
  caret-color: var(--green);
}
.composer-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-shrink: 0;
}
.toolbar-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--secondary);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.pill:hover { background: rgba(255,255,255,.75); color: var(--primary); }
.pill-primary { color: var(--primary); font-weight: 500; }
.pill-ico { height: 20px; width: 20px; flex-shrink: 0; object-fit: contain; }
.pill-ico.round { border-radius: 50%; }
.pill-mask-ico {
  display: inline-block;
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("../assets/icon/video-type-select.svg") center center / contain no-repeat;
}
.pill-mask-ico.sm { height: 16px; width: 16px; }
.pill-arrow {
  display: inline-block;
  height: 14px;
  width: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: .55;
  mask: url("../assets/icon/arrow-down-current.svg") center center / contain no-repeat;
}
.pill-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 32px;
  border-radius: 999px;
  color: var(--secondary);
}
.pill-settings:hover { background: rgba(255,255,255,.75); color: var(--primary); }
.pill-at {
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--secondary);
}
.pill-at:hover { background: rgba(255,255,255,.75); color: var(--primary); }
.toolbar-right { display: flex; min-height: 36px; align-items: center; }
.send-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  padding: 4px;
}
.send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 999px;
  transition: transform .15s ease, opacity .15s ease;
}
.send-btn:hover { transform: scale(1.05); }
.send-btn img { width: 36px; height: 36px; }

/* ===== 画廊 ===== */
.gallery-section { position: relative; z-index: 0; width: 100%; padding: 0 32px; }
.tabs-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin-top: 24px;
}
.tabs-row {
  position: relative;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.tabs-search {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
}
.search-ico { height: 20px; width: 20px; opacity: .5; }
.tabs-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--muted);
  width: 160px;
}
.tabs-search input::placeholder { color: var(--helper); }
.tabs-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 45px;
  background: rgba(255,255,255,.4);
  padding: 4px;
  backdrop-filter: blur(12px);
}
.tab-item {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 45px;
  font-size: 16px;
  font-weight: 400;
  color: var(--helper);
  cursor: pointer;
  transition: all .2s ease;
}
.tab-item:hover { color: var(--primary); }
.tab-item.active {
  background: linear-gradient(to right, #B2E0F3, #7DC3AE);
  font-weight: 500;
  color: var(--primary);
}

/* 作品瀑布流（4 列） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 10px;
  width: 1270px;
  max-width: 100%;
  margin: 0 auto;
}
.work-card { cursor: pointer; }
.work-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-tab);
}
.work-thumb img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.work-card:hover .work-thumb img.cover { transform: scale(1.03); }
.work-play {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 20;
  pointer-events: none;
}
.work-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 48px 12px 12px;
  background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 100%);
  opacity: 0;
  transition: opacity .2s ease;
  font-size: 14px;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay .avatar {
  height: 24px;
  width: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #ccc;
}
.work-title {
  margin-top: 8px;
  font-size: 14px;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.works-more { display: flex; justify-content: center; padding: 32px 0 56px; }
.btn-more {
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid #dcdcdc;
  background: rgba(255,255,255,.6);
  font-size: 14px;
  color: var(--muted);
  transition: all .2s ease;
}
.btn-more:hover { border-color: var(--green); color: var(--green); }

/* 悬浮帮助 */
.float-help {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7AC130, #3FBF9F);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(122,193,48,.35);
  cursor: pointer;
}

/* ===== 功能层：下拉菜单 / 浮层 / 任务卡 / 提示条 ===== */
.menu {
  position: fixed;
  z-index: 200;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(40,50,40,.16), 0 0 0 1px rgba(0,0,0,.05);
}
.menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 38px; padding: 0 10px;
  border-radius: 9px; font-size: 14px; color: var(--primary); text-align: left;
}
.menu-item:hover { background: #f4f6f1; }
.menu-item.active { font-weight: 500; }
.menu-item .mi-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .mi-hint { font-size: 12px; color: var(--helper); }
.menu-item .mi-check { color: #5aa832; font-weight: 700; }
.menu-divider { height: 1px; margin: 5px 8px; background: #ececec; }
.pill.menu-open, .pill-settings.menu-open { background: rgba(255,255,255,.9); color: var(--primary); }

.popover {
  position: fixed; z-index: 210;
  width: 300px; padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(40,50,40,.18), 0 0 0 1px rgba(0,0,0,.05);
}
.popover.wide { width: 400px; max-height: 70vh; overflow: auto; }
.pop-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.pop-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pop-label { width: 62px; flex-shrink: 0; font-size: 13px; color: var(--secondary); }
.pop-input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border: 1px solid #e3e3e3; border-radius: 9px; font-size: 13px; outline: none; background: #fbfbfb;
}
.pop-input:focus { border-color: #9ad06a; background: #fff; }
.pop-textarea {
  flex: 1; min-width: 0; height: 64px; padding: 8px 10px; resize: vertical;
  border: 1px solid #e3e3e3; border-radius: 9px; font-size: 13px; outline: none; font-family: inherit; background: #fbfbfb;
}
.pop-note { font-size: 12px; color: var(--helper); line-height: 1.6; margin-top: 6px; }
.pop-val { font-size: 13px; color: var(--secondary); width: 28px; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px;
  background: #f4f4f4; color: var(--secondary); transition: all .15s ease;
}
.chip:hover { background: #eaeaea; }
.chip.on { background: linear-gradient(135deg,#d9f0b6,#b7e6c4); color: #1f3914; font-weight: 500; }
.pop-btn {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px;
  background: #f4f4f4; color: var(--primary);
}
.pop-btn:hover { background: #eaeaea; }
.pop-btn.primary { background: linear-gradient(135deg,#7AC130,#3FBF9F); color: #fff; }
.st-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.st-row span { color: var(--helper); }
.st-row b { font-weight: 500; color: var(--primary); text-align: right; }

/* 设置面板：通道切换 */
.st-ch { display: flex; flex-direction: column; gap: 7px; }
.st-ch-row { display: flex; align-items: center; gap: 10px; }
.st-ch-name { width: 30px; flex-shrink: 0; font-size: 13px; color: var(--secondary); }
.st-seg { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #f2f2f2; }
.st-seg button {
  height: 26px; padding: 0 16px; border-radius: 999px;
  font-size: 12px; color: var(--secondary); transition: all .16s ease;
}
.st-seg button:hover { color: var(--primary); }
.st-seg button.on { background: #fff; color: #1f3914; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.st-sep { height: 1px; margin: 12px 0 10px; background: #eee; }
.st-sub { font-size: 12px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; letter-spacing: .2px; }
#cOut.bad { color: #d9534f; }

.ref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ref-chip {
  position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.ref-chip img { width: 100%; height: 100%; object-fit: cover; }
.ref-chip.warn { box-shadow: 0 0 0 2px #f0a03c; }
.ref-x {
  position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 18px; text-align: center; cursor: pointer;
}

/* 任务区 */
.task-grid { display: block; }
.task-grid-inner {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; width: 100%;
}
.task-card {
  border-radius: 18px; background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(60,70,60,.08), 0 0 0 1px rgba(0,0,0,.04);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.tk-head { display: flex; align-items: center; justify-content: space-between; }
.tk-status { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #f2f2f2; color: var(--secondary); }
.tk-status.ok { background: #e6f6df; color: #3f7a24; }
.tk-status.err { background: #fdeaea; color: #b23b3b; }
.tk-status.warn { background: #fdf3e0; color: #a5701f; }
.tk-time { font-size: 12px; color: var(--helper); }
.tk-media { border-radius: 12px; overflow: hidden; background: #f4f4f4; min-height: 120px; display: flex; }
.tk-media img, .tk-media video { width: 100%; display: block; }
.tk-ph {
  width: 100%; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--helper); font-size: 13px;
}
.tk-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; border-top-color: #7AC130; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tk-text { padding: 12px; font-size: 13px; line-height: 1.7; color: #333; max-height: 220px; overflow: auto; }
.tk-title { font-size: 13px; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-meta span { font-size: 11px; color: var(--helper); background: #f5f5f5; padding: 2px 8px; border-radius: 999px; }
.tk-err { font-size: 12px; line-height: 1.6; color: #b23b3b; background: #fdf3f3; border-radius: 10px; padding: 8px 10px; }
.tk-actions { display: flex; gap: 8px; }
.tk-btn {
  height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; background: #f4f4f4; color: var(--primary);
  display: inline-flex; align-items: center; text-decoration: none;
}
.tk-btn:hover { background: #e9e9e9; }
.empty-hint {
  grid-column: 1 / -1; text-align: center; color: var(--helper); font-size: 14px; padding: 60px 20px;
  background: rgba(255,255,255,.5); border-radius: 18px;
}
.empty-hint.sub { padding-top: 0; font-size: 13px; }
.empty-view { padding: 40px 0 80px; }

/* tab 角标 */
.tab-item { position: relative; }
.tab-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #f0a03c; color: #fff; font-size: 10px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}

/* 素材选择 */
.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.asset-item { border-radius: 10px; overflow: hidden; background: #f4f4f4; position: relative; }
.asset-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.asset-item.warn { box-shadow: 0 0 0 2px #f0a03c inset; }
.asset-name {
  display: block; font-size: 10px; color: var(--secondary); background: rgba(255,255,255,.9);
  padding: 3px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asset-empty { grid-column: 1/-1; font-size: 12px; color: var(--helper); line-height: 1.7; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 300; display: flex; align-items: center; gap: 10px;
  max-width: min(680px, 92vw); padding: 12px 18px; border-radius: 999px;
  background: rgba(20,22,20,.92); color: #fff; font-size: 13.5px; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: all .22s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ico {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px; background: rgba(255,255,255,.2);
}
.toast.ok .toast-ico { background: #4caf50; }
.toast.error .toast-ico { background: #e0503f; }

/* 发送中 */
.send-btn.busy { opacity: .55; pointer-events: none; }
.send-btn.busy img { animation: spin 1.2s linear infinite; }

/* ===== 工作台：短剧 / 画布 / 资产 ===== */
.panel-card {
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(60,70,60,.08), 0 0 0 1px rgba(0,0,0,.04);
  padding: 16px; margin-bottom: 16px;
}
.panel-card .pop-title { font-size: 16px; }
.panel-card .pop-input { background: #fff; }

.ep-card .ep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ep-title { font-size: 15px; font-weight: 600; color: var(--primary); }
.ep-summary { font-size: 13.5px; line-height: 1.7; color: var(--secondary); margin: 8px 0 4px; }
.shot-list { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.shot-row {
  display: flex; gap: 12px; padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.shot-media {
  flex: 0 0 168px; width: 168px; height: 96px; border-radius: 10px; overflow: hidden;
  background: #f2f2f2; display: flex; align-items: center; justify-content: center;
}
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
.shot-ph { font-size: 12px; color: var(--helper); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.shot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.shot-line { font-size: 13.5px; color: var(--primary); }
.shot-prompt {
  font-size: 12px; color: var(--helper); line-height: 1.6; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.shot-acts { display: flex; gap: 8px; margin-top: auto; }

.canvas-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.canvas-cell {
  position: relative; border-radius: 16px; overflow: hidden; background: #f2f2f2;
  aspect-ratio: 16/9; cursor: pointer;
  box-shadow: 0 6px 18px rgba(60,70,60,.08), 0 0 0 1px rgba(0,0,0,.04);
}
.canvas-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.canvas-cell:hover img { transform: scale(1.03); }
.canvas-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.canvas-cell .shot-ph { width: 100%; height: 100%; }

.asset-card { display: flex; flex-direction: column; gap: 8px; }
.asset-thumb { border-radius: 12px; overflow: hidden; background: #f2f2f2; }
.asset-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

/* ===== 短剧：官方同款「AI剧本创作」 ===== */
.pl-title { text-align: center; font-size: 28px; font-weight: 700; color: #121212; padding-top: 34px; }
.pl-sub { text-align: center; font-size: 13px; color: var(--helper); margin-top: 8px; }
.pl-card {
  max-width: 620px; margin: 26px auto 0;
  background: #f1f2ee; border-radius: 24px;
}
.pl-tabs { display: flex; }
.pl-tab {
  flex: 1; height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; color: var(--secondary); background: transparent;
  border-radius: 18px 18px 0 0; position: relative;
}
.pl-tab.active { background: #fff; color: var(--primary); font-weight: 500; }
.pl-tab.active::before, .pl-tab.active::after { content: ''; position: absolute; bottom: 0; width: 18px; height: 18px; }
.pl-tab.active::before { left: -18px; background: radial-gradient(circle at 0 0, transparent 17.5px, #fff 18px); }
.pl-tab.active::after { right: -18px; background: radial-gradient(circle at 100% 0, transparent 17.5px, #fff 18px); }
.pl-body { background: #fff; border-radius: 0 0 24px 24px; padding: 18px; }

.pl-drop {
  border: 1.5px dashed #d9d9d9; border-radius: 16px; padding: 52px 20px 40px;
  text-align: center; transition: all .15s ease;
}
.pl-drop.over { border-color: #7AC130; background: #f6fbf2; }
.pl-drop-btns { display: flex; justify-content: center; gap: 12px; }
.pl-btn-dark, .pl-btn-light {
  height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
}
.pl-btn-dark { background: #17190f; color: #fff; }
.pl-btn-dark:hover { background: #2a2d1d; }
.pl-btn-light { background: #fff; color: var(--primary); box-shadow: 0 0 0 1px #e6e6e6; }
.pl-btn-light:hover { background: #f6f6f6; }
.pl-drop-hint { font-size: 12.5px; color: #b5b5b5; margin-top: 18px; }

.pl-script { border: 1.5px solid #ececec; border-radius: 14px; padding: 14px; }
.pl-script-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pl-script-head b { font-weight: 600; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-script-chars { color: var(--helper); font-size: 12.5px; }
.pl-script-head .tk-btn { margin-left: auto; }
.pl-script-text {
  margin-top: 10px; font-size: 13px; line-height: 1.7; color: #444; white-space: pre-wrap;
  max-height: 180px; overflow: auto;
}
.pl-script .pl-row { margin-top: 12px; }

.pl-ta-wrap { position: relative; }
.pl-ta {
  width: 100%; min-height: 176px; resize: vertical;
  border: 1px solid #e5e5e5; border-radius: 14px; padding: 14px 16px 32px;
  font-size: 14px; line-height: 1.7; font-family: inherit; outline: none; color: var(--primary);
}
.pl-ta:focus { border-color: #9ad06a; }
.pl-count { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: #b5b5b5; pointer-events: none; }
.pl-row { display: flex; align-items: center; gap: 10px; }
.pl-row-bottom { margin-top: 14px; }
.pl-sel {
  height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px;
  background: #fff; color: var(--primary); display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 0 0 1px #e8e8e8;
}
.pl-sel:hover { background: #f7f7f7; }
.pl-sel-ico { font-size: 14px; }
.pl-arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #9a9a9a; }
.pl-go {
  margin-left: auto; height: 42px; padding: 0 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, #7AC130, #3FBF9F);
}
.pl-go:hover { filter: brightness(1.05); }
.pl-go:disabled { background: #d9d9d9; cursor: not-allowed; }

.pl-projects { max-width: 900px; margin: 44px auto 0; }
.pl-p-tabs { display: flex; gap: 16px; font-size: 14px; color: var(--primary); }
.pl-p-tabs .on { font-weight: 600; }
.pl-p-muted { color: var(--helper); }
.pl-p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 16px; }
.pl-p-card {
  background: rgba(255,255,255,.85); border-radius: 16px; padding: 10px; text-align: left;
  box-shadow: 0 6px 18px rgba(60,70,60,.08), 0 0 0 1px rgba(0,0,0,.04);
  display: flex; flex-direction: column; gap: 2px;
}
.pl-p-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,70,60,.12), 0 0 0 1px rgba(0,0,0,.05); }
.pl-p-cover {
  position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #cfe9b8, #a9dcd4);
  display: flex; align-items: center; justify-content: center;
}
.pl-p-initial { font-size: 44px; font-weight: 700; color: rgba(255,255,255,.9); }
.pl-p-badge {
  position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px;
  background: #45b6f0; color: #fff; font-size: 10.5px;
}
.pl-p-title { font-size: 13.5px; color: var(--primary); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-p-meta { font-size: 12px; color: var(--helper); margin-top: 3px; }

/* ===== 官方同款动画（keyframes 1:1 移植） ===== */
@keyframes dadu-enter { 0%{opacity:0;transform:translateY(1.75rem) scale(.9)} 55%{opacity:1;transform:translateY(-.3125rem) scale(1.02)} 78%{transform:translateY(.125rem) scale(.99)} 100%{opacity:1;transform:translateY(0) scale(1)} }
@keyframes dadu-view-in { 0%{opacity:0;transform:translateY(.5rem)} 100%{opacity:1;transform:translateY(0)} }
@keyframes dadu-prompt-enter { 0%{opacity:0;transform:translateY(110%)} 100%{opacity:1;transform:translateY(0)} }
@keyframes dadu-fade-in { 0%{opacity:0} 100%{opacity:1} }
@keyframes dadu-bounce { 0%,100%{opacity:.35;transform:translateY(0)} 50%{opacity:1;transform:translateY(-.35rem)} }
@keyframes dadu-pulse-soft { 0%,100%{opacity:1} 50%{opacity:.5} }
.anim-enter { animation: dadu-enter .55s cubic-bezier(.34,1.28,.64,1) both; }
.anim-view { animation: dadu-view-in .32s ease both; }
.anim-fadein { animation: dadu-fade-in .5s ease both; }
.anim-stagger > * { animation: dadu-view-in .4s ease both; }
.anim-stagger > *:nth-child(1){animation-delay:.02s} .anim-stagger > *:nth-child(2){animation-delay:.07s} .anim-stagger > *:nth-child(3){animation-delay:.12s} .anim-stagger > *:nth-child(4){animation-delay:.17s} .anim-stagger > *:nth-child(5){animation-delay:.22s} .anim-stagger > *:nth-child(6){animation-delay:.27s} .anim-stagger > *:nth-child(7){animation-delay:.32s} .anim-stagger > *:nth-child(n+8){animation-delay:.36s}

/* 生成等待：官方 playlet-loading 同款轮播文案 */
.pl-load {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 42px 20px 46px; margin-top: 18px;
  background: rgba(255,255,255,.82); border-radius: 18px;
  backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(60,70,60,.08), 0 0 0 1px rgba(0,0,0,.04);
}
.pl-load-viewport { position: relative; width: 100%; height: 1.125rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pl-load-line { position: absolute; left: 0; right: 0; margin: 0; text-align: center; white-space: nowrap; font-size: .9375rem; font-weight: 400; line-height: 1.125rem; color: #717171; will-change: transform, opacity; animation: dadu-prompt-enter .28s ease-out both; }
.pl-load-dots { display: flex; gap: 7px; }
.pl-load-dots i { width: 7px; height: 7px; border-radius: 50%; background: #7AC130; animation: dadu-bounce 1.1s ease-in-out infinite; }
.pl-load-dots i:nth-child(2) { animation-delay: .15s; }
.pl-load-dots i:nth-child(3) { animation-delay: .3s; }

/* 排队状态呼吸点 */
.tk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f0a03c; margin-right: 6px; vertical-align: 1px; animation: dadu-pulse-soft 1.6s ease-in-out infinite; }

/* 侧栏图标激活切换 */
.nav-item .nav-ico img { transition: opacity .18s ease, transform .18s ease; }
.nav-item.active .nav-label { color: var(--primary); font-weight: 500; }
.nav-item .nav-label { transition: color .2s ease; }

/* ===== 画布：官方 /canvas 列表页 ===== */
.cv-banner { position: relative; margin-bottom: 20px; width: 100%; overflow: hidden; border-radius: 24px; }
.cv-banner img { display: block; width: 100%; height: auto; pointer-events: none; }
.cv-brand-patch {
  position: absolute; top: 2.5%; left: 50%; transform: translateX(-50%);
  padding: 1px 16px; border-radius: 999px;
  backdrop-filter: blur(9px); background: rgba(255,255,255,.14);
  color: #0f7f8c; font-size: 11.5px; font-weight: 700; letter-spacing: .45em; text-indent: .45em;
  white-space: nowrap;
}
.cv-h { margin-bottom: 20px; height: 36px; display: flex; align-items: center; font-size: 18px; font-weight: 500; line-height: 120%; color: #121212; }
.cv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
@media (min-width: 640px){ .cv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px){ .cv-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .cv-grid { grid-template-columns: repeat(5, 1fr); } }
.cv-new {
  width: 100%; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; background: #F2F2F2; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.cv-new:hover { background: #EBEBEB; }
.cv-new svg { font-size: 22px; color: #121212; }
.cv-new span { font-size: 14px; font-weight: 500; line-height: 120%; color: #121212; }
.cv-card { text-align: left; min-width: 0; background: none; border: 0; padding: 0; cursor: pointer; }
.cv-cover {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #cfe9b8, #a9dcd4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cv-card:hover .cv-cover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,70,60,.14); }
.cv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-cover .cv-cover-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 12.5px; }
.cv-badge { position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; background: #45b6f0; color: #fff; font-size: 10.5px; }
.cv-name { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 120%; color: #121212; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-meta { margin-top: 4px; font-size: 12px; color: var(--helper); }
.cv-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 13px; color: var(--primary); box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: background .2s ease; }
.cv-back:hover { background: #fff; }

/* ===== 作品 / 资产：官方列表页版式 ===== */
.ls-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; height: 36px; }
.ls-h { font-size: 18px; font-weight: 500; line-height: 120%; color: #121212; }
.ls-sub { font-size: 12.5px; color: var(--helper); }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.as-card {
  background: rgba(255,255,255,.85); border-radius: 16px; overflow: hidden; text-align: left;
  box-shadow: 0 6px 18px rgba(60,70,60,.08), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: dadu-view-in .4s ease both;
}
.as-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,70,60,.13), 0 0 0 1px rgba(0,0,0,.05); }
.as-thumb { position: relative; aspect-ratio: 1/1; background: #f2f2f2; overflow: hidden; }
.as-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.as-card:hover .as-thumb img { transform: scale(1.04); }
.as-acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 26px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.45)); opacity: 0; transition: opacity .2s ease; }
.as-card:hover .as-acts { opacity: 1; }
.as-acts .tk-btn { background: rgba(255,255,255,.92); height: 26px; font-size: 11.5px; padding: 0 9px; }
.as-name { padding: 9px 10px 11px; font-size: 12.5px; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 登录页：官方 1:1 ===== */
.login-page { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: space-between; align-items: stretch; width: 100vw; height: 100vh; max-height: 100vh; background: #fff; overflow: hidden; }
.login-left { flex: 1; min-width: 0; min-height: 0; align-self: stretch; position: relative; overflow: hidden; border-top-right-radius: 2.5rem; border-bottom-right-radius: 2.5rem; }
.login-left video, .login-left .login-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.login-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 41.8%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, black, transparent); border-bottom-right-radius: 2.5rem; }
.login-overlay { position: absolute; left: 4rem; right: 4rem; bottom: 4rem; z-index: 2; display: flex; flex-direction: column; gap: 2.125rem; max-width: 50rem; }
.login-dots { display: flex; flex-direction: row; align-items: center; gap: .625rem; }
.login-dot { position: relative; height: 1.4375rem; width: 1.75rem; border: none; padding: 0; background: transparent; cursor: pointer; transition: width .25s ease, opacity .25s ease; }
.login-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 999px; background: rgba(255,255,255,.45); transition: background .25s ease; }
.login-dot.on { width: 2.25rem; }
.login-dot.on::after { background: #fff; }
.login-slides { position: relative; width: 100%; min-height: 15rem; }
.login-slide { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; z-index: 0; pointer-events: none; transition: opacity .45s ease; }
.login-slide.show { opacity: 1; z-index: 1; pointer-events: auto; }
.login-slide h1 { font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 2rem; line-height: 1.2; }
.login-feats { list-style: none; padding: 0; margin: 0; }
.login-feats li { color: #fff; font-size: 15px; line-height: 2.1; display: flex; align-items: center; gap: 10px; }
.login-feats li::before { content: ''; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4fd1c5, #0abccf); box-shadow: 0 0 0 3px rgba(10,188,207,.18); }
.login-right { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto; background: #fff; }
.login-form { display: flex; flex-direction: column; margin-top: 12.5rem; width: 100%; max-width: 25rem; padding: 0 20px 40px; flex-shrink: 0; align-self: flex-start; box-sizing: content-box; }
.login-logo { margin-bottom: 2rem; display: flex; justify-content: center; }
.login-welcome { text-align: center; margin-bottom: 2.5rem; font-size: 2.25rem; font-weight: 700; color: #0c0c0c; line-height: 1; }
.login-inputs { display: flex; flex-direction: column; gap: 1rem; }
.login-input { display: flex; align-items: center; width: 100%; height: 3rem; border: none; border-radius: 3.125rem; padding: 0 1.25rem; font-size: 1rem; background: #f5f5f5; box-sizing: border-box; transition: box-shadow .2s ease, background .2s ease; }
.login-input:focus-within { background: #efefef; box-shadow: 0 0 0 1.5px #121212 inset; }
.login-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: #121212; }
.login-prefix { display: flex; align-items: center; gap: 8px; color: #121212; white-space: nowrap; }
.login-prefix i { width: 1px; height: 16px; background: #d9d9d9; }
.login-code-btn { border: 0; background: transparent; padding: 0; font-size: 1rem; color: #0abccf; white-space: nowrap; cursor: pointer; }
.login-btn { width: 100%; height: 3rem; margin-top: 2.5rem; border-radius: 1.5rem; background: #121212; color: #fff; font-size: 1rem; font-weight: 500; border: none; cursor: pointer; transition: all .2s ease; }
.login-btn:hover { background: #2c2c2c; }
.login-divider { display: flex; align-items: center; text-align: center; width: 100%; height: 1.125rem; margin: 1.5rem 0; color: #e8e8e8; font-size: .875rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #ececec; }
.login-divider span { padding: 0 12px; }
.login-wechat { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 3rem; padding: 0; border: .0625rem solid #121212; border-radius: 1.5rem; background: #fff; color: #121212; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all .2s ease; }
.login-wechat:hover { background: #f7f7f7; }
.login-privacy { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; margin-top: 2.5rem; font-size: .75rem; color: #717171; line-height: 1.2; letter-spacing: -.05rem; }
.login-privacy a { color: #121212; text-decoration: underline; }
.login-privacy input { accent-color: #121212; }
.login-code-tip { margin-top: 10px; min-height: 18px; font-size: 12.5px; line-height: 1.4; text-align: center; color: #9c9c9c; word-break: break-all; }
.login-code-tip.ok { color: #2f7d3a; }
.login-code-tip.err { color: #d9482f; }
.login-code-btn:disabled { color: #b5b5b5; cursor: default; }
.login-btn:disabled, .login-wechat:disabled { opacity: .6; cursor: default; }
.login-local-tip { margin-top: 1.1rem; text-align: center; font-size: 12.5px; color: #9c9c9c; }
.login-local-tip b { color: #3f7a24; font-weight: 500; }
.login-back { position: absolute; top: 1.5rem; left: 2rem; z-index: 10; display: inline-flex; align-items: center; gap: 6px; height: 2.25rem; padding: 0 16px; border-radius: 999px; border: 1px solid #e3e3e3; background: rgba(255,255,255,.9); font-size: 13.5px; color: #121212; cursor: pointer; transition: all .2s ease; }
.login-back:hover { border-color: #121212; }
@media (max-width: 900px){ .login-left { display: none; } .login-form { margin-top: 4rem; } .login-overlay { left: 2rem; right: 2rem; bottom: 2rem; } .login-slide h1 { font-size: 1.75rem; } }

/* ===== 节点式画布工作台（官方 /canvas 项目内同款） ===== */
.cvc { display: flex; gap: 0; margin: 0 -20px; }
.cvc-side {
  flex: 0 0 232px; width: 232px; display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid #efefef; border-radius: 16px 0 0 16px;
  padding: 14px 12px 12px; min-height: 560px; transition: margin-left .25s ease;
}
.cvc-side.folded { margin-left: -232px; }
.cvc-top { display: flex; align-items: center; gap: 8px; }
.cvc-back, .cvc-collapse {
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #414141; flex: 0 0 28px; transition: background .15s ease;
}
.cvc-back:hover, .cvc-collapse:hover { background: #f2f2f2; }
.cvc-projname { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--primary); padding: 4px 8px; border-radius: 8px; outline: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cvc-projname:focus { background: #f7f7f7; box-shadow: 0 0 0 1.5px #121212 inset; }
.cvc-newproj {
  margin-top: 12px; height: 40px; border-radius: 999px; background: #f2f2f2; color: #121212;
  font-size: 13.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s ease;
}
.cvc-newproj:hover { background: #e9e9e9; }
.cvc-filter { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 0 2px; }
.cvc-filter-el, .cvc-filter-all { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #717171; }
.cvc-filter-el { font-weight: 500; }
.cvc-filter-right { display: inline-flex; align-items: center; gap: 8px; }
.cvc-filter-search { color: #717171; display: inline-flex; }
.cvc-filter-el:hover, .cvc-filter-all:hover, .cvc-filter-search:hover { color: #121212; }
.cvc-list { margin-top: 12px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.cvc-list-empty { padding: 24px 8px; font-size: 12.5px; color: #9c9c9c; text-align: center; line-height: 1.9; }
.cvc-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px; border-radius: 10px;
  text-align: left; transition: background .15s ease;
}
.cvc-item:hover { background: #f6f6f6; }
.cvc-item.on { background: #eef6e7; }
.cvc-item-thumb { width: 40px; height: 40px; border-radius: 8px; background: #f2f2f2; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.cvc-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cvc-item-ico { color: #717171; } .cvc-item-ico svg { width: 18px; height: 18px; }
.cvc-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cvc-item-info b { font-size: 12.5px; font-weight: 500; color: #121212; }
.cvc-item-info small { font-size: 11.5px; color: #9c9c9c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-item-x { color: #c0c0c0; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.cvc-item-x:hover { color: #e5484d; background: #fdecec; }

/* 画布舞台：官方同款浅灰点阵 */
.cvc-stage {
  position: relative; flex: 1; min-width: 0; min-height: 560px; overflow: hidden;
  border-radius: 0 16px 16px 0; cursor: default;
  background-color: #f6f6f4;
  background-image: radial-gradient(#e2e2df 1px, transparent 1px);
  background-size: 22px 22px;
}
.cvc-stage.no-grid { background-image: none; }
.cvc-layer { position: absolute; inset: 0; transform-origin: 0 0; }
.cvc-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; pointer-events: none; }
.cvc-empty-tip { font-size: 13px; color: #24AFCF; display: flex; align-items: center; gap: 6px; animation: dadu-fade-in .5s ease both; }
.cvc-tip-star { font-size: 15px; }
.cvc-empty-btns { display: flex; gap: 14px; pointer-events: auto; animation: dadu-enter .55s cubic-bezier(.22,1.4,.36,1) both; animation-delay: .06s; }
.cvc-quick {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 8px;
  background: #fff; border-radius: 12px; font-size: 13.5px; color: #121212; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease;
}
.cvc-quick:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0,0,0,.09), 0 8px 22px rgba(0,0,0,.08); }
.cq-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cq-ico svg { width: 20px; height: 20px; }
.cq-purple { background: linear-gradient(135deg, #a855f7, #8b5cf6); }
.cq-blue { background: linear-gradient(135deg, #4f8dfd, #2f6bf0); }
.cq-salmon { background: linear-gradient(135deg, #fb9a8f, #f4725e); }

/* 节点卡片 */
.cv-node {
  position: absolute; width: 240px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06);
  border: 1.5px solid transparent; animation: dadu-fade-in .3s ease both;
}
.cv-node.sel { border-color: #24AFCF; box-shadow: 0 2px 6px rgba(36,175,207,.18), 0 10px 26px rgba(0,0,0,.1); }
.cvn-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-bottom: 1px solid #f2f2f2; }
.cvn-hico { color: #717171; display: flex; } .cvn-hico svg { width: 15px; height: 15px; }
.cvn-hlabel { font-size: 12px; font-weight: 500; color: #414141; flex: 1; }
.cvn-x { color: #c0c0c0; font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 6px; }
.cvn-x:hover { color: #e5484d; background: #fdecec; }
.cvn-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.cvn-ta {
  width: 100%; height: 74px; resize: none; border: none; outline: none; font-family: inherit;
  font-size: 12.5px; line-height: 1.65; color: #121212; background: transparent;
}
.cvn-ta::placeholder { color: #b8b8b8; }
.cvn-in { flex: 1; min-width: 0; border: none; outline: none; font-family: inherit; font-size: 12px; color: #121212; background: transparent; }
.cvn-foot { display: flex; align-items: center; gap: 8px; border-top: 1px dashed #f0f0f0; padding-top: 7px; }
.cvn-go {
  flex: 0 0 auto; height: 26px; padding: 0 12px; border-radius: 999px; background: #121212; color: #fff;
  font-size: 12px; font-weight: 500; transition: background .15s ease;
}
.cvn-go:hover { background: #2c2c2c; }
.cvn-refhint { flex: 1; font-size: 11.5px; color: #24AFCF; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvn-refhint:hover { text-decoration: underline; }
.cvn-img { border-radius: 8px; overflow: hidden; background: #f6f6f6; }
.cvn-img img { width: 100%; max-height: 220px; object-fit: cover; cursor: zoom-in; }
.cvn-vid { border-radius: 8px; overflow: hidden; background: #000; }
.cvn-vid video { width: 100%; max-height: 220px; display: block; }
.cvn-ph { height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #9c9c9c; }
.cvn-note { font-size: 11.5px; color: #9c9c9c; line-height: 1.7; background: #faf9f7; border-radius: 8px; padding: 8px 10px; }

/* 底部工具栏：左缩放 / 右操作（官方同款圆角浮条） */
.cvc-toolbar-l, .cvc-toolbar-r {
  position: absolute; bottom: 16px; display: flex; align-items: center; gap: 2px;
  background: #fff; border-radius: 12px; padding: 5px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 5px 16px rgba(0,0,0,.07);
}
.cvc-toolbar-l { left: 16px; }
.cvc-toolbar-r { right: 16px; gap: 6px; }
.cvc-toolbar-l button, .cvc-toolbar-r button {
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #414141;
  transition: background .15s ease;
}
.cvc-toolbar-l button svg, .cvc-toolbar-r button svg { width: 15px; height: 15px; }
.cvc-toolbar-l button:hover, .cvc-toolbar-r button:hover { background: #f2f2f2; }
.cvc-zoomval { font-size: 12px; color: #414141; padding: 0 8px; min-width: 42px; text-align: center; }
.cvc-plus {
  width: 32px !important; height: 32px !important; border-radius: 50% !important;
  background: #121212; color: #fff !important; font-size: 17px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.cvc-plus:hover { background: #2c2c2c !important; }

/* 右键菜单（官方同款） */
.cvc-menu {
  position: fixed; z-index: 1000; min-width: 168px; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 34px rgba(0,0,0,.12); padding: 8px;
  animation: dadu-fade-in .16s ease both;
}
.cvc-mi {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px;
  font-size: 13.5px; color: #121212; text-align: left; transition: background .12s ease;
}
.cvc-mi:hover { background: #f4f4f4; }
.cvc-mi.danger { color: #e5484d; }
.cvc-mi.danger:hover { background: #fdecec; }
.cvc-mi-key { margin-left: auto; font-size: 11.5px; color: #9c9c9c; }
.cvc-mi-arrow { margin-left: auto; color: #9c9c9c; font-size: 11px; }
.cvc-mi-head { font-size: 11.5px; color: #9c9c9c; padding: 6px 10px 4px; }
.cvc-mi-ico { display: flex; color: #414141; } .cvc-mi-ico svg { width: 15px; height: 15px; }
.cvc-mi-ico.up, .cvc-mi-ico.dir { font-size: 13px; width: 15px; text-align: center; }
.cvc-mi-divider { height: 1px; background: #efefef; margin: 6px 4px; }
.cvc-sub { animation: dadu-fade-in .14s ease both; }

/* ===== 风格库（带图选择网格） ===== */
.style-menu { width: 460px; max-height: 72vh; overflow-y: auto; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 14px 14px; }
.style-card {
  position: relative; border-radius: 12px; overflow: hidden; background: #f6f6f6;
  aspect-ratio: 16 / 10; transition: transform .15s ease, box-shadow .15s ease; text-align: left;
}
.style-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.style-card.on { box-shadow: 0 0 0 2px var(--green), 0 6px 18px rgba(122,193,48,.25); }
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.style-card .style-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 9px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; font-size: 12px; font-weight: 500;
}
.style-card.none { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.style-none-ico { font-size: 20px; color: #9c9c9c; }
.style-card.none .style-name { position: static; background: none; color: #414141; padding: 0; }
.style-check {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ===== 全能参考 ===== */
.ref-chip.omni { position: relative; padding-left: 34px; }
.ref-tag {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #24AFCF, #4f8dfd);
  border-radius: 6px; padding: 2px 5px; line-height: 1.2; white-space: nowrap;
}
.omni-hint { font-size: 12px; color: #717171; line-height: 1.7; padding: 4px 6px; }
.omni-hint b { color: #0a8ba3; font-weight: 600; }
.asset-item.on { outline: 2px solid var(--green); outline-offset: 1px; }

/* 项目内全屏画布（官方进项目后隐藏 tab 栏） */
body.cvc-open .tabs-shell { display: none; }
body.cvc-open .cvc-stage { min-height: calc(100vh - 210px); }
body.cvc-open .cvc-side { min-height: calc(100vh - 210px); }

/* ===== 即梦式技能 chips ===== */
.skill-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 18px; animation: dadu-fade-in .5s ease both; animation-delay: .15s;
}
.skill-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); color: #414141;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease;
}
.skill-chip:hover {
  transform: translateY(-2px); color: #121212; background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.07), 0 6px 16px rgba(0,0,0,.07);
}
.skill-new {
  font-size: 10px; font-weight: 700; color: #fff; line-height: 1;
  padding: 3px 5px; border-radius: 6px 6px 6px 2px;
  background: linear-gradient(135deg, #ff9a62, #f4725e);
}

/* ===== 首尾帧 chips ===== */
.fl-chip .ref-tag { background: linear-gradient(135deg, #f6a0c1, #e46aa7); }
.fl-chip .ref-tag.tag-last { background: linear-gradient(135deg, #8f9bff, #5f6cf0); }

/* ===== 单页布局：整页不滚动，点哪个模块只显示哪个模块 ===== */
html, body { height: 100%; overflow: hidden; }
.app-page-background { height: 100%; min-height: 0; overflow: hidden; }
.main-content {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.main-content > .promo-bar,
.main-content > .topbar { flex: 0 0 auto; }
.home-page { flex: 0 0 auto; min-height: 0; padding-top: 24px; }
.home-page .hero-title { margin: 28px 0 26px; }
.home-page .hero-line1 { font-size: 40px; }
.home-page .hero-line2 { font-size: 54px; }

/* 模块内容区：自身滚动，不撑高整页 */
.gallery-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}
.gallery-section::-webkit-scrollbar { width: 8px; }
.gallery-section::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }
.gallery-section::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.2); }

/* 非「灵感」模块：不显示首屏输入区与发现 tabs，只留这个模块自己的内容 */
body[data-view]:not([data-view="discover"]) .home-page { display: none; }
body[data-view]:not([data-view="discover"]) .tabs-shell { display: none; }
body[data-view]:not([data-view="discover"]) .gallery-section { padding-top: 26px; }

/* 画布项目内：整块撑满、不滚动 */
body.cvc-open .gallery-section { overflow: hidden; padding-bottom: 0; }
body.cvc-open #viewCanvas, body.cvc-open #canvasWork { height: 100%; }
body.cvc-open .cvc-stage, body.cvc-open .cvc-side { min-height: 0; height: 100%; }
body.cvc-open .gallery-section .container { height: 100%; }

/* ===== 排队 / 生成进度条 ===== */
.tk-prog {
  position: relative;
  width: 100%;
  max-width: 210px;
  height: 6px;
  border-radius: 99px;
  background: rgba(18, 18, 18, .07);
  overflow: hidden;
}
.tk-prog.wide { max-width: 300px; }
.tk-prog-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 42%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(122,193,48,0), #7AC130 40%, #24AFCF);
  animation: dadu-prog-run 1.45s cubic-bezier(.45,.05,.55,.95) infinite;
}
/* 排队：暖色，节奏更缓，暗示“在等上游” */
.tk-prog.warm .tk-prog-fill {
  background: linear-gradient(90deg, rgba(255,154,98,0), #ff9a62 40%, #f4725e);
  animation-duration: 2.1s;
}
@keyframes dadu-prog-run {
  0%   { transform: translateX(-115%); }
  100% { transform: translateX(280%); }
}
.tk-prog-tip {
  font-size: 11.5px;
  color: var(--helper);
  letter-spacing: .2px;
  text-align: center;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .tk-prog-fill { animation-duration: 3s; }
}
