:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --paper-strong: #fbfaf7;
  --ink: #171716;
  --muted: #6f6b63;
  --line: rgba(23, 23, 22, 0.14);
  --accent: #a73528;
  --deep: #0e1111;
  --shadow: 0 24px 70px rgba(17, 17, 16, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 36px;
  color: #fff;
  mix-blend-mode: difference;
}

.brand {
  font-size: 15px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 78svh;
  overflow: hidden;
  background: var(--deep);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero__image--next {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 680ms ease;
}

.hero__image--next.is-visible {
  opacity: 1;
}

.hero__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero__dot:hover,
.hero__dot:focus-visible,
.hero__dot[aria-current="true"] {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
  transform: scale(1.18);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
  padding: 0 0 76px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.56);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c8bf;
}

h1,
h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 76px;
  line-height: 1.05;
}

h2 {
  font-size: 40px;
  line-height: 1.18;
}

.hero__lede {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
  white-space: pre-line;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero__meta strong {
  color: #fff;
  font-size: 18px;
}

.work-section,
.about-section {
  width: min(1380px, calc(100% - 72px));
  margin: 0 auto;
}

.work-section {
  padding: 58px 0 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-note {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.type-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.type-tabs::-webkit-scrollbar {
  display: none;
}

.tab--type {
  min-height: 44px;
  padding: 0 22px;
  font-weight: 700;
}

.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 38px;
  padding: 0 16px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.tab[aria-selected="true"],
.tab:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.gallery {
  column-count: 4;
  column-gap: 18px;
}

.asset-panel {
  margin-top: 10px;
}

.photo {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
}

.photo__button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.photo__media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #e6e1d8;
  box-shadow: var(--shadow);
}

.photo__delete,
.photo__edit,
.drag-handle {
  position: absolute;
  z-index: 2;
  top: 10px;
}

.photo__delete,
.photo__edit {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(17, 17, 16, 0.68);
  color: #fff;
  cursor: pointer;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.drag-handle {
  left: 10px;
  display: inline-grid;
  place-items: center;
  gap: 3.5px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(23, 23, 22, 0.12);
  border-radius: 50%;
  background: rgba(248, 246, 241, 0.86);
  color: rgba(23, 23, 22, 0.78);
  cursor: grab;
  opacity: 0;
  padding: 0;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.drag-handle span {
  display: block;
  width: 13px;
  height: 1.4px;
  border-radius: 999px;
  background: currentColor;
}

.drag-handle:active {
  cursor: grabbing;
  transform: translateY(0) scale(0.96);
}

.photo__delete {
  right: 10px;
}

.photo__edit {
  right: 66px;
}

.photo:hover .photo__delete,
.photo:hover .photo__edit,
.photo:hover .drag-handle,
.photo:focus-within .photo__delete,
.photo:focus-within .photo__edit,
.photo:focus-within .drag-handle,
.video-card:hover > .drag-handle,
.video-card:focus-within > .drag-handle {
  opacity: 1;
  transform: translateY(0);
}

.photo__delete:hover,
.photo__delete:focus-visible {
  background: var(--accent);
  outline: 0;
}

.photo__edit:hover,
.photo__edit:focus-visible,
.drag-handle:hover,
.drag-handle:focus-visible,
.work-edit:hover,
.work-edit:focus-visible,
.work-delete:hover,
.work-delete:focus-visible {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  outline: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms ease, filter 500ms ease;
}

.photo__button:hover img,
.photo__button:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.photo__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.photo figcaption {
  display: grid;
  gap: 4px;
  padding: 9px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.photo figcaption span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.photo figcaption small {
  color: rgba(23, 23, 22, 0.5);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.text-button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  min-height: 42px;
  padding: 0 20px;
}

.text-button--ghost {
  background: transparent;
  color: var(--ink);
}

.text-button[hidden] {
  display: none;
}

.admin-bar {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(17, 17, 16, 0.84);
  color: #fff;
  padding: 8px 10px 8px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  font-size: 12px;
}

.admin-bar a,
.admin-bar button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-height: 28px;
  padding: 0 10px;
}

.upload-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(190px, 0.7fr) auto;
  align-items: end;
  gap: 16px;
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.upload-box--video {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 0.75fr) auto;
}

.upload-box h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 24px;
  font-weight: 600;
}

.upload-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.upload-box label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.upload-box select,
.upload-box input[type="file"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 8px 10px;
}

.upload-status {
  grid-column: 1 / -1;
  min-height: 18px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  position: relative;
  margin: 0;
}

.video-card--featured {
  grid-column: 1 / -1;
}

.video-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-quality-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.58);
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-quality-button:hover,
.video-quality-button:focus-visible,
.video-quality-button.is-active {
  background: #fff;
  color: #111;
  outline: 0;
}

.video-quality-button:disabled {
  cursor: default;
}

.video-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-top: 12px;
}

.video-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.video-card__description {
  display: block;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

button.video-card__description {
  width: 100%;
  border: 1px dashed rgba(23, 23, 22, 0.18);
  border-radius: 6px;
  background: rgba(248, 246, 241, 0.62);
  cursor: text;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

button.video-card__description:hover,
button.video-card__description:focus-visible {
  border-color: var(--accent);
  background: rgba(248, 246, 241, 0.92);
  color: var(--ink);
  outline: 0;
}

.video-card p {
  margin: 0;
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.video-card__actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.work-edit,
.work-delete {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.work-delete {
  border-color: rgba(164, 70, 45, 0.35);
  color: var(--accent);
}

.is-sorting .photo__button {
  cursor: default;
}

.is-dragging {
  opacity: 0.42;
}

.is-drop-before,
.is-drop-after {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.about-section {
  border-top: 1px solid var(--line);
  padding: 58px 0 76px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
}

.about-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.contact-line strong {
  color: var(--ink);
  font-size: 20px;
}

.about-copy dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.admin-login-page {
  min-height: 100svh;
  background: var(--paper);
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.admin-login__panel {
  width: min(520px, 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.admin-login h1 {
  max-width: none;
  color: var(--ink);
  font-size: 46px;
}

.admin-login p {
  color: var(--muted);
  line-height: 1.8;
}

.admin-login form,
.admin-login__actions {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.admin-login label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-login input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
}

.admin-login__back {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.about-copy div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.about-copy dt {
  color: var(--muted);
  font-size: 12px;
}

.about-copy dd {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  place-items: center;
  background: rgba(7, 8, 8, 0.94);
  padding: 28px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
}

.lightbox__figure img {
  max-width: min(100%, 1500px);
  max-height: 82svh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.lightbox__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1500px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 0;
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
}

@media (max-width: 1100px) {
  .gallery {
    column-count: 3;
  }

  .upload-box {
    grid-template-columns: 1fr 150px 1fr;
  }

  .upload-box .text-button {
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 58px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero {
    height: 76svh;
  }

  .hero__content,
  .work-section,
  .about-section {
    width: calc(100% - 32px);
  }

  .hero__content {
    padding-bottom: 70px;
  }

  .hero__dots {
    bottom: 22px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero__lede {
    font-size: 15px;
    line-height: 1.75;
  }

  .section-heading,
  .about-grid {
    display: block;
  }

  .section-note {
    max-width: none;
    margin-top: 16px;
    text-align: left;
    white-space: normal;
  }

  .gallery {
    column-count: 2;
    column-gap: 12px;
  }

  .upload-box {
    display: block;
  }

  .upload-box label,
  .upload-box .text-button {
    margin-top: 14px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card__body {
    display: block;
  }

  .video-card__actions {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .video-card p {
    margin-top: 6px;
    text-align: left;
  }

  .photo {
    margin-bottom: 16px;
  }

  .photo__delete,
  .photo__edit,
  .drag-handle {
    opacity: 1;
    transform: none;
  }

  .photo figcaption {
    display: block;
  }

  .photo figcaption span {
    display: block;
  }

  .about-copy {
    margin-top: 26px;
  }

  .about-copy dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 14px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 460px) {
  .gallery {
    column-count: 1;
  }

  .hero__meta {
    gap: 10px 16px;
  }

  .lightbox {
    grid-template-columns: 1fr;
  }

  .lightbox__prev,
  .lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox__prev {
    left: 10px;
  }

  .lightbox__next {
    right: 10px;
  }
}
