/* ==========================================================================
   Avidemux 中文站 · 全站样式
   配色提取自官方 logo（红色场记板 + 企鹅）：主红 #C83828 / 深红 #A82A1C
   兼容基线：Chromium 86 —— 不使用 :has()、容器查询、color-mix()、nesting
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色（取自 logo-active.png 主色） */
  --brand: #c83828;
  --brand-dark: #a82a1c;
  --brand-light: #fdecea;
  --brand-soft: #f6d9d5;

  /* 中性色（取自 logo 灰橄榄系，调整为现代中性灰） */
  --ink: #1f1f1f;
  --ink-2: #3d3d3d;
  --ink-3: #5f5f5f;
  --ink-4: #8a8a8a;
  --line: #e6e4de;
  --line-2: #d2cfc6;

  /* 背景（取自 logo 米白 #D8D8C0，提亮为页面底色） */
  --bg: #faf9f6;
  --bg-2: #f3f1eb;
  --bg-card: #ffffff;
  --bg-dark: #2a2622;

  /* 语义色 */
  --ok: #2e7d4f;
  --ok-light: #e7f3ec;
  --warn: #b7791f;
  --warn-light: #fbf1de;

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

  /* 尺寸 */
  --container: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(31, 31, 31, 0.06);
  --shadow: 0 6px 24px rgba(31, 31, 31, 0.08);
  --shadow-lg: 0 20px 60px rgba(31, 31, 31, 0.18);
  --header-h: 64px;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
button {
    outline: none;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* 仅屏幕阅读器可见 */
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

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

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-2);
}

.section--dark {
  background: var(--bg-dark);
  color: #f3f1eb;
}

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

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

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
}

.section--dark .eyebrow {
  background: rgba(200, 56, 40, 0.18);
  color: #ff8f80;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
}

h2 {
  font-size: clamp(26px, 3.5vw, 36px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--ink-3);
}

.section--dark .lead,
.section--dark p {
  color: #cfcac2;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex: none;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
  flex: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 56, 40, 0.3);
}

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(200, 56, 40, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 32px;
  font-size: 17px;
}

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

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 249, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}

/* 三段式导航：1fr auto 1fr —— 左右两列等宽，中间菜单精确居中 */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.brand {
  justify-self: start;
}

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

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-2);
  text-decoration: none;
}

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

.nav-cta {
  justify-self: end;
  margin-left: 0;
}

.nav-toggle {
  justify-self: end;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

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

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- 6. 页面标题区（子页面） ---------- */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero .lead {
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-4);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-2);
}

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

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

/* ---------- 7. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background: linear-gradient(160deg, #fff 0%, var(--bg) 55%, var(--brand-light) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(200, 56, 40, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

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

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  white-space: nowrap;
}

.hero .lead {
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--ink-3);
}

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

.hero-meta .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-shot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.hero-badge {
  position: absolute;
  left: -24px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-badge .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.hero-badge strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.hero-badge span {
  font-size: 12px;
  color: var(--ink-4);
}

/* 浏览器窗口样式的截图容器 */
.browser-frame {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.browser-frame__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.browser-frame__bar i:first-child {
  background: #e8605a;
}

.browser-frame__bar i:nth-child(2) {
  background: #e9b949;
}

.browser-frame__bar i:nth-child(3) {
  background: #5fb86a;
}

.browser-frame__title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

/* ---------- 8. 信任条 ---------- */
.trustbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trustbar .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.trustbar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.trustbar__item .icon {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--brand);
}

.trustbar__item strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-soft);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
  color: var(--ink-3);
  font-size: 15px;
}

.card .icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 12px;
}

.card .icon-box .icon {
  width: 24px;
  height: 24px;
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  box-shadow: var(--shadow-sm);
}

.card--number .num {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card__list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* 深色区块内的卡片 */
.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.section--dark .card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.section--dark .card p {
  color: #cfcac2;
}

.section--dark .card .icon-box {
  background: rgba(200, 56, 40, 0.25);
  color: #ff8f80;
}

/* ---------- 10. 场景卡片（图文混排） ---------- */
.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.scene:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.scene:first-child {
  padding-top: 0;
}

.scene__media {
  position: relative;
  order: -1;
}

.scene--flip .scene__media {
  order: 1;
}

.scene__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* 场景截图：浏览器窗口样式，与首页 Hero 呼应 */
.scene__shot {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scene__shot img {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px;
  background: #fff;
}

.scene:hover .scene__shot {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scene__shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.scene__shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}

.scene__shot-bar i:first-child {
  background: #e8605a;
}

.scene__shot-bar i:nth-child(2) {
  background: #e9b949;
}

.scene__shot-bar i:nth-child(3) {
  background: #5fb86a;
}

.scene__shot-bar span {
  margin-left: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scene__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 32px;
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-lg);
  color: var(--brand);
}

.scene__visual .icon {
  width: 120px;
  height: 120px;
}

.scene__body h3 {
  font-size: 24px;
}

.scene__body p {
  color: var(--ink-3);
}

.scene__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tag--brand {
  color: var(--brand);
  background: var(--brand-light);
  border-color: var(--brand-soft);
}

/* ---------- 11. 工作流步骤 ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-soft);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

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

.step code {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ---------- 12. 功能矩阵 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature {
  padding: 28px;
  background: #fff;
}

.feature .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--brand);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 13. 平台与系统要求 ---------- */
.platform-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.platform {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.platform__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.platform__head .icon {
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.platform__head h3 {
  margin: 0;
  font-size: 19px;
}

.platform dl {
  margin: 0;
  font-size: 14px;
}

.platform dt {
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink-4);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform dd {
  margin: 2px 0 0;
  color: var(--ink-2);
}

/* ---------- 14. 下载卡片（下载中心） ---------- */
.os-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 0.15s ease;
}

.os-tab .icon {
  width: 18px;
  height: 18px;
}

.os-tab:hover {
  color: var(--ink);
  border-color: var(--ink-4);
}

.os-tab[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.os-panel {
  display: none;
}

.os-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.dl-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dl-card h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.dl-card .ver {
  display: inline-block;
  margin-bottom: 20px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-light);
  border-radius: 6px;
}

.dl-card .meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 18px;
  background: var(--bg-2);
  border-radius: var(--radius);
  font-size: 14px;
}

.dl-card .meta div strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.dl-card .meta div span {
  color: var(--ink);
  font-weight: 500;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.dl-note {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  background: var(--warn-light);
  border-left: 3px solid var(--warn);
  border-radius: 0 8px 8px 0;
}

.dl-note--ok {
  background: var(--ok-light);
  border-left-color: var(--ok);
}

.hash {
  margin: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
  color: var(--ink-2);
  background: var(--ink);
  color: #e8e4dc;
  border-radius: var(--radius);
}

.hash strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #9c978e;
  letter-spacing: 0.04em;
}

.side-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.side-card + .side-card {
  margin-top: 16px;
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 16px;
}

.side-card h3 .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.side-card p,
.side-card li {
  font-size: 14px;
  color: var(--ink-3);
}

.side-card ul {
  margin: 0;
  padding-left: 18px;
}

.side-card a {
  font-weight: 500;
}

/* 历史版本表格 */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--bg-2);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.pill--ok {
  color: var(--ok);
  background: var(--ok-light);
}

.pill--muted {
  color: var(--ink-3);
  background: var(--bg-2);
}

.pill--warn {
  color: var(--warn);
  background: var(--warn-light);
}

/* ---------- 15. 教程页 ---------- */
.toc {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.toc li {
  padding: 4px 0;
}

.toc a {
  color: var(--ink-2);
  font-weight: 500;
}

.toc a:hover {
  color: var(--brand);
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* 网格子项必须允许收缩，否则宽表格 / 长代码会把容器撑破 */
.guide-layout > * {
  min-width: 0;
}

.guide-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.guide-layout table {
  min-width: 0;
}

.guide-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.guide-section:last-child {
  border-bottom: 0;
}

.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.guide-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
}

.guide-section h3 {
  margin-top: 28px;
  font-size: 18px;
}

.guide-figure {
  margin: 28px 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.guide-figure img {
  width: 100%;
}

.guide-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-4);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gs;
}

.guide-steps li {
  position: relative;
  padding: 0 0 24px 52px;
  counter-increment: gs;
}

.guide-steps li::before {
  content: counter(gs);
  position: absolute;
  left: 0;
  top: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 50%;
}

.guide-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--brand-soft);
}

.guide-steps li:last-child {
  padding-bottom: 0;
}

.guide-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.guide-steps p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-3);
}

.key {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: var(--ink-2);
}

.callout strong {
  color: var(--brand-dark);
}

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

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

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

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--ink-4);
  border-bottom: 2px solid var(--ink-4);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  background: var(--bg-2);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--ink-3);
  font-size: 15px;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 16. 关于页 ---------- */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--brand-soft);
}

.timeline__item {
  position: relative;
  padding: 0 0 32px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--brand);
  border-radius: 50%;
}

.timeline__item time {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
}

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

.timeline__item p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.fact-list dt {
  color: var(--ink-4);
}

.fact-list dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

/* ---------- 17. CTA 区块 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--brand);
  color: #fff;
}

.cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.cta .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  margin: 0;
  opacity: 0.9;
}

.cta .btn--light {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  padding: 56px 0 32px;
  background: #1d1a17;
  color: #a8a29a;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h3 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e8e4dc;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  padding: 4px 0;
}

.footer-grid a {
  color: #a8a29a;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand img {
  width: 56px;
  height: auto;
  filter: brightness(1.6);
}

.footer-desc {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #7a746c;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 19. 下载弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  left:0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 23, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 0;
}

.modal__head h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.modal__head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  margin: -6px -10px 0 0;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.modal__close .icon {
  width: 22px;
  height: 22px;
}

.modal__body {
  padding: 24px 32px 32px;
}

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

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
}

.qr-card--quark {
  border-color: #c9b98a;
  background: #fbf8ef;
}

.qr-card--baidu {
  border-color: #9ec3e6;
  background: #f1f7fd;
}

/* 二维码容器：白底 + 留白，保证扫码识别率 */
.qr-card__placeholder {
  width: 180px;
  height: 180px;
  margin-bottom: 16px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qr-card__placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 6px;
}

.qr-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.qr-card__title .icon {
  width: 20px;
  height: 20px;
}

.qr-card--quark .qr-card__title .icon {
  color: #b8902e;
}

.qr-card--baidu .qr-card__title .icon {
  color: #2b6cb0;
}

.qr-card__desc {
  font-size: 13px;
  color: var(--ink-3);
}

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

.modal__foot a {
  font-weight: 500;
}

/* ---------- 20. 渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero .lead {
    max-width: none;
  }
  .hero-badge {
    left: 16px;
  }
  .grid--4,
  .trustbar .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3,
  .steps,
  .feature-grid,
  .platform-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-sticky {
    position: static;
  }
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .container {
    padding: 0 18px;
  }
  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .feature-grid,
  .platform-list,
  .trustbar .container,
  .fact-list,
  .footer-grid,
  .scene,
  .qr-grid {
    grid-template-columns: 1fr;
  }
  .scene {
    gap: 24px;
    padding: 32px 0;
  }
  .scene--flip .scene__media {
    order: -1;
  }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-links li:last-child a {
    border-bottom: 0;
  }
  /* 移动端：放弃三段式网格，回到 flex 两端对齐 */
  .nav {
    display: flex;
    gap: 12px;
  }
  .brand {
    margin-right: auto;
  }
  .nav-cta {
    margin-left: 0;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    gap: 6px;
  }
  .nav-cta .icon {
    width: 16px;
    height: 16px;
  }
  .nav-toggle {
    margin-left: 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero h1 em {
    white-space: normal;
  }
  .hero-badge {
    position: static;
    margin-top: 16px;
  }
  .dl-card {
    padding: 24px 20px;
  }
  .dl-card .meta {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 12px;
    align-items: flex-end;
  }
  .modal__dialog {
    max-width: none;
    border-radius: 18px 18px 0 0;
  }
  .modal__head {
    padding: 22px 20px 0;
  }
  .modal__body {
    padding: 20px 20px 24px;
  }
  .qr-card__placeholder {
    width: 150px;
    height: 150px;
  }
  .os-tabs {
    flex-wrap: wrap;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }
  .brand {
    font-size: 17px;
  }
  .brand img {
    width: 46px;
  }
  .nav-cta {
    padding: 0 12px;
    font-size: 13px;
    gap: 5px;
  }
  .nav-cta .icon {
    width: 15px;
    height: 15px;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: 6px;
  }
  .container {
    padding: 0 14px;
  }
}

/* ---------- 22. 无障碍偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 23. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta,
  .nav-toggle,
  .modal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
  }
}
