/* 柠檬音乐介绍站 · 深色极简基调 */
:root {
  --bg: #0b0b0c;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --ink: #f4f4f5;
  --ink-soft: rgba(244, 244, 245, 0.88);
  --muted: rgba(244, 244, 245, 0.58);
  --lemon: #f5d000;
  --lemon-bright: #ffe566;
  --lemon-deep: #c9a800;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-btn: 14px;
  --sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(88, 120, 220, 0.16), transparent 55%),
    radial-gradient(780px 480px at 92% 0%, rgba(245, 208, 0, 0.1), transparent 50%),
    radial-gradient(700px 500px at 70% 40%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  z-index: 0;
}

a {
  color: var(--lemon-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(11, 11, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 11, 12, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  padding: 0.78rem 1.3rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.92);
  color: #0b0b0c;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #fff;
  color: #0b0b0c;
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-lang {
  min-width: 3rem;
  padding-inline: 0.85rem;
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-glass);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-copy {
  max-width: 40rem;
  animation: heroIn 0.9s ease both;
}

.hero-brand {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(2.75rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-brand span {
  display: inline-block;
  color: #fff;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink-soft);
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-note {
  margin: 0;
  color: rgba(244, 244, 245, 0.42);
  font-size: 0.88rem;
}

.hero-visual {
  margin-top: 40px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
  animation: heroRise 1.05s 0.12s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  transition: transform 1.2s ease;
}

.hero-visual:hover img {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lemon);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}

.feature:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.feature--flip .feature-media {
  order: -1;
}

.feature h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #121212;
}

/* Gallery */
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: #121212;
}

.gallery-item figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-soft);
}

/* Deploy */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deploy-item {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
}

.deploy-item h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.deploy-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Protocol */
.protocol-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
}

.protocol-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.4fr;
  gap: 12px 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.protocol-row:last-child {
  border-bottom: 0;
}

.protocol-row strong {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.protocol-row span,
.protocol-row a {
  color: var(--muted);
  font-size: 0.95rem;
}

.protocol-clients {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.protocol-clients li {
  margin: 4px 0;
}

.protocol-actions {
  margin-top: 18px;
}

/* Compliance */
.compliance {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(245, 208, 0, 0.08), transparent 48%),
    var(--bg-glass);
  backdrop-filter: blur(12px);
}

.compliance h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.compliance p {
  margin: 0;
  color: var(--muted);
  max-width: 52rem;
}

/* Footer */
.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--lemon-bright);
}

.footer-qq-qrs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.footer-qq-qrs figure {
  margin: 0;
  text-align: center;
}

.footer-qq-qrs img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.footer-qq-qrs figcaption {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
}

.footer-tip {
  text-align: center;
}

.footer-tip strong {
  color: var(--ink-soft);
}

.footer-tip img {
  width: min(280px, 72vw);
  max-width: 280px;
  margin: 12px auto 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.footer-tip .hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: rgba(244, 244, 245, 0.4);
  font-size: 0.85rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature-media {
    order: 0;
  }

  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-tip {
    text-align: left;
  }

  .footer-tip img {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: rgba(11, 11, 12, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-soft);
  }

  .header-inner {
    position: relative;
  }

  .nav-actions .btn-ghost.nav-github {
    display: none;
  }

  .protocol-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-visual,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-visual img,
  .btn {
    transition: none !important;
  }
}
