/* QuickQ — 站点样式表
   设计令牌集中在 :root，便于整体换肤 */

:root {
  --bg: #ffffff;
  --surface: #f4f7f7;
  --surface-2: #eef2f2;
  --text: #0f1a1a;
  --muted: #5a6a6a;
  --line: #e2e9e8;
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, .08);
  --accent-ink: #0b5751;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --container: 1180px;
  --gutter: 24px;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 56px; --s8: 88px; --s9: 128px;

  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --fs-h1: clamp(30px, 4.8vw, 56px);
  --fs-h2: clamp(22px, 2.6vw, 34px);
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 26, 26, .05);
  --shadow: 0 1px 2px rgba(15, 26, 26, .05), 0 10px 30px rgba(15, 26, 26, .07);
}

@media (max-width: 960px) { :root { --gutter: 20px; } }
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--s4); }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--s4); max-width: 68ch; }
ul, ol { margin: 0; }
a { color: var(--accent); }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 无障碍：跳转到主内容 */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--s4); top: var(--s4); z-index: 20;
  background: var(--bg); padding: var(--s2) var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-s);
}

/* ---------- 布局 ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s7) 0; }
.section-alt { background: var(--surface); }

.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 var(--s3);
}
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2); padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-family: inherit; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.actions.center-actions { justify-content: center; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: var(--s5); height: 66px; }
.brand {
  display: flex; align-items: center; gap: var(--s2);
  text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.01em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #14b8a6);
  box-shadow: var(--shadow-sm);
}
/* 站点 LOGO 图片 */
.brand-mark img {
  width: 100%; height: 100%;
  border-radius: inherit;
  object-fit: contain;
  display: block;
}
.brand-logo { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--text); font-size: 15px;
  padding: var(--s2) 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-actions .en {
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 14px; cursor: pointer; padding: var(--s2);
  text-decoration: none;
}
.header-actions .en:hover { color: var(--accent); }

.menu { display: none; }
@media (max-width: 960px) {
  .site-header .bar { height: 58px; }
  .nav, .header-actions .btn { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; user-select: none;
    padding: var(--s2) var(--s3); border: 1px solid var(--line);
    border-radius: var(--r-s); font-size: 14px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: 220px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3);
    box-shadow: var(--shadow);
  }
  .menu-panel a { text-decoration: none; color: var(--text); font-size: 15px; }
  .menu-panel a[aria-current="page"] { color: var(--accent); font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--s9) 0 var(--s8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% 40% -20%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.split { display: grid; grid-template-columns: 54fr 46fr; gap: var(--s7); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }

.media {
  aspect-ratio: 16 / 11; border-radius: var(--r-l);
  border: 1px dashed var(--line);
  background: linear-gradient(140deg, var(--surface), var(--bg));
  display: grid; place-items: center; color: var(--muted);
  font-size: 12px; text-align: center; padding: var(--s4);
  position: relative; overflow: hidden;
}
.media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(15,118,110,.10) 95%) 0 0 / 100% 28px,
    linear-gradient(90deg, transparent 95%, rgba(15,118,110,.10) 95%) 0 0 / 28px 100%;
  opacity: .6; pointer-events: none;
}
.media-label { position: relative; z-index: 1; }

/* 真实客户端截图 */
.media-shot {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0;
}
.media-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.media-shot figcaption {
  position: absolute;
  left: var(--s4);
  bottom: var(--s4);
  font-size: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.media-shot { position: relative; }

.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: var(--s8); border-top: 1px solid var(--line);
}
.metric { padding: var(--s5) var(--s4); text-align: center; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.metric span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr; border-top: 0; }
  .metric { border-left: 0; border-top: 1px solid var(--line); }
}

.pills {
  display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center;
  margin: 0; padding: 0; list-style: none;
}
.pill {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg);
}

/* ---------- 时间线（工作流） ---------- */
.timeline {
  list-style: none; padding: 0; margin: var(--s7) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5);
  counter-reset: t;
}
.timeline li { position: relative; padding-top: 44px; }
.timeline li::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.timeline li::after {
  content: ""; position: absolute; top: 17px; left: 34px;
  right: calc(-1 * var(--s5)); height: 1px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 16px; margin: 0 0 var(--s2); }
.timeline p { font-size: 14px; margin: 0; color: var(--muted); max-width: none; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding-top: 0; padding-left: var(--s7); }
  .timeline li::after { top: 34px; left: 17px; right: auto; bottom: -1px; width: 1px; height: auto; }
  .timeline li:nth-child(2)::after { display: block; }
  .timeline li:last-child::after { display: none; }
}

/* ---------- 功能矩阵 ---------- */
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s7); }
@media (max-width: 640px) { .matrix { grid-template-columns: 1fr; } }
.matrix-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s5); display: grid; gap: var(--s3);
  transition: box-shadow .18s ease, transform .18s ease;
}
.matrix-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.matrix-item .icon {
  width: 40px; height: 40px; border-radius: var(--r-s);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.matrix-item h3 { margin: 0; font-size: 18px; }
.matrix-item p { margin: 0; color: var(--muted); font-size: 14px; max-width: none; }
.matrix-item ul { margin: 0; padding-left: var(--s5); font-size: 14px; line-height: 1.75; }
.matrix-item li::marker { color: var(--accent); }

/* ---------- 平台下载 ---------- */
.platforms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s7); }
@media (max-width: 1100px) { .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .platforms { grid-template-columns: 1fr; } }
.platform {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3);
  transition: box-shadow .18s ease, transform .18s ease;
}
.platform:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.platform h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: var(--s2); }
.platform dl {
  margin: 0; font-size: 12px; color: var(--muted);
  display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3);
}
.platform dt { color: var(--muted); }
.platform dd { margin: 0; color: var(--text); }
.platform .btn { margin-top: auto; padding: 0 14px; font-size: 13px; }
.platform .note { margin: 0; }

/* ---------- 优势卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s5);
}
.card h3 { margin: 0 0 var(--s2); font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); max-width: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s6); max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s4); margin-bottom: var(--s3); background: var(--bg);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: var(--s3); color: var(--accent); }
.faq p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 资讯 ---------- */
.news {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4); margin-top: var(--s7); padding: 0; list-style: none;
}
@media (max-width: 960px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news { grid-template-columns: 1fr; } }
.news-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s5); display: grid; gap: var(--s2); align-content: start;
  transition: box-shadow .18s ease, transform .18s ease;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-item .date { font-size: 12px; color: var(--accent); letter-spacing: .06em; font-weight: 600; }
.news-item h3 { margin: 0; font-size: 16px; }
.news-item p { margin: 0; font-size: 14px; color: var(--muted); max-width: none; }

/* ---------- CTA ---------- */
.cta-band { background: var(--surface); text-align: center; padding: var(--s9) 0; }
.cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: var(--s7); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: var(--s3); align-items: flex-start; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-brand p { margin: 0; max-width: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col h3 { font-size: 14px; margin: 0 0 var(--s3); color: var(--muted); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer-col a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.copyright {
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
}

/* ---------- 条款正文 ---------- */
.prose { max-width: 780px; }
.prose section { margin-bottom: var(--s6); }
.prose h2 { font-size: 19px; margin: 0 0 var(--s3); }
.prose p { color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
