@import "tailwindcss";

:root {
  --background: #080808;
  --foreground: #f4f4f2;
  --muted: #888883;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color-scheme: dark;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -ms-overflow-style: none;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.035), transparent 34%),
    #080808;
}

.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.94);
}

.topbar-inner {
  width: min(1600px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.identity,
.contact {
  text-decoration: none;
  letter-spacing: 0.03em;
}

.identity {
  font-size: 17px;
  font-weight: 600;
}

.contact {
  color: #a4a4a0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.top-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.availability {
  margin-left: auto;
  color: #686864;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.showcase {
  --banner-frame-height: max(520px, min(760px, calc(100vh - 250px)));
  position: relative;
  height: min(760px, calc(100vh - 250px));
  min-height: 520px;
  overflow: hidden;
  background: #050505;
  transition: height 520ms cubic-bezier(0.22, 1, 0.36, 1), min-height 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase.is-no-banner {
  height: 250px;
  min-height: 250px;
  overflow: visible;
}

.showcase.is-stacked-project {
  height: var(--stacked-project-height, 1500px);
  min-height: var(--stacked-project-height, 1500px);
  overflow: hidden;
}

/* The long page must not resize the horizontal banner track. */

.no-banner-project {
  height: 250px;
  display: grid;
  place-items: center;
  background: #080808;
}

.no-banner-project::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.025) 50%, transparent);
}

.project-title-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 180px));
  text-align: center;
}

.showcase.is-no-banner.has-header-data {
  height: 570px;
  min-height: 570px;
}

.no-banner-project:has(.has-header-data-image) {
  height: 570px;
}

.project-title-card.has-header-data-image {
  width: min(900px, calc(100% - 160px));
  padding-bottom: 46px;
}

.project-title-copy {
  min-width: 0;
}

.project-data-image {
  display: block;
  width: min(470px, 72vw);
  max-height: 178px;
  margin: 22px auto 0;
  object-fit: contain;
  border-radius: 7px;
  opacity: .86;
  box-shadow: 0 18px 46px rgba(0,0,0,.46);
}

.project-title-card.has-header-data-image .project-data-image {
  width: min(900px, 100%);
  max-height: none;
  margin-top: 28px;
}

.project-data-below {
  padding: 20px 0 44px;
  display: grid;
  place-items: center;
}

.project-data-below img {
  display: block;
  width: min(640px, 78vw);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(0,0,0,.42);
}

@media (max-width: 760px) {
  .project-data-image {
    width: min(390px, 68vw);
  }

  .project-title-card.has-header-data-image {
    width: calc(100% - 40px);
    padding-bottom: 34px;
  }
}

.project-title-kicker {
  display: block;
  margin-bottom: 12px;
  color: #555551;
  font-size: 9px;
  letter-spacing: .34em;
}

.project-title-card strong {
  display: block;
  color: rgba(255,255,255,.92);
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: .12em;
}

.project-title-card strong a {
  color: inherit;
  text-decoration: none;
}

.project-product-subtitle {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .055em;
  text-decoration: none;
  transition: color 180ms ease;
}

.project-title-meta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #555551;
  font-size: 8px;
  letter-spacing: .18em;
}

.project-title-meta i {
  width: 22px;
  height: 1px;
  background: #2b2b29;
}

.banner-track {
  width: auto;
  height: var(--banner-frame-height);
  display: flex;
  will-change: transform;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-open-zone {
  position: absolute;
  z-index: 3;
  inset: 8% 15% 14%;
  width: 70%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.showcase.is-no-banner .hero-open-zone,
.showcase.is-stacked-project .hero-open-zone {
  display: none;
}

.stacked-project-slide {
  height: var(--stacked-project-height, 1500px);
  display: block;
  overflow: hidden;
}

.stacked-project-content {
  position: relative;
  z-index: 4;
  width: min(1500px, calc(100% - 180px));
  margin: 0 auto;
  padding: 46px 0 100px;
}

.stacked-project-board {
  min-height: 336px;
  padding: 34px 0 42px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.stacked-project-board:first-child {
  padding-top: 4px;
}

body.page-editing .stacked-project-board {
  position: relative;
  border-radius: 8px;
  cursor: pointer;
}

body.page-editing .stacked-project-board.is-selected {
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

body.page-editing .stacked-project-board.is-selected::before {
  content: "当前编辑板块";
  position: absolute;
  top: 12px;
  left: 14px;
  color: rgba(255,255,255,.36);
  font-size: 9px;
  letter-spacing: .12em;
}

.stacked-project-board .project-title-card {
  width: 100%;
}

.stacked-project-board .project-title-card strong {
  font-size: clamp(28px, 3vw, 46px);
}

.stacked-project-board .project-product-subtitle {
  margin-top: 12px;
}

.stacked-thumbnail-row {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.stacked-thumbnail {
  width: 90px;
  flex: 0 0 90px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.stacked-thumbnail-art {
  display: block;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border: 1px solid #333330;
  border-radius: 6px;
  background: #111;
  box-shadow: 0 14px 32px rgba(0,0,0,.32);
  transform-origin: 50% 100%;
  transition: transform 220ms ease, border-color 220ms ease;
}

.stacked-thumbnail-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stacked-thumbnail:hover .stacked-thumbnail-art {
  border-color: rgba(255,255,255,.55);
  transform: translateY(-8px) scale(1.12);
}

.stacked-details-placeholder {
  display: none;
}

@media (max-width: 1400px) {
  .showcase.is-stacked-project {
    min-height: var(--stacked-project-height, 1900px);
    height: var(--stacked-project-height, 1900px);
  }

  .stacked-project-content {
    width: calc(100% - 140px);
  }

  .stacked-thumbnail-row {
    flex-wrap: wrap;
  }

  .stacked-project-board {
    min-height: 430px;
  }
}

.hero-banner.detail-hero-banner {
  background-size: contain;
  background-color: #050505;
}

.detail-hero-controls {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: min(760px, calc(100vh - 250px), calc(100% - 200px));
  height: 100%;
  margin: auto;
  pointer-events: none;
}

.detail-hero-arrow {
  position: absolute;
  top: 50%;
  width: 64px;
  height: 96px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.14);
  cursor: pointer;
  translate: 0 -50%;
  pointer-events: auto;
}

.detail-hero-arrow:hover {
  background: rgba(0, 0, 0, 0.32);
}

.detail-hero-prev { left: -76px; }
.detail-hero-next { right: -76px; }

.detail-hero-arrow .arrow-icon {
  width: 28px;
  height: 28px;
}

.collage-hero-banner {
  padding: 5px;
  background: #050505;
}

.collage-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.collage-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.collage-grid img:nth-child(1)  { grid-area: 1 / 1 / 4 / 4; }
.collage-grid img:nth-child(2)  { grid-area: 1 / 4 / 3 / 7; }
.collage-grid img:nth-child(3)  { grid-area: 1 / 7 / 4 / 9; }
.collage-grid img:nth-child(4)  { grid-area: 1 / 9 / 3 / 13; }
.collage-grid img:nth-child(5)  { grid-area: 3 / 4 / 6 / 6; }
.collage-grid img:nth-child(6)  { grid-area: 4 / 6 / 7 / 9; }
.collage-grid img:nth-child(7)  { grid-area: 3 / 9 / 5 / 11; }
.collage-grid img:nth-child(8)  { grid-area: 3 / 11 / 7 / 13; }
.collage-grid img:nth-child(9)  { grid-area: 4 / 1 / 7 / 3; }
.collage-grid img:nth-child(10) { grid-area: 4 / 3 / 7 / 4; }
.collage-grid img:nth-child(11) { grid-area: 6 / 4 / 7 / 6; }
.collage-grid img:nth-child(12) { grid-area: 5 / 9 / 7 / 11; }
.collage-grid img:nth-child(13) { grid-area: 3 / 6 / 4 / 7; }

.collage-contain .collage-grid img {
  object-fit: contain;
}

.collage-expand .collage-grid img {
  object-fit: contain;
  opacity: 0;
  transform: translate(var(--scatter-x, 0), var(--scatter-y, 0)) scale(0.015);
  transform-origin: center;
  will-change: transform, opacity;
}

.collage-expand.is-current .collage-grid img {
  animation: scatter-pack 1.25s cubic-bezier(0.2, 0.78, 0.18, 1) both;
  animation-delay: calc(var(--order, 0) * 45ms + 80ms);
}

.collage-expand .collage-grid img:nth-child(1)  { --scatter-x: 390px;  --scatter-y: 180px;  --order: 4; }
.collage-expand .collage-grid img:nth-child(2)  { --scatter-x: -330px; --scatter-y: 210px;  --order: 1; }
.collage-expand .collage-grid img:nth-child(3)  { --scatter-x: 240px;  --scatter-y: -220px; --order: 8; }
.collage-expand .collage-grid img:nth-child(4)  { --scatter-x: -410px; --scatter-y: -130px; --order: 2; }
.collage-expand .collage-grid img:nth-child(5)  { --scatter-x: 510px;  --scatter-y: -80px;  --order: 10; }
.collage-expand .collage-grid img:nth-child(6)  { --scatter-x: -170px; --scatter-y: -270px; --order: 5; }
.collage-expand .collage-grid img:nth-child(7)  { --scatter-x: 130px;  --scatter-y: 260px;  --order: 0; }
.collage-expand .collage-grid img:nth-child(8)  { --scatter-x: -520px; --scatter-y: 40px;   --order: 11; }
.collage-expand .collage-grid img:nth-child(9)  { --scatter-x: 440px;  --scatter-y: 250px;  --order: 3; }
.collage-expand .collage-grid img:nth-child(10) { --scatter-x: -90px;  --scatter-y: 190px;  --order: 9; }
.collage-expand .collage-grid img:nth-child(11) { --scatter-x: 320px;  --scatter-y: -260px; --order: 6; }
.collage-expand .collage-grid img:nth-child(12) { --scatter-x: -460px; --scatter-y: -220px; --order: 12; }
.collage-expand .collage-grid img:nth-child(13) { --scatter-x: 60px;   --scatter-y: -190px; --order: 7; }

@keyframes scatter-pack {
  0% {
    opacity: 0.2;
    transform: translate(var(--scatter-x), var(--scatter-y)) scale(0.015);
  }
  58% {
    opacity: 1;
    transform: translate(-9px, 7px) scale(1.06);
  }
  78% {
    transform: translate(3px, -2px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 22%);
}

.project-index {
  position: absolute;
  z-index: 2;
  top: 32px;
  right: max(4vw, 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.project-index i {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.ai-label {
  position: absolute;
  z-index: 3;
  right: max(4vw, 32px);
  bottom: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 3px;
  background: rgba(92, 49, 28, 0.56);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.banner-variant-switch {
  position: relative;
  width: 120px;
  aspect-ratio: 5 / 2;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  background: rgba(8, 8, 8, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.banner-variant-switch:hover {
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.banner-variant-switch img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.banner-switch-group {
  flex: 0 0 auto;
  margin-top: 32px;
  padding-right: 14px;
  border-right: 0;
  display: flex;
  height: auto;
  align-items: flex-start;
}

.banner-switch-group .banner-variant-switch {
  width: max-content;
  height: 90px;
  aspect-ratio: auto;
}

.thumbnail-strip.has-feature {
  gap: 0;
}

.thumbnail-strip.has-feature .thumbnail-row {
  padding-left: 14px;
}

.thumbnail-strip.has-feature .thumb-pager {
  margin-left: 14px;
}

.manual-thumbnail {
  position: relative;
  width: max-content;
  height: 90px;
  aspect-ratio: auto;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  background: #101010;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.manual-thumbnail img {
  display: block;
  width: auto;
  height: 82px;
  border-radius: 2px;
  object-fit: contain;
  background: #eee;
}

.video-play-icon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  translate: -50% -50%;
  box-shadow: 0 5px 18px rgba(0,0,0,.4);
}

.video-play-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.feature-caption-card {
  width: max-content;
}

.video-feature-group {
  height: auto;
  align-items: flex-start;
  border-right: 0;
}

.feature-caption-card .video-thumbnail {
  width: max-content;
  height: 90px;
  aspect-ratio: auto;
}

.feature-divider {
  width: 1px;
  height: 90px;
  flex: 0 0 1px;
  margin: 32px 0 0 2px;
  background: rgba(255,255,255,.2);
}

.banner-variant-switch img {
  width: auto;
  height: 82px;
  object-fit: contain;
}

.banner-gallery-thumbnail {
  width: 225px;
  flex: 0 0 225px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.banner-gallery-art {
  position: relative;
  display: block;
  width: 225px;
  height: 90px;
  overflow: hidden;
  border: 1px solid #333330;
  border-radius: 6px;
  background: #111;
  transition: border-color 180ms ease, transform 180ms ease;
}

.banner-gallery-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-gallery-thumbnail:hover .banner-gallery-art,
.banner-gallery-thumbnail.is-active .banner-gallery-art {
  border-color: rgba(255,255,255,.7);
  transform: none;
}

.banner-gallery-strip .thumbnail-viewport {
  flex: 1;
}

.banner-gallery-pager {
  margin-left: 14px;
}

.feature-caption-card .thumbnail-number {
  padding-top: 10px;
}

.banner-stack-group {
  width: 210px;
  padding-right: 14px;
}

.banner-stack {
  position: relative;
  width: 196px;
  height: 90px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.banner-stack-card {
  position: absolute;
  width: 170px;
  height: 70px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 3px;
  background: #111;
  pointer-events: none;
  box-shadow: 5px 8px 18px rgba(0,0,0,.48);
  transition: filter 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.banner-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  object-fit: cover;
}

.banner-stack-card-0 {
  z-index: 3;
  top: 0;
  left: 0;
  filter: brightness(1);
}

.banner-stack-card-1 {
  z-index: 2;
  top: 10px;
  left: 13px;
  filter: brightness(.7);
}

.banner-stack-card-2 {
  z-index: 1;
  top: 20px;
  left: 26px;
  filter: brightness(.44);
}

.banner-stack:hover .banner-stack-card-0 {
  border-color: rgba(255,255,255,.9);
  filter: brightness(1);
  transform: translateY(-2px);
}

.manual-stage {
  width: min(2048px, 96vw);
  max-height: calc(100vh - 90px);
}

.manual-book {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(1120px, 78vw);
  max-width: 100%;
  aspect-ratio: 3 / 1;
  height: auto;
  perspective: 2200px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.68));
}

.manual-book img {
  display: block;
  width: 50%;
  height: auto;
  min-width: 0;
  max-width: none;
  object-fit: cover;
  background: #fff;
  backface-visibility: hidden;
}

.manual-book.is-cover {
  width: min(560px, 68vw);
  aspect-ratio: 3 / 2;
}

.manual-book.is-cover img {
  width: 100%;
  border-radius: 3px 10px 10px 3px;
  box-shadow: -7px 0 0 #d8d8d5, -11px 0 0 #a6a6a1, 18px 24px 55px rgba(0,0,0,.62);
}

.manual-book.is-spread::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 38px;
  translate: -50% 0;
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.15) 47%, rgba(0,0,0,.32));
  pointer-events: none;
}

.manual-book.is-spread .manual-page-left {
  transform-origin: right center;
  transform: rotateY(1.8deg);
  border-radius: 7px 1px 1px 7px;
  box-shadow: inset -20px 0 28px rgba(0,0,0,.12);
}

.manual-book.is-spread .manual-page-right {
  transform-origin: left center;
  transform: rotateY(-1.8deg);
  border-radius: 1px 7px 7px 1px;
  box-shadow: inset 20px 0 28px rgba(0,0,0,.12);
}

.manual-page-stack {
  position: absolute;
  z-index: -1;
  left: 7px;
  right: 7px;
  bottom: -9px;
  height: 12px;
  border-radius: 0 0 7px 7px;
  background: repeating-linear-gradient(to bottom, #f1f1ed 0 1px, #b8b8b3 1px 2px);
  box-shadow: 0 16px 28px rgba(0,0,0,.42);
}

.manual-book.is-turning-next .manual-page-right,
.manual-book.is-turning-next .manual-cover-page {
  z-index: 5;
  animation: manual-turn-next 380ms cubic-bezier(.55,.05,.45,.95) both;
}

.manual-book.is-turning-prev .manual-page-left,
.manual-book.is-turning-prev .manual-cover-page {
  z-index: 5;
  animation: manual-turn-prev 380ms cubic-bezier(.55,.05,.45,.95) both;
}

@keyframes manual-turn-next {
  0% { transform: rotateY(0); filter: brightness(1); }
  55% { transform: rotateY(-88deg); filter: brightness(.68); box-shadow: -28px 0 42px rgba(0,0,0,.38); }
  100% { transform: rotateY(-178deg); filter: brightness(.9); opacity: 0; }
}

@keyframes manual-turn-prev {
  0% { transform: rotateY(0); filter: brightness(1); }
  55% { transform: rotateY(88deg); filter: brightness(.68); box-shadow: 28px 0 42px rgba(0,0,0,.38); }
  100% { transform: rotateY(178deg); filter: brightness(.9); opacity: 0; }
}

.manual-lightbox {
  padding: 24px 2vw 22px;
}

.manual-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  letter-spacing: .15em;
}

.manual-pagination i {
  width: 44px;
  height: 1px;
  background: rgba(255,255,255,.28);
}

.manual-lightbox .manual-close {
  position: fixed;
  z-index: 20;
  top: 30px;
  right: 34px;
  margin: 0;
}

.stpageflip-book {
  width: min(1888px, 92vw);
  height: min(82vh, 30.667vw, 629px);
  margin: 0 auto;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.7));
}

.lightbox-stage.manual-stage {
  width: min(2048px, 94vw);
  max-height: calc(100vh - 90px);
}

.lightbox-stage.manual-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(1888px, 92vw);
  height: min(82vh, 30.667vw, 629px);
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.stpageflip-book.is-portrait {
  width: min(1400px, 88vw, calc(82vh * 1.49874));
  height: auto;
  aspect-ratio: 1190 / 794;
}

.lightbox-stage.manual-stage.is-portrait::before {
  display: none;
}

.lightbox-stage.manual-stage .stpageflip-book {
  position: relative;
  z-index: 1;
}

.video-stage {
  width: min(1500px, 88vw);
  max-height: 82vh;
  display: grid;
  place-items: center;
}

.portfolio-video {
  display: block;
  width: 100%;
  max-height: 82vh;
  border: 1px solid rgba(255,255,255,.16);
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,.72);
}

.video-lightbox .video-close {
  position: fixed;
  z-index: 20;
  top: 30px;
  right: 34px;
  margin: 0;
}

.stpageflip-book.is-cover-view {
  clip-path: inset(0 0 0 50%);
}

.stpageflip-book .stf__parent {
  margin: 0 auto;
}

.stpageflip-book .stf__block {
  background: transparent;
}

.stpageflip-book .stf__item {
  background: transparent !important;
}

.nav-button {
  position: fixed;
  z-index: 50;
  top: 50vh;
  width: 72px;
  height: 112px;
  border: 0;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  translate: 0 -50%;
  transition: background 180ms ease;
}

.showcase.is-no-banner .nav-button {
  z-index: 15;
}

.nav-button:hover {
  background: rgba(0, 0, 0, 0.2);
}

.nav-button:focus-visible,
.progress-track:focus-visible {
  outline: 2px solid white;
  outline-offset: -3px;
}

.nav-prev {
  left: 0;
}

.nav-next {
  right: 0;
}

.arrow-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.76);
  border-right: 1px solid rgba(255, 255, 255, 0.76);
}

.arrow-left {
  transform: rotate(-135deg);
}

.arrow-right {
  transform: rotate(45deg);
}

.progress {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 9px;
  translate: -50% 0;
}

.progress-track {
  position: relative;
  width: 48px;
  height: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.progress-track.is-active {
  background: rgba(255, 255, 255, 0.42);
}

.progress-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: white;
  transform-origin: left;
  animation: progress-grow 5s linear forwards;
}

.progress-fill.is-paused {
  animation-play-state: paused;
}

.details {
  position: relative;
  z-index: 10;
  padding: 0 max(4vw, 28px) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0b;
}

.page-edit-tools,
.page-edit-status,
.thumbnail-remove {
  display: none;
}

.page-edit-toggle {
  position: fixed;
  z-index: 118;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  background: rgba(12,12,12,.72);
  color: rgba(255,255,255,.48);
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.page-edit-toggle:hover {
  border-color: rgba(255,255,255,.48);
  color: rgba(255,255,255,.86);
}

body.page-editing .page-edit-toggle {
  display: none;
}

body.page-editing .nav-button,
body.page-editing .progress {
  pointer-events: none;
  opacity: .28;
}

body.page-editing .page-edit-tools {
  position: fixed;
  z-index: 120;
  bottom: 30px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

body.page-editing .page-edit-tools-left {
  left: 18px;
  flex-direction: column;
}

body.page-editing .page-edit-tools-right {
  right: 18px;
}

.page-edit-tools button {
  min-width: 94px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 4px;
  background: rgba(16,16,16,.9);
  color: rgba(255,255,255,.86);
  font-size: 11px;
  letter-spacing: .05em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.42);
}

.page-edit-tools button:hover {
  border-color: rgba(255,255,255,.62);
  background: rgba(38,38,38,.94);
}

.page-edit-tools button:disabled {
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.2);
  cursor: default;
  box-shadow: none;
}

body.page-editing .page-edit-status {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 18px;
  display: block;
  translate: -50% 0;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  background: rgba(10,10,10,.82);
  color: rgba(255,255,255,.54);
  font-size: 10px;
  letter-spacing: .08em;
  pointer-events: none;
}

.editable-thumbnail-wrap {
  position: relative;
  width: max-content;
  flex: 0 0 auto;
}

body.page-editing .thumbnail-remove {
  position: absolute;
  z-index: 30;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0,0,0,.6);
}

body.page-editing [data-page-text] {
  min-width: 1em;
  outline: 1px dashed rgba(255,255,255,.3);
  outline-offset: 4px;
  cursor: text;
}

body.page-editing .thumbnail,
body.page-editing .manual-thumbnail,
body.page-editing .banner-variant-switch,
body.page-editing .banner-gallery-thumbnail,
body.page-editing .stacked-thumbnail {
  cursor: default;
}

body.page-editing .sortable-detail {
  cursor: grab;
}

body.page-editing .sortable-detail::before {
  content: "拖动排序";
  position: absolute;
  z-index: 25;
  top: 5px;
  left: 5px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.75);
  font-size: 9px;
  letter-spacing: .08em;
  pointer-events: none;
}

body.page-editing .sortable-detail.is-dragging { opacity: .3; }
body.page-editing .sortable-detail.is-drop-target { outline: 2px solid rgba(255,255,255,.8); outline-offset: 5px; }

.board-drag-handle { display: none; }
body.page-editing .sortable-board { cursor: grab; }
body.page-editing .sortable-board .board-drag-handle {
  position: absolute;
  z-index: 24;
  top: 12px;
  left: 50%;
  display: block;
  translate: -50% 0;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.58);
  font-size: 9px;
  letter-spacing: .1em;
  pointer-events: none;
}
body.page-editing .sortable-board.is-dragging { opacity: .32; }
body.page-editing .sortable-board.is-drop-target { box-shadow: inset 0 3px 0 rgba(255,255,255,.85); }

.project-sort-dialog[hidden] { display: none; }
.project-sort-dialog {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(14px);
}
.project-sort-panel {
  width: min(760px, 92vw);
  max-height: min(760px, 84vh);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.project-sort-header {
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.project-sort-header strong { color: #fff; font-size: 15px; letter-spacing: .08em; }
.project-sort-header span { color: rgba(255,255,255,.38); font-size: 11px; }
.project-sort-header button { width: 32px; height: 32px; border: 0; background: transparent; color: rgba(255,255,255,.65); font-size: 24px; cursor: pointer; }
.project-sort-list { max-height: calc(min(760px, 84vh) - 62px); overflow-y: auto; padding: 10px; }
.project-sort-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 38px minmax(180px, .8fr) 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgba(255,255,255,.72);
  cursor: grab;
}
.project-sort-item:hover, .project-sort-item.is-current { background: rgba(255,255,255,.055); }
.project-sort-item.is-current { border-color: rgba(255,255,255,.15); }
.project-sort-item.is-dragging { opacity: .28; }
.project-sort-item.is-drop-target { border-top-color: #fff; }
.project-sort-item em { color: rgba(255,255,255,.28); font-size: 11px; font-style: normal; }
.project-sort-item strong { color: rgba(255,255,255,.86); font-size: 12px; }
.project-sort-item > span:last-child { overflow: hidden; color: rgba(255,255,255,.35); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-sort-grip { color: rgba(255,255,255,.3); font-size: 16px; letter-spacing: -4px; }

.thumbnail-strip {
  width: min(1460px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.thumbnail-strip.is-centered {
  justify-content: center;
}

.thumbnail-strip.is-centered .thumbnail-viewport {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.thumbnail-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding-top: 32px;
}

.thumbnail-row {
  width: max-content;
  padding: 0 16px 18px;
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}

.thumbnail {
  width: 90px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.thumbnail-art {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border: 1px solid #333330;
  border-radius: 6px;
  background: #111;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transform-origin: 50% 100%;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.thumbnail:hover .thumbnail-art {
  z-index: 4;
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.56);
  transform: translateY(-10px) scale(1.16);
}

.thumb-pager {
  width: 106px;
  height: 52px;
  flex: 0 0 106px;
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #333330;
  border-radius: 5px;
  background: #111;
}

.thumb-pager button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease;
}

.thumb-pager button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.thumb-pager button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.thumb-pager .arrow-icon {
  width: 13px;
  height: 13px;
  border-color: rgba(255, 255, 255, 0.66);
}

.thumbnail-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-ai-label,
.lightbox-ai-label {
  position: absolute;
  z-index: 4;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 3px;
  background: rgba(92, 49, 28, 0.68);
  color: rgba(255, 255, 255, 0.94);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.lightbox-ai-label {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  font-size: 10px;
}

.thumbnail-number {
  display: block;
  padding-top: 10px;
  color: #555551;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
}

.has-caption {
  min-height: 78px;
  padding: 0 24px;
  display: grid;
  place-items: center;
}

.project-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 80px 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(9px) brightness(0.42);
  animation: lightbox-in 240ms ease-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  position: relative;
  width: min(720px, calc(100vh - 250px));
  height: min(720px, calc(100vh - 250px));
  max-height: 720px;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.lightbox-layout {
  width: 100%;
  height: 100%;
  display: block;
}

.lightbox-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 720px;
  aspect-ratio: 1;
  align-self: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64);
}

.lightbox-media-frame.is-feature-media {
  cursor: default;
}

.lightbox-media-frame.is-feature-media:has(.lightbox-media-action:not([hidden])) {
  cursor: pointer;
}

.lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.lightbox.is-original-size-long {
  overflow-x: hidden;
  overflow-y: auto;
  align-items: center;
}

.lightbox.is-original-size-long .lightbox-stage {
  width: min(1280px, calc(100vw - 460px));
  height: auto;
  max-height: none;
  margin-bottom: 80px;
  place-items: start center;
}

.lightbox.is-original-size-long .lightbox-layout,
.lightbox.is-original-size-long .lightbox-media-frame {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
}

.lightbox.is-original-size-long .lightbox-image {
  width: 100%;
  height: auto;
  max-width: 1280px;
  max-height: none;
  object-fit: contain;
}

.lightbox.is-original-size-long .lightbox-meta {
  position: fixed;
  right: 32px;
  bottom: 106px;
  left: auto;
}

.lightbox.is-original-size-long .lightbox-arrow {
  position: fixed;
}

.lightbox.is-original-size-long .lightbox-prev {
  left: 4vw;
}

.lightbox.is-original-size-long .lightbox-next {
  right: 390px;
}

.lightbox.is-original-size-long .lightbox-dots {
  position: fixed;
  z-index: 3;
  bottom: 72px;
  left: 50%;
  margin: 0;
  translate: -50% 0;
}

.lightbox.is-original-size-long > .lightbox-close {
  position: fixed;
  z-index: 3;
  bottom: 12px;
  left: 50%;
  margin: 0;
  translate: -50% 0;
}

.lightbox-media-action {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 4px;
  background: rgba(0,0,0,.62);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.lightbox-meta {
  position: absolute;
  left: calc(100% + 34px);
  bottom: 4px;
  width: 330px;
  height: 180px;
  min-height: 0;
  padding: 0 0 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: rgba(255,255,255,.72);
}

.lightbox-selling-title {
  min-height: 32px;
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
}

.lightbox-tags {
  min-height: 16px;
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.lightbox-tags span {
  width: 36px;
  height: 16px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  border-radius: 2px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.34);
  font-size: 9px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.lightbox-tags span.is-active {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.78);
}

.lightbox.is-editing .lightbox-tags span {
  cursor: pointer;
  outline: 1px dashed rgba(255,255,255,.28);
  outline-offset: 2px;
}

.lightbox-description {
  min-height: 66px;
  max-height: 66px;
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .01em;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lightbox [contenteditable="true"] {
  outline: 1px dashed rgba(255,255,255,.5);
  outline-offset: 4px;
  cursor: text;
}

.lightbox.is-editing .lightbox-description {
  display: block;
  overflow-y: auto;
}

.edit-mode-hint {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 4;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.42);
  font-size: 10px;
  letter-spacing: .08em;
  pointer-events: none;
}

.lightbox.is-editing .edit-mode-hint {
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.82);
}

.lightbox-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 64px;
  height: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  translate: 0 -50%;
}

.lightbox-prev {
  left: -72px;
}

.lightbox-next {
  right: -72px;
}

@media (max-width: 980px) {
  .lightbox {
    padding: 46px 4vw;
  }

  .lightbox-stage {
    width: min(68vh, 76vw);
    height: min(68vh, 76vw);
  }

  .lightbox-layout {
    height: 100%;
  }

  .lightbox-media-frame {
    width: 100%;
    height: 100%;
  }

  .lightbox-meta {
    position: absolute;
    left: calc(100% + 18px);
    bottom: 0;
    width: min(250px, 28vw);
    height: auto;
  }

  .lightbox-tags {
    margin-bottom: 12px;
  }

  .lightbox-prev { left: -46px; }
  .lightbox-next { right: -46px; }
}

.lightbox-arrow .arrow-icon {
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.72);
}

.lightbox-dots {
  position: static;
  margin-top: 20px;
  translate: none;
  min-height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.lightbox-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.lightbox-dots button.is-active {
  background: #fff;
}

.lightbox-close {
  position: relative;
  margin-top: 40px;
  translate: none;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  flex: 0 0 50px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.lightbox-close i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.lightbox-close i:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close i:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes banner-in {
  from { opacity: 0; transform: scale(1.012); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .topbar {
    height: 64px;
  }

  .topbar-inner {
    width: calc(100% - 40px);
    gap: 14px;
  }

  .availability {
    display: none;
  }

  .showcase {
    --banner-frame-height: clamp(390px, 58vw, 560px);
    height: 58vw;
    min-height: 390px;
    max-height: 560px;
  }

  .details {
    padding-inline: 20px;
  }

  .lightbox-stage {
    width: min(68vh, 68vw);
    height: min(68vh, 68vw);
    max-height: 720px;
    flex-basis: auto;
  }

  .lightbox-prev {
    left: -58px;
  }

  .lightbox-next {
    right: -58px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    width: calc(100% - 28px);
  }

  .identity {
    font-size: 15px;
  }

  .contact {
    font-size: 13px;
  }

  .showcase {
    --banner-frame-height: clamp(460px, 66vh, 560px);
    height: 66vh;
    min-height: 460px;
  }

  .nav-button {
    width: 54px;
    height: 90px;
  }

  .arrow-icon {
    width: 26px;
    height: 26px;
  }

  .project-index {
    top: 22px;
    right: 20px;
  }

  .ai-label {
    right: 20px;
    bottom: 26px;
  }

  .progress {
    bottom: 20px;
  }

  .progress-track {
    width: 38px;
  }

  .lightbox-stage {
    width: min(60vh, 66vw);
    height: min(60vh, 66vw);
    max-height: 720px;
    flex-basis: auto;
  }

  .lightbox-arrow {
    width: 42px;
  }

  .lightbox-prev {
    left: -44px;
  }

  .lightbox-next {
    right: -44px;
  }

  .lightbox-dots {
    max-width: 92vw;
    gap: 7px;
  }

  .lightbox-dots button {
    width: 8px;
    height: 8px;
  }


}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
