/* 通告：工作台「本期通告」、活动 Banner、铃铛分组和后台表单。前端的 Tailwind 是预编译的，新样式都写在这里。Banner 始终是深色画面，文字不跟随主题变色。 */
.juzoNoticeBand { display: grid; gap: 10px; }
.juzoNoticeHead { display: flex; align-items: center; justify-content: space-between; }
.juzoNoticeLinks { display: flex; gap: 16px; font-size: 13px; color: var(--juzo-muted); }
.juzoNoticeLinks a:hover, .juzoNoticeLinks button:hover, .juzoNoticeCollapsed button:hover { color: var(--juzo-hover); }
.juzoNoticeLayout, .juzoNoticeRow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.juzoNoticeLayout > .juzoBanner { grid-column: span 3; min-height: 200px; }
.juzoNoticeLayout.isSolo > .juzoBanner { grid-column: 1 / -1; }
.juzoNoticeSide { display: grid; grid-auto-rows: 1fr; gap: 12px; min-width: 0; }
.juzoNoticeCard { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 94px; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.juzoNoticeCard:hover { border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.juzoNoticeMeta { font-size: 12px; color: var(--juzo-muted); }
.juzoNoticeTitle { overflow: hidden; font-size: .9375rem; font-weight: 500; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.juzoNoticeMore { margin-top: auto; font-size: 13px; font-weight: 500; }
.juzoNoticeCollapsed { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 6px; background: var(--juzo-wash); font-size: 13px; }
.juzoNoticeCollapsed span { overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.juzoNoticeCollapsed button { margin-left: auto; flex-shrink: 0; font-weight: 500; }

.juzoUpdatesDetail { container-type: inline-size; }
.juzoBanner { position: relative; display: flex; overflow: hidden; border-radius: 14px; background: #0b1019; color: #fff; }
.juzoBanner.isLarge { min-height: 296px; }
.juzoBanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1019 34%, rgba(11, 16, 25, .82) 46%, rgba(11, 16, 25, 0) 70%); pointer-events: none; }
.juzoBannerArt { position: absolute; top: 0; right: 0; display: block; width: 64%; height: 100%; object-fit: cover; object-position: 62% 26%; }
.juzoBannerBody { position: relative; z-index: 1; box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 14px 24px; }
.juzoBannerPills { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.juzoBannerPills span { padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; }
.juzoBannerPills .isSolid { border-color: transparent; background: rgba(255, 255, 255, .14); }
.juzoBannerTitle { display: -webkit-box; overflow: hidden; margin: 0; max-width: 62%; font-size: 22px; font-weight: 600; line-height: 1.3; color: #fff; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.juzoBannerSummary { margin: 0; max-width: 52%; font-size: 13px; color: rgba(255, 255, 255, .8); }
.juzoBannerOffer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.juzoBannerOffer strong { display: block; overflow-wrap: anywhere; margin-top: 1px; font-size: 30px; font-weight: 600; line-height: 1.1; color: #f3dfb6; }
.juzoBannerOffer .isSplit { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .25); }
.juzoBannerOffer .isSplit strong { font-size: 22px; color: #fff; }
.juzoBannerActions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.juzoBannerButton { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 6px; background: #bc3d2e; color: #fff !important; font-weight: 500; }
.juzoBannerButton:hover { background: #a93225; }
.juzoBannerRule { color: #fff !important; }
.juzoBanner.isLarge .juzoBannerBody { gap: 10px; padding: 24px 36px; }
.juzoBanner.isLarge .juzoBannerTitle { max-width: 72%; font-size: 28px; }
.juzoBanner.isLarge .juzoBannerOffer strong { font-size: 38px; }

.juzoNoticeGroup { padding: 8px 12px 4px; font-size: 12px; color: var(--muted-foreground); }
.juzoNoticeFoot { display: block; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500; text-align: center; }
.juzoNoticeFoot:hover { background: var(--muted); }

.juzoUpdatesListHead span.juzoNoticeChips:first-child { display: flex; flex-wrap: wrap; gap: 4px; color: var(--juzo-muted); font-weight: 400; }
.juzoNoticeChips button { padding: 2px 8px; border-radius: 5px; font-size: 12px; }
.juzoNoticeChips button[aria-pressed="true"] { background: var(--juzo-wash); color: var(--juzo-text); font-weight: 500; }
.juzoUpdatesKind[data-kind="activity"] { background: color-mix(in srgb, var(--juzo-warning) 15%, transparent); color: var(--juzo-warning); }
.juzoUpdatesKind[data-kind="notice"] { background: var(--juzo-wash); color: var(--juzo-text); }
.juzoNoticeCta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.juzoNoticeForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.juzoNoticeSlots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 13px; }
.juzoNoticeSlots label { display: flex; align-items: center; gap: 8px; }
.juzoNoticeConflict { margin: 0; padding: 8px 12px; border-radius: 6px; background: var(--juzo-wash); font-size: 13px; }
.juzoNoticeTextarea { height: auto; min-height: 96px; resize: vertical; }

/* 通告页详情的宽度取决于侧栏和列表，按它自己的宽度收，文字铺满，画面退到背后。 */
@container (max-width: 560px) {
  .juzoBanner.isLarge { min-height: 200px; }
  .juzoBanner.isLarge::after { background: rgba(11, 16, 25, .68); }
  .juzoBanner.isLarge .juzoBannerArt { width: 100%; }
  .juzoBanner.isLarge .juzoBannerBody { padding: 16px; }
  .juzoBanner.isLarge .juzoBannerTitle, .juzoBanner.isLarge .juzoBannerSummary { max-width: none; }
  .juzoBanner.isLarge .juzoBannerTitle { font-size: 20px; }
  .juzoBanner.isLarge .juzoBannerOffer strong { font-size: 26px; }
}

@media (max-width: 860px) {
  .juzoNoticeLayout, .juzoNoticeRow, .juzoNoticeForm { grid-template-columns: minmax(0, 1fr); }
  .juzoNoticeLayout > .juzoBanner { grid-column: auto; }
  .juzoBannerTitle, .juzoBannerSummary { max-width: none; }
  .juzoBanner::after { background: rgba(11, 16, 25, .68); }
  .juzoBannerArt { width: 100%; }
}

.juzoRechargeNotice { position: relative; display: flex; flex: 1; overflow: hidden; align-self: stretch; min-width: 0; min-height: 60px; border-radius: 10px; background: #0b1019; color: #fff; }
.juzoRechargeNotice img { position: absolute; top: 0; right: 0; display: block; width: 46%; height: 100%; object-fit: cover; object-position: 62% 26%; }
.juzoRechargeNotice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1019 54%, rgba(11, 16, 25, 0) 86%); pointer-events: none; }
.juzoRechargeNoticeBody { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: start; align-content: center; gap: 2px 12px; box-sizing: border-box; width: 72%; padding: 8px 16px; font-size: 12px; }
.juzoRechargeNoticeBody strong { grid-column: 1 / -1; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.v4-recharge-header .juzoRechargeNoticeBody p { overflow: hidden; margin: 0; color: #f3dfb6; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.juzoRechargeNoticeBody a { color: rgba(255, 255, 255, .85); white-space: nowrap; }
.juzoRechargeNoticeBody a:hover { color: #fff; }
/* 按内容区宽度判断（.v4-wrap 是容器），侧栏展开收起都准。放不下时窄条单独一行。 */
@container (max-width: 980px) {
  .v4-recharge-header { flex-wrap: wrap; row-gap: 12px; }
  .juzoRechargeNotice { order: 3; flex-basis: 100%; }
}
@container (max-width: 560px) {
  .v4-recharge-header .v4-balance { padding-left: 0; border-left: 0; }
  .juzoRechargeNoticeBody { width: 100%; }
}

/* 草稿模式引导：压在弹窗（z-index 50）下面，确认报价时不挡。聚焦框不接收点击，真实控件照常能点。 */
.juzoGuideSpot { position: fixed; z-index: 48; border-radius: 8px; box-shadow: 0 0 0 2px var(--juzo-action), 0 0 0 4000px rgba(36, 37, 34, .42); pointer-events: none; }
.juzoGuideBubble { position: fixed; z-index: 49; display: grid; gap: 4px; box-sizing: border-box; width: min(300px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--juzo-line); border-radius: 10px; background: var(--juzo-panel); color: var(--juzo-text); font-size: 14px; line-height: 1.5; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.juzoGuideBubble.isHint { right: 16px; bottom: 16px; }
.juzoGuideBubble small { color: var(--juzo-muted); font-size: 12px; }
.juzoGuideBubble b { font-size: 15px; font-weight: 500; }
.juzoGuideRow { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }
.juzoGuideSkip { color: var(--juzo-muted); font-size: 13px; }
.juzoGuideSkip:hover { color: var(--juzo-text); }
.juzoGuideNext { height: 32px; padding: 0 12px; border-radius: 6px; background: var(--juzo-action); color: var(--juzo-onAction); font-size: 13px; }

/* 积分不足弹窗 */
.juzoShortfallRows { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; font-size: 14px; }
.juzoShortfallRows dt { color: var(--juzo-muted); }
.juzoShortfallRows dd { margin: 0; }
.juzoShortfallNotice { margin: 0; padding: 12px; border-radius: 8px; background: var(--juzo-bg); color: var(--juzo-muted); font-size: 14px; line-height: 1.5; }
.juzoShortfallNotice a { color: var(--juzo-action); white-space: nowrap; }

/* 视频模型选择器：厂商图标和筛选条；Seedance 活动期间的头图、折扣标签和分区。 */
.juzoVendorIcon { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border: 1px solid var(--juzo-line); border-radius: 7px; background: var(--juzo-bg); }
.juzoVendorIcon img { width: 16px; height: 16px; }
.juzoVendorBar { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.juzoVendorChip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--juzo-line); border-radius: 999px; background: var(--juzo-panel); color: var(--juzo-text); font-size: 12px; }
.juzoVendorChip:hover { border-color: var(--juzo-text); }
.juzoVendorChip img { width: 15px; height: 15px; }
.juzoVendorChip em { color: var(--juzo-muted); font-style: normal; }
.juzoVendorChip[aria-pressed="true"] { border-color: var(--juzo-text); background: var(--juzo-text); color: var(--juzo-panel); }
.juzoVendorChip[aria-pressed="true"] em { color: inherit; opacity: .7; }
.juzoVendorChip b, .juzoOff { padding: 0 6px; border-radius: 4px; background: var(--juzo-action); color: var(--juzo-onAction); font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.juzoOff { display: inline-block; margin-left: 8px; vertical-align: 2px; }
.juzoPickerHero { position: relative; display: flex; grid-column: 1 / -1; align-items: center; min-height: 96px; overflow: hidden; border-radius: 12px; background: #0b1019; color: #fff; }
.juzoPickerHero img { position: absolute; top: 0; right: 0; width: 55%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.juzoPickerHero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1019 44%, rgba(11, 16, 25, 0) 84%); pointer-events: none; }
.juzoPickerHeroBody { position: relative; z-index: 1; display: grid; gap: 4px; padding: 16px 20px; }
.juzoPickerHeroBody small { display: flex; align-items: center; gap: 8px; color: #f3dfb6; font-size: 12px; letter-spacing: .04em; }
.juzoPickerHeroBody i { padding: 1px 6px; border-radius: 4px; background: var(--juzo-action); color: #fff; font-style: normal; font-weight: 600; }
.juzoPickerHeroBody b { font-size: 19px; font-weight: 600; }
.juzoPickerHeroBody span { color: rgba(255, 255, 255, .72); font-size: 12px; }
.juzoPickerSection { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; margin-top: 4px; color: var(--juzo-muted); font-size: 11px; letter-spacing: .06em; }
.juzoPickerSection::after { content: ""; flex: 1; height: 1px; background: var(--juzo-line); }
.model-selection-card.juzoModelPromo { transition: border-color .15s, box-shadow .15s; }
.model-selection-card.juzoModelPromo { border-color: color-mix(in srgb, var(--juzo-action) 34%, var(--juzo-line)); background: linear-gradient(180deg, color-mix(in srgb, var(--juzo-action) 6%, var(--juzo-panel)), var(--juzo-panel) 60%); }
.model-selection-card.juzoModelPromo:hover { border-color: var(--juzo-action); box-shadow: 0 10px 24px color-mix(in srgb, var(--juzo-action) 13%, transparent); }
.model-selection-card.juzoModelPromo:has([aria-pressed="true"]) { border-color: var(--juzo-action); box-shadow: 0 0 0 1px var(--juzo-action); }

/* 模型选择弹窗：搜索框放在标题行右侧；下面没有筛选项时（视频模型）由标题行画分隔线。 */
.juzoPickerHead {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.juzoPickerSearch {
  flex: 0 1 280px;
  min-width: 200px;
}

.juzoPickerSearch input {
  height: 36px;
}

.juzoPickerControls:empty {
  display: none;
}

.juzoPickerHead:has(+ .juzoPickerControls:empty) {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
