html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 32px 18px 72px;
  box-sizing: border-box;
  background: #000;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  color: #e5e7eb;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 185, 255, 0.82) rgba(14, 12, 28, 0.72);
}

.world-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.world-shell,
.site-footer {
  position: relative;
  z-index: 2;
}

.world-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.world-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.world-header {
  text-align: center;
  user-select: none;
}

.world-title {
  margin: 0;
  font-family: "STZhongsong", "Noto Serif SC", serif;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.48);
}

.world-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.world-main {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.cards-frame {
  width: min(1180px, 100%);
  height: 336px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.cards {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 336px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: top center;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), filter 0.38s ease;
}

.card {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  cursor: pointer;
  transition: flex 0.5s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  will-change: flex;
}

.card:hover {
  flex: 3;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.card a,
.card .card-inner {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(100%);
  will-change: transform, filter;
  background: rgba(255, 255, 255, 0.08);
}

.card:hover img {
  transform: scale(1.2);
  filter: grayscale(0%);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), transparent 52%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover .card-title {
  background: rgba(255, 255, 255, 0.84);
  color: #000;
  transform: translate(-50%, -50%) scale(1.08);
}

.card-desc {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.65;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}

.card:hover .card-desc {
  transform: translateY(0);
}

.card a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.card a:focus-visible img {
  filter: grayscale(0%);
}

.card-disabled {
  cursor: default;
}

.card-disabled:hover {
  flex: 1;
  box-shadow: none;
}

.card-disabled:hover img {
  transform: none;
  filter: grayscale(100%);
}

.card-disabled::after {
  opacity: 1;
}

.world-notice-panel {
  width: min(1180px, 100%);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at top left, rgba(173, 216, 255, 0.22) 0%, rgba(173, 216, 255, 0) 36%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  transition: margin-top 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.world-notice-content {
  min-height: 132px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(247, 250, 253, 0.94);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition:
    min-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 216, 255, 0.9) rgba(255, 255, 255, 0.08);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
  z-index: 10;
}

.copyright {
  margin: 0 auto;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  max-width: fit-content;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.author-name {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
}

.author-link {
  color: rgba(255, 255, 255, 0.78);
  padding: 0.15em 0.5em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

body.world-scrolled .cards {
  transform: scale(0.5);
  filter: saturate(0.82);
}

body.world-scrolled .world-notice-panel {
  margin-top: 8px;
}

body::-webkit-scrollbar {
  width: 14px;
}

body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 9, 20, 0.88), rgba(21, 17, 38, 0.78));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 3px solid rgba(11, 10, 22, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 214, 255, 0.95), rgba(202, 138, 255, 0.92) 45%, rgba(112, 122, 255, 0.88));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(180, 116, 255, 0.28);
}

body::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 232, 255, 0.98), rgba(221, 160, 255, 0.96) 45%, rgba(126, 139, 255, 0.92));
}

body::-webkit-scrollbar-corner {
  background: transparent;
}

.world-notice-content::-webkit-scrollbar {
  width: 12px;
}

.world-notice-content::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.world-notice-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(33, 25, 52, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 243, 255, 0.96), rgba(238, 176, 255, 0.92) 48%, rgba(167, 185, 255, 0.88));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(173, 127, 255, 0.24);
}

.world-notice-content::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 250, 255, 1), rgba(245, 193, 255, 0.95) 48%, rgba(187, 201, 255, 0.92));
}

body.world-scrolled .card:hover {
  flex: 1 1 0;
  box-shadow: none;
}

body.world-scrolled .card:hover img {
  transform: none;
}

body.world-scrolled .card:hover .card-title {
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
}

body.world-scrolled .card:hover .card-desc {
  transform: translateY(100%);
}

body.world-scrolled .card:hover::after {
  opacity: 0;
}

@media (max-width: 900px) {
  body {
    padding: 24px 14px 72px;
  }

  .world-shell {
    gap: 0;
  }

  .world-hero {
    gap: 0;
  }
}

@media (max-width: 468px) {
  body {
    padding: 22px 12px 64px;
  }

  .cards-frame {
    width: min(620px, 100%);
  }

  .cards {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .card {
    flex: none;
    width: 100%;
    height: 192px;
  }

  .card:hover {
    flex: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  }

  .card::after {
    opacity: 1;
  }

  .card-desc {
    transform: translateY(0);
  }

  .card img {
    filter: grayscale(0%);
  }

  .world-notice-panel {
    margin-top: 6px;
    padding: 16px;
    border-radius: 18px;
    width: 100%;
  }

  .world-notice-content {
    max-height: 360px;
    padding-right: 8px;
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .site-footer {
    position: relative;
    margin-top: 12px;
    padding: 1.1rem 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent);
  }
}

@media (max-width: 468px) and (hover: none) {
  .card:active {
    flex: none;
  }

  .card:active img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards-frame,
  .cards,
  .card,
  .card img,
  .card-title,
  .card-desc,
  .card::after {
    transition: none;
  }
}
