:root {
  --bg: #06080f;
  --panel: #0f1627;
  --line: #ffffff1a;
  --text: #edf3ff;
  --sub: #b4c2dd;
  --cyan: #79d8ff;
  --violet: #8d80ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 460px at 95% -10%, #264a9985, transparent 60%),
    radial-gradient(760px 420px at 0% 110%, #3a1d8280, transparent 62%),
    #06080f;
  min-height: 100vh;
  overflow-x: hidden;
}
.desktop-only { display: none; }
.mobile-only { display: block; }
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: .12em;
  color: #d4e3ff;
  font-weight: 700;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.actions { display: flex; gap: 8px; }
.actions button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  color: #081325;
  background: linear-gradient(120deg, #79d8ff, #8d80ff);
  box-shadow: 0 8px 18px #79d8ff4a;
  border: 1px solid #b7dcff80;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px #79d8ff66;
  filter: brightness(1.04);
}
.m-wrap {
  width: min(100%, 460px);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.3vh, 12px);
  padding: calc(8px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
}
.m-hero {
  border-radius: 18px;
  background: linear-gradient(155deg, #111a2ccc, #0c1120d1);
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
  display: none;
}
.m-hero small { color: var(--sub); font-size: 11px; letter-spacing: .08em; }
.m-band {
  border-radius: 16px;
  background: #0e1627c4;
  padding: 8px;
  overflow: hidden;
  margin-bottom: 0;
}
.m-band h3 { font-size: 15px; color: #c6d5f1; letter-spacing: .08em; margin: 0 4px 4px; }
.m-track {
  width: max-content;
  display: flex;
  gap: 8px;
  animation: slide 28s linear infinite;
}
.m-featured-window {
  overflow: hidden;
  padding: 8px 0 12px;
}
.m-featured-track {
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.m-band[data-dir="reverse"] .m-track { animation-direction: reverse; }
.m-band[data-speed="fast"] .m-track { animation-duration: 20s; }
.m-card { overflow: hidden; background: #0a0f1a; box-shadow: 0 10px 22px #00000052; }
.m-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-a .m-card { width: clamp(90px, 24vw, 106px); height: clamp(116px, 32vw, 138px); border-radius: 12px; }
.m-a.featured .m-card {
  flex: 0 0 calc(100% - 28px);
  width: auto;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 14px;
  transform: scale(.72);
  opacity: .62;
  transition: transform .45s ease, opacity .45s ease;
}
.m-a.featured .m-card.is-center {
  transform: scale(1.06);
  opacity: 1;
  box-shadow: 0 22px 42px #00000082;
}
.m-a.featured .m-card.is-side {
  transform: scale(.78);
  opacity: .78;
}
.m-b .m-card { width: auto; height: clamp(104px, 30vw, 124px); border-radius: 14px; }
.m-b .m-card img { width: auto; height: 100%; object-fit: contain; }
.m-c .m-card { width: clamp(74px, 22vw, 90px); height: clamp(74px, 22vw, 90px); border-radius: 999px; }
.m-enter {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  color: #091324;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  box-shadow: 0 12px 26px #79d8ff33;
  animation: breathe 2s ease-in-out infinite;
  cursor: pointer;
  margin-top: 0;
}
.m-enter-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.m-enter-img-btn {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 22px #0000004f;
}
.m-enter-img-btn img {
  display: block;
  width: 100%;
  height: auto;
}
.m-enter-note {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 0 4px;
  text-align: center;
  color: var(--sub);
  font-size: 16px;
  letter-spacing: .08em;
}
.qr-desc {
  color: var(--sub);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: center;
}
.d-wrap { width: min(1240px, 92vw); margin: 0 auto; padding: 16px 0 24px; }
.d-topbar {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  background: #0d1321bf;
  margin-bottom: 12px;
}
.d-hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.d-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.d-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #091224d9 0%, #0b1326bf 45%, #0b132685 100%);
}
.d-slide.is-active { opacity: 1; }
.d-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  max-width: 58%;
}
.d-content h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; margin-bottom: 10px; }
.d-content p { color: var(--sub); line-height: 1.8; margin-bottom: 14px; }
.d-content h1,
.d-content p,
.d-content button {
  transition: opacity .25s ease;
}
.d-content button {
  border: none; border-radius: 12px; padding: 13px 20px; font-weight: 700;
  color: #081325; background: linear-gradient(120deg, var(--cyan), var(--violet));
  box-shadow: 0 14px 28px #79d8ff35; animation: breathe 2s ease-in-out infinite; cursor: pointer;
}
.d-grid { display: grid; grid-template-columns: 1fr 300px; gap: 12px; }
.d-main { display: grid; gap: 12px; }
.d-band {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0e1627c4;
  padding: 10px;
  overflow: hidden;
}
.d-band h3 { font-size: 16px; color: #cad8f3; letter-spacing: .08em; margin: 0 2px 6px; }
.d-track { width: max-content; display: flex; gap: 10px; animation: slide 30s linear infinite; }
.d-band[data-dir="reverse"] .d-track { animation-direction: reverse; }
.d-band[data-speed="fast"] .d-track { animation-duration: 22s; }
.d-card { overflow: hidden; background: #0a0f1a; box-shadow: 0 12px 24px #00000052; }
.d-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-a .d-card { width: 210px; height: 118px; border-radius: 12px; }
.d-b .d-card { width: 220px; height: 132px; border-radius: 14px; }
.qr-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f172abf;
  padding: 14px;
  position: sticky;
  top: 16px;
  text-align: center;
}
.qr-card h3 { text-align: center; }
.qr-shell { border-radius: 12px; padding: 10px; background: #0a0f1acc; display: grid; place-items: center; margin: 8px 0; }
.qr-shell img { width: 210px; height: 210px; border-radius: 8px; display: block; background: #fff; }
.qr-download-link {
  display: block;
  color: #9fd0ff;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
  word-break: break-all;
  text-decoration: none;
}
.qr-link {
  border: none; border-radius: 10px; padding: 11px 12px; width: 100%;
  color: #081325; font-weight: 700; background: linear-gradient(120deg, var(--cyan), var(--violet)); cursor: pointer;
}
.foot { text-align: center; color: #8ea1c6; font-size: 12px; padding: clamp(6px, 1.2vh, 12px) 0 8px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.02)} }
@media (min-width: 981px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

@media (max-width: 520px) {
  .brand-row {
    gap: 8px;
  }
  .brand {
    gap: 8px;
    font-size: 14px;
    letter-spacing: .09em;
    min-width: 0;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .actions button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .m-band {
    padding: 7px;
    margin-bottom: 9px;
  }
  .m-featured-window {
    padding: 6px 0 10px;
  }
}

@media (max-width: 390px) {
  .m-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
  .actions button {
    padding: 6px 9px;
    font-size: 10px;
  }
  .m-hero {
    padding: 12px;
  }
  .m-enter-img-row {
    gap: 8px;
  }
  .m-enter-note {
    font-size: 16px;
    letter-spacing: .06em;
  }
}

@media (max-height: 760px) {
  .m-wrap {
    gap: clamp(4px, 0.9vh, 8px);
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .m-band {
    padding: 6px;
  }
  .m-featured-window {
    padding: 4px 0 8px;
  }
  .m-b .m-card {
    height: clamp(88px, 24vw, 104px);
  }
  .m-c .m-card {
    width: clamp(60px, 18vw, 74px);
    height: clamp(60px, 18vw, 74px);
  }
  .m-enter-img-row {
    gap: 8px;
  }
  .m-enter-note {
    margin-top: 4px;
    font-size: clamp(12px, 2.8vw, 14px);
  }
}
