/* XiaoHua Music — enterprise download page */
:root {
  --dl-bg: #050505;
  --dl-elevated: #0e0e10;
  --dl-card: #161618;
  --dl-border: rgba(255, 255, 255, 0.08);
  --dl-text: #ffffff;
  --dl-muted: #a1a1aa;
  --dl-brand: #e11d48;
  --dl-brand-hot: #fb7185;
  --dl-brand-deep: #9f1239;
  --dl-font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --dl-nav-h: 72px;
  --dl-radius: 20px;
  --dl-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.xhy-download {
  font-family: var(--dl-font);
  background: var(--dl-bg);
  color: var(--dl-text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.dl-container {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

/* Nav */
.dl-nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--dl-nav-h);
  z-index: 100;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--dl-border);
  transition: background 0.3s;
}
.dl-nav.is-scrolled { background: rgba(5, 5, 5, 0.94); }

.dl-nav-inner {
  width: min(100% - 32px, 1120px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.dl-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.dl-nav-links {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.dl-nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.dl-nav-links a:hover { color: #fff; }

.dl-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--dl-brand);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.dl-nav-cta:hover {
  background: var(--dl-brand-hot);
  transform: translateY(-1px);
}

/* Hero */
.dl-hero {
  position: relative;
  padding: calc(var(--dl-nav-h) + 72px) 20px 80px;
  overflow: hidden;
  text-align: center;
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.dl-orb-a {
  width: min(560px, 55vw);
  height: min(560px, 55vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.55), transparent 70%);
  animation: dlFloatA 16s ease-in-out infinite;
}
.dl-orb-b {
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  bottom: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.32), transparent 70%);
  animation: dlFloatB 20s ease-in-out infinite;
}
.dl-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes dlFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 7%) scale(1.05); }
}
@keyframes dlFloatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(7%, -6%); }
}

.dl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.dl-logo-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.25);
  animation: dlRise 0.8s ease both;
}
.dl-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.dl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dl-brand-hot);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: dlRise 0.85s ease 0.04s both;
}
.dl-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: dlPulse 1.8s ease infinite;
}

@keyframes dlPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dl-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: dlRise 0.9s ease 0.08s both;
}
.dl-hero h1 span {
  background: linear-gradient(105deg, #fff 8%, #fb7185 55%, #fda4af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.dl-lead {
  color: var(--dl-muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
  margin: 0 auto 28px;
  animation: dlRise 0.95s ease 0.12s both;
}

.dl-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin: 0 auto 28px;
  animation: dlRise 1s ease 0.14s both;
}
.dl-eq span {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--dl-brand-hot), var(--dl-brand));
  animation: dlEq 1.1s ease-in-out infinite;
}
.dl-eq span:nth-child(1) { height: 28%; animation-delay: 0s; }
.dl-eq span:nth-child(2) { height: 55%; animation-delay: 0.12s; }
.dl-eq span:nth-child(3) { height: 90%; animation-delay: 0.22s; }
.dl-eq span:nth-child(4) { height: 42%; animation-delay: 0.08s; }
.dl-eq span:nth-child(5) { height: 70%; animation-delay: 0.28s; }
.dl-eq span:nth-child(6) { height: 35%; animation-delay: 0.16s; }
.dl-eq span:nth-child(7) { height: 80%; animation-delay: 0.05s; }

@keyframes dlEq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: dlRise 1s ease 0.18s both;
}

/* Spotify-style pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-solid {
  background: var(--dl-brand);
  color: #fff;
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.38);
}
.btn-solid:hover {
  background: var(--dl-brand-hot);
  transform: translateY(-2px) scale(1.01);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
  transform: translateY(-2px);
}
.btn.disabled,
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}
.btn-icon svg { width: 18px; height: 18px; fill: currentColor; }

.dl-meta {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  animation: dlRise 1s ease 0.22s both;
}

@keyframes dlRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.dl-marquee {
  position: relative;
  padding: 28px 0 40px;
  overflow: hidden;
  border-top: 1px solid var(--dl-border);
  border-bottom: 1px solid var(--dl-border);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.06), transparent);
}
.dl-marquee::before,
.dl-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.dl-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--dl-bg), transparent);
}
.dl-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--dl-bg), transparent);
}
.dl-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: dlScroll 38s linear infinite;
}
.dl-track:hover { animation-play-state: paused; }
.dl-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--dl-card);
  border: 1px solid var(--dl-border);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.dl-chip i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fb7185, #e11d48);
}
.dl-chip:nth-child(3n) i { background: linear-gradient(135deg, #fda4af, #be123c); }
.dl-chip:nth-child(4n) i { background: linear-gradient(135deg, #f43f5e, #881337); }

@keyframes dlScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.dl-section {
  padding: 88px 0;
}
.dl-section.alt {
  background: var(--dl-elevated);
}
.dl-kicker {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dl-brand-hot);
  margin-bottom: 12px;
}
.dl-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.dl-sub {
  text-align: center;
  color: var(--dl-muted);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 48px;
}

/* Download card */
.dl-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--dl-card);
  border: 1px solid var(--dl-border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--dl-shadow);
  position: relative;
  overflow: hidden;
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dl-brand-hot), transparent);
}
.dl-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dl-border);
}
.dl-platform {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dl-platform svg { width: 28px; height: 28px; fill: var(--dl-brand-hot); }
.dl-card-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.dl-card-head p {
  font-size: 13px;
  color: var(--dl-muted);
}
.dl-card .btn { width: 100%; }
.dl-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--dl-muted);
}

.dl-specs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dl-spec {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dl-border);
  text-align: center;
}
.dl-spec strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}
.dl-spec span {
  font-size: 12px;
  color: var(--dl-muted);
}

/* Features */
.dl-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-feat {
  padding: 28px 22px;
  border-radius: var(--dl-radius);
  background: var(--dl-card);
  border: 1px solid var(--dl-border);
  transition: transform 0.25s, border-color 0.25s;
}
.dl-feat:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 113, 133, 0.35);
}
.dl-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.28), rgba(251, 113, 133, 0.1));
  color: var(--dl-brand-hot);
  font-size: 18px;
  font-weight: 700;
}
.dl-feat h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dl-feat p {
  font-size: 14px;
  color: var(--dl-muted);
  line-height: 1.6;
}

/* Showcase / vinyl */
.dl-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.dl-showcase-copy h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.dl-showcase-copy p {
  color: var(--dl-muted);
  font-size: 16px;
  margin-bottom: 22px;
  max-width: 440px;
}
.dl-checklist { display: flex; flex-direction: column; gap: 12px; }
.dl-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.dl-checklist li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.dl-visual {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0c1220 0%, #1e293b 45%, #3f0d1f 100%);
  border: 1px solid var(--dl-border);
  overflow: hidden;
  box-shadow: var(--dl-shadow);
}
.dl-vinyl {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #1a1a1a 0 16%, transparent 17%),
    repeating-radial-gradient(circle at center, #222 0 2px, #111 3px 5px);
  box-shadow: 0 0 0 12px rgba(225, 29, 72, 0.22), var(--dl-shadow);
  position: relative;
  animation: dlSpin 14s linear infinite;
}
.dl-vinyl::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: url("/assets/images/huazhiwulogo.png") center/cover,
    linear-gradient(135deg, #fb7185, #e11d48);
}
.dl-wave {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 70%);
  opacity: 0.85;
  filter: hue-rotate(320deg) saturate(1.2);
  pointer-events: none;
}

@keyframes dlSpin {
  to { transform: rotate(360deg); }
}

/* Requirements */
.dl-req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-req {
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--dl-card);
  border: 1px solid var(--dl-border);
}
.dl-req h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dl-req p {
  font-size: 14px;
  color: var(--dl-muted);
}

/* Bottom CTA */
.dl-cta {
  padding: 72px 0 96px;
  text-align: center;
  position: relative;
}
.dl-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(225, 29, 72, 0.18), transparent 70%);
  pointer-events: none;
}
.dl-cta-inner { position: relative; z-index: 1; }
.dl-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.dl-cta p {
  color: var(--dl-muted);
  margin-bottom: 28px;
}
.dl-cta .dl-actions { justify-content: center; }

/* Footer */
.dl-footer {
  border-top: 1px solid var(--dl-border);
  padding: 28px 0 36px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.dl-footer a {
  color: rgba(255, 255, 255, 0.55);
}
.dl-footer a:hover { color: #fff; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .dl-feat-grid,
  .dl-req-grid,
  .dl-specs { grid-template-columns: 1fr 1fr; }
  .dl-showcase { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .dl-nav-links a:not(.dl-nav-cta) { display: none; }
  .dl-feat-grid,
  .dl-req-grid,
  .dl-specs { grid-template-columns: 1fr; }
  .dl-card { padding: 24px 18px; }
  .dl-hero { padding-top: calc(var(--dl-nav-h) + 48px); }
}
