:root {
  --bg: #070b13;
  --panel: rgba(13, 20, 34, 0.86);
  --line: rgba(124, 189, 255, 0.18);
  --text: #eef7ff;
  --muted: #8ea6bf;
  --active: #36fff0;
  color-scheme: dark;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 18% 10%, rgba(54, 168, 255, 0.22), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(255, 90, 184, 0.14), transparent 30%),
    linear-gradient(180deg, #050812 0%, #08101d 48%, #060913 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.fun-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.sticky-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  align-self: start;
  background: rgba(5, 10, 20, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.topbar {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(430px, 1fr) minmax(130px, 180px);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4eee2;
  box-shadow:
    0 0 18px rgba(255, 64, 56, 0.34),
    0 0 28px rgba(255, 211, 90, 0.12);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.search-group {
  display: block;
  min-width: 0;
}

.top-region-select {
  height: 34px;
  width: 92px;
  flex: 0 0 92px;
  min-width: 0;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(116, 165, 220, 0.2);
  border-radius: 9px;
  color: rgba(216, 240, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(54, 168, 255, 0.07), rgba(180, 108, 255, 0.055)),
    rgba(7, 14, 26, 0.76);
  box-shadow: inset 0 0 12px rgba(54, 168, 255, 0.045);
  cursor: pointer;
  font-size: 14px;
  outline: none;
}

.top-region-select:focus {
  border-color: rgba(54, 255, 240, 0.36);
  box-shadow: 0 0 12px rgba(54, 255, 240, 0.1);
}

.category-band {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 7px clamp(18px, 4vw, 56px) 7px 0;
  background:
    linear-gradient(90deg, rgba(54, 168, 255, 0.08), rgba(180, 108, 255, 0.08)),
    rgba(6, 12, 22, 0.86);
  border-bottom: 1px solid var(--line);
}

.category-region {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  padding: 7px 7px 8px;
  border: 1px solid rgba(255, 196, 86, 0.42);
  border-left: 0;
  border-radius: 0 15px 15px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 217, 111, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(255, 155, 68, 0.2), rgba(114, 70, 255, 0.18) 52%, rgba(24, 190, 255, 0.16)),
    linear-gradient(180deg, rgba(31, 19, 43, 0.98), rgba(8, 16, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 194, 0.18),
    inset 0 -16px 28px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(255, 171, 69, 0.16);
}

.category-region::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #ffd86a;
  filter: drop-shadow(0 0 6px rgba(255, 216, 106, 0.76));
  pointer-events: none;
}

.category-region::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 31px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #ffd86a;
  filter: drop-shadow(0 0 6px rgba(255, 216, 106, 0.76));
  pointer-events: none;
}

.category-region-title {
  width: 4em;
  color: #ffd86a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(255, 216, 106, 0.62),
    0 0 14px rgba(180, 108, 255, 0.28);
}

.category-region-select {
  height: 30px;
  width: 5.7em;
  min-width: 0;
  padding: 0 12px 0 2px;
  border: 1px solid rgba(255, 216, 106, 0.34);
  border-radius: 9px;
  color: #fff1bd;
  background:
    linear-gradient(135deg, rgba(255, 184, 77, 0.2), rgba(180, 108, 255, 0.18)),
    #140d1f;
  box-shadow: inset 0 0 14px rgba(255, 184, 77, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  appearance: none;
  outline: none;
}

.category-region-select:focus {
  border-color: rgba(255, 216, 106, 0.74);
  box-shadow: 0 0 14px rgba(255, 184, 77, 0.22);
}

.search-shell {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(54, 168, 255, 0.28);
  border-radius: 12px;
  background: rgba(9, 18, 32, 0.92);
  box-shadow: inset 0 0 18px rgba(54, 168, 255, 0.1);
}

.search-icon {
  width: 17px;
  height: 17px;
  border: 2px solid #36a8ff;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: #36a8ff;
  transform: rotate(45deg);
  border-radius: 99px;
}

.search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-shell input::placeholder {
  color: #6f8aa5;
}

.search-button {
  height: 34px;
  min-width: 68px;
  border: 0;
  border-radius: 9px;
  color: #061016;
  background: linear-gradient(135deg, #36fff0, #36a8ff);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(54, 255, 240, 0.22);
}

.search-button:hover {
  filter: brightness(1.08);
}

.back-button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(180, 108, 255, 0.36);
  border-radius: 12px;
  color: #d9c7ff;
  background: rgba(17, 12, 30, 0.82);
  cursor: pointer;
}

.back-button:hover {
  color: #ffffff;
  border-color: rgba(180, 108, 255, 0.72);
  box-shadow: 0 0 16px rgba(180, 108, 255, 0.18);
}

.back-icon {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.category-button {
  min-height: 60px;
  border: 1px solid rgba(132, 170, 224, 0.28);
  border-radius: 14px;
  color: #eef7ff;
  background:
    radial-gradient(circle at 18% 14%, rgba(82, 137, 255, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(54, 168, 255, 0.16), transparent 30%),
    linear-gradient(315deg, rgba(180, 108, 255, 0.18), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.052) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(12, 20, 37, 0.99), rgba(4, 8, 18, 0.99));
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -24px 36px rgba(0, 0, 0, 0.42),
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(16, 32, 62, 0.38);
}

.category-button:hover {
  color: #ffffff;
  border-color: rgba(150, 204, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -22px 34px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(54, 168, 255, 0.2);
}

.category-button.is-active {
  color: #061016;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 88%, white), var(--cat-color));
  border-color: color-mix(in srgb, var(--cat-color) 78%, white);
  box-shadow:
    0 0 22px color-mix(in srgb, var(--cat-color) 34%, transparent),
    inset 0 0 18px rgba(255, 255, 255, 0.22);
}

.subcat-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-height: 62px;
  padding: 10px clamp(18px, 4vw, 56px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--active) 10%, transparent), transparent 48%),
    rgba(8, 15, 27, 0.9);
}

.subcat-row[data-category="food"] {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: repeat(2, 34px);
  align-content: center;
  gap: 6px 6px;
  min-height: 94px;
  overflow-x: hidden;
}

.subcat-line {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
}

.subcat-all-stacked {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 38px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  line-height: 1;
}

.subcat-all-stacked span {
  display: block;
}

.subcat-row[data-category="food"] .subcat-chip {
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
}

.subcat-row[data-category="food"] .subcat-all-stacked {
  height: 74px;
  padding: 0;
  font-size: 14px;
}

.subcat-chip {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--active) 28%, rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  color: var(--active);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active) 12%, transparent), rgba(255, 255, 255, 0.035));
  cursor: pointer;
  white-space: nowrap;
}

.subcat-all {
  border-width: 2px;
  font-weight: 900;
  padding-inline: 16px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--active) 24%, transparent),
    0 0 12px color-mix(in srgb, var(--active) 14%, transparent);
}

.subcat-main {
  font-size: 1em;
}

.subcat-suffix {
  display: inline-block;
  margin-left: 1px;
  font-size: 0.38em;
  opacity: 0.7;
  transform: translateY(1px);
  transform-origin: left bottom;
}

.route-suffix {
  margin-left: 2px;
  font-size: 0.25em;
  opacity: 0.75;
}

.subcat-chip:hover {
  color: var(--active);
  border-color: color-mix(in srgb, var(--active) 68%, white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active) 18%, transparent), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 14px color-mix(in srgb, var(--active) 22%, transparent);
}

.subcat-chip.is-active,
.subcat-row[data-category="food"] .subcat-chip.is-active {
  color: #061016;
  border-color: color-mix(in srgb, var(--active) 76%, white);
  background: var(--active);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active) 32%, transparent),
    inset 0 0 14px rgba(255, 255, 255, 0.2);
}

.subcat-chip.is-active .subcat-main,
.subcat-chip.is-active .subcat-suffix {
  color: #061016;
}

.content-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    "feature quick"
    "grid grid";
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px) 36px;
  align-content: start;
}

.feature-band {
  grid-area: feature;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.daily-side-title {
  display: grid;
  place-items: center;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  border: 1px solid color-mix(in srgb, var(--active) 34%, rgba(255, 255, 255, 0.08));
  border-radius: 15px;
  color: var(--active);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--active) 16%, transparent), rgba(255, 255, 255, 0.035)),
    rgba(5, 12, 23, 0.74);
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--active) 12%, transparent),
    0 0 18px color-mix(in srgb, var(--active) 10%, transparent);
}

.daily-side-title span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 12px color-mix(in srgb, var(--active) 48%, transparent);
}

.feature-kicker {
  margin: 0;
  color: var(--active);
  font-size: 15px;
  font-weight: 800;
}

.daily-carousel-rail {
  --daily-card-width: 304px;
  --daily-card-height: 171px;
  position: relative;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  height: var(--daily-card-height);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--active) 24%, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background: #07101d;
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.24);
}

.daily-track {
  height: 100%;
  display: flex;
  width: max-content;
  animation: dailyRailMoveLeft 15s linear infinite;
}

.daily-card {
  position: relative;
  flex: 0 0 var(--daily-card-width);
  width: var(--daily-card-width);
  height: var(--daily-card-height);
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--active) 18%, rgba(255, 255, 255, 0.06));
}

.daily-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 18, 0.04), rgba(4, 8, 18, 0.8)),
    var(--daily-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: dailyPhotoDrift 15s ease-in-out infinite;
}

.daily-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: block;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(4, 8, 18, 0.54);
  backdrop-filter: blur(8px);
}

.daily-caption strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  color: #061016;
  background: var(--active);
  text-decoration: none;
  font-weight: 800;
}

.action-link.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.quick-panel {
  grid-area: quick;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  align-self: stretch;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--active) 18%, transparent), transparent 34%),
    rgba(12, 18, 31, 0.92);
}

.quick-title {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.15;
}

.live-scope {
  color: var(--active);
  text-shadow: 0 0 14px color-mix(in srgb, var(--active) 46%, transparent);
}

.live-count-box {
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--active) 20%, rgba(255, 255, 255, 0.06));
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active) 28%, transparent), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.live-count {
  color: var(--active);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--active) 44%, transparent);
}

.live-count-label {
  color: #b8c9da;
  font-size: 12px;
}

.live-panel-actions {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.live-panel-actions .action-link {
  width: 100%;
  height: 36px;
  border-radius: 9px;
  font-size: 14px;
}

@keyframes dailyRailMoveLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(var(--daily-card-width) * -3));
  }
}

@keyframes dailyPhotoDrift {
  0% {
    transform: scale(1.04) translateX(0);
  }

  50% {
    transform: scale(1.08) translateX(-1.2%);
  }

  100% {
    transform: scale(1.04) translateX(0);
  }
}

.quick-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-item:last-child {
  border-bottom: 0;
}

.quick-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--active);
}

.quick-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.guide-grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(9, 16, 28, 0.92);
}

.guide-card:hover {
  border-color: rgba(54, 255, 240, 0.26);
  box-shadow: 0 0 24px rgba(54, 255, 240, 0.1);
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.guide-card h3 {
  margin: 14px 0 9px;
  font-size: 20px;
  line-height: 1.3;
}

.guide-card p {
  margin: 0;
  color: #a9bcce;
  line-height: 1.65;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.guide-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--active);
  background: rgba(54, 255, 240, 0.08);
  font-size: 12px;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .search-group {
    display: block;
  }

  .top-region-select {
    width: 82px;
    flex-basis: 82px;
  }

  .category-band {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 7px 18px 7px 0;
  }

  .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "quick"
      "grid";
    padding: 18px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

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