/* ============================================================
   Phira 官网单页样式
   风格：简洁大气 · 音乐元素 · 深色霓虹 · 移动端自适应
   ============================================================ */

:root {
  --bg: #0d0724;
  --bg-2: #150c33;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(124, 92, 255, 0.25);
  --text: #f2f0ff;
  --text-dim: #a9a3cf;
  --cyan: #4de3ff;
  --violet: #7c5cff;
  --pink: #ff5ca8;
  --gold: #ffd166;
  --grad: linear-gradient(120deg, #4de3ff, #7c5cff 60%, #ff5ca8);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(8, 4, 28, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92%); margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 背景浮动音符 ---------- */
.bg-notes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.note {
  position: absolute;
  font-size: 30px;
  color: rgba(124, 92, 255, 0.16);
  animation: floatNote 14s linear infinite;
}
.n1 { left: 6%;  animation-delay: 0s;   font-size: 34px; }
.n2 { left: 22%; animation-delay: 4s;   font-size: 24px; }
.n3 { left: 48%; animation-delay: 8s;   font-size: 38px; }
.n4 { left: 66%; animation-delay: 2s;   font-size: 26px; }
.n5 { left: 82%; animation-delay: 6s;   font-size: 32px; }
.n6 { left: 93%; animation-delay: 10s;  font-size: 22px; }
@keyframes floatNote {
  0%   { top: 108%; transform: rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: -8%; transform: rotate(28deg); opacity: 0; }
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(13, 7, 36, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(5, 2, 18, 0.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  color: var(--text); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  padding: 8px 20px; border-radius: 999px;
  background: var(--grad); color: #0d0724 !important;
  font-weight: 700;
}
.nav-cta:hover { filter: brightness(1.1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer; border: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad); color: #0d0724;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 16px 38px; font-size: 18px; }
.btn-sm { padding: 8px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 80px;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(45% 40% at 15% 75%, rgba(77, 227, 255, 0.12), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
.hero-tag {
  font-size: 14px; letter-spacing: 6px; font-weight: 700;
  color: var(--cyan); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.15; font-weight: 800; margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim); margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 均衡器动画 */
.eq { display: flex; align-items: flex-end; gap: 6px; height: 34px; margin-top: 40px; }
.eq i {
  width: 6px; border-radius: 3px;
  background: var(--grad);
  animation: eqBounce 1.1s ease-in-out infinite;
}
.eq i:nth-child(1)  { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2)  { height: 75%; animation-delay: 0.12s; }
.eq i:nth-child(3)  { height: 55%; animation-delay: 0.24s; }
.eq i:nth-child(4)  { height: 90%; animation-delay: 0.36s; }
.eq i:nth-child(5)  { height: 60%; animation-delay: 0.48s; }
.eq i:nth-child(6)  { height: 100%; animation-delay: 0.6s; }
.eq i:nth-child(7)  { height: 50%; animation-delay: 0.72s; }
.eq i:nth-child(8)  { height: 80%; animation-delay: 0.84s; }
.eq i:nth-child(9)  { height: 45%; animation-delay: 0.96s; }
.eq i:nth-child(10) { height: 65%; animation-delay: 1.08s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-visual:hover img { transform: perspective(1100px) rotateY(0deg) rotateX(0deg); }
.hero-ring {
  position: absolute; inset: -26px; z-index: -1;
  border-radius: 30px;
  background: conic-gradient(from 0deg, rgba(77,227,255,0.4), rgba(124,92,255,0.4), rgba(255,92,168,0.4), rgba(77,227,255,0.4));
  filter: blur(34px); opacity: 0.5;
  animation: ringSpin 9s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ---------- 通用区块 ---------- */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; text-align: center; margin-bottom: 16px;
}
.section-lead {
  text-align: center; color: var(--text-dim);
  max-width: 720px; margin: 0 auto 52px;
  font-size: clamp(15px, 1.8vw, 17px);
}

/* 简介卡片 */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.about-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.about-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--cyan); }
.about-card p { font-size: 15px; color: var(--text-dim); }

/* ---------- 轮播 ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.slide { position: relative; flex: 0 0 100%; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 26px 18px;
  background: linear-gradient(transparent, rgba(10, 6, 32, 0.85));
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 7, 36, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text); font-size: 18px; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.car-btn:hover { background: rgba(124, 92, 255, 0.5); }
.car-btn.prev { left: 16px; }
.car-btn.next { right: 16px; }
.car-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.car-dots button {
  width: 10px; height: 10px; border-radius: 999px;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, background 0.3s ease;
}
.car-dots button.active { width: 28px; background: var(--cyan); }

/* ---------- 特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--pink); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #0d0724;
  background: var(--grad);
  margin-bottom: 20px;
}
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--text-dim); }

/* ---------- 下载区 ---------- */
.section-download {
  background:
    radial-gradient(55% 60% at 85% 40%, rgba(255, 92, 168, 0.14), transparent 70%),
    radial-gradient(50% 55% at 12% 65%, rgba(77, 227, 255, 0.12), transparent 70%),
    var(--bg-2);
}
.download-inner {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 60px; align-items: center;
}
.download-text .section-title, .download-text .section-lead { text-align: left; margin-left: 0; }
.dl-meta { list-style: none; margin: 8px 0 30px; }
.dl-meta li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; font-size: 15px; color: var(--text-dim);
  border-bottom: 1px dashed rgba(124, 92, 255, 0.2);
}
.dl-meta strong {
  flex: 0 0 52px; color: var(--cyan);
  font-size: 13px; letter-spacing: 2px;
}
.dl-tip { margin-top: 14px; font-size: 13px; color: var(--text-dim); }

.qr-box { text-align: center; }
.qr-frame {
  display: inline-block; padding: 18px;
  background: #ffffff; border-radius: 24px;
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.35);
  animation: qrFloat 4.5s ease-in-out infinite;
}
.qr-frame img { width: 220px; height: 220px; }
@keyframes qrFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.qr-label { margin-top: 20px; font-size: 17px; font-weight: 700; }
.qr-sub { font-size: 13px; color: var(--text-dim); letter-spacing: 3px; }

/* ---------- 页脚 ---------- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 44px 0 90px;
  background: var(--bg);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; margin-bottom: 8px;
}
.footer-line { color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.footer-copy { color: rgba(169, 163, 207, 0.55); font-size: 13px; }

/* ---------- 移动端悬浮下载条 ---------- */
.sticky-dl {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(21, 12, 51, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(5, 2, 18, 0.6);
}
.sticky-info { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sticky-info strong { font-size: 15px; }
.sticky-info span { font-size: 12px; color: var(--text-dim); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 112px; text-align: center; }
  .hero-actions, .eq { justify-content: center; }
  .pc-br { display: none; }
  .hero-visual img { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .download-text .section-title, .download-text .section-lead { text-align: center; }
  .dl-meta li { justify-content: center; }
  .dl-meta strong { flex: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: 38px; }
  .car-btn { width: 38px; height: 38px; font-size: 15px; }
  .slide figcaption { font-size: 14px; padding: 26px 18px 34px; }
  .sticky-dl { display: flex; }
  .footer { padding-bottom: 110px; }
  .qr-frame img { width: 190px; height: 190px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .note, .eq i, .hero-ring, .qr-frame { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
