@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("../assets/fonts/Alibaba-PuHuiTi-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --card: #161616;
  --border: #2a2a2a;
  --orange: #FF7A18;
  --orange-hover: #ff8c33;
  --text: #e8e8e8;
  --text-dim: #888;
  --maxw: 1120px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  line-height: 1.6;
  padding-top: 57px; /* 抵消 fixed 导航高度 */
}

h1, h2, h3 { font-family: "Alibaba PuHuiTi", "Microsoft YaHei", sans-serif; }

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

.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-title { font-size: 30px; text-align: center; margin-bottom: 12px; }
.section-title span { color: var(--orange); }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 44px; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: "Alibaba PuHuiTi", sans-serif; font-size: 20px; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #aaa; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #000 !important; font-weight: 700;
  padding: 8px 18px; border-radius: 6px;
}
.nav-cta:hover { background: var(--orange-hover); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 24px; cursor: pointer;
}

/* ===== 通用主按钮 ===== */
.btn-primary {
  display: inline-block; background: var(--orange); color: #000;
  font-weight: 800; font-size: 16px; padding: 13px 34px; border-radius: 8px;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: translateY(1px); }

/* ===== ① Hero ===== */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 90px 24px;
  display: flex; align-items: center; gap: 48px;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 46px; line-height: 1.15; }
.hero-slogan { color: var(--orange); font-size: 20px; font-weight: 700; margin: 16px 0; }
.hero-desc { color: var(--text-dim); margin-bottom: 28px; }
.hero-note { color: #666; font-size: 13px; margin-top: 16px; }
.hero-image { flex: 1; }
.screenshot-placeholder {
  width: 100%; aspect-ratio: 16/10; border: 1px solid var(--border);
  border-radius: 12px; background: linear-gradient(135deg,#1a1a1a,#262626);
  display: flex; align-items: center; justify-content: center;
  color: #555; text-align: center; font-size: 14px;
}
/* 应用窗口框:让纯黑截图从纯黑背景里浮起来 */
.app-window {
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(255,122,24,0.15),
              0 18px 50px rgba(0,0,0,0.7),
              0 0 60px rgba(255,122,24,0.12);
  transition: box-shadow .3s, transform .3s;
}
.app-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,122,24,0.35),
              0 22px 60px rgba(0,0,0,0.8),
              0 0 80px rgba(255,122,24,0.22);
}
.app-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  background: #202020;
  border-bottom: 1px solid #333;
}
.win-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #444; display: inline-block;
}
.win-dot:nth-child(1) { background: #ff5f57; }
.win-dot:nth-child(2) { background: #febc2e; }
.win-dot:nth-child(3) { background: #28c840; }
.app-title {
  margin-left: 8px; color: #999; font-size: 12px;
  font-family: "Alibaba PuHuiTi", sans-serif;
}
.screenshot-img {
  width: 100%; height: auto; display: block;
}

/* ===== ② 音色试听 ===== */
.demo-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.demo-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
}
.demo-name { flex: 0 0 120px; font-weight: 700; }
.demo-players { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.demo-btn {
  background: #1f1f1f; border: 1px solid #333; color: #ccc;
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: all .2s;
}
.demo-btn:hover { border-color: var(--orange); color: var(--orange); }
.demo-btn.disabled { opacity: .5; cursor: not-allowed; }

/* ===== ③④⑤ 卡片网格(功能/音色/场景共用) ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card, .scene-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 20px; text-align: center; transition: border-color .2s, transform .2s;
}
.feat-card:hover, .scene-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.feat-icon { font-size: 34px; margin-bottom: 14px; }
.feat-card h3, .scene-card h3 { font-size: 17px; margin-bottom: 10px; }
.feat-card p, .scene-card p { color: var(--text-dim); font-size: 13px; }

/* 音色卡片(3 列) */
.voice-grid { grid-template-columns: repeat(3, 1fr); }
.voice-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; transition: border-color .2s;
}
.voice-card:hover { border-color: var(--orange); }
.voice-card h3 { font-size: 18px; display: inline-block; }
.voice-tag {
  display: inline-block; background: rgba(255,122,24,0.15); color: var(--orange);
  font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-left: 8px;
}
.voice-card p { color: var(--text-dim); font-size: 13px; margin-top: 10px; }

/* ===== ⑥ 下载区 ===== */
.download-section { text-align: center; }
.download-box {
  max-width: 520px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--orange); border-radius: 16px; padding: 36px;
}
.download-info { text-align: left; margin-bottom: 26px; }
.dl-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dl-row span { color: var(--text-dim); }
.btn-download { font-size: 18px; padding: 15px 44px; }
.dl-code { margin-top: 16px; font-size: 15px; color: var(--text); }
.dl-code b { color: var(--orange); letter-spacing: 2px; font-size: 17px; }
.copy-btn {
  background: #1f1f1f; border: 1px solid #333; color: #ccc;
  padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 12px;
  margin-left: 8px; transition: all .2s; font-family: inherit;
}
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.dl-note { color: var(--text-dim); font-size: 13px; margin-top: 18px; }

/* ===== ⑦ FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: var(--card); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-size: 15px; font-weight: 700; padding: 18px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-q::after { content: "+"; color: var(--orange); font-size: 20px; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; color: var(--text-dim); font-size: 14px; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.footer a { color: var(--orange); }
.footer-dim { color: #555; margin-top: 8px; font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #111;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; border-top: 1px solid var(--border); }
  .nav-cta { border-radius: 0; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 24px; }
  .hero { flex-direction: column; padding: 48px 20px; gap: 28px; }
  .hero-text h1 { font-size: 32px; }
  .demo-row { flex-direction: column; align-items: flex-start; }
  .demo-name { flex: none; }
}
@media (max-width: 480px) {
  .card-grid, .voice-grid { grid-template-columns: 1fr; }
}
