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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #f5e6c8;
  background: #0a0608;
}

[hidden],
.is-hidden {
  display: none !important;
}

/* ── 背景 ── */
.lux-nav {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.lux-nav-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(120, 53, 15, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(60, 20, 10, 0.6), transparent 50%),
    linear-gradient(180deg, #120a0c 0%, #1a0e12 35%, #0d080a 100%);
  pointer-events: none;
}

.lux-nav-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 168, 83, 0.15) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.12) 0, transparent 35%),
    repeating-linear-gradient(
      45deg,
      #d4a853 0,
      #d4a853 1px,
      transparent 1px,
      transparent 14px
    );
}

.lux-nav-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.lux-nav-bg-glow--top {
  width: 320px;
  height: 200px;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 168, 83, 0.2);
}

.lux-nav-bg-glow--bottom {
  width: 280px;
  height: 180px;
  bottom: -40px;
  right: -40px;
  background: rgba(139, 69, 19, 0.25);
}

/* ── 布局 ── */
.lux-nav-frame {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 10px 24px;
  display: flex;
  flex-direction: column;
}

/* ── 头部 ── */
.lux-nav-header {
  text-align: center;
  padding: 8px 0 24px;
}

.lux-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(212, 168, 83, 0.55);
  margin-bottom: 14px;
}

.lux-nav-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lux-nav-divider::before,
.lux-nav-divider::after {
  content: "";
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a853, transparent);
}

.lux-nav-divider span {
  width: 6px;
  height: 6px;
  background: #d4a853;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.8);
}

.lux-nav-title {
  font-size: clamp(34px, 9vw, 42px);
  font-weight: 900;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  line-height: 1.15;
  background: linear-gradient(
    180deg,
    #fff8e7 0%,
    #f5e6b8 28%,
    #d4a853 55%,
    #b8862b 78%,
    #f5e6b8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 24px rgba(212, 168, 83, 0.25);
  animation: lux-title-shine 4s ease-in-out infinite;
}

@keyframes lux-title-shine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.lux-nav-lottery {
  margin: 0 auto 18px;
  display: inline-block;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5e6b8;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.18), rgba(90, 55, 20, 0.35));
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 231, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.lux-nav-lottery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 248, 231, 0.18) 50%,
    transparent 65%
  );
  animation: lux-badge-shine 3s ease-in-out infinite;
}

@keyframes lux-badge-shine {
  0%,
  100% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(120%);
  }
}

/* ── 主面板 ── */
.lux-nav-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 10px;
  background: linear-gradient(
    165deg,
    rgba(35, 18, 22, 0.95) 0%,
    rgba(22, 12, 14, 0.98) 50%,
    rgba(18, 10, 12, 0.99) 100%
  );
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 168, 83, 0.08);
  overflow: hidden;
}

.lux-nav-panel-shine {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212, 168, 83, 0.55),
    rgba(212, 168, 83, 0.05) 35%,
    rgba(245, 230, 200, 0.35) 50%,
    rgba(212, 168, 83, 0.05) 65%,
    rgba(212, 168, 83, 0.45)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: lux-panel-border 5s linear infinite;
  opacity: 0.65;
}

@keyframes lux-panel-border {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(8deg) brightness(1.15);
  }
  100% {
    filter: hue-rotate(0deg) brightness(1);
  }
}

.lux-nav-panel-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 83, 0.08), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.06), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.06), transparent 40%);
  pointer-events: none;
}

.lux-nav-panel > .lux-nav-list,
.lux-nav-panel > .lux-nav-state {
  position: relative;
  z-index: 1;
}

.lux-nav-panel-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #d4a853;
  border-style: solid;
  opacity: 0.85;
}

.lux-nav-panel-corner--tl {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}

.lux-nav-panel-corner--tr {
  top: 6px;
  right: 6px;
  border-width: 2px 2px 0 0;
}

.lux-nav-panel-corner--bl {
  bottom: 6px;
  left: 6px;
  border-width: 0 0 2px 2px;
}

.lux-nav-panel-corner--br {
  bottom: 6px;
  right: 6px;
  border-width: 0 2px 2px 0;
}

/* ── 状态 ── */
.lux-nav-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 12px;
  text-align: center;
}

.lux-nav-state--loading p {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(245, 230, 200, 0.55);
}

.lux-nav-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 83, 0.15);
  border-top-color: #d4a853;
  border-right-color: #f5e6b8;
  animation: lux-spin 0.9s linear infinite;
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.25);
}

@keyframes lux-spin {
  to {
    transform: rotate(360deg);
  }
}

.lux-nav-state--error {
  border: 1px solid rgba(220, 80, 80, 0.4);
  border-radius: 4px;
  background: rgba(80, 20, 20, 0.35);
}

.lux-nav-state--error p {
  font-size: 14px;
  color: #fecaca;
  line-height: 1.55;
}

.lux-nav-retry {
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #1a0e12;
  background: linear-gradient(180deg, #f5e6b8, #d4a853, #9a6b2f);
  border: 1px solid #f5e6b8;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}

/* ── 站点列表 ── */
.lux-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.lux-nav-item {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 20px 10px 20px 12px;
  --lux-circle-size: 38px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(
    135deg,
    rgba(55, 32, 38, 0.92) 0%,
    rgba(28, 14, 18, 0.96) 55%,
    rgba(22, 10, 14, 0.98) 100%
  );
  border: 1px solid rgba(212, 168, 83, 0.32);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 248, 231, 0.06);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  animation: lux-item-in 0.55s ease backwards;
}

.lux-nav-item:nth-child(1) {
  animation-delay: 0.06s;
}

.lux-nav-item:nth-child(2) {
  animation-delay: 0.14s;
}

.lux-nav-item:nth-child(3) {
  animation-delay: 0.22s;
}

@keyframes lux-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lux-nav-item-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, var(--lux-glow), transparent 55%),
    linear-gradient(90deg, rgba(212, 168, 83, 0.04) 0%, transparent 40%);
  pointer-events: none;
  opacity: 0.9;
}

.lux-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--lux-accent), var(--lux-accent-dim));
  box-shadow: 0 0 12px var(--lux-glow-strong);
}

.lux-nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 248, 231, 0.09) 50%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.lux-nav-item:active {
  transform: scale(0.985);
}

@media (hover: hover) {
  .lux-nav-item:hover {
    border-color: rgba(245, 230, 200, 0.6);
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.5),
      0 0 28px var(--lux-glow-strong),
      inset 0 1px 0 rgba(255, 248, 231, 0.1);
    transform: translateY(-3px);
  }

  .lux-nav-item:hover::after {
    transform: translateX(110%);
  }

  .lux-nav-item:hover .lux-nav-item-enter {
    box-shadow:
      0 6px 20px rgba(212, 168, 83, 0.55),
      0 0 20px rgba(245, 230, 200, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transform: scale(1.08);
  }

  .lux-nav-item:hover .lux-nav-item-enter svg {
    transform: translateX(2px);
  }
}

.lux-nav-item--yima {
  --lux-accent: #fde68a;
  --lux-accent-dim: #eab308;
  --lux-glow: rgba(234, 179, 8, 0.22);
  --lux-glow-strong: rgba(234, 179, 8, 0.35);
}

.lux-nav-item--qdd {
  --lux-accent: #6ee7b7;
  --lux-accent-dim: #059669;
  --lux-glow: rgba(5, 150, 105, 0.22);
  --lux-glow-strong: rgba(5, 150, 105, 0.35);
}

.lux-nav-item--wufu {
  --lux-accent: #fca5a5;
  --lux-accent-dim: #dc2626;
  --lux-glow: rgba(220, 38, 38, 0.22);
  --lux-glow-strong: rgba(220, 38, 38, 0.35);
}

.lux-nav-item-rank-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: var(--lux-circle-size);
  height: var(--lux-circle-size);
  min-width: var(--lux-circle-size);
  min-height: var(--lux-circle-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.55);
  background:
    radial-gradient(circle at 35% 30%, rgba(245, 230, 200, 0.18), transparent 50%),
    linear-gradient(145deg, rgba(60, 35, 40, 0.95), rgba(25, 12, 16, 0.98));
  box-shadow:
    0 0 14px rgba(212, 168, 83, 0.2),
    inset 0 1px 0 rgba(255, 248, 231, 0.12);
}

.lux-nav-item-rank {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff8e7, #f5e6b8 40%, #d4a853);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lux-nav-item-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.lux-nav-item-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  white-space: nowrap;
  transform-origin: left center;
}

.lux-nav-item-title-lottery {
  position: relative;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  background: linear-gradient(
    100deg,
    #fffef8 0%,
    #fff8e7 18%,
    var(--lux-accent) 42%,
    #f5e6b8 62%,
    #d4a853 82%,
    #fff8e7 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px var(--lux-glow-strong))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: lux-site-shine 5s ease-in-out infinite;
}

.lux-nav-item-title-lottery::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lux-accent) 30%,
    rgba(212, 168, 83, 0.9) 50%,
    var(--lux-accent) 70%,
    transparent
  );
  opacity: 0.75;
}

.lux-nav-item-title-sep {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(212, 168, 83, 0.35) 20%,
    rgba(212, 168, 83, 0.95) 50%,
    rgba(212, 168, 83, 0.35) 80%,
    transparent
  );
  box-shadow: 0 0 6px rgba(212, 168, 83, 0.5);
}

.lux-nav-item-title-site {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  background: linear-gradient(
    100deg,
    #fffef8 0%,
    #fff8e7 18%,
    var(--lux-accent) 42%,
    #f5e6b8 62%,
    #d4a853 82%,
    #fff8e7 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px var(--lux-glow-strong))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: lux-site-shine 5s ease-in-out infinite;
}

.lux-nav-item-title-site::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lux-accent) 30%,
    rgba(212, 168, 83, 0.9) 50%,
    var(--lux-accent) 70%,
    transparent
  );
  opacity: 0.75;
}

@keyframes lux-site-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.lux-nav-item-title--single {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(
    95deg,
    #fffef8 0%,
    #f5e6b8 35%,
    #d4a853 70%,
    #fff8e7 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.35));
}

.lux-nav-item-enter {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: center;
  width: var(--lux-circle-size);
  height: var(--lux-circle-size);
  min-width: var(--lux-circle-size);
  min-height: var(--lux-circle-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2a1810;
  background: linear-gradient(
    165deg,
    #fffef8 0%,
    #f5e6b8 30%,
    #e8c872 55%,
    #d4a853 80%,
    #c49a3c 100%
  );
  border: 1px solid rgba(255, 248, 231, 0.55);
  box-shadow:
    0 4px 14px rgba(212, 168, 83, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(154, 107, 47, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.lux-nav-item-enter svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.25s ease;
}

/* ── 页脚 ── */
.lux-nav-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 4px;
}

.lux-nav-footer-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.4), transparent);
}

.lux-nav-footer-text {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(212, 168, 83, 0.4);
}

@media (min-width: 480px) {
  .lux-nav-frame {
    padding: 36px 14px 28px;
  }

  .lux-nav-panel {
    padding: 24px 10px;
  }

  .lux-nav-item {
    padding: 18px 16px;
  }
}
