/* 杏白图册的品牌、导航和首页。其他部门继续使用自己的工作区。 */
body.album-b {
  --album-paper: #fbf8f2;
  --album-surface: #fffdf9;
  --album-ink: #392d27;
  --album-clay: #92442b;
  --album-muted: #695a50;
  --album-line: #d9c9bc;
  --album-display: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  background: var(--album-paper);
  color: var(--album-ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.album-b .b-header { background: #fdfbf6; border-bottom: 1px solid #e1d7ca; }
.album-b :is(.b-bar, .b-main, .b-context, .studio-footer) {
  width: min(1160px, calc(100% - 72px));
  max-width: none;
  padding-inline: 0;
}
.album-b .b-bar { min-height: 79px; }
.album-b .b-brand { color: var(--album-ink); gap: 16px; }
.album-b .studio-logo { width: 105px; mix-blend-mode: multiply; }
.album-b .studio-app-name { border-color: var(--album-line); font-size: 18px; letter-spacing: 0; }
.album-b .b-tabs { gap: clamp(14px, 2.1vw, 34px); }
.album-b .b-tabs a {
  align-self: stretch; border-radius: 0; padding-inline: 1px; font-size: 18px;
  color: #5b5048; font-weight: 550; background: transparent;
}
.album-b .b-tabs a[aria-current="page"] { background: transparent; color: var(--album-clay); }
.album-b .b-tabs a[aria-current="page"]::after {
  display: block; left: 0; right: 0; height: 3px; background: var(--album-clay);
}
.album-b .b-tabs a:hover { color: var(--album-clay); background: transparent; }
.album-b .b-main { padding-block: 30px 55px; }
.album-b .b-context { font-size: 16px; color: var(--album-muted); gap: 14px; }
.album-b .b-context a { color: var(--album-clay); }
.album-b .b-user-label select, .album-b .di-trigger {
  color: var(--album-ink); border-color: var(--album-line); background: var(--album-surface);
  min-height: 44px; border-radius: 12px; font: inherit;
}
.album-b .di-trigger:hover, .album-b .b-user-label select:hover { background: #f3e9df; }
.album-b .studio-footer { font-size: 14px; border-color: #e5dcd2; color: var(--album-muted); }
.album-b :is(a, button, summary, input, textarea, select):focus-visible { outline: 3px solid #a35236; outline-offset: 3px; }
.album-home {
  display: grid; grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr); gap: clamp(24px,2vw,38px);
  align-items: start; margin: 0 auto; padding: 4px 0 0; width: 100%; max-width: none;
}
.album-intro { padding-top: 16px; }
.album-intro h1 {
  margin: 0; color: var(--album-ink); font: 800 clamp(42px,4.8vw,67px)/1.15 var(--album-display);
  letter-spacing: -.045em;
}
.album-intro > p { margin: 9px 0 0; color: var(--album-muted); font-size: clamp(19px,1.8vw,24px); line-height: 1.55; }
.album-roles { margin-top: clamp(23px,2.5vw,35px); border-block: 1px solid var(--album-line); }
.album-role {
  display: flex; align-items: center; gap: 16px; padding: 19px 6px; min-height: 100px;
  color: var(--album-ink); text-decoration: none; transition: background-color .2s;
}
.album-role + .album-role { border-top: 1px solid var(--album-line); }
.album-role-icon {
  flex: none; display: grid; place-items: center; background: #f0e1d6; color: var(--album-clay);
  width: 51px; aspect-ratio: 1; border-radius: 50%;
}
.album-role-icon svg { width: 23px; height: 23px; }
.album-role-copy { flex: 1; min-width: 0; }
.album-role-copy strong { display: block; font-size: clamp(24px,2.1vw,30px); font-weight: 650; letter-spacing: -.035em; line-height: 1.3; }
.album-role-copy small { display: block; margin-top: 4px; font-size: 18px; color: var(--album-muted); line-height: 1.5; }
.album-role-arrow { flex: none; color: var(--album-clay); transition: transform .2s ease; }
.album-role-arrow svg { width: 24px; height: 24px; }
.album-stage {
  isolation: isolate; position: relative; overflow: hidden; margin: 0; width: 100%;
  height: clamp(375px,32vw,440px); border-radius: clamp(72px,8vw,112px) 12px 12px 12px;
  background: radial-gradient(ellipse at 25% 18%,#f6dcc1,#e7c4a4 53%,#cf9e80 100%);
}
.album-stage::before {
  content: ""; position: absolute; left: 22%; top: 9%; width: 64%; height: 87%; border-radius: 50% 50% 0 0;
  background: linear-gradient(160deg,#f9e8d3,#edc6a7); opacity: .87;
}
.album-stage::after {
  content: ""; position: absolute; bottom: -9%; left: -30%; width: 160%; height: 35%; transform: rotate(-4deg);
  background: linear-gradient(#e6be9e,#d9ad89); box-shadow: 0 -1px 2px #b9907344;
}
.album-stage .album-plinth {
  position: absolute; z-index: 1; height: 10%; width: 48%; bottom: 20%; left: 27%; border-radius: 50%;
  background: linear-gradient(#efd2af,#ce9677); box-shadow: 0 10px 0 -1px #ce9d7b,0 17px 22px #a5725147;
}
.album-stage .album-toy {
  z-index: 2; position: absolute; left: 19%; top: 9%; width: 63%; height: 70%; object-fit: contain;
  filter: drop-shadow(6px 16px 8px #67442827); transition: transform .35s ease-out;
}
.album-stage figcaption {
  position: absolute; z-index: 3; right: 18px; bottom: 16px; padding: 5px 12px;
  color: #483325; font-size: 16px; font-weight: 600; background: #fff4e5ec; border-radius: 4px;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .album-role:hover { background: #f3eae0; }
  .album-role:hover .album-role-arrow { transform: translateX(4px); }
  .album-stage:hover .album-toy { transform: translateY(-4px) scale(1.025); }
}
@media (prefers-reduced-motion:no-preference) {
  .album-home, .album-workspace, .album-b .bs-detail { animation: album-enter .22s ease-out both; }
  @keyframes album-enter { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width:800px) {
  .album-b :is(.b-bar,.b-main,.b-context,.studio-footer) { width: calc(100% - 32px); }
  .album-b .b-context { gap: 5px 10px; flex-wrap: wrap; }
  .album-b .b-tabs { gap: 10px; }
  .album-b .studio-app-name { font-size: 16px; }
  .album-home { gap: 17px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .album-role { gap: 10px; padding-inline: 2px; }
  .album-role-copy small { font-size: 16px; }
}
@media (max-width:680px) {
  .album-b .b-bar { min-height: 0; padding-block: 7px 0; gap: 2px; }
  .album-b .studio-logo { width: 81px; }
  .album-b .b-tabs { width: 100%; justify-content: space-between; gap: 0; }
  .album-b .b-tabs a { flex: 0 1 auto; min-width: 0; padding: 5px 1px; min-height: 44px; font-size: clamp(14px,3.85vw,17px); }
  .album-b .b-main { padding-block: 20px 32px; }
  .album-home { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 0; }
  .album-intro { padding-top: 0; }
  .album-intro h1 { font-size: clamp(37px,9.5vw,48px); }
  .album-intro > p { margin-top: 3px; font-size: 18px; }
  .album-roles { margin-top: 18px; }
  .album-role { min-height: 76px; padding: 12px 3px; gap: 13px; }
  .album-role-icon { width: 41px; }
  .album-role-copy strong { font-size: 23px; }
  .album-stage { height: auto; aspect-ratio: 1.85; border-radius: 48px 9px 9px 9px; }
  .album-stage figcaption { font-size: 15px; bottom: 10px; right: 10px; }
  .album-b .studio-footer { font-size: 13px; }
}
.album-b .album-viewer {
  width: min(1050px,94vw); max-width: 94vw; padding: 0; border-radius: 15px; overflow: hidden;
  border-color: var(--album-line); color: var(--album-ink); background: var(--album-surface);
}
.album-b .album-viewer::backdrop { background: #2b211cba; }
.album-view-head, .album-view-actions, .album-view-nav { display: flex; align-items: center; gap: 12px; }
.album-view-head { padding: 12px 16px; justify-content: space-between; border-bottom: 1px solid var(--album-line); }
.album-view-head strong { min-width: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-view-actions { gap: 7px; flex-shrink: 0; }
.album-viewer button { background: #f7efe6; color: #643d2d; border: 1px solid var(--album-line); font-size: 16px; padding: 6px 12px; min-height: 42px; border-radius: 8px; }
.album-viewer button[aria-pressed=true] { background: var(--album-clay); color: white; }
.album-viewer button:disabled { opacity: .42; }
.album-view-frame { display: grid; height: min(62dvh,640px); overflow: auto; overscroll-behavior: contain; background: #f1ede6; }
.album-view-frame img { width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; display: block; }
.album-view-frame.enlarged { display: block; cursor: grab; }
.album-view-frame.enlarged:active { cursor: grabbing; }
.album-view-frame.enlarged img { display: block; height: auto; max-width: none; max-height: none; margin-inline: auto; }
.album-view-nav { justify-content: center; gap: 18px; padding: 8px; font-size: 16px; }
.album-view-nav:has([data-prev][hidden]) { display: none; }
.album-view-nav button[hidden] { display: none; }
@media (min-width:1550px) {
  .album-b :is(.b-bar,.b-main,.b-context,.studio-footer) {width: min(1360px,81vw)}
  .studio.album-b .bw-page.album-workspace {max-width: none}
  .studio.album-b .bs-detail {width: min(100%,1180px)}
  .album-b .b-tabs a, .album-b .album-role-copy small {font-size: 20px}
  .album-b .b-context, .album-b .album-fields dd {font-size: 18px}
  .album-b .album-cover {height: 305px}
}
