:root {
  color-scheme: dark;
  --bg: #100e1c;
  --panel: #1a1628;
  --edge: #30283e;
  --ink: #f5efff;
  --muted: #b3a6c4;
  --dim: #9586a8;
  --lav: #c8a3ff;
  --gap: 22px;
  font-family: "PingFang SC","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;
}

*,*::before,*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: radial-gradient(ellipse 82% 490px at 56% 140px,#241735 0%,transparent 85%),var(--bg);
}

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

button,input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: default;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 2px solid #e5b6ff;
  outline-offset: 3px;
}

svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
  flex: none;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
}

.wrap {
  width: min(1120px,calc(100% - 80px));
  margin-inline: auto;
}

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 35px;
  padding: 5px 10px;
  background: linear-gradient(95deg,#36204e,#50264b 57%,#482635);
  border-bottom: 1px solid #a965a43b;
  color: #eccee8;
  font-size: 12px;
  letter-spacing: .12em;
}

.spark {
  color: #ffc4df;
}

.announcement-line {
  width: 18px;
  height: 1px;
  background: #c287b8;
}

.announcement-en,.eyebrow,.section-head small,.footer>span:last-child,.dialog-kicker {
  font-family: system-ui,sans-serif;
  letter-spacing: .16em;
}

.announcement-en {
  font-size: 9px;
  color: #e0b8dc;
}

.masthead {
  background: #120f1eb0;
  border-bottom: 1px solid #b484fa1a;
}

.nav {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.16;
}

.brand img {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 4px 12px #9155ff52);
}

.brand-accent {
  color: #dcc2ff;
}

.brand small {
  display: block;
  font: 650 8px/1.4 system-ui;
  letter-spacing: .22em;
  color: var(--dim);
  margin-top: 4px;
}

.refresh,.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #20192e;
  border: 1px solid #42334f;
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 13px;
  color: #d7c6e9;
}

.refresh:hover,.icon-button:hover {
  background: #332344;
}

.refresh:disabled,.icon-button:disabled {
  opacity: .45;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 30px;
  padding: 32px 36px 33px;
  border: 1px solid #58366a;
  border-radius: 24px;
  background: radial-gradient(ellipse at 85% 18%,#70336670,transparent 58%),linear-gradient(115deg,#281840,#301b45 65%,#271837);
  box-shadow: 0 18px 60px #0b081d60,inset 0 1px #d195ff18;
}

.eyebrow {
  color: #ddbcfa;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow>span:first-child {
  width: 7px;
  height: 7px;
  background: #e6a1f7;
  border-radius: 50%;
  box-shadow: 0 0 14px #dc76ff;
}

.hero-slash {
  color: #a374be;
}

h1,h2,p {
  margin: 0;
}

h1 {
  font-size: clamp(36px,5.5vw,60px);
  letter-spacing: .045em;
  line-height: 1.18;
  margin-top: 11px;
}

h1 span {
  color: #f3b8da;
  background: linear-gradient(108deg,#e3bdff,#ffc6be);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 b {
  display: inline-block;
  font-size: .46em;
  color: #f4addc;
  vertical-align: top;
  margin: .12em 0 0 .3em;
}

.hero p {
  color: #d3bedf;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
}

.search {
  display: flex;
  gap: 10px;
  margin-top: 23px;
  max-width: 690px;
}

.search-field {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  flex: 1;
  background: #180f29bd;
  border: 1px solid #725188;
  border-radius: 12px;
  padding: 0 14px;
  color: #d5a4fa;
}

.search-field:focus-within {
  border-color: #dd9aff;
  box-shadow: 0 0 0 3px #cf8fff23;
}

.search input {
  min-width: 0;
  width: 100%;
  color: #f9edff;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  height: 46px;
  font-size: 14px;
}

.search input::placeholder {
  color: #b09abb;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-field button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 4px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  min-height: 46px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #e5a1ff50;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(115deg,#8842dc,#bd459f);
  box-shadow: 0 6px 22px #b950dc37;
  white-space: nowrap;
}

.primary:hover {
  filter: brightness(1.13);
}

.primary:disabled {
  opacity: .65;
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  right: 26px;
  top: 2px;
  border: 1px solid #dea1ff2c;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.orbit i {
  position: absolute;
  inset: 18px -35px;
  border: 1px solid #eab0f837;
  border-radius: 50%;
}

.orbit i:nth-child(2) {
  inset: 42px -58px;
}

.orbit i:nth-child(3) {
  inset: 70px -76px;
}

.orbit b,.orbit em {
  position: absolute;
  font-style: normal;
  color: #f6b2e9;
  text-shadow: 0 0 24px #f7a3ef;
}

.orbit b {
  top: 45px;
  right: 27px;
  font-size: 35px;
}

.orbit em {
  top: 167px;
  left: 6px;
  font-size: 20px;
}

.region-block {
  margin-top: 29px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 21px;
}

.section-head small {
  font-size: 10px;
  font-weight: 700;
  color: var(--dim);
}

.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  gap: 11px;
}

.region {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: left;
  padding: 11px 10px;
  background: linear-gradient(160deg,#231b33,#1a1628);
  border: 1px solid #3a2d4a;
  border-radius: 13px;
}

.region:hover {
  border-color: #9765c2;
}

.region[aria-pressed=true] {
  background: linear-gradient(135deg,#4c285d,#2a1d43);
  border-color: #b7e;
  box-shadow: 0 0 16px #a250d42b,inset 0 0 12px #a250d41f;
}

.folder,.lock-emblem {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(130deg,#a456ed,#6845c5);
  box-shadow: inset 0 1px #f3c4ff55;
}

.region-copy {
  min-width: 0;
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}

.region-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 450;
  margin-top: 3px;
}

.gallery {
  margin-top: 32px;
  scroll-margin-top: 18px;
}

.total {
  font-size: 12px;
  color: var(--muted);
  min-width: max-content;
}

.total strong {
  color: #e6b8fa;
}

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

.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 17px;
  overflow: hidden;
  padding: 0;
  min-width: 0;
  transition: border-color .2s,transform .2s;
  box-shadow: 0 8px 26px #08071140;
}

.card:hover {
  border-color: #9f68c6;
  transform: translateY(-2px);
}

.cover {
  display: block;
  position: relative;
  aspect-ratio: 1.88;
  overflow: hidden;
  background: linear-gradient(140deg,#302047,#1a1628);
}

.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s;
}

.card:hover .cover img {
  transform: scale(1.035);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#100b1a49,transparent 42%);
  pointer-events: none;
}

.type,.locked,.play {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #221536db;
  border: 1px solid #e9bdff52;
  color: #f6e6ff;
  backdrop-filter: blur(9px);
}

.type {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
}

.locked {
  left: 12px;
  top: 12px;
  padding: 6px;
  border-radius: 8px;
  color: #ffcf9b;
}

.play {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  justify-content: center;
  font-size: 17px;
}

.card-body {
  display: block;
  padding: 13px 16px 15px;
}

.card-title {
  display: block;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}

.card-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.location-tag {
  padding: 3px 7px;
  border: 1px solid #61417c;
  background: #2d1e41;
  color: #e2c3fb;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.address {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}

.address span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 27px auto;
}

.pagination:empty {
  display: none;
}

.pagination button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #46325c;
  border-radius: 8px;
  background: #221932;
  color: #ece1fa;
  font-size: 13px;
}

.pagination button:hover:not(:disabled) {
  border-color: #c183ee;
}

.pagination button[aria-current=page] {
  background: #773eb8;
  border-color: #bf83fa;
}

.pagination button:disabled {
  opacity: .42;
}

.notice {
  padding: 11px 14px;
  border: 1px solid #67486f;
  border-radius: 10px;
  color: #ecd2f5;
  margin-bottom: 12px;
  background: #38203f;
  font-size: 13px;
}

.status {
  grid-column: 1/-1;
  text-align: center;
  border: 1px dashed #503b63;
  border-radius: 16px;
  padding: 46px 20px;
  color: var(--muted);
}

.status strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.status p,.status button {
  font-size: 13px;
}

.status button {
  margin-top: 14px;
}

.skeleton {
  border-radius: 16px;
  aspect-ratio: 1.52;
  background: linear-gradient(100deg,#231b33 20%,#332542 48%,#231b33 76%);
  background-size: 250% 100%;
  animation: loading 1.5s linear infinite;
}

.region-placeholder {
  height: 58px;
  aspect-ratio: auto;
}

@keyframes loading {
  to {
    background-position-x: -250%;
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 24px;
  border-top: 1px solid #30253e;
  margin-top: 33px;
  color: var(--dim);
  font-size: 11px;
}

.footer b {
  color: #d898fa;
}

dialog {
  width: min(780px,calc(100% - 28px));
  max-height: calc(100% - 32px);
  padding: 18px;
  border: 1px solid #6a4982;
  border-radius: 18px;
  background: #1d1529;
  color: var(--ink);
  box-shadow: 0 24px 150px #0009;
}

dialog::backdrop {
  background: #090612ca;
  backdrop-filter: blur(5px);
}

dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

dialog h2 {
  font-size: 22px;
  line-height: 1.3;
}

.dialog-kicker {
  color: #daa9fc;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.media {
  display: grid;
  place-items: center;
  min-height: 145px;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0a15;
  color: var(--muted);
}

.media img,.media video {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.media p {
  padding: 20px;
  text-align: center;
}

.viewer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.unlock {
  width: min(390px,calc(100% - 28px));
  padding: 24px;
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
}

.lock-emblem {
  margin-bottom: 13px;
}

.unlock-description {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.unlock label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.unlock input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #664b78;
  border-radius: 9px;
  background: #150e22;
  color: var(--ink);
}

.form-error {
  min-height: 19px;
  margin: 5px 0;
  color: #ffb8ce;
  font-size: 12px;
}

.unlock .primary {
  width: 100%;
}

.entry-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(ellipse at 50% 15%,#43244d 0%,transparent 58%),var(--bg);
}

.entry-card {
  width: min(100%,430px);
  padding: clamp(20px,7vw,32px);
  border: 1px solid #694480;
  border-radius: 24px;
  background: linear-gradient(145deg,#301d42,#1b1429 65%);
  box-shadow: 0 24px 90px #070512b0;
}

.entry-mark {
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 5px 16px #a355ff60);
}

.entry-card h1 {
  font-size: clamp(25px,8vw,34px);
  margin-top: 4px;
}

.entry-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.entry-card input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #76548b;
  border-radius: 10px;
  background: #170f25;
  color: var(--ink);
}

.entry-card .primary {
  width: 100%;
}

.boot-notice {
  margin-block: 25px;
  padding: 12px 16px;
  color: var(--muted);
}

@media(max-width:970px) {
  .region {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

@media(max-width:650px) {
  :root {
    --gap: 11px;
  }
  .wrap {
    width: calc(100% - 28px);
  }
  .nav {
    height: 62px;
  }
  .announcement {
    min-height: 29px;
    font-size: 10px;
    gap: 7px;
  }
  .announcement-en {
    font-size: 8px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .refresh {
    font-size: 12px;
    padding: 8px 9px;
  }
  .hero {
    margin-top: 16px;
    padding: 22px 15px 18px;
    border-radius: 17px;
  }
  .orbit {
    right: -160px;
    top: -54px;
  }
  .hero p {
    font-size: 12px;
    margin-top: 8px;
    max-width: 30ch;
  }
  .search {
    margin-top: 17px;
    gap: 7px;
  }
  .search-field {
    padding: 0 9px;
    gap: 7px;
  }
  .search input {
    height: 41px;
    font-size: 13px;
  }
  .primary {
    min-height: 41px;
    padding: 0 12px;
    gap: 5px;
    font-size: 13px;
  }
  .region-block,.gallery {
    margin-top: 23px;
  }
  .section-head {
    margin-bottom: 11px;
  }
  .section-head h2 {
    font-size: 17px;
    gap: 7px;
  }
  .section-head small {
    font-size: 8px;
  }
  .regions {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 7px;
  }
  .region {
    padding: 8px 4px;
  }
  .folder {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .region-copy {
    font-size: 12px;
  }
  .region-copy small {
    font-size: 9px;
  }
  .card {
    border-radius: 12px;
  }
  .cover {
    aspect-ratio: 1.19;
  }
  .type {
    top: 7px;
    right: 7px;
    padding: 3px 5px;
    font-size: 10px;
  }
  .locked {
    top: 7px;
    left: 7px;
    padding: 5px;
  }
  .play {
    width: 35px;
    height: 35px;
  }
  .card-body {
    padding: 9px 8px 10px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-bottom {
    gap: 5px;
    margin-top: 6px;
  }
  .location-tag {
    font-size: 10px;
    padding: 2px 4px;
  }
  .address {
    font-size: 10px;
    gap: 2px;
  }
  .footer {
    font-size: 9px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
