/* 全局 reset 已移至 styles/base.css */
body.console-shell:has(.workshop-page, .drama-page-wrapper, .task-center, .team-management, .verify-page__container) {
  min-width: 0;
}
body:has(.membership-subscribe, .canvas-detail-page, .detail-page-wrapper) { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
}
.topbar img { display: block; max-width: 152px; height: 28px; }
body:has(.home-page) .topbar { background: var(--df-color-bg-console); transition: background .3s ease; }
body.home-header-transparent .topbar { background: transparent; }
body:has(.home-page) { min-width: 1250px; --sidebar-width: 100px; }
:is(body.console-shell, body:has(.home-page), body.recharge-body) .topbar { gap: 12px; padding: 0 16px 0 21px; font-family: Arial, var(--df-font-family); }
body.console-shell { --sidebar-width: 100px; background: var(--df-color-bg-console); }
body.console-shell .sidebar, body.console-shell .topbar { background: var(--df-color-bg-console); }
.home-brand { display: inline-flex; align-items: center; gap: 25px; text-decoration: none; color: var(--df-color-text-on-card); font-size: 16px; }
.topbar .home-brand img { width: 86px; height: 24px; }
.home-brand-divider { width: 1px; height: 20px; background: var(--df-color-text-on-card); }
.home-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 13px);
  margin-left: auto;
  position: relative;
  top: -1px;
  color: var(--df-color-text-on-card);
  font-size: 12px;
  white-space: nowrap;
}
.home-header-actions .home-brand-divider { flex: none; margin-top: 1px; margin-left: 13px; }
.home-account-name {
  max-width: 148px;
  overflow: hidden;
  letter-spacing: -0.25px;
  text-overflow: ellipsis;
}
body:has(.home-page) .topbar { padding-right: 0; }
.home-header-menu { position: relative; }
.home-header-menu summary {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}
.home-header-menu summary::-webkit-details-marker { display: none; }
.home-account-menu summary { padding: 0 0 0 11px; }
.home-header-menu[open] summary, .home-header-menu ul { background: var(--df-color-menu-bg); }
.home-header-menu ul {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 120px;
  margin: 0;
  padding: 5px 0;
  list-style: none;
}
.home-account-menu ul { min-width: 200px; }
.home-header-menu li { padding: 5px 16px; color: var(--df-color-text-soft); line-height: 22px; }
.home-header-menu li:hover { background: var(--df-color-option-hover-bg); color: var(--df-color-primary-text); }
@media (max-width: 560px) {
  .topbar:has(.home-header-actions) { flex-wrap: wrap; height: auto; min-height: 48px; padding-block: 8px; }
}
.home-project { display: flex; justify-content: space-between; align-items: center; width: 112px; height: 24px; padding: 0 8px; border: 0; border-radius: 3px; background: var(--df-color-fill); color: var(--df-color-text-strong); font-size: 12px; }
.home-project__arrow { width: 16px; height: 16px; flex: none; fill: var(--df-color-icon-soft); }
:is(body.console-shell, body:has(.home-page)) .sidebar { width: 80px; display: flex; flex-direction: column; padding: 40px 12px 0; background: transparent; }
:is(body.console-shell, body:has(.home-page)) .sidebar nav { gap: 24px; overflow: auto; scrollbar-width: none; }
:is(body.console-shell, body:has(.home-page)) .sidebar a { flex-direction: column; justify-content: space-between; gap: 2px; height: 60px; padding: 8px 0; color: var(--df-color-text-on-card); line-height: 18px; font-size: 12px; }
:is(body.console-shell, body:has(.home-page)) .sidebar svg { width: 24px; height: 24px; }
.home-side-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; padding-bottom: 20px; }
:is(body.console-shell, body:has(.home-page)) .home-side-bottom > a:first-child { width: 56px; min-height: 48px; height: auto; flex-direction: column; justify-content: flex-start; gap: 1px; padding: 6px 4px; border-radius: 8px; color: transparent; background: var(--df-color-entry-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 11px; line-height: 14px; }
:is(body.console-shell, body:has(.home-page)) .home-side-bottom > a:first-child:hover { background: var(--df-color-entry-hover); }
:is(body.console-shell, body:has(.home-page)) .home-side-bottom > a:first-child > span:first-child { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; max-width: 40px; padding-top: 1px; font-size: 12px; font-weight: 500; line-height: normal; color: transparent; background: var(--df-color-entry-points-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:is(body.console-shell, body:has(.home-page)) .home-side-bottom > a:first-child span svg { position: relative; top: 1px; width: 14px; height: 14px; flex: none; fill: var(--df-color-gradient-pink); }
:is(body.console-shell, body:has(.home-page)) .home-side-bottom > a:last-child { width: 56px; height: 40px; padding: 8px 0 8px 16px; align-items: flex-start; }
:is(body.console-shell, body:has(.home-page)) .sidebar nav a { position: relative; }
.home-nav-beta { position: absolute; top: 0; right: 0; width: 28px; border-radius: var(--df-radius-sm); }
.home-shortcuts { position: fixed; right: 9px; bottom: 76px; z-index: 5; display: grid; justify-items: center; gap: 20px; color: var(--df-color-text-on-card); }
#shortcut-items { border-radius: 24px; background: var(--df-color-fill); }
html[data-theme="dark"] .home-shortcuts :is(#shortcut-items, #shortcut-toggle) {
  background: var(--df-color-surface-raised);
}
.home-shortcuts button { display: flex; width: 48px; height: 72px; padding: 0; border: 0; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 4px; font-size: 12px; }
.home-shortcuts button svg { width: 24px; height: 24px; fill: currentColor; }
.home-shortcuts #shortcut-toggle { height: 48px; border-radius: 50%; background: var(--df-color-fill); font-size: 15px; }
body:has(.home-page) .hero-section { padding-top: 64px; }
.sidebar {
    /* absolute 而非 fixed：fixed 会被提升为合成层，Chrome 在该层上关闭次像素抗锯齿，
     而线上短内容页的侧栏文字是 LCD 渲染（基线实测通道中位差 45）。 */
  position: absolute;
  inset: 48px auto 0 0;
  width: var(--sidebar-width);
  padding: 12px 8px;
  z-index: 3;
  background: var(--df-color-bg);
}
.sidebar nav { display: grid; gap: 4px; }
/* 以下页面内容可滚动，线上 fixed 侧栏被独立合成 → 基线里文字为灰度抗锯齿（中位差 0~1），保持 fixed 以复现 */
:is(body:has(.home-page), body:has(.detail-page-wrapper), body:has(.resource-list:not(.is-person))) .sidebar { position: fixed; }
.sidebar a, .sidebar button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
}
.sidebar svg { width: 20px; height: 20px; fill: currentColor; }
.sidebar .selected { background: var(--df-color-surface-raised); }
.sidebar a:hover, .sidebar button:hover { background: var(--df-color-fill); }
.home-shortcuts button:hover { color: var(--df-color-accent); }
.home-page { margin-left: var(--sidebar-width); margin-right: 27px; }
.entry-card { background: transparent; border: 0; text-align: left; text-decoration: none; }
.beta { margin-left: 8px; padding: 0 4px; border-radius: 4px; background: var(--df-color-primary-soft); font-size: 10px; line-height: 16px; }
#works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.works-section { container-type: inline-size; }
@container (min-width: 1600px) { #works { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@container (min-width: 2000px) { #works { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container (max-width: 900px) { #works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 620px) { #works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1249px) {
  body:has(.home-page) { min-width: 0; }
  .home-bg-wrapper { min-width: 0; max-width: 100vw; overflow: hidden; }
  .home-page #filters { flex-wrap: wrap; }
  .home-page .entry-section { flex-wrap: wrap; }
  .home-page .entry-card { flex: 1 1 max(200px, calc(50% - 8px)); }
}
.work-column { display: grid; min-width: 0; }
.waterfall-item { position: relative; padding: 0; border: 0; text-align: left; width: 100%; min-width: 0; }
.waterfall-item .video-cover { width: 100%; padding: 0; border: 0; border-radius: 12px; }
.waterfall-item.is-copyable:focus-within .waterfall-item__info-track { transform: translateY(-72px); }
.waterfall-item .copy-asset-btn__button { display: flex; align-items: center; justify-content: center; font-size: 12px; text-decoration: none; }
.video-cover > [hidden] { display: none; }











:root {
  --sidebar-width: 164px;
  --font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, STHeiTi, sans-serif, "-apple-system", BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB";
  --text-size: 12px;
  --text-color: var(--df-color-text-strong);
  --text-color-light: var(--df-color-text-body);
  --margin-4x: 16px;
  --margin-5x: 20px;
  --margin-6x: 24px;
}
body { font-family: var(--font-family); }
.refresh-icon { display: inline-block; width: 14px; height: 14px; vertical-align: middle; fill: currentColor; }


#preview { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; color: inherit; }
#preview:not([open]), #preview [hidden] { display: none; }
#preview::backdrop { background: transparent; }
#preview .fullscreen-shell__close { font-size: 28px; }
#preview .info { scrollbar-color: var(--df-color-surface-active) var(--df-color-surface-media); scrollbar-width: thin; }
#preview .info__title-text .ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#preview .fullscreen-shell__media video { max-width: 100%; max-height: 100%; }
#preview .field__value { white-space: pre-wrap; overflow-wrap: anywhere; }
#preview dl { display: grid; gap: 8px; margin: 0; }
#preview .field__name, #preview .field__value { margin: 0; font-weight: 400; }
#preview .field__copy { padding: 0; border: 0; background: none; font-size: 12px; }
.clipboard-buffer { position: fixed; opacity: 0; pointer-events: none; }
#preview dd { margin: 0; }
#remake-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.prompt-copy-icon { display: block; width: 14px; height: 14px; fill: currentColor; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.preview-placeholder-icon { color: var(--df-color-text-faint); fill: currentColor; }


:is(body.console-shell, body.recharge-body) .home-shortcuts { right: 9px; bottom: 79px; gap: 21px; }
:is(body.console-shell, body.recharge-body) #shortcut-items { padding: 20px 0; }
:is(body.console-shell, body.recharge-body) #shortcut-items button { height: 42px; line-height: 16px; }
:is(body.console-shell, body.recharge-body) #shortcut-items button svg { width: 22px; height: 22px; }
:is(body.console-shell, body.recharge-body) #shortcut-items button + button { margin-top: 24px; }
#shortcut-toggle[aria-expanded="false"] svg { transform: scaleX(-1); }

.console-top-links { display: flex; align-items: center; gap: 24px; }
.console-top-links a { color: inherit; text-decoration: none; }

/* ---------- 顶栏项目切换下拉（线上 .project-switcher-popper 实际渲染：235 宽、#272a30、无边框、
   0 0 15px 20% 黑阴影、列表 4px 内边距；选项 hover/定位取设计系统 !important 层覆盖后的值） ---------- */
.project-switcher-popper {
  position: fixed;
  z-index: var(--df-z-dropdown);
  width: 235px;
  padding: 4px 0;
  border: 0;
  border-radius: var(--df-radius-lg);
  background: var(--df-color-menu-bg);
  box-shadow: var(--df-shadow-popover-list);
}
.project-switcher-popper[hidden] { display: none; }
.project-switcher-popper .project-option {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  color: var(--df-color-text-soft);
  font-size: 13px;
  cursor: pointer;
}
.project-switcher-popper .project-option[aria-selected="true"] { background: var(--df-color-project-selected); color: var(--df-color-primary-text); }
.project-switcher-popper .project-option:is(:hover, .is-hovering) { background: var(--df-color-option-hover-bg); color: var(--df-color-primary-text); }
.project-switcher-popper .project-option__name {
  height: 18px;
  overflow: hidden;
  color: var(--df-color-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-switcher-popper .project-option__id {
  height: 16px;
  overflow: hidden;
  color: var(--df-color-text-label);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme="dark"] .project-switcher-popper .project-option__id {
  color: var(--df-color-text-soft);
}

/* 侧栏会员入口的积分与会员浮层 */
.membership-entry-popover {
  position: fixed;
  z-index: var(--df-z-dropdown);
  display: grid;
  gap: 14px;
  width: min(224px, calc(100vw - 16px));
  padding: 14px;
  border: 1px solid var(--df-color-popover-border, var(--df-color-fill-mid));
  border-radius: var(--df-radius-xl);
  background: var(--df-color-popper-bg);
  box-shadow: var(--df-shadow-membership-popover);
  color: var(--df-color-text-strong);
}
.membership-entry-popover[hidden] { display: none; }
.membership-entry-popover .membership-entry__balance {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
}
.membership-entry-popover .membership-entry__balance-label { color: var(--df-color-text-secondary); font-size: var(--df-font-size-xs); }
.membership-entry-popover .membership-entry__balance-value {
  grid-row: 2;
  color: var(--df-color-text-strong);
  font-size: var(--df-font-size-2xl);
  font-weight: var(--df-font-weight-semibold);
  font-variant-numeric: tabular-nums;
}
.membership-entry-popover .membership-entry__balance-detail {
  grid-area: 1 / 2;
  color: var(--df-color-accent);
  font-size: var(--df-font-size-xs);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.membership-entry-popover .membership-entry__balance-detail:hover { text-decoration: underline; }
.membership-entry-popover .membership-entry__btn-open {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--df-radius-pill);
  background: var(--df-color-membership-open-gradient);
  color: var(--df-color-membership-open-text);
  font: inherit;
  font-size: var(--df-font-size-xs);
  font-weight: 500;
  cursor: pointer;
}
/* 会员入口打开弹层时的高亮（线上 .membership-entry__trigger.is-active） */
.home-side-bottom > a:first-child.is-active { background: var(--df-color-entry-hover); }
