/* ===== MuseScore 中文站 全局样式 =====
   品牌色取自官方 logo：靛蓝紫主背景 + 青绿色强调色
   扁平现代专业风格 · 无 emoji · 中文优先
*/

/* ---------- 重置与变量 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 品牌色 */
  --bg-primary: #170a4e;
  --bg-secondary: #221569;
  --bg-tertiary: #2e1c84;
  --accent: #3dd9d6;
  --accent-dark: #25b5b2;
  --accent-light: #e6faf9;
  --accent-soft: rgba(61, 217, 214, 0.15);

  /* 中性色 */
  --white: #ffffff;
  --light-bg: #f6f7fb;
  --light-card: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #eef0f5;
  --gray-200: #dde1eb;
  --gray-300: #c0c6d4;
  --gray-400: #9ba1b3;
  --gray-500: #6e7587;
  --gray-700: #3a4055;
  --gray-900: #1a1f33;

  /* 文字 */
  --text-on-dark: #ffffff;
  --text-on-dark-soft: rgba(255, 255, 255, 0.78);
  --text-on-dark-mute: rgba(255, 255, 255, 0.55);
  --text-on-light: #1a1f33;
  --text-on-light-soft: #4a5063;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(23, 10, 78, 0.08);
  --shadow-md: 0 8px 24px rgba(23, 10, 78, 0.1);
  --shadow-lg: 0 16px 48px rgba(23, 10, 78, 0.18);
  --shadow-accent: 0 8px 24px rgba(61, 217, 214, 0.35);

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 字号 */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 4rem;

  /* 间距 */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  /* 容器 */
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ---------- 容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-5) 0;
  }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 10, 78, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
  color: var(--text-on-dark);
  font-size: var(--fs-lg);
  letter-spacing: 0.3px;
}
.nav-logo img{width: 50px;height: 50px;}
.nav-logo:hover {
  color: var(--accent);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-menu a {
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav-cta:hover {
  background: var(--white);
  transform: translateY(-1px);
  color: var(--bg-primary);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  color: var(--white);
  font-size: 24px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) var(--space-3);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--fs-base);
  }
  .nav-menu a.active::after {
    display: none;
  }
  .nav-cta {
    margin-top: var(--space-2);
  }
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(61, 217, 214, 0.45);
  color: var(--bg-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--bg-primary);
}
.btn-light:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-download {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 14px 32px;
  font-size: var(--fs-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-accent);
}
.btn-download:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn-link {
  color: var(--accent-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.btn-link:hover {
  color: var(--bg-primary);
}
.btn-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top left, var(--bg-tertiary) 0%, var(--bg-primary) 60%);
  color: var(--text-on-dark);
  padding: var(--space-6) 0 var(--space-7);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(61, 217, 214, 0.15) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(61, 217, 214, 0.1) 0, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(61, 217, 214, 0.14);
  color: var(--accent);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(61, 217, 214, 0.25);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 217, 214, 0.25);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}
.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-on-dark-soft);
  margin-bottom: var(--space-4);
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-on-dark-mute);
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}
.hero-meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero 插画（CSS绘制的乐谱缩略） */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, rgba(61, 217, 214, 0.18), rgba(61, 217, 214, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-art .staff {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  height: 100%;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.hero-art .row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg-primary);
}

.hero-art .ledger {
  position: relative;
  flex: 1;
  height: 60px;
  border-top: 1px solid rgba(23, 10, 78, 0.4);
  border-bottom: 1px solid rgba(23, 10, 78, 0.4);
  background-image: linear-gradient(
      to bottom,
      rgba(23, 10, 78, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(23, 10, 78, 0.18) 1px, transparent 1px);
  background-size: 100% 15px, 100% 15px;
  background-position: 0 14px, 0 44px;
  background-repeat: no-repeat;
}

.hero-art .ledger::before,
.hero-art .ledger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(23, 10, 78, 0.18);
}
.hero-art .ledger::before {
  top: 0;
}
.hero-art .ledger::after {
  bottom: 0;
}

.hero-art .note {
  width: 18px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  position: relative;
  flex-shrink: 0;
}
.hero-art .note::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 28px;
  background: var(--bg-primary);
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
}
.hero-art .note.accent {
  background: var(--accent-dark);
}
.hero-art .note.accent::after {
  background: var(--accent-dark);
}

.hero-art .clef {
  font-family: "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--bg-primary);
  line-height: 1;
  width: 28px;
}

/* ---------- 页面通用 Hero（小尺寸） ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  color: var(--text-on-dark);
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(61, 217, 214, 0.2) 0, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.page-hero p {
  position: relative;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-lg);
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  color: var(--text-on-dark-mute);
  font-size: var(--fs-sm);
}
.breadcrumb a {
  color: var(--text-on-dark-soft);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  opacity: 0.5;
}

/* ---------- 数据栏 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: calc(-1 * var(--space-4));
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.stat-card .num {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--bg-primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.stat-card .label {
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
}

/* ---------- 段落通用 ---------- */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--bg-primary);
  text-align: center;
  margin-bottom: var(--space-2);
  letter-spacing: -0.3px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-on-light-soft);
  margin-bottom: var(--space-5);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-lg);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-1);
}

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.card-icon svg {
  width: 28px;
  height: 28px;
}
.card h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--bg-primary);
  margin-bottom: var(--space-1);
}
.card p {
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
}

/* ---------- 功能区栅格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 使用场景 ---------- */
.scenarios {
  background: var(--light-bg);
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.tab {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-on-light-soft);
  transition: all 0.2s ease;
}
.tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.tab.active {
  background: var(--bg-primary);
  color: var(--white);
  border-color: var(--bg-primary);
}

.tab-panel {
  display: none;
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 860px) {
  .tab-panel.active {
    grid-template-columns: 1fr;
  }
}

.tab-panel h3 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--bg-primary);
  margin-bottom: var(--space-2);
}
.tab-panel p {
  color: var(--text-on-light-soft);
  margin-bottom: var(--space-2);
}
.tab-panel ul {
  margin-top: var(--space-1);
}
.tab-panel ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
}
.tab-panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.tab-art {
  background: linear-gradient(140deg, var(--bg-tertiary), var(--bg-primary));
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
}
.tab-art svg {
  width: 80%;
  height: auto;
  max-width: 320px;
}

/* ---------- 用户评价 ---------- */
.testimonials {
  background: var(--light-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
}

.testimonial .stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: var(--space-2);
  font-family: serif;
}

.testimonial blockquote {
  color: var(--text-on-light);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  font-style: normal;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: var(--space-2);
}

.testimonial .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--bg-tertiary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.testimonial .author-info .name {
  font-weight: 700;
  color: var(--bg-primary);
  font-size: var(--fs-sm);
}
.testimonial .author-info .role {
  font-size: var(--fs-xs);
  color: var(--text-on-light-soft);
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  color: var(--white);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(61, 217, 214, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.cta-band p {
  color: var(--text-on-dark-soft);
  margin-top: 8px;
  max-width: 520px;
}

/* ---------- 下载中心 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.platform-card .icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--bg-primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
}
.platform-card .icon-wrap svg {
  width: 44px;
  height: 44px;
}

.platform-card h3 {
  font-size: var(--fs-2xl);
  color: var(--bg-primary);
  font-weight: 800;
  margin-bottom: 6px;
}

.platform-card .ver {
  font-size: var(--fs-sm);
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.platform-card .req {
  font-size: var(--fs-sm);
  color: var(--text-on-light-soft);
  margin-bottom: var(--space-3);
  line-height: 1.6;
  min-height: 50px;
}

.platform-card .btn {
  width: 100%;
}

.platform-card .alt {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--gray-500);
}
.platform-card .alt a {
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 安装步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  position: relative;
  border: 1px solid var(--gray-100);
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}
.step h4 {
  font-size: var(--fs-lg);
  color: var(--bg-primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.step p {
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
}

/* 系统要求 */
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.req-table th,
.req-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--gray-100);
}
.req-table th {
  background: var(--bg-primary);
  color: var(--white);
  font-weight: 600;
}
.req-table tr:last-child td {
  border-bottom: none;
}

/* ---------- 功能页面 ---------- */
.features-hero {
  text-align: center;
  padding: var(--space-6) 0 var(--space-5);
  background: linear-gradient(160deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  color: var(--white);
  position: relative;
}
.features-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-1);
}
.features-hero p {
  color: var(--text-on-dark-soft);
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--fs-lg);
}

.feature-block {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--gray-100);
}
.feature-block:last-child {
  border-bottom: none;
}
.feature-block.alt {
  background: var(--light-bg);
}

.feature-block .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) {
  .feature-block .grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .feature-block .grid.reverse > div:first-child {
    order: 2;
  }
}

.feature-block h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--bg-primary);
  margin-bottom: var(--space-2);
}
.feature-block p {
  color: var(--text-on-light-soft);
  margin-bottom: var(--space-2);
}
.feature-block ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-on-light-soft);
}
.feature-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.feature-visual {
  background: linear-gradient(140deg, var(--bg-tertiary), var(--bg-primary));
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-visual svg {
  width: 80%;
  max-width: 380px;
  height: auto;
}

/* 对比表 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--gray-100);
}
.compare-table th {
  background: var(--bg-primary);
  color: var(--white);
  font-weight: 600;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--light-bg);
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.compare-table .yes {
  color: var(--accent-dark);
  font-weight: 700;
}
.compare-table .no {
  color: var(--gray-400);
}

/* ---------- 教程页 ---------- */
.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
@media (max-width: 900px) {
  .path {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .path {
    grid-template-columns: 1fr;
  }
}

.path-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
}
.path-step .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.path-step h4 {
  font-size: var(--fs-lg);
  color: var(--bg-primary);
  margin-bottom: 6px;
}
.path-step p {
  font-size: var(--fs-sm);
  color: var(--text-on-light-soft);
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
}

.tutorial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tutorial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.tutorial-card .cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--bg-tertiary), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tutorial-card .cover svg {
  width: 60px;
  height: 60px;
  color: var(--white);
  opacity: 0.92;
}
.tutorial-card .cover .level {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.tutorial-card .body {
  padding: var(--space-3);
}
.tutorial-card h3 {
  font-size: var(--fs-lg);
  color: var(--bg-primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.tutorial-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-on-light-soft);
  font-size: var(--fs-xs);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--gray-100);
}

.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: var(--space-1);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open {
  border-color: var(--accent);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--bg-primary);
  font-size: var(--fs-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-q .ic {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-dark);
  transition: transform 0.2s ease;
}
.faq-item.open .ic {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
}
.faq-item.open .faq-a {
  display: block;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-3);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200);
}
.timeline-item .year {
  font-size: var(--fs-sm);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item h4 {
  color: var(--bg-primary);
  font-size: var(--fs-lg);
  margin-bottom: 4px;
  font-weight: 700;
}
.timeline-item p {
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
}

.license-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.license-card h3 {
  color: var(--bg-primary);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-2);
  font-weight: 800;
}
.license-card p,
.license-card li {
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
  margin-bottom: 8px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0d062f;
  color: var(--text-on-dark-soft);
  padding: var(--space-6) 0 var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-2);
  color: var(--white);
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-mute);
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  padding: 4px 0;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-mute);
}
.footer-meta a {
  color: var(--text-on-dark-soft);
}

/* ---------- 下载弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(13, 6, 47, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-2);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-mask.show {
  display: flex;
  opacity: 1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
button { outline: none } 
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: min(560px, 100%);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-mask.show .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.18s ease;
}
.modal-close:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: rotate(90deg);
}

.modal h3 {
  font-size: var(--fs-2xl);
  color: var(--bg-primary);
  font-weight: 800;
  margin-bottom: 6px;
  padding-right: 32px;
}
.modal .modal-sub {
  color: var(--text-on-light-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-3);
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 520px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }
}

.qr-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-2);
  text-align: center;
  transition: all 0.2s ease;
}
.qr-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.qr-card .qr-img {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-card .qr-img svg {
  width: 100%;
  height: 100%;
}
.qr-card .qr-name {
  font-weight: 700;
  color: var(--bg-primary);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.qr-card .qr-tip {
  color: var(--text-on-light-soft);
  font-size: var(--fs-xs);
}

.modal-direct {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.modal-direct .info {
  font-size: var(--fs-xs);
  color: var(--text-on-light-soft);
}
.modal-direct .info strong {
  color: var(--bg-primary);
  font-weight: 700;
}
.modal-direct a.btn {
  padding: 10px 20px;
  font-size: var(--fs-sm);
}

/* ---------- 工具类 ---------- */
.flex {
  display: flex;
}
.center {
  text-align: center;
}
.mt-1 {
  margin-top: var(--space-1);
}
.mt-2 {
  margin-top: var(--space-2);
}
.mt-3 {
  margin-top: var(--space-3);
}
.mt-4 {
  margin-top: var(--space-4);
}
.mb-1 {
  margin-bottom: var(--space-1);
}
.mb-2 {
  margin-bottom: var(--space-2);
}
.mb-3 {
  margin-bottom: var(--space-3);
}
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 关注可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline-offset: 4px;
}

a:focus-visible {
  outline-color: var(--accent-dark);
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
