:root {
  --bg: #050507;
  --panel: rgba(12, 14, 18, 0.78);
  --panel-strong: rgba(18, 18, 22, 0.94);
  --gold: #ffd35a;
  --orange: #ff7a24;
  --red: #ef2e2e;
  --cyan: #61e8ff;
  --text: #fff7e7;
  --muted: rgba(255, 247, 231, 0.68);
  --line: rgba(255, 211, 90, 0.22);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 12%, rgba(239, 46, 46, 0.26), transparent 34rem),
    radial-gradient(circle at 17% 14%, rgba(97, 232, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #131820 0%, #050507 44%, #050507 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
}

button,
a {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(3, 3, 4, 0.88), rgba(3, 3, 4, 0.08));
  backdrop-filter: blur(10px);
}

.brand img {
  width: clamp(128px, 14vw, 210px);
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 15px;
  color: rgba(255, 247, 231, 0.8);
  letter-spacing: 0.06em;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(18px, 5vw, 84px) 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/hero-bg.png");
  background-position: center center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.32) 38%, rgba(0, 0, 0, 0.08) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.08) 46%, #050507 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  animation: rise 0.7s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-logo {
  width: min(440px, 76vw);
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.72));
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 247, 231, 0.82);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.signature {
  margin: 16px 0 0;
  color: var(--gold);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

button {
  border: 0;
  cursor: pointer;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.join-actions button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #ffd35a, #ff7624 54%, #ef2e2e);
  color: #1c0b02;
  box-shadow: 0 16px 36px rgba(239, 46, 46, 0.34);
}

.secondary-btn,
.join-actions button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.ghost-btn {
  background: rgba(5, 5, 7, 0.58);
  border: 1px solid rgba(97, 232, 255, 0.34);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.join-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.server-card {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 84px);
  bottom: 92px;
  width: min(340px, calc(100% - 36px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(8, 10, 12, 0.74), rgba(22, 16, 8, 0.84));
  box-shadow: var(--shadow);
}

.server-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.server-card strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 28px;
}

.server-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.content-band {
  position: relative;
  padding: 34px clamp(18px, 5vw, 84px) 68px;
  background:
    linear-gradient(180deg, #050507, #09090b 42%, #050507),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 12px);
}

.content-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(255, 211, 90, 0.08), transparent 28rem);
}

.panel,
.join-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.news-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 30px;
  padding: clamp(24px, 4vw, 42px);
}

.news-panel h2,
.join-panel h2,
.feature-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list article {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.news-list time {
  color: var(--gold);
  font-weight: 800;
}

.news-list h3 {
  margin: 8px 0;
}

.news-list p,
.feature-card p,
.join-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  width: min(1180px, 100%);
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(21, 24, 30, 0.92), rgba(10, 10, 12, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(239, 46, 46, 0.25), transparent 15rem);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 211, 90, 0.08);
  border-radius: 999px;
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 54px;
  border-radius: 16px;
  background: rgba(255, 211, 90, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.feature-card h2 {
  margin-bottom: 12px;
}

.join-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(110deg, rgba(239, 46, 46, 0.16), transparent 48%),
    var(--panel-strong);
}

.join-panel > div:first-child {
  max-width: 620px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 84px);
  background: #030304;
  color: rgba(255, 247, 231, 0.56);
  font-size: 14px;
}

.music-player {
  position: fixed;
  z-index: 40;
  left: 18px;
  bottom: 18px;
  width: min(390px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 211, 90, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(10, 11, 14, 0.9), rgba(24, 16, 9, 0.86)),
    rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.music-player.is-hidden {
  display: none;
}

.music-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.music-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(239, 46, 46, 0.9);
}

.music-player.is-playing .music-dot {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 211, 90, 0.9);
}

.music-meta strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.music-meta small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.music-controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.music-controls button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.music-controls button:hover {
  border-color: rgba(255, 211, 90, 0.5);
}

.music-close-btn {
  color: rgba(255, 247, 231, 0.72) !important;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  color: var(--muted);
  font-size: 12px;
}

.volume-control input {
  width: 100%;
  accent-color: var(--gold);
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 211, 90, 0.12), transparent 20rem),
    #0b0c10;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.modal-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.modal-body-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.modal-body-card strong {
  display: block;
  color: var(--gold);
  font-size: 25px;
  word-break: break-all;
}

.modal-body-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #190b02;
  font-weight: 900;
}

.qr-image {
  display: block;
  width: min(360px, 100%);
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .brand img {
    width: 142px;
  }

  .hero {
    min-height: 720px;
    align-items: end;
    padding: 120px 18px 50px;
  }

  .hero-bg {
    background-position: 62% top;
    transform: scale(1.04);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.88) 78%, #050507 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.04) 52%, rgba(0, 0, 0, 0.2));
  }

  .hero-content {
    width: 100%;
  }

  .hero-logo {
    width: min(300px, 82vw);
    margin-bottom: 10px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

  .hero-copy {
    max-width: 360px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .signature {
    margin-top: 10px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .join-actions button {
    min-height: 46px;
    padding: 0 18px;
  }

  .server-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
  }

  .server-card strong {
    font-size: 22px;
  }

  .server-card p {
    font-size: 14px;
  }

  .news-panel,
  .feature-grid,
  .join-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    display: grid;
    gap: 12px;
  }

  .content-band {
    padding: 22px 14px 44px;
  }

  .panel,
  .join-panel {
    border-radius: 22px;
  }

  .news-panel,
  .join-panel {
    padding: 22px;
  }

  .news-panel h2,
  .join-panel h2,
  .feature-card h2 {
    font-size: 28px;
  }

  .news-list article {
    padding: 15px;
    border-radius: 16px;
  }

  .feature-card {
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
  }

  .feature-card span {
    width: 40px;
    height: 40px;
    margin-bottom: 34px;
    border-radius: 13px;
  }

  .join-actions {
    margin-top: 22px;
  }

  .join-panel {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 690px;
    padding-bottom: 38px;
  }

  .hero-bg {
    background-size: auto 500px;
    background-repeat: no-repeat;
    background-position: 64% 48px;
  }

  .hero-content {
    padding-top: 250px;
  }

  .hero-actions,
  .join-actions {
    display: grid;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .join-actions button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding: 22px 16px;
    font-size: 13px;
  }

  .music-player {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 12px;
    border-radius: 18px;
  }

  .music-controls {
    grid-template-columns: 1fr 1fr;
  }

  .volume-control {
    grid-column: 1 / -1;
    order: -1;
  }

  .modal {
    padding: 12px;
    align-items: end;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
    border-radius: 24px;
  }

  .modal-card h2 {
    font-size: 25px;
    padding-right: 38px;
  }

  .qr-image {
    width: min(300px, 100%);
  }
}
