/* ============================================================
   1900节拍器 产品官网样式
   纯 CSS，无任何框架。配色取自 App：黑底 + 黄/绿渐变 + 红/绿点缀
   ============================================================ */

:root {
  --bg: #0b0d0c;
  --bg-soft: #121513;
  --card: #171b18;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f4f1;
  --text-dim: #9aa39b;
  --yellow: #ffd400;
  --green: #2ecc5e;
  --red: #ff3b30;
  --white: #ffffff;
  --gradient: linear-gradient(90deg, var(--yellow), var(--green));
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.container-narrow { width: min(760px, 92%); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #111;
  padding: 12px 28px;
  box-shadow: 0 6px 24px rgba(46, 204, 94, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255, 212, 0, 0.28); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 28px;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ---------- 渐变文字 ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 图片图标通用 ---------- */
.btn img { width: 1.05em; height: 1.05em; flex-shrink: 0; display: block; }
.hero-badge img { width: 18px; height: 18px; display: block; }
.ps-play img { width: 22px; height: 22px; display: block; }
img.feature-icon { width: 42px; height: 42px; margin-bottom: 14px; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.16;
}
.orb-yellow { width: 420px; height: 420px; background: var(--yellow); top: -120px; left: -80px; }
.orb-green { width: 480px; height: 480px; background: var(--green); bottom: -180px; right: -100px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--green);
  border: 1px solid rgba(46, 204, 94, 0.35);
  background: rgba(46, 204, 94, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.2; letter-spacing: 0.01em; }
.hero-sub { color: var(--text-dim); margin: 22px 0 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 26px; color: var(--text-dim); font-size: 0.88rem; }
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-meta li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- 手机模型 ---------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1000px; }
.phone {
  width: 260px;
  border-radius: 36px;
  background: #1a1e1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
  box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateX(3deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-12px); }
}
.phone-notch {
  width: 90px; height: 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 12px;
}
.phone-screen {
  background: #0d100e;
  border-radius: 24px;
  padding: 22px 18px 26px;
  text-align: center;
}
.ps-title { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 18px; }
.ps-beats { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.ps-beat {
  width: 26px; height: 26px; border-radius: 8px; opacity: 0.28;
  transition: opacity 0.1s, transform 0.1s;
}
.ps-beat.strong { background: var(--red); }
.ps-beat.medium { background: var(--green); }
.ps-beat.weak { background: var(--yellow); }
.ps-beat.mute { background: #555; }
.ps-beat.active { opacity: 1; transform: scale(1.15); }
.ps-dial {
  width: 170px; height: 170px; margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    linear-gradient(#0d100e, #0d100e) padding-box,
    conic-gradient(from 220deg, var(--yellow), var(--green), rgba(255,255,255,0.08) 240deg) border-box;
  display: flex; align-items: center; justify-content: center;
}
.ps-bpm { font-size: 2.6rem; font-weight: 700; display: block; line-height: 1; }
.ps-bpm-label { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 3px; }
.ps-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ps-chip {
  font-size: 0.8rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px;
}
.ps-play {
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--gradient); color: #111; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section-tag {
  color: var(--green);
  font-size: 0.88rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.3; }
.section-desc { color: var(--text-dim); margin: 16px 0 0; max-width: 560px; }

/* ---------- 在线体验 ---------- */
.demo { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-card {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.demo-beats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.demo-beat {
  width: 58px; height: 58px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.1s, transform 0.1s, box-shadow 0.1s;
  position: relative;
}
.demo-beat::after {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; color: var(--text-dim); white-space: nowrap;
}
.demo-beat.type-0 { background: var(--red); }
.demo-beat.type-1 { background: #ff9f0a; }
.demo-beat.type-2 { background: var(--green); }
.demo-beat.type-3 { background: #4a4f4b; }
.demo-beat.active { opacity: 1; transform: scale(1.12); box-shadow: 0 0 24px rgba(255, 255, 255, 0.18); }
.demo-bpm-row { display: flex; align-items: center; justify-content: center; gap: 24px; }
.demo-bpm { text-align: center; min-width: 130px; }
.demo-bpm span { font-size: 3rem; font-weight: 700; }
.demo-bpm small { color: var(--text-dim); letter-spacing: 3px; margin-left: 6px; }
.demo-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1.4rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.demo-btn:hover { border-color: var(--green); color: var(--green); }
.demo-range {
  width: 100%; margin: 26px 0 8px;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  outline: none; cursor: pointer;
}
.demo-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.demo-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-top: 18px;
}
.demo-sig { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-sig button {
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-dim); cursor: pointer; font-size: 0.92rem;
  transition: all 0.2s;
}
.demo-sig button.active, .demo-sig button:hover {
  border-color: var(--green); color: var(--green);
  background: rgba(46, 204, 94, 0.08);
}
.demo-hint { text-align: center; color: var(--text-dim); font-size: 0.82rem; margin-top: 26px; }

/* ---------- 功能特性 ---------- */
.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(46, 204, 94, 0.4); }
.feature-icon { margin-bottom: 14px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 参数一览 ---------- */
.specs { background: var(--bg-soft); border-top: 1px solid var(--border); }
.specs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.specs-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table th { color: var(--text-dim); font-weight: 500; width: 38%; white-space: nowrap; }
.specs-table td { color: var(--text); }
.specs .btn { margin-top: 26px; }

/* ---------- 鸿蒙版 ---------- */
.harmony {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(46, 204, 94, 0.07), transparent),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.harmony-head { max-width: 640px; }
.harmony-grid .feature-card { background: rgba(23, 27, 24, 0.7); }
.harmony-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.harmony-note::before { content: "✦ "; color: var(--green); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--green); font-size: 1.3rem;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--text-dim); padding-bottom: 16px; font-size: 0.94rem; }

/* ---------- 下载 ---------- */
.download { text-align: center; background: var(--bg-soft); border-top: 1px solid var(--border); }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-logo {
  width: 84px; height: 84px; border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.download .section-desc { margin-bottom: 32px; }
.download-note { margin-top: 18px; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-dim); font-size: 0.88rem;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--green); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .phone { transform: none; animation: none; }
  .specs-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 6%;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .section { padding: 64px 0; }
  .demo-beat { width: 48px; height: 48px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
