/* Compositor 中文站 - www.compositor.com.cn
   全站对齐 robbietilton.com/compositor 官方风格：黑白极简配色，
   胶囊按钮（999px）与英雄区一致；仅网盘标签保留品牌色。 */

:root {
  --blue: #000000;
  --blue-deep: #1A1A1A;
  --blue-dark: #000000;
  --blue-ink: #000000;
  --orange: #FFFFFF;
  --orange-deep: #F0F0F0;
  --ink: #111111;
  --ink-2: #4A4A4A;
  --ink-3: #8A8A8A;
  --line: #E2E2E2;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F5;
  --bg-blue: #F5F5F5;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(0, 0, 0, .12);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 44px -14px rgba(0, 0, 0, .18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25em; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-left: auto; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: #000; background: var(--bg-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: #000; background: var(--bg-soft); font-weight: 600; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 24px; border-radius: 999px; background: #000; color: #fff;
  font-weight: 500; font-size: 14px; transition: transform .15s ease, opacity .15s ease;
}
.nav-cta:hover { opacity: .85; text-decoration: none; }
.nav-toggle { display: none; }

/* ===== 通用区块 ===== */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; color: var(--ink); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #000; }
.card h3 { font-size: 18px; margin: 14px 0 8px; color: var(--ink); }
.card p { font-size: 15px; color: var(--ink-2); }
.card .num {
  font-size: 30px; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.card .num small { font-size: 16px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.card .cap { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* 扁平图标位（SVG 线性风格统一色） */
.icon-tile {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-blue); color: var(--blue);
}
.icon-tile.orange { background: #EDEDED; color: #333; }
.icon-tile svg { width: 24px; height: 24px; }

/* ===== 按钮：全站统一胶囊圆角（999px，与英雄区一致）+ 黑白配色 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 53px; padding: 0 34px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { transform: scale(1.03); text-decoration: none; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { opacity: .85; }
.btn-orange { background: #000; color: #fff; }
.btn-orange:hover { opacity: .85; }
.btn-ghost { background: #fff; color: #000; border-color: #DCDCDC; }
.btn-ghost:hover { opacity: .6; }
.btn-lg { height: 56px; padding: 0 40px; font-size: 16px; }

/* ===== Hero（对齐官方 robbietilton.com/compositor：白底、居中大标题、胶囊按钮、通栏大图） ===== */
.hero { background: #fff; text-align: center; }
.hero-inner { padding: 96px 20px 0; }
.hero h1 {
  margin: 0 auto; max-width: 1080px;
  font-size: clamp(34px, 5.6vw, 68px); line-height: 1.08; letter-spacing: -.025em;
  font-weight: 700; color: #000;
}
.hero .sub {
  margin: 16px auto 0; max-width: 1080px;
  font-size: clamp(18px, 2.4vw, 26px); line-height: 1.35;
  font-weight: 400; color: #7a7a7a; letter-spacing: -.005em;
}
.hero .buttons { display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: #b5b5b5; }
.hero-image { margin: 40px auto 0; max-width: 1600px; overflow: hidden; }
/* 官方同款：窄窗口下两侧裁切而非缩小 */
.hero-image img { width: max(100%, 1300px); height: auto; margin-left: 50%; transform: translateX(-50%); }

/* 胶囊按钮（官方样式） */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 53px; padding: 0 34px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, opacity .15s ease; text-decoration: none;
}
.btn-pill:hover { transform: scale(1.03); text-decoration: none; }
.btn-pill img { width: 17px; height: 17px; }
.btn-black { background: #000; color: #fff; border: none; }
.btn-black:hover { opacity: .85; }
.btn-white { background: #fff; color: #000; border-color: #DCDCDC; }
.btn-white:hover { opacity: .6; }

/* ===== Purpose 区（官方布局：左画廊右灰底信息） ===== */
.purpose { display: flex; margin-top: 0; align-items: stretch; }
.purpose .gallery { width: 50%; overflow: hidden; display: flex; flex-direction: column; }
.purpose .gallery img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; }
.purpose .info { width: 50%; background: #EEE; padding: 72px 60px 72px 96px; }
.purpose .label {
  margin: 0; font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: .02em; color: #8A8A8A; text-transform: uppercase;
}
.purpose .info h2 {
  margin: 14px 0 0; font-size: 24px; line-height: 30px; font-weight: 600;
  letter-spacing: -.01em; color: #000;
}
.purpose .copy { max-width: 433px; margin-top: 24px; }
.purpose .copy p { margin: 0 0 20px; font-size: 16px; line-height: 22px; color: #9A9A9A; }
.purpose .copy p:last-child { margin-bottom: 0; }
.features {
  list-style: none; margin: 46px 0 0; padding: 0; max-width: 420px;
}
.features li {
  display: flex; align-items: center; height: 42px; padding-left: 11px;
  font-size: 14px; color: #333; border-bottom: 1px solid #E2E2E2;
}
.features li:last-child { border-bottom: 0; }
.features img { width: 26px; height: 26px; margin-right: 25px; flex-shrink: 0; mix-blend-mode: multiply; }

/* 场景卡与优势卡里的官方图标 */
.card .feat-icon { width: 28px; height: 28px; margin-bottom: 10px; mix-blend-mode: multiply; }
.card .adv-num {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #b5b5b5;
  margin: 0 0 6px; font-variant-numeric: tabular-nums;
}

/* ===== 信任条 ===== */
.trustbar { border-bottom: 1px solid var(--line); background: #fff; }
.trustbar .inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 18px; padding: 20px 0;
}
.trust-item { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-3); }
.trust-item strong { font-size: 19px; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ===== 使用场景 ===== */
.scene-card { display: flex; flex-direction: column; gap: 10px; }
.scene-card .figure {
  border-radius: 10px; height: 8px; width: 56px;
}
.scene-card ul { margin-top: 6px; }
.scene-card li { font-size: 14px; color: var(--ink-2); margin-bottom: 3px; }

/* ===== 优势对比表 ===== */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.compare th, .compare td { padding: 15px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: var(--bg-blue); color: var(--blue-ink); font-size: 14px; letter-spacing: .04em;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 200px; }
.compare .yes { color: #000; font-weight: 700; }
.compare .no { color: var(--ink-3); }
.compare .col-hl { background: #F5F5F5; }

/* ===== 功能特性 ===== */
.feature-section { padding: 18px 0 10px; }
.feature-group { margin-bottom: 46px; }
.feature-group > h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; color: var(--ink); margin-bottom: 6px;
}
.feature-group > h3 .index {
  font-size: 13px; font-weight: 800; color: var(--blue);
  background: var(--bg-blue); border-radius: 7px; padding: 3px 9px; letter-spacing: .05em;
}
.feature-group > p.lead { color: var(--ink-2); margin-bottom: 22px; max-width: 760px; }
.kbd-list { list-style: none; padding: 0; margin-top: 12px; }
.kbd-list li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.kbd-list li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); flex: none; position: relative; top: -3px; }
.kbd {
  font-family: var(--mono); font-size: 12.5px; background: #F0F0F0; border: 1px solid #DCDCDC;
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; color: var(--ink); white-space: nowrap;
}

/* ===== 教程步骤 ===== */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 26px; }
.step .no {
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step .figure { margin-top: 16px; border-radius: 8px; border: 1px solid var(--line); }

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--blue); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.faq .answer a { font-weight: 500; }

/* ===== 下载区：纯黑横幅 + 白色胶囊按钮 ===== */
.dl-band {
  background: #000; color: #fff; border-radius: var(--radius-lg); padding: 54px 48px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.dl-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; color: #fff; }
.dl-band p { color: #B5B5B5; font-size: 16px; margin-bottom: 26px; }
.dl-band .meta { margin-top: 18px; font-size: 13px; color: #8A8A8A; display: flex; flex-wrap: wrap; gap: 16px; }
.dl-band .btn-orange {
  background: #fff; color: #000; position: relative; z-index: 1;
}
.dl-band .btn-orange:hover { opacity: .75; }

/* ===== 页脚 ===== */
.site-footer { background: #000; color: #9A9A9A; padding: 56px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid #222; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-footer p { font-size: 14px; line-height: 1.8; }
.site-footer h4 { color: #EDEDED; font-size: 14px; margin-bottom: 14px; letter-spacing: .05em; }
.site-footer ul { list-style: none;    padding-left: 0;}
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: #9A9A9A; font-size: 14px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 13px; color: #8A8A8A; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }

/* ===== 下载弹窗 ===== */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(11, 20, 38, .55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; background: #fff; border-radius: 18px; width: min(760px, 96%);
  max-height: 92vh; overflow-y: auto; padding: 36px 38px 32px;
  box-shadow: 0 30px 80px -20px rgba(11, 27, 58, .45);
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 18px;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--ink); border-color: #C4C4C4; }
.modal-head { text-align: center; margin-bottom: 24px; }
.modal-head .app-icon { width: 58px; height: 58px; border-radius: 14px; margin: 0 auto 14px; box-shadow: var(--shadow); }
.modal-head h3 { font-size: 22px; color: var(--ink); }
.modal-head p { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--bg-soft); transition: border-color .2s;
}
.qr-item:hover { border-color: #000; }
.qr-item img.qr { width: 190px; height: 190px; border-radius: 10px; border: 1px dashed #CFCFCF; background: #fff; padding: 10px; }
.qr-item .qr-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.qr-item .qr-hint { font-size: 12.5px; color: var(--ink-3); }
.qr-item .netdisk-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.netdisk-tag.quark { background: #000; color: #fff; }
.netdisk-tag.baidu { background: #fff; color: #000; border: 1px solid #DCDCDC; }
.modal-tips { margin-top: 20px; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.8; }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; color: #C4C4C4; }

/* ===== 页面标题带 ===== */
.page-hero { background: #F5F5F5; padding: 40px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 40px); color: var(--blue-ink); line-height: 1.3; }
.page-hero .sub { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 780px; }

/* 文章型页面 */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; color: var(--ink); }
.prose h2.first { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; color: var(--ink); }
.prose p { margin-bottom: 14px; color: var(--ink-2); font-size: 15.5px; }
.prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-blue); color: var(--blue-ink); }

/* 版本时间线 */
.version-list { display: grid; gap: 14px; }
.version-item { display: flex; gap: 18px; padding: 20px 22px; align-items: flex-start; }
.version-item .vtag {
  flex: none; font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--blue); background: var(--bg-blue); border-radius: 7px; padding: 3px 10px; margin-top: 3px;
}
.version-item .date { flex: none; font-size: 13px; color: var(--ink-3); margin-top: 5px; min-width: 96px; }
.version-item ul { list-style: none; }
.version-item li { font-size: 14.5px; color: var(--ink-2); margin-bottom: 4px; display: flex; gap: 8px; }
.version-item li::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--orange); flex: none; position: relative; top: 9px; }

/* 徽标行 */
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }

/* ===== 移动端 ===== */
@media (max-width: 1100px) {
  .hero-inner { padding-top: 72px; }
  .purpose .info { padding: 56px 40px 52px 48px; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps, .spec-row { grid-template-columns: repeat(2, 1fr); }
  .dl-band { grid-template-columns: 1fr; padding: 40px 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line);
    border-radius: 9px; background: #fff; cursor: pointer; padding: 0; align-items: center;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 4%; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-open .nav-links a { padding: 12px 14px; }
  /* Purpose 区纵向堆叠（官方移动端处理） */
  .purpose { flex-direction: column; }
  .purpose .gallery { width: 100%; }
  .purpose .gallery img { height: 240px; flex: none; }
  .purpose .info { width: 100%; padding: 42px 28px 44px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .steps, .spec-row, .qr-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 20px; }
  .version-item { flex-wrap: wrap; }
  .btn-pill { height: 46px; padding: 0 26px; font-size: 14px; }
  .hero .buttons { gap: 8px; }
}

/* 无障碍：跳转链接 */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* 打印 */
@media print {
  .site-header, .site-footer, .modal, .nav-toggle { display: none !important; }
}


/* ===== 回到顶部按钮 ===== */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 999px;
  background: #000; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { opacity: .85; }
.back-top svg { width: 20px; height: 20px; }
.back-top:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

@media print { .back-top { display: none !important; } }

/* 页脚栏目标题（原 h4，避免标题层级跳跃） */
.footer-h4 { color: #EDEDED; font-size: 14px; margin-bottom: 14px; letter-spacing: .05em; font-weight: 600; }

/* 屏幕阅读器专用（视觉隐藏，保留语义） */
.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;
}
