/* NWBP 官网样式 —— 苹果式排版：大字号、大量留白、明暗交替分区 */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #000000;
  --dark-2: #0b0b0c;
  --card-dark: #1d1d1f;
  --accent: #17c964;
  --accent-deep: #0e9f4e;
  --accent-ink: #04150b;
  --bili: #fb7299;
  --netease: #ff3a3a;
  --line: rgba(0, 0, 0, 0.07);
  --line-d: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -14px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  height: 20px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

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

.nav .btn-sm {
  height: 30px;
  padding: 0 14px;
  font-size: 13px;
}

.nav-links + .btn-sm {
  margin-left: 0;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  height: 44px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: #14b85a;
}

.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: 17px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-deep);
  font-size: 17px;
}

.arrow-link span {
  transition: transform 0.25s var(--ease);
}

.arrow-link:hover span {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 88px) 0 0;
  overflow: hidden;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 780px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(23, 201, 100, 0.24), transparent 70%),
    radial-gradient(closest-side, rgba(10, 132, 255, 0.16), transparent 70%);
  background-position: 38% 40%, 62% 55%;
  background-size: 620px 620px, 560px 560px;
  background-repeat: no-repeat;
  filter: blur(24px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-mark {
  height: clamp(72px, 9vw, 112px);
  width: auto;
  margin: 0 auto 26px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(64px, 13vw, 152px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.lead {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.42;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  margin: 22px 0 0;
}

.hero .lead {
  margin-top: 18px;
}

.muted {
  color: var(--ink-3);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.tiny {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* 应用窗口 */

.window {
  position: relative;
  margin: 64px auto 0;
  max-width: 940px;
  border-radius: 16px;
  overflow: hidden;
  background: #2c2c2e;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-lg);
}

.window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #2c2c2e;
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4a4a4c;
}

.window-bar i:nth-child(1) {
  background: #ff5f57;
}

.window-bar i:nth-child(2) {
  background: #febc2e;
}

.window-bar i:nth-child(3) {
  background: #28c840;
}

.window img {
  width: 100%;
  height: auto;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-deep);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section .lead {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(18px, 1.9vw, 22px);
}

.note {
  margin: 40px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 760px;
}

.statement {
  padding: clamp(90px, 11vw, 160px) 0;
  background: var(--bg);
}

.statement h2 {
  max-width: 900px;
}

.hl {
  background: linear-gradient(transparent 62%, rgba(23, 201, 100, 0.32) 62%);
}

/* ---------- Bento 卡片 ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -20px rgba(0, 0, 0, 0.22);
}

.card-wide {
  grid-column: span 2;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}

.card strong {
  color: var(--ink);
  font-weight: 600;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(23, 201, 100, 0.12);
  color: var(--accent-deep);
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- 音源 ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.source-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}

.source-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.source-card h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-a {
  background: var(--bili);
  box-shadow: 0 0 0 4px rgba(251, 114, 153, 0.16);
}

.dot-b {
  background: var(--netease);
  box-shadow: 0 0 0 4px rgba(255, 58, 58, 0.16);
}

.source-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.source-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 深色区块 ---------- */

.dark {
  background: var(--dark);
  color: #f5f5f7;
}

.dark-2 {
  background: var(--dark-2);
}

.dark h2 {
  color: #f5f5f7;
}

.dark .lead,
.dark .note {
  color: #a1a1a6;
}

.dark strong,
.dark em {
  color: #f5f5f7;
}

.dark code,
.dark kbd {
  background: rgba(255, 255, 255, 0.1);
}

.card-dark {
  background: var(--card-dark);
  border-color: var(--line-d);
  box-shadow: none;
  color: #f5f5f7;
}

.card-dark:hover {
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* 玻璃演示 */

.glass-demo {
  position: relative;
  margin-top: 56px;
  height: clamp(260px, 34vw, 400px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-d);
  isolation: isolate;
}

.glass-scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #06080d 0%, #0d1a2b 45%, #0a1f16 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.blob-1 {
  width: 340px;
  height: 340px;
  background: rgba(23, 201, 100, 0.68);
  left: -70px;
  top: -110px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(10, 132, 255, 0.52);
  right: 4%;
  top: -40px;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: rgba(191, 90, 242, 0.42);
  left: 38%;
  bottom: -140px;
}

.glass-pane {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 9%;
  padding: 26px 28px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

.glass-row {
  display: block;
  height: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 13px;
}

.glass-row:last-child {
  margin-bottom: 0;
}

.glass-row:first-child {
  display: flex;
  gap: 10px;
  background: none;
  height: 26px;
  align-items: center;
}

.glass-row:first-child i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.glass-row:first-child i:last-child {
  width: 90px;
  border-radius: 6px;
  height: 11px;
}

.glass-row.short {
  width: 58%;
}

/* 歌词演示 */

.lyric-demo {
  margin-top: 56px;
  border-radius: 28px;
  padding: clamp(36px, 5vw, 60px) 24px;
  text-align: center;
  background:
    radial-gradient(120% 150% at 50% -10%, rgba(23, 201, 100, 0.22), transparent 62%),
    #08090a;
  border: 1px solid var(--line-d);
}

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 60px;
  margin-bottom: 36px;
}

.bars span {
  width: 4px;
  height: 20%;
  border-radius: 2px;
  background: linear-gradient(180deg, #17c964, rgba(23, 201, 100, 0.22));
  animation: eq 900ms ease-in-out infinite alternate;
}

.bars span:nth-child(7n + 1) {
  animation-duration: 760ms;
  animation-delay: -0.1s;
}

.bars span:nth-child(7n + 2) {
  animation-duration: 1180ms;
  animation-delay: -0.45s;
}

.bars span:nth-child(7n + 3) {
  animation-duration: 640ms;
  animation-delay: -0.8s;
}

.bars span:nth-child(7n + 4) {
  animation-duration: 1320ms;
  animation-delay: -0.25s;
}

.bars span:nth-child(7n + 5) {
  animation-duration: 880ms;
  animation-delay: -0.62s;
}

.bars span:nth-child(7n + 6) {
  animation-duration: 1040ms;
  animation-delay: -0.05s;
}

.bars span:nth-child(7n) {
  animation-duration: 700ms;
  animation-delay: -0.9s;
}

@keyframes eq {
  from {
    height: 12%;
    opacity: 0.55;
  }
  to {
    height: 100%;
    opacity: 1;
  }
}

.lyric-line {
  margin: 0;
  font-size: clamp(21px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.lyric-next {
  margin: 14px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.05);
  font-family: inherit;
  font-size: 13px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
}

/* ---------- 平台 ---------- */

.plat-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.platforms .card p:last-child {
  font-size: 15px;
}

/* ---------- 下载 ---------- */

.download {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  text-align: center;
}

.download::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(23, 201, 100, 0.26), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.download .wrap {
  position: relative;
}

.download .lead {
  margin-left: auto;
  margin-right: auto;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.dl-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.dl-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.24);
}

.dl-os {
  font-size: 18px;
  font-weight: 600;
}

.dl-file {
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 标签 / 开发者 ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.chips span {
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 14px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.dark .chips span {
  color: #d2d2d7;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-d);
}

.devs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
}

.devs img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 -6px;
  border: 2px solid var(--bg-alt);
}

.devs {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.devs p {
  flex-basis: 100%;
  text-align: center;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 页脚 ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

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

.footer .muted {
  color: var(--ink-3);
  margin: 10px 0 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  height: 18px;
  width: auto;
}

.footer-brand h4 {
  margin: 0;
}

.legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.75;
}

.legal .copy {
  margin-top: 14px;
  color: var(--ink-3);
}

/* ---------- 滚动出现动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.bento .reveal:nth-child(2),
.grid-3 .reveal:nth-child(2),
.two-col .reveal:nth-child(2),
.dl-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.bento .reveal:nth-child(3),
.grid-3 .reveal:nth-child(3),
.dl-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.bento .reveal:nth-child(4) {
  transition-delay: 0.06s;
}

.bento .reveal:nth-child(5) {
  transition-delay: 0.12s;
}

.bento .reveal:nth-child(6) {
  transition-delay: 0.18s;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bars span {
    animation: none;
    height: 45%;
  }

  .card,
  .dl-item,
  .btn {
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-inner .btn-sm {
    margin-left: auto;
  }

  .bento,
  .grid-3,
  .dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-wide {
    grid-column: span 2;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 56px);
  }

  .hero h1 {
    font-size: clamp(56px, 20vw, 96px);
  }

  h2 {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .window {
    margin-top: 40px;
    border-radius: 12px;
  }

  .window-bar {
    height: 26px;
    padding: 0 12px;
  }

  .window-bar i {
    width: 9px;
    height: 9px;
  }

  .bento,
  .grid-3,
  .dl-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: span 1;
  }

  .card,
  .source-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .cta-row {
    gap: 18px;
  }

  .btn-lg {
    width: 100%;
  }

  .wide-only {
    display: none;
  }

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