/* ============================================
   Motrix 中文站 全站样式
   主色取自仓库 Logo（紫 #9F6BD0 → #C79BE8）
   扁平现代 · 浅色 · 无外部依赖
   ============================================ */

:root {
  /* 品牌色（取自 Logo 渐变） */
  --brand-700: #6B3FA0;
  --brand-600: #8B5FC7;
  --brand-500: #9F6BD0;
  --brand-400: #B48CD9;
  --brand-300: #C79BE8;
  --brand-200: #DCC0F0;
  --brand-100: #EDE4F6;
  --brand-50:  #F7F2FB;

  /* 中性色 */
  --ink-900: #1C1526;
  --ink-800: #241B33;
  --ink-700: #3D2A55;
  --ink-600: #5A4878;
  --ink-500: #7A6C92;
  --ink-400: #9C8FB8;
  --ink-300: #C6BBD8;
  --ink-200: #E4DAF0;
  --ink-100: #F1EBF8;
  --ink-50:  #F9F6FC;

  /* 语义色 */
  --bg: #FFFFFF;
  --bg-soft: #F7F4FB;
  --card: #FFFFFF;
  --border: #E6DDF0;
  --text: var(--ink-800);
  --text-muted: var(--ink-500);
  --accent: var(--brand-500);
  --accent-strong: var(--brand-600);

  /* 布局 */
  --max-w: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(61, 42, 85, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 42, 85, 0.10);
  --shadow-lg: 0 12px 40px rgba(61, 42, 85, 0.16);
  --brand-grad: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-300) 100%);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 焦点可见（可访问性） */
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--ink-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-900);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.brand-logo img { width: 100%; height: 100%; display: block; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--accent-strong); background: var(--brand-50); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent-strong); font-weight: 600; background: var(--brand-50); }

.nav-cta {
  background: var(--brand-grad);
  color: #fff;
  padding: 0 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
}

/* ---------- 面包屑 ---------- */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--ink-500);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--accent-strong); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--ink-800); font-weight: 600; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, var(--brand-100) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at -5% 110%, var(--brand-50) 0%, transparent 55%),
    var(--bg);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  color: var(--ink-900);
}
.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 32em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--ink-500);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.hero-meta svg { width: 15px; height: 15px; flex: none; color: var(--brand-500); }

/* 英雄图容器：微浮动动画 */
.hero-visual { position: relative; }
.hero-visual .float-1 { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 官方截图容器 */
.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(61, 42, 85, 0.18);
}
.shot-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-400);
  text-align: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 95, 199, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(139, 95, 199, 0.42); text-decoration: none; }
.btn-ghost {
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand-300); color: var(--accent-strong); text-decoration: none; background: var(--brand-50); }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 17px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
  color: var(--brand-600);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 12px;
  color: var(--ink-900);
  letter-spacing: -0.3px;
}
.section-head p { color: var(--text-muted); margin: 0; font-size: 16.5px; }

/* 功能卡片网格 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17.5px; color: var(--ink-900); }
.card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* 滚动进入视口的淡入 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .float-1 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 数据/统计条 ---------- */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--brand-50);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat b { display: block; font-size: 24px; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-500); }

/* ---------- 下载弹窗（逐字文案，不得改动） ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 21, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}
.modal-overlay.is-open .modal { transform: none; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h2 { margin: 0; font-size: 19px; color: var(--ink-900); }
.modal-close {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--ink-100); color: var(--ink-800); }
.modal-body { padding: 12px 24px 24px; }
.modal-note {
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 18px;
}

/* 两个固定尺寸网盘占位框 */
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-slot {
  border: 2px dashed var(--ink-300);
  border-radius: var(--radius);
  background: var(--ink-50);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 12px;
  text-align: center;
}
.qr-slot svg { width: 52px; height: 52px; color: var(--ink-300); }
.qr-slot img.qr-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.qr-slot .qr-text { font-size: 14px; font-weight: 600; color: var(--ink-600); letter-spacing: 0.5px; }

/* ---------- 表格（下载中心/关于） ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
table.data th { background: var(--brand-50); color: var(--ink-800); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data td .small { font-size: 12.5px; color: var(--ink-400); display: block; margin-top: 2px; }

/* ---------- FAQ 折叠面板 ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--brand-300); }
.faq-item summary {
  cursor: pointer;
  padding: 16px 52px 16px 18px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-800);
  list-style: none;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-500);
  border-bottom: 2px solid var(--brand-500);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--text-muted); font-size: 14.5px; }
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin: 0; }

/* ---------- 步骤（教程） ---------- */
.steps { display: grid; gap: 0; max-width: 780px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-left: 2px solid var(--ink-200);
  margin-left: 21px;
  padding-left: 40px;
  position: relative;
}
.step::before {
  content: attr(data-n);
  position: absolute;
  left: -22px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 0 6px #fff;
}
.step h3 { margin: 8px 0 6px; font-size: 16.5px; color: var(--ink-900); }
.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- 平台卡（下载中心） ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.platform-card h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; color: var(--ink-900); }
.platform-card h3 svg { width: 22px; height: 22px; color: var(--brand-500); }
.platform-dl { width: 100%; }
.pkg-overview {
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
}
.pkg-overview > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
}
.pkg-overview dt { color: var(--ink-500); font-weight: 600; }
.pkg-overview dd { margin: 0; color: var(--ink-800); }
.platform-note { font-size: 12.5px; color: var(--ink-400); margin: 0; }

/* ---------- 提示框 ---------- */
.notice {
  border-left: 4px solid var(--brand-400);
  background: var(--brand-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-700);
  margin: 24px 0;
}
.notice strong { color: var(--ink-900); }
.notice.warn { border-left-color: #C77E3E; background: #FBF5EC; color: #6B4E2E; }
.notice.warn strong { color: #55401F; }

/* ---------- 关于页事实卡 ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.fact-item dt { color: var(--ink-500); font-size: 13.5px; font-weight: 600; }
.fact-item dd { margin: 0; color: var(--ink-800); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-col h3 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-300); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--brand-200); }
.footer-desc { font-size: 13.5px; color: var(--ink-400); margin: 0 0 10px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(230, 221, 240, 0.12);
  padding: 20px 24px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--ink-400);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-bottom a {
  color: var(--ink-300);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom a:hover { color: var(--brand-200); text-decoration: none; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 110px 24px 130px; }
.nf h1 {
  font-size: clamp(72px, 14vw, 150px);
  margin: 0;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}
.nf p { color: var(--text-muted); font-size: 17px; margin: 14px 0 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; gap: 36px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-wrap { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { margin-top: 6px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .step { padding-left: 32px; margin-left: 17px; }
  .step::before { left: -18px; width: 36px; height: 36px; font-size: 13px; top: 26px; }
}
