/* ==========================================================================
   DS4Windows 中文站 · 全站样式
   设计依据：官方经典 logo（蓝 → 紫 → 品红渐变）
   兼容：Chromium 86（不使用 aspect-ratio / inset / :is() / CSS 嵌套）
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色（取自 logo 渐变） */
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --indigo-500: #6366f1;
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --magenta-500: #d946ef;
  --pink-500: #ec4899;

  /* 中性色 */
  --ink-900: #0b1220;
  --ink-800: #111827;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* 功能色 */
  --green-600: #059669;
  --green-50: #ecfdf5;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --red-50: #fef2f2;

  /* 渐变与背景 */
  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 48%, #d946ef 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.12) 48%, rgba(217, 70, 239, 0.12) 100%);
  --hero-bg: radial-gradient(1100px 520px at 88% -12%, rgba(217, 70, 239, 0.14), transparent 60%),
             radial-gradient(900px 480px at 8% -20%, rgba(14, 165, 233, 0.18), transparent 58%),
             linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  --dark-bg: linear-gradient(160deg, #0b1220 0%, #131c33 55%, #1a1440 100%);

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

  /* 尺寸 */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.07);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --border: 1px solid var(--slate-200);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--violet-600);
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--slate-100);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  color: var(--violet-600);
}

::selection {
  background: rgba(99, 102, 241, 0.22);
}

/* ---------- 可访问性 ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 0 0 8px 8px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  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;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 56px 0;
}

.section--tint {
  background: var(--slate-50);
}

.section--dark {
  background: var(--dark-bg);
  color: var(--slate-300);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head--left {
  margin: 0 0 40px;
  text-align: left;
}

.section-head h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--slate-500);
  margin: 0;
}

.section--dark .section-head p {
  color: var(--slate-400);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--brand-gradient-soft);
  color: var(--violet-600);
  padding: 6px 14px;
  border-radius: 999px;
}

.section--dark .eyebrow {
  background: rgba(139, 92, 246, 0.18);
  color: var(--sky-400);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.4);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink-800);
  border-color: var(--slate-300);
}

.btn--ghost:hover {
  border-color: var(--violet-500);
  color: var(--violet-600);
  transform: translateY(-2px);
}

.btn--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 17px;
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink-900);
}

.brand-logo {
  width: 38px;
  height: 38px;
}

.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--violet-600);
  background: var(--slate-100);
}

.nav-links a[aria-current="page"] {
  color: var(--blue-600);
  background: var(--brand-gradient-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  align-items: center;
  justify-content: center;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--slate-500);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--slate-400);
  border-bottom: 1.5px solid var(--slate-400);
  transform: rotate(-45deg);
}

.breadcrumb a {
  color: var(--slate-500);
}

.breadcrumb a:hover {
  color: var(--blue-600);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-800);
  font-weight: 600;
}

/* ---------- 首页 Hero ---------- */
.hero {
  background: var(--hero-bg);
  padding: 76px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.85);
  border: var(--border);
  border-radius: 999px;
}

.badge .icon {
  width: 15px;
  height: 15px;
  color: var(--blue-500);
}

.hero h1 {
  font-size: 46px;
  line-height: 1.18;
  margin-bottom: 20px;
}

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

.hero-lead {
  font-size: 18px;
  color: var(--slate-600);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14px;
  color: var(--slate-500);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .icon {
  width: 17px;
  height: 17px;
  color: var(--green-600);
}

/* Hero 产品预览卡 */
.hero-visual {
  position: relative;
}

.preview-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: var(--ink-900);
}

.preview-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #334155;
}

.preview-bar span:first-child { background: #f87171; }
.preview-bar span:nth-child(2) { background: #fbbf24; }
.preview-bar span:nth-child(3) { background: #34d399; }

.preview-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--slate-400);
}

.preview-shot {
  background: #eef2ff;
}

.preview-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* 浮动产品卡片 */
.float-card {
  position: absolute;
  left: -28px;
  bottom: -32px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 258px;
  padding: 12px 18px 12px 12px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.float-card-img {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  object-fit: cover;
}

.float-card-text strong {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
}

.float-card-text small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--slate-500);
}

/* ---------- 信任条 ---------- */
.trust-strip {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
  text-align: center;
}

.trust-item .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: var(--violet-600);
}

.trust-item b {
  display: block;
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 3px;
}

.trust-item span {
  font-size: 13.5px;
  color: var(--slate-500);
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.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(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--brand-gradient-soft);
  color: var(--blue-600);
}

.card-icon .icon {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--slate-500);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
}

.card-link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- 使用场景 ---------- */
.scene {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.scene-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 12px;
}

.scene-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.scene-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate-500);
}

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  position: relative;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.section--dark .step {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-gradient);
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--slate-500);
}

.section--dark .step p {
  color: var(--slate-400);
}

/* ---------- 内页头 ---------- */
.page-hero {
  background: var(--hero-bg);
  padding: 60px 0 72px;
}

.page-hero h1 {
  font-size: 40px;
  margin: 8px 0 16px;
}

.page-hero p {
  max-width: 680px;
  font-size: 17.5px;
  color: var(--slate-600);
  margin: 0;
}

/* ---------- 设备表 / 设备卡 ---------- */
.device-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.device-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.device-top .card-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.device-top h3 {
  margin: 0;
  font-size: 18px;
}

.device-top small {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
}

.tag .icon {
  width: 13px;
  height: 13px;
}

.tag--ok {
  background: var(--green-50);
  color: var(--green-600);
}

.table-wrap {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}

.table th,
.table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.table th {
  background: var(--slate-50);
  color: var(--ink-800);
  font-weight: 700;
  white-space: nowrap;
}

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

.table td .yes {
  color: var(--green-600);
  font-weight: 700;
}

.table td .no {
  color: var(--slate-400);
}

/* ---------- 提示框 ---------- */
.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 15px;
}

.callout .icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--blue-600);
}

.callout p { margin: 0; }

.callout--warn {
  background: var(--amber-50);
  border-color: #fde68a;
}

.callout--warn .icon { color: var(--amber-600); }

.callout--info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* ---------- 下载中心 ---------- */
.download-hero-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.download-hero-card h2 {
  font-size: 27px;
  margin-bottom: 10px;
}

.download-hero-card p {
  color: var(--slate-500);
  margin: 0 0 18px;
}

.download-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--slate-600);
}

.download-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.download-facts .icon {
  width: 16px;
  height: 16px;
  color: var(--blue-500);
}

.req-list li {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--slate-200);
}

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

.req-list .icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  color: var(--violet-600);
}

.req-list b {
  display: block;
  color: var(--ink-900);
  font-size: 15.5px;
}

.req-list span {
  font-size: 14px;
  color: var(--slate-500);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
  border-color: var(--violet-500);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--slate-500);
  transition: transform var(--transition);
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
  color: var(--violet-600);
}

.faq-content {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--slate-600);
}

.faq-content p { margin: 0 0 10px; }
.faq-content p:last-child { margin-bottom: 0; }
.faq-content ul { padding-left: 20px; list-style: disc; }
.faq-content li { margin-bottom: 6px; }

/* ---------- CTA 区块 ---------- */
.cta-band {
  background: var(--brand-gradient);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin: 0 auto 28px;
  max-width: 560px;
}

.cta-band .btn--ghost {
  background: #fff;
  border-color: #fff;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 18, 32, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 36px 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition);
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  color: var(--slate-600);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--slate-200);
  color: var(--ink-900);
}

.modal-close .icon {
  width: 20px;
  height: 20px;
}

.modal-head {
  text-align: center;
  margin-bottom: 26px;
  padding-right: 30px;
}

.modal-head h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate-500);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.qr-frame {
  width: 100%;
  padding: 14px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.qr-box:hover .qr-frame {
  border-color: var(--violet-500);
  box-shadow: var(--shadow);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr-box figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
}

.qr-box small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--slate-500);
}

.modal-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  font-size: 13px;
  color: var(--slate-500);
  text-align: center;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--slate-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .brand:hover { color: #fff; }

.footer-brand p {
  font-size: 14px;
  color: var(--slate-400);
  max-width: 320px;
}

.footer-col h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--slate-400);
  font-size: 14.5px;
}

.footer-col a:hover {
  color: var(--sky-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  font-size: 13px;
  color: var(--slate-500);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom a {
  color: var(--slate-500);
}

.footer-bottom a:hover { color: var(--sky-400); }

/* ---------- 图标尺寸 ---------- */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .hero-grid { gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-hero-card { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: var(--white);
    border-bottom: var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav-toggle { display: inline-flex; }

  .nav-actions .btn {
    padding: 10px 18px;
    font-size: 14.5px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .grid-3,
  .grid-2,
  .steps { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .page-hero h1 { font-size: 32px; }
  .cta-band { padding: 42px 26px; }
  .cta-band h2 { font-size: 25px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .modal-dialog { padding: 30px 22px 26px; }
  .float-card {
    position: static;
    max-width: none;
    margin-top: 12px;
    padding: 10px 14px 10px 10px;
  }
  .float-card-img { width: 52px; height: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .card,
  .step { padding: 26px 22px; }
  .download-hero-card { padding: 28px 22px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
