:root {
  --ink: #0b1218;
  --fog: rgba(232, 240, 236, 0.88);
  --mute: rgba(176, 198, 188, 0.58);
  --line: rgba(180, 210, 190, 0.22);
  --jade: #5ec4a0;
  --jade-deep: #2f8f72;
  --gold: #c9a45c;
  --petal: #ffd6dc;
  --ember: #3aa888;
  --ember-deep: #1f6f58;
  --accent: #c9a45c;
  --font-display: "Ma Shan Zheng", "Noto Serif SC", serif;
  --font-title: "Noto Serif SC", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: #eef6f2;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

.stage {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

.stage > :not(.sky) {
  position: relative;
  z-index: 1;
}

/* —— 仙侠背景 —— */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 78% 18%, rgba(255, 236, 200, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 20% 70%, rgba(60, 120, 100, 0.18), transparent 60%),
    linear-gradient(180deg, #0a1520 0%, #132433 38%, #1a2c34 62%, #0e1a22 100%);
}

.sky__moon {
  position: absolute;
  top: 9%;
  right: 14%;
  width: min(140px, 22vw);
  height: min(140px, 22vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8e8 0%, #f0e0b8 45%, #c8b48a 100%);
  box-shadow:
    0 0 40px rgba(255, 240, 200, 0.35),
    0 0 100px rgba(255, 220, 160, 0.18);
  opacity: 0.85;
}

.sky__mist {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 35%;
  filter: blur(28px);
  opacity: 0.45;
  animation: mist-drift 28s ease-in-out infinite alternate;
}

.sky__mist--a {
  top: 28%;
  background: radial-gradient(ellipse at center, rgba(200, 220, 210, 0.35), transparent 70%);
}

.sky__mist--b {
  top: 52%;
  opacity: 0.35;
  animation-duration: 36s;
  animation-direction: alternate-reverse;
  background: radial-gradient(ellipse at 40% 50%, rgba(160, 200, 180, 0.3), transparent 68%);
}

.sky__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background:
    linear-gradient(175deg, transparent 0%, transparent 35%, rgba(8, 18, 24, 0.95) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23101c26' d='M0,224L80,208C160,192,320,160,480,165.3C640,171,800,213,960,218.7C1120,224,1280,192,1360,176L1440,160L1440,320L0,320Z'/%3E%3Cpath fill='%230c1720' fill-opacity='0.92' d='M0,256L120,240C240,224,480,192,720,197.3C960,203,1200,245,1320,266.7L1440,288L1440,320L0,320Z'/%3E%3C/svg%3E")
      bottom / 100% 100% no-repeat;
}

.sky__fog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(14, 28, 34, 0.75));
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
}

@keyframes mist-drift {
  from { transform: translateX(-3%); }
  to { transform: translateX(4%); }
}

.top {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: rise 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(201, 164, 92, 0.28);
}

.top__links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--mute);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 22px 96px;
}

.hero {
  padding: 28px 0 22px;
  animation: rise 0.85s 0.05s ease both;
}

.eyebrow {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow: 0 0 28px rgba(201, 164, 92, 0.25);
}

.lede {
  margin-top: 14px;
  color: var(--fog);
  line-height: 1.7;
  font-size: 1.02rem;
}

.panel {
  margin-top: 8px;
  padding: 26px 24px;
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(18, 34, 40, 0.82), rgba(10, 20, 26, 0.78));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rise 0.85s 0.12s ease both;
}

.panel--notice {
  gap: 18px;
  text-align: center;
  padding: 28px 22px 32px;
}

.hero .lede strong {
  color: var(--gold);
  font-weight: 700;
}

.notice-callout {
  color: #fff8e8;
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  background: rgba(201, 164, 92, 0.12);
}

.shortlist {
  list-style: none;
  counter-reset: item;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.shortlist li {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(180, 210, 190, 0.18);
  background: rgba(6, 14, 18, 0.45);
  color: #eef6f2;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.shortlist li::before {
  content: counter(item) ". ";
  counter-increment: item;
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 420px) {
  .shortlist {
    grid-template-columns: 1fr;
  }
}

.panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--fog);
}

.panel label span em {
  color: var(--gold);
  font-style: normal;
}

.panel input,
.panel select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(180, 210, 190, 0.2);
  background: rgba(6, 14, 18, 0.55);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.panel select option {
  background: #132028;
  color: #eef6f2;
}

.panel input:focus,
.panel select:focus {
  border-color: rgba(94, 196, 160, 0.65);
  box-shadow: 0 0 0 3px rgba(94, 196, 160, 0.15);
}

.hint {
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.55;
}

.btn-submit {
  margin-top: 4px;
  padding: 13px 18px;
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--jade), var(--jade-deep));
  color: #f4fffa;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(47, 143, 114, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(47, 143, 114, 0.4);
}

.btn-submit:disabled { opacity: 0.55; cursor: wait; }

.msg {
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
}

.msg.ok {
  background: rgba(94, 196, 160, 0.12);
  color: #9aefc8;
  border: 1px solid rgba(94, 196, 160, 0.3);
}

.msg.err {
  background: rgba(220, 90, 90, 0.1);
  color: #ffb4b4;
  border: 1px solid rgba(220, 90, 90, 0.28);
}

/* 音乐按钮 */
.bgm-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  border-radius: 999px;
  background: rgba(12, 22, 28, 0.82);
  color: #f0e6c8;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, background 0.2s;
}

.bgm-btn:hover {
  border-color: var(--gold);
}

.bgm-btn.is-on {
  border-color: rgba(94, 196, 160, 0.55);
  color: #c8f5e0;
}

.bgm-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .panel { padding: 20px 16px; }
  .sky__moon { right: 8%; top: 7%; }
  .bgm-btn { right: 12px; bottom: 12px; }
}
