/* ==========================================================================
   Qeko — qeko.com 站点样式
   结构：变量 → 基础 → 顶栏 → 侧栏 → 内容 → 组件 → 响应式
   ========================================================================== */

:root {
  --brand: #1a73e8;
  --brand-dark: #1257bb;
  --brand-soft: #e9f1fe;
  --brand-line: #cfe0fa;
  --ink: #0e1726;
  --ink-2: #3a4a60;
  --muted: #6b7d94;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --tint: #fbfcfe;
  --line: #e3e9f2;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .05), 0 2px 6px rgba(16, 32, 64, .04);
  --shadow-md: 0 18px 40px -28px rgba(16, 32, 64, .55);
  --header-h: 64px;
  --side-w: 272px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font: inherit; }

::selection { background: #cfe2ff; }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  margin-top: -3px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }

.topnav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.topnav a:hover { background: #eff4fb; color: var(--ink); text-decoration: none; }
.topnav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.topnav a.topnav-contact {
  margin-left: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.topnav a.topnav-contact:hover,
.topnav a.topnav-contact.active {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.lang-switch {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex: none;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(26, 115, 232, .8);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--ink-2);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: var(--ink-2);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* 阅读进度 */
.progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 2px;
  width: 0;
  z-index: 55;
  background: linear-gradient(90deg, #1a73e8, #64b5f6);
  transition: width .08s linear;
}

/* ---------- 布局 ---------- */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  align-items: start;
}

/* ---------- 侧栏 ---------- */

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 14px 12px 48px;
  border-right: 1px solid var(--line);
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #d7e0ec transparent;
  z-index: 40;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #dbe4ef; border-radius: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

.nav-group + .nav-group { margin-top: 4px; }

.nav-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 10px 7px;
  font-size: 12px;
  font-weight: 700;
  color: #57677e;
  letter-spacing: .01em;
}
.nav-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  opacity: .85;
}
.nav-group:nth-child(2) .nav-label i { background: #7c4dff; }
.nav-group:nth-child(3) .nav-label i { background: #00a884; }
.nav-group:nth-child(4) .nav-label i { background: #f0932b; }
.nav-group:nth-child(5) .nav-label i { background: #e84393; }
.nav-group:nth-child(6) .nav-label i { background: #1e9bd7; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  margin: 1px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.nav-link:hover { background: #f2f6fc; color: var(--ink); text-decoration: none; }
.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  border-color: var(--brand-line);
}
.nav-link .tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: #9bb0c9;
  border-radius: 999px;
  padding: 1px 6px;
  flex: none;
}
.nav-link.active .tag { background: var(--brand); }
.nav-lang { display: flex; gap: 6px; padding: 3px 10px 9px; }
.nav-lang button {
  flex: 1;
  padding: 5px 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: .14s;
}
.nav-lang button:hover { border-color: #b6d1f7; color: var(--brand-dark); }
.nav-lang button[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-dark);
  font-weight: 600;
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, .42);
  z-index: 35;
  opacity: 0;
  transition: opacity .2s;
}

/* ---------- 主内容 ---------- */

main { padding: 30px 40px 40px; min-width: 0; }
.content { max-width: 1010px; }

.app {
  scroll-margin-top: calc(var(--header-h) + 14px);
  padding-bottom: 54px;
}
.app + .app {
  border-top: 1px solid var(--line);
  padding-top: 46px;
}

.app-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.app-icon {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: linear-gradient(140deg, #eef5ff, #fdfeff);
  border: 1px solid #dbe8fb;
  box-shadow: 0 8px 20px -16px rgba(26, 115, 232, .8);
}
.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 3px;
}
.app-hero h1 {
  margin: 0;
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.app-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.app-lead {
  margin: 14px 0 0;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 66ch;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12.5px;
  color: #40546e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- 卡片 ---------- */

.stack { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.card.tint {
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  border-color: #dce8fa;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.01em;
}
.card-head .num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.card-head .hint {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.card p { margin: 0 0 12px; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

/* ---------- 下载 ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.dl-grid.single { grid-template-columns: minmax(0, 470px); }
.dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.dl-item:hover {
  text-decoration: none;
  border-color: #b6d1f7;
  box-shadow: 0 14px 26px -20px rgba(26, 115, 232, .9);
  transform: translateY(-1px);
}
.dl-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.dl-item.win .dl-ico { background: #e8f3fd; }
.dl-item.apk .dl-ico { background: #e7f7ef; color: #12805c; }
.dl-item.zip .dl-ico { background: #fdf2e3; color: #a9690c; }
.dl-txt { min-width: 0; }
.dl-txt b { display: block; font-size: 14px; line-height: 1.4; }
.dl-txt span { font-size: 12px; color: var(--muted); }
.dl-item .arrow { margin-left: auto; color: #b9c8db; font-size: 15px; }

.dl-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.qr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.qr img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  object-fit: contain;
}
.badge-play { display: inline-flex; align-items: center; }
.badge-play:hover { text-decoration: none; opacity: .88; }
.badge-play img { height: 44px; width: auto; display: block; border-radius: 7px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .16s;
}
.btn-primary {
  background: linear-gradient(135deg, #1a73e8, #0f60cf);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(26, 115, 232, .95);
}
.btn-primary:hover { text-decoration: none; filter: brightness(1.07); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { text-decoration: none; border-color: #b6d1f7; color: var(--brand-dark); }

/* ---------- 步骤 ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 42px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { color: var(--ink); }
.steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #f1f5fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: #24466f;
}

.note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #fffaf0;
  border: 1px solid #f5e3c2;
  color: #7a5b1c;
  font-size: 13.5px;
  line-height: 1.65;
}
.note.info { background: #f3f8ff; border-color: #d8e7fb; color: #29527f; }

/* ---------- 特性网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 13px;
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tile {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
}
.tile h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tile p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

ul.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
ul.list li {
  position: relative;
  padding-left: 21px;
  font-size: 14px;
  color: var(--ink-2);
}
ul.list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8c8f2;
}
ul.list.check li::before {
  content: "✓";
  width: auto;
  height: auto;
  top: 0;
  left: 0;
  background: none;
  color: #17a673;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0;
}
ul.list.check li { padding-left: 22px; }

/* ---------- 折叠文档 ---------- */

.doc {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
}
.doc summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  list-style: none;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.doc[open] summary::after { content: "收起"; }
.doc[open] summary { border-bottom: 1px solid var(--line); }
.doc-body {
  padding: 14px 18px 18px;
  font-size: 13.8px;
  line-height: 1.85;
  color: var(--ink-2);
}
.doc-body h4 {
  margin: 16px 0 5px;
  font-size: 13.8px;
  color: var(--ink);
}
.doc-body h4:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 9px; }
.doc-body ul { margin: 0 0 9px; padding-left: 20px; }
.doc-body li { margin-bottom: 3px; }
.doc-body .muted { color: var(--muted); font-size: 12.8px; }

/* ---------- 截图 / 视频 ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.split .shot img { box-shadow: 0 22px 40px -32px rgba(16, 32, 64, .95); }
.split h4 {
  margin: 0 0 10px;
  font-size: 14.5px;
}
.split p { font-size: 13.8px; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.shots.wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
figure.shot { margin: 0; display: flex; flex-direction: column; }
figure.shot img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 34px -30px rgba(16, 32, 64, .95);
}
figure.shot figcaption {
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.video-wrap { margin-top: 6px; }
.video-wrap video {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 14px;
  background: #0b1220;
  box-shadow: 0 24px 48px -34px rgba(16, 32, 64, .95);
}
.video-wrap.portrait { text-align: center; }
.video-wrap.portrait video {
  width: auto;
  max-width: 100%;
  max-height: 660px;
  margin: 0 auto;
}
.video-wrap figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 联系 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 13px;
  align-items: start;
}
.kv {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.kv span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.kv b { font-size: 14px; font-weight: 600; word-break: break-all; }
.copy-btn {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
}
.copy-btn:hover { border-color: #b6d1f7; color: var(--brand-dark); }
.wechat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.wechat-card img { width: 92px; height: 92px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 3px; }
.wechat-card p { margin: 0; font-size: 13px; }
.wechat-card.wide { grid-column: span 2; }
.foot-contact { color: var(--muted); font-size: 12.5px; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  max-width: 1010px;
  margin: 0 auto;
  padding: 26px 0 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner .sep { color: #cfd8e5; }
.footer-inner a { color: var(--ink-2); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 30;
}
.totop.show { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  :root { --side-w: 248px; }
  main { padding: 26px 26px 36px; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: flex; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 290px;
    height: 100vh;
    padding-top: 16px;
    transform: translateX(-101%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 40px rgba(14, 23, 38, .18);
    z-index: 60;
  }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; opacity: 1; }
  main { padding: 22px 18px 30px; }
  .app-hero h1 { font-size: 25px; }
  .footer-inner { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    padding: 9px 14px;
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .topnav { order: 4; width: 100%; gap: 0; padding-bottom: 2px; }
  .topnav a { padding: 6px 10px; font-size: 13px; }
  .brand { font-size: 16.5px; }
  .brand img { width: 27px; height: 27px; }
  .lang-switch { margin-left: auto; }
  .progress { top: 0; }
  .card { padding: 20px 18px; border-radius: 14px; }
  .app-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
  .app-hero { gap: 13px; }
  .app + .app { padding-top: 34px; }
  .doc-body { padding: 12px 14px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wechat-card.wide { grid-column: span 1; }
  .footer-links { margin-left: 0; }
}
