/* ============================================================
   app.css : 登录后应用（控制台 / 画布 / 视频 / 自媒体 / 创作中心 / 账户）
   ============================================================ */

/* ---------------- 顶部导航 ---------------- */
.topbar {
  height: var(--nav-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line-2);
  position: relative;
  z-index: 500;
}

.topbar.dark {
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tb-wordmark .cn {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
}
.tb-back:hover {
  color: var(--ink);
  border-color: var(--ink-5);
}

/* 积分胶囊 */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 5px 0 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
}
.credit-pill:hover {
  border-color: var(--ink-5);
}
.credit-pill .plus {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease);
}
.credit-pill .plus:hover {
  background: #333;
}
.credit-pill svg {
  color: var(--ink-4);
}

/* 头像按钮 */
.avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  position: relative;
}
.avatar-btn:hover {
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.07);
}

/* 顶栏下拉 */
.tb-menu {
  position: absolute;
  right: 16px;
  top: calc(var(--nav-h) - 6px);
  width: 244px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  box-shadow: var(--sh-3);
  z-index: 800;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
  transition: all var(--t) var(--ease);
}
.tb-menu.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tb-uinfo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px;
}
.tb-uinfo .n {
  font-size: 13.5px;
  font-weight: 500;
}
.tb-uinfo .s {
  font-size: 11.5px;
  color: var(--ink-5);
}

/* ---------------- 控制台 ---------------- */
.console {
  min-height: 100svh;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 62%, #f0f0f1 100%);
  display: flex;
  flex-direction: column;
}

.console-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vh 48px 56px;
}

.console-hero {
  text-align: center;
  padding: min(9vh, 96px) 0 46px;
}
.console-hero h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.console-hero p {
  font-size: 13.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1080px;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.entry-media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--warm);
}
.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.entry:hover .entry-media img {
  transform: scale(1.045);
}
.entry-media .soon {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.entry h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.entry .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 27px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--bg-3);
  font-size: 11.5px;
  color: var(--ink-3);
  transition: all var(--t) var(--ease);
}
.entry:hover .go {
  background: var(--ink);
  color: #fff;
}

.console-foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  gap: 26px;
  font-size: 11.5px;
  color: var(--ink-5);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   画布
   ============================================================ */
.app-shell {
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.canvas-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  min-height: 0;
}

/* 舞台 */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 0;
  flex: none;
}
.stage-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.stage-crumb b {
  color: var(--ink);
  font-weight: 500;
}
.stage-crumb .sep {
  color: var(--ink-6);
}

.stage-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px 24px 88px;
  min-height: 0;
}

/* 左侧工具栏 */
.stage-rail {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
  z-index: 20;
  backdrop-filter: blur(10px);
}
.stage-rail button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
}
.stage-rail button:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.stage-rail button.on {
  background: var(--ink);
  color: #fff;
}
.stage-rail button[disabled] {
  color: var(--ink-6);
  cursor: not-allowed;
}
.stage-rail .rail-sep {
  height: 1px;
  background: var(--line-2);
  margin: 4px 6px;
}

/* 空白态：扇形工具卡 */
.blank-hint {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.fan {
  position: relative;
  width: 620px;
  height: 366px;
  margin-top: 24px;
}

.fan-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 232px;
  margin: -116px 0 0 -84px;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 14px 40px rgba(17, 17, 17, 0.16), 0 2px 6px rgba(17, 17, 17, 0.06);
  transform-origin: 50% 115%;
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s var(--ease);
  cursor: pointer;
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fan-card .fc-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 8px 10px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}
.fan-card.p2 {
  transform: translateX(-206px) rotate(-12deg) scale(0.9);
  z-index: 1;
}
.fan-card.p1 {
  transform: translateX(-104px) rotate(-6deg) scale(0.95);
  z-index: 2;
}
.fan-card.c {
  transform: translateY(-14px) scale(1.02);
  z-index: 3;
  box-shadow: 0 22px 54px rgba(17, 17, 17, 0.22);
}
.fan-card.n1 {
  transform: translateX(104px) rotate(6deg) scale(0.95);
  z-index: 2;
}
.fan-card.n2 {
  transform: translateX(206px) rotate(12deg) scale(0.9);
  z-index: 1;
}
.fan:hover .fan-card.c {
  transform: translateY(-20px) scale(1.05);
}
.fan-card .fc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(6px);
}

.fan-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--ink-4);
  font-size: 12px;
}
.fan-upload .circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: all var(--t) var(--ease);
  box-shadow: var(--sh-1);
}
.fan-upload:hover .circle {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

/* 画布图片 */
.stage-image {
  position: relative;
  max-height: 100%;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--bg-2);
}
.stage-image img {
  max-height: calc(100svh - 320px);
  width: auto;
  object-fit: contain;
}
.stage-image .img-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.stage-image:hover .img-tools {
  opacity: 1;
}

/* 底部参考素材 */
.ref-strip {
  flex: none;
  padding: 0 20px 16px;
}
.ref-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.ref-head .t {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.ref-head .h {
  font-size: 11px;
  color: var(--ink-5);
}
.ref-head .r {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.ref-empty {
  height: 82px;
  border: 1px dashed var(--line);
  border-radius: var(--r-m);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  color: var(--ink-5);
  transition: all var(--t) var(--ease);
  background: #fcfcfc;
}
.ref-empty:hover {
  border-color: var(--ink-6);
  background: #fafafa;
}
.ref-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.ref-item {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--r-s);
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.ref-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-item:hover {
  border-color: var(--ink-5);
}
.ref-item.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
}
.ref-item .ord {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 9.5px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--t-fast) var(--ease);
}
.ref-item.on .ord {
  opacity: 1;
  transform: none;
}
.ref-item .rm {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.ref-item:hover .rm {
  opacity: 1;
}
.ref-add {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: var(--r-s);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-5);
  transition: all var(--t-fast) var(--ease);
}
.ref-add:hover {
  border-color: var(--ink-6);
  color: var(--ink-3);
}

/* ---------------- 右侧创作对话 ---------------- */
.chat {
  background: #f6f6f7;
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 13px;
  flex: none;
}
.chat-head .t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.chat-head .t svg {
  color: var(--ink-4);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* 历史创作 */
.history-block {
  border-radius: var(--r-m);
  background: #fff;
  padding: 14px;
}
.history-block .hb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.history-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  cursor: pointer;
  border-radius: var(--r-s);
  transition: background var(--t-fast) var(--ease);
}
.history-item:hover {
  background: #fafafa;
}
.history-item img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}
.history-item .hi-t {
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item .hi-s {
  font-size: 10.5px;
  color: var(--ink-5);
  margin-top: 2px;
}

/* 消息气泡 */
.msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg .bubble {
  align-self: flex-end;
  max-width: 88%;
  background: var(--ink);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
}
.msg .bubble .refs {
  display: flex;
  gap: 4px;
  margin-bottom: 7px;
}
.msg .bubble .refs img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}
.msg .meta {
  align-self: flex-end;
  font-size: 10.5px;
  color: var(--ink-5);
}
.msg.sys {
  align-items: flex-start;
}
.msg.sys .bubble {
  align-self: flex-start;
  background: #fff;
  color: var(--ink-2);
  border-radius: 16px 16px 16px 4px;
  font-size: 12.5px;
  box-shadow: var(--sh-1);
}

/* 结果缩略 */
.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}
.results img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform var(--t) var(--ease);
}
.results img:hover {
  transform: scale(1.02);
}

/* 参数条 */
.params-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 10px;
  flex: none;
}
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
}
.pchip:hover {
  border-color: var(--ink-5);
  color: var(--ink);
}
.pchip b {
  color: var(--ink);
  font-weight: 500;
}
.pchip svg {
  color: var(--ink-5);
}

/* 报价条 */
.quote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 18px 10px;
  font-size: 11.5px;
  color: var(--ink-4);
  flex: none;
}
.quote-bar .q {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.quote-bar .q b {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* 输入卡 */
.composer {
  flex: none;
  margin: 0 14px 14px;
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: var(--sh-1);
  border: 1px solid var(--line-2);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.composer:focus-within {
  border-color: var(--ink-6);
  box-shadow: 0 6px 22px rgba(17, 17, 17, 0.08);
}
.composer textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  padding: 14px 14px 6px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 62px;
  max-height: 160px;
  background: transparent;
  border-radius: var(--r-l) var(--r-l) 0 0;
}
.composer textarea::placeholder {
  color: var(--ink-5);
}
.composer-foot {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px 8px 8px;
}
.composer-foot .spacer {
  flex: 1;
}
.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.send-btn:hover {
  background: #2c2c2c;
}
.send-btn[disabled] {
  background: var(--ink-6);
  cursor: not-allowed;
}

/* 附件预览 */
.attach-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  flex-wrap: wrap;
}
.attach-row img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line-2);
}

/* ---------------- 工具参数面板 ---------------- */
.tool-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--r-m);
  background: var(--bg-2);
}
.tool-preview img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.tool-preview .tp-t {
  font-size: 13px;
  font-weight: 500;
}
.tool-preview .tp-d {
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.55;
  margin-top: 3px;
}

.tool-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tool-modal .tool-grid-2 {
  grid-template-columns: 1fr;
}

.upload-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-m);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.upload-slot:hover {
  border-color: var(--ink-5);
  background: #fcfcfc;
}
.upload-slot .ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--ink-4);
  flex: none;
}
.upload-slot .us-t {
  font-size: 12.5px;
  color: var(--ink-2);
}
.upload-slot .us-s {
  font-size: 11px;
  color: var(--ink-5);
  margin-top: 2px;
}

/* ============================================================
   视频创作
   ============================================================ */
.video-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #0e0e0e;
  overflow-x: hidden;
}
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.95);
}
.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.62) 0%, rgba(14, 14, 14, 0.22) 32%, rgba(14, 14, 14, 0.66) 100%);
}

.video-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 40px;
}

.video-title {
  color: #fff;
  text-align: center;
  margin: 2.6vh 0 20px;
}
.video-title h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.video-title p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.mode-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  margin-bottom: 26px;
}
.mode-tabs button {
  height: 34px;
  padding: 0 22px;
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--ink-4);
  transition: all var(--t-fast) var(--ease);
  font-weight: 500;
}
.mode-tabs button:hover {
  color: var(--ink-2);
}
.mode-tabs button.on {
  background: var(--ink);
  color: #fff;
}

.video-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  padding: 18px;
}

.drop-zone {
  position: relative;
  border-radius: var(--r-l);
  background: var(--bg-2);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--t) var(--ease);
  overflow: hidden;
}
.drop-zone:hover {
  background: #f2f2f3;
}
.drop-zone .dz-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
  transition: transform var(--t) var(--ease);
}
.drop-zone:hover .dz-circle {
  transform: translateY(-2px);
}
.drop-zone .dz-t {
  font-size: 12.5px;
  color: var(--ink-4);
}
.drop-zone img.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px 2px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 分镜网格 */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.story-grid.six {
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.story-grid.six .story .sc {
  font-size: 9px;
  padding: 1px 4px;
}
.story {
  position: relative;
  border-radius: var(--r-s);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story .sn {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  font-size: 9.5px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.story .sc {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 9.5px;
  color: #fff;
  background: rgba(17, 17, 17, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

/* 视频加工时间线 */
.timeline {
  display: flex;
  gap: 6px;
  padding: 14px;
  background: var(--bg-2);
  border-radius: var(--r-m);
  overflow-x: auto;
}
.clip {
  position: relative;
  width: 108px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip.on {
  border-color: var(--ink);
}
.clip .cn {
  position: absolute;
  left: 5px;
  bottom: 4px;
  font-size: 9.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 5px;
  border-radius: 3px;
}
.clip .dur {
  position: absolute;
  right: 5px;
  top: 4px;
  font-size: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 4px;
  border-radius: 3px;
}

/* 音乐选择 */
.music-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.music-row:hover {
  border-color: var(--ink-6);
  background: #fcfcfc;
}
.music-row.on {
  border-color: var(--ink);
  background: #fafafa;
}
.music-row .mn {
  font-size: 12.5px;
  font-weight: 500;
}
.music-row .ms {
  font-size: 11px;
  color: var(--ink-5);
}
.play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}

/* ============================================================
   自媒体创作
   ============================================================ */
.media-page {
  min-height: 100svh;
  background: linear-gradient(180deg, #fbfbfb 0%, #f4f4f5 40%, #efeff0 100%);
}
.media-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 40px 72px;
}

.media-hero-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.media-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 244px;
  background: var(--warm);
  isolation: isolate;
}
.media-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0) 72%);
}
.media-hero .mh-in {
  position: relative;
  z-index: 2;
  padding: 42px 44px;
  max-width: 460px;
}
.media-hero .mh-eye {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.media-hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  line-height: 1.05;
}
.media-hero p {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.media-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.side-card {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  min-height: 112px;
  isolation: isolate;
}
.side-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.82) 62%, rgba(255, 255, 255, 0.95) 100%);
}
.side-card span {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.side-card.wide {
  grid-column: span 2;
}
.side-card.lock span::after {
  content: "即将开放";
  margin-left: 8px;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-4);
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 7px;
  border-radius: 99px;
}

.media-tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 28px;
}
.media-tabs button {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-6);
  transition: color var(--t) var(--ease);
  position: relative;
  padding-bottom: 6px;
}
.media-tabs button.on {
  color: var(--ink);
}
.media-tabs button.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tool-card {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  cursor: pointer;
}
.tool-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.tool-card:hover img {
  transform: scale(1.05);
}
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 26%, transparent 62%, rgba(0, 0, 0, 0.28) 100%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.tool-card:hover::after {
  opacity: 1;
}
.tool-card .tc-label {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  height: 23px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  background: rgba(17, 17, 17, 0.55);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}
.tool-card .tc-cost {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 2;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(17, 17, 17, 0.4);
  padding: 2px 7px;
  border-radius: 99px;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(8px);
}
.tool-card:hover .tc-cost {
  opacity: 1;
  transform: none;
}

/* ============================================================
   创作中心
   ============================================================ */
.center-page {
  min-height: 100svh;
  background: linear-gradient(180deg, #fbfbfb 0%, #f5f5f6 30%, #f1f1f2 100%);
}
.center-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px 80px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.v-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: var(--r-l);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-1);
}
.v-rail button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.v-rail button:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.v-rail button.on {
  background: var(--ink);
  color: #fff;
}
.v-rail .vr-sep {
  height: 1px;
  background: var(--line-2);
  margin: 5px 4px;
}

.center-view {
  display: none;
}
.center-view.on {
  display: block;
  animation: fadeUp 0.4s var(--ease-out);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.ov-head {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  margin-bottom: 34px;
  padding: 6px 0 0;
}
.ov-head .heat {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}
.ov-head .ov-side {
  margin-left: auto;
  display: flex;
  gap: 40px;
  flex: none;
}
.ov-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.ov-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 92px;
}
.ov-stat .k {
  font-size: 11.5px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ov-stat .v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* 日历热力图 */
.heat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.heat-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  font-size: 9.5px;
  color: var(--ink-5);
  margin-bottom: 2px;
  padding-left: 16px;
}
.heat-grid {
  display: flex;
  gap: 3px;
  padding-left: 16px;
  position: relative;
}
.heat-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #ecedee;
  transition: transform 0.15s var(--ease);
}
.heat-cell:hover {
  transform: scale(1.35);
  outline: 1px solid rgba(17, 17, 17, 0.14);
}
.heat-cell.l1 {
  background: #cfe3cf;
}
.heat-cell.l2 {
  background: #9cc79c;
}
.heat-cell.l3 {
  background: #5fa361;
}
.heat-cell.l4 {
  background: #2f7d3a;
}
.heat-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 9.5px;
  color: var(--ink-5);
  margin-top: 3px;
}

/* 资产网格 */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.asset {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.asset:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.asset .a-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-2);
  overflow: hidden;
}
.asset .a-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset.wide .a-media {
  aspect-ratio: 16 / 10;
}
.asset .a-info {
  padding: 10px 12px 11px;
}
.asset .a-t {
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset .a-s {
  font-size: 10.5px;
  color: var(--ink-5);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.asset .a-act {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-3px);
  transition: all var(--t) var(--ease);
}
.asset:hover .a-act {
  opacity: 1;
  transform: none;
}
.asset .a-act button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-1);
  backdrop-filter: blur(8px);
}
.asset .a-act button:hover {
  background: #fff;
}
.asset .star {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #b08a3e;
  box-shadow: var(--sh-1);
}
.asset .sel {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.asset.selected .sel {
  background: var(--ink) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
  border-color: transparent;
}

.view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.view-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  min-width: 220px;
  transition: border-color var(--t-fast) var(--ease);
}
.search-box:focus-within {
  border-color: var(--ink-6);
}
.search-box input {
  border: 0;
  outline: none;
  background: none;
  font-size: 12.5px;
  width: 100%;
}
.search-box svg {
  color: var(--ink-5);
  flex: none;
}

/* 项目卡 */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.proj {
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.proj:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.proj .p-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  aspect-ratio: 4 / 3;
  background: var(--line-2);
  overflow: hidden;
}
.proj .p-covers img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.proj .p-covers .one {
  grid-column: span 2;
  grid-row: span 2;
}
.proj .p-meta {
  padding: 11px 13px 13px;
}
.proj .p-n {
  font-size: 12.5px;
  font-weight: 500;
}
.proj .p-s {
  font-size: 10.5px;
  color: var(--ink-5);
  margin-top: 3px;
}

/* 任务列表 */
.task-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 96px 110px 92px 60px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  transition: background var(--t-fast) var(--ease);
}
.task-row:hover {
  background: #fbfbfb;
}
.task-row img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
}

/* ============================================================
   账户中心
   ============================================================ */
.account-page {
  min-height: 100svh;
  background: linear-gradient(180deg, #fbfbfb 0%, #f5f5f6 34%, #f1f1f2 100%);
}
.account-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 40px 80px;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.acc-nav {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-nav a,
.acc-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-s);
  font-size: 13px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
  text-align: left;
}
.acc-nav a:hover,
.acc-nav button:hover {
  background: rgba(17, 17, 17, 0.04);
  color: var(--ink);
}
.acc-nav .on {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--sh-1);
}
.acc-nav .grp {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-5);
  padding: 16px 12px 7px;
}

.acc-sec {
  display: none;
}
.acc-sec.on {
  display: block;
  animation: fadeUp 0.35s var(--ease-out);
}

.acc-head {
  margin-bottom: 26px;
}
.acc-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.acc-head p {
  font-size: 12.5px;
  color: var(--ink-4);
}

.panel {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  box-shadow: var(--sh-1);
  overflow: hidden;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
}
.panel-head h3 {
  font-size: 14px;
  font-weight: 600;
}
.panel-body {
  padding: 22px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0 6px;
}
.profile-row .pr-name {
  font-size: 16px;
  font-weight: 600;
}
.profile-row .pr-sub {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.form-row:last-child {
  border-bottom: 0;
}
.form-row .fr-k {
  font-size: 12.5px;
  color: var(--ink-4);
}
.form-row .fr-v {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 会员卡 */
.member-card {
  position: relative;
  border-radius: var(--r-l);
  padding: 26px 28px;
  background: linear-gradient(118deg, #16181b 0%, #23262a 46%, #3a3f45 100%);
  color: #fff;
  overflow: hidden;
  margin-bottom: 16px;
}
.member-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 216, 200, 0.24), transparent 68%);
}
.member-card .mc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.member-card .mc-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.member-card .mc-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}
.member-card .mc-stats {
  display: flex;
  gap: 44px;
  margin-top: 34px;
  position: relative;
  z-index: 2;
}
.member-card .mc-stats .k {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.06em;
}
.member-card .mc-stats .v {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 5px;
}

/* 积分流水 */
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 110px 96px;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}
.ledger-row:last-child {
  border-bottom: 0;
}
.ledger-row:hover {
  background: #fcfcfc;
}
.ledger-row .lr-t {
  font-weight: 500;
}
.ledger-row .lr-s {
  font-size: 10.5px;
  color: var(--ink-5);
  margin-top: 3px;
}
.ledger-row .delta.pos {
  color: var(--ok);
}
.ledger-row .delta.neg {
  color: var(--ink);
}

/* 兑换码 */
.redeem-box {
  display: flex;
  gap: 10px;
  max-width: 460px;
}

/* 空面板 */
.blank-panel {
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-4);
  font-size: 12.5px;
}

/* ---------------- 通用页面容器 ---------------- */
.app-page {
  min-height: 100svh;
  background: var(--bg);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .canvas-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .asset-grid,
  .proj-grid,
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ov-head {
    flex-wrap: wrap;
    gap: 28px;
  }
  .ov-head .heat {
    order: 9;
    max-width: none;
    flex-basis: 100%;
  }
}

@media (max-width: 980px) {
  .console-grid,
  .media-hero-row,
  .asset-grid,
  .proj-grid,
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .canvas-shell {
    grid-template-columns: 1fr;
  }
  .chat {
    display: none;
  }
  .center-body,
  .account-body {
    grid-template-columns: 1fr;
  }
  .v-rail {
    flex-direction: row;
    position: static;
  }
  .acc-nav {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }
  .acc-nav .grp {
    display: none;
  }
}

/* ---------------- 画布响应式 ---------------- */
@media (max-width: 900px) {
  .canvas-shell {
    height: 100svh;
  }
  .stage-main {
    padding: 16px;
  }
  .fan {
    transform: scale(0.7);
  }
}

/* ---------------- 工作空间切换 ---------------- */
.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  border: 1px solid transparent;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.ws-pill:hover {
  background: var(--bg-3);
}
.ws-pill .ws-ico {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.ws-pill.ent .ws-ico {
  background: #2f5f9e;
}
.ws-pill .ws-sub {
  font-size: 10.5px;
  color: var(--ink-5);
  padding-left: 7px;
  margin-left: 1px;
  border-left: 1px solid var(--line);
}

.badge-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.icon-btn {
  position: relative;
}

/* ---------------- 画布：状态切换 ---------------- */
.stage-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 72px 24px 88px;
  transition: opacity var(--t) var(--ease);
}
.stage-state[hidden] {
  display: none;
}

/* ---------------- 视频页：卡片内部 ---------------- */
.video-card.wide {
  width: min(1000px, 100%);
}
.vc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
}
.vc-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vc-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vc-k {
  font-size: 11.5px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vc-k .hint {
  color: var(--ink-5);
  font-size: 10.5px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease);
}
.chip:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.chip.on {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.vc-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 6px 2px;
  margin-top: 4px;
  border-top: 1px solid var(--line-2);
}
.vc-bar .quote {
  font-size: 12px;
  color: var(--ink-4);
}
.vc-bar .quote b {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.vc-bar .spacer {
  flex: 1;
}
.mode-panel {
  display: none;
  width: 100%;
  justify-content: center;
}
.mode-panel.on {
  display: flex;
  animation: fadeUp 0.4s var(--ease-out);
}
.step-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-4);
}
.step-dots .sd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.step-dots .sd i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink-4);
  font-size: 9.5px;
  font-style: normal;
  display: grid;
  place-items: center;
}
.step-dots .sd.on i {
  background: var(--ink);
  color: #fff;
}
.step-dots .sd.on {
  color: var(--ink);
}
.step-dots .line {
  width: 14px;
  height: 1px;
  background: var(--line);
}

/* ---------------- 全部工具抽屉 ---------------- */
.tg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tg-item {
  position: relative;
  border-radius: var(--r-s);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-3);
  cursor: pointer;
}
.tg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.tg-item:hover img {
  transform: scale(1.06);
}
.tg-item .tg-n {
  position: absolute;
  left: 6px;
  bottom: 6px;
  right: 6px;
  font-size: 10.5px;
  color: #fff;
  padding: 3px 7px;
  border-radius: var(--r-full);
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(8px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-sep {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-5);
  margin: 16px 0 8px;
}
