/* ==========================================================================
   eqMac 官方网站 — 全局样式表
   作者: bitgapp / eqmac.cn
   配色依据: eqMac 品牌（深黑底 + 薄荷绿主调）
   风格: 扁平 · 现代 · 专业
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 颜色 · 浅色主题（薄荷绿主调，白底 + 深墨文本） */
  --bg-base: #f5f9f7;
  --bg-surface: #ffffff;
  --bg-surface-2: #f0f5f2;
  --bg-elevated: #ffffff;
  --bg-hover: #e9f1ed;

  --border-subtle: #e3eae6;
  --border-default: #d2dcd7;
  --border-strong: #b2bfb9;

  --text-primary: #0f1a16;
  --text-secondary: #3c4a45;
  --text-muted: #64736d;
  --text-faint: #85928c;

  /* accent 用于实心底/边框/图标；accent-ink 用于正文与链接文字，保证白底对比度 ≥ 5:1 */
  --accent: #0a7f49;
  --accent-ink: #07713f;
  --accent-hover: #086b3e;
  --accent-pressed: #075a34;
  --accent-soft: #e6f6ee;
  --accent-glow: rgba(10, 127, 73, 0.22);
  --accent-brand: #00e07a;

  --danger: #c0392b;
  --warning: #8a4a00;
  --info: #0b6b9c;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas,
    monospace;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, 0.06);
  --shadow-md: 0 4px 14px rgba(16, 32, 26, 0.08);
  --shadow-lg: 0 18px 44px rgba(16, 32, 26, 0.12);
  --shadow-glow: 0 0 0 1px var(--accent-soft), 0 10px 24px rgba(10, 127, 73, 0.14);

  /* 容器宽度 */
  --container-max: 1200px;
  --container-narrow: 860px;

  /* 过渡 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

ul,
ol {
  list-style: none;
}

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

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

::selection {
  background: var(--accent);
  color: var(--bg-base);
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

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

/* ---------- 排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 249, 247, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text-primary);
}

.brand__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link.is-active {
  color: var(--accent-ink);
}

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

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

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 127, 73, 0.25);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 127, 73, 0.30);
}

.btn--primary:active {
  transform: translateY(0);
  background: var(--accent-pressed);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn--ghost:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

/* ---------- 通用区块 ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.section-head__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-3);
}

.section-head h2 {
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base),
    box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--accent {
  border-color: var(--accent-soft);
}

.card--accent:hover {
  border-color: var(--accent-ink);
  box-shadow: var(--shadow-glow);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--accent-ink);
}

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

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(10, 127, 73, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(10, 127, 73, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-ink);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero h1 .text-accent {
  display: inline-block;
}

.hero__lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
}

/* ---------- 波形可视化 ---------- */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 80px;
  margin: var(--space-7) auto;
  max-width: 480px;
}

.waveform__bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes wave {
  0%, 100% {
    height: 12px;
    opacity: 0.5;
  }
  50% {
    height: 64px;
    opacity: 1;
  }
}

/* ---------- 数据统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- 使用场景 ---------- */
.scenario {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-7);
}

.scenario:nth-child(even) {
  direction: rtl;
}

.scenario:nth-child(even) > * {
  direction: ltr;
}

.scenario__visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scenario__content h3 {
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.scenario__content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.scenario__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---------- 功能对比表 ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.compare-table td:not(:first-child) {
  text-align: center;
  color: var(--text-secondary);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .col-highlight {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.compare-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.compare-icon--yes {
  color: var(--accent-ink);
}

.compare-icon--no {
  color: var(--text-faint);
}

.compare-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- 代码块 ---------- */
.code-block {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  overflow-x: auto;
}

.code-block code {
  color: var(--accent-ink);
}

.code-block .comment {
  color: var(--text-faint);
}

/* ---------- 步骤 ---------- */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.step__body h4 {
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.step__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: var(--space-4);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding-bottom: var(--space-5);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 24, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-5);
}

.modal-overlay.is-open {
  display: flex;
  animation: fadeIn 200ms ease-out;
    left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
button { outline: none } 
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  padding: var(--space-7);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal__close:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.modal__subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.qr-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  transition: border-color var(--transition-base);
}

.qr-card:hover {
  border-color: var(--accent-ink);
}

.qr-card__img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: var(--space-2);
}

.qr-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.qr-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal__footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand .brand {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h5 {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-5);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: var(--space-5) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--text-faint);
  margin-left: var(--space-2);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text-secondary);
}

/* ---------- 页面 Hero ---------- */
.page-hero {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
}

/* ---------- 功能矩阵 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-block__visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block__content h2 {
  margin-bottom: var(--space-4);
}

.feature-block__content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.feature-list li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
  margin-top: 2px;
}

.feature-list__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge--free {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge--pro {
  background: rgba(255, 180, 84, 0.18);
  color: var(--warning);
}

.badge--new {
  background: rgba(76, 194, 255, 0.15);
  color: var(--info);
}

/* ---------- 通知条 ---------- */
.notice {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.notice svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
  margin-top: 2px;
}

.notice__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.notice__text strong {
  color: var(--text-primary);
}

/* ---------- 工具类 ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .feature-block { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 1fr; }
  .scenario:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-2);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 99;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__cta .btn--ghost {
    display: none;
  }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .footer-bottom__links { flex-wrap: wrap; justify-content: center; }
  .section { padding: var(--space-7) 0; }
  .hero { padding: var(--space-7) 0; }
  .modal { padding: var(--space-5); }
  .qr-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: var(--space-3); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; gap: var(--space-3); }
  .step__number { width: 40px; height: 40px; font-size: 1rem; }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@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;
  }
}
