/* ============================================================
   六六一键破甲 · 官网样式
   设计 token 沿用 site/index.html 的一套：白底 + 黑色区块 + 蓝色 accent，
   圆角 28/18，间距 clamp(20px,5vw,80px)。
   所有尺寸用 clamp / 百分比，桌面 1440、平板 920、手机 390 三档都验过。
   ============================================================ */

:root {
  --ink: #1d1d1f;
  --ink2: #6e6e73;
  --ink3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --dark: #000000;
  --dark2: #0b0b0d;
  --accent: #0071e3;
  --accent-hi: #0077ed;
  --ok: #1d9e75;
  --warn: #b25000;
  --bad: #d70015;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------- 顶栏 ---------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 56px; display: flex; align-items: center; gap: 20px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(140deg, #2b2b2e, #000);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px;
  border: 1.4px solid #fff; border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 45% 45%, 45% 100%, 0 100%);
}

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink2); font-size: 14px; text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-links a:hover, .nav-links a.on { color: var(--ink); border-color: var(--ink); }

.nav-cta {
  margin-left: 8px; padding: 7px 16px; border-radius: 980px;
  background: var(--accent); color: #fff !important; font-size: 13.5px;
  border: 0; cursor: pointer; font-family: var(--sans);
  transition: background .18s, transform .12s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--accent-hi); text-decoration: none; }
.nav-cta:active { transform: scale(.97); }

.nav-drawer {
  display: none;            /* 桌面端不显示；≤920px 时按 .open 展开 */
  position: fixed; inset: 56px 0 auto 0; z-index: 99;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px var(--pad) 22px;
}
.nav-drawer.open { display: block; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 19px; height: 1.6px; background: var(--ink);
  position: relative; transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 1.6px;
  background: var(--ink); transition: transform .22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px);
  text-align: center;
}

.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .06em;
  color: var(--ink2); background: var(--bg2);
  border: 1px solid var(--line-soft); border-radius: 980px;
  padding: 5px 13px; margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.1; letter-spacing: -.022em;
  margin: 0 0 18px; font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #0071e3, #5e5ce6 55%, #bf5af2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p.lead {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--ink2); max-width: 620px; margin: 0 auto 32px;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 13px 26px; border-radius: 980px;
  font-size: 15px; font-family: var(--sans); font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s, transform .12s, border-color .18s;
  text-decoration: none; min-height: 46px;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg2); text-decoration: none; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1d1d1f; text-decoration: none; }

.hero-note { font-size: 12.5px; color: var(--ink3); }

/* 版本条 */
.verbar {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px; font-size: 12.5px; color: var(--ink3);
}
.verbar b { color: var(--ink); font-weight: 500; }

/* ---------------- 通用区块 ---------------- */

.sec { padding: clamp(46px, 7vw, 92px) 0; }
.sec.alt { background: var(--bg2); }
.sec.dark { background: var(--dark2); color: #f5f5f7; }
.sec.dark a { color: #6db3ff; }

.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 46px); }
.sec-head h2 {
  font-size: clamp(25px, 4vw, 40px); line-height: 1.16;
  letter-spacing: -.018em; margin: 0 0 12px; font-weight: 600;
}
.sec-head p { font-size: clamp(14px, 1.9vw, 17px); color: var(--ink2); margin: 0; }
.sec.dark .sec-head p { color: #a1a1a6; }

/* ---------------- 能力卡片 ---------------- */

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 24px 22px;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}
.card .ico {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 14px;
  background: var(--bg2); display: grid; place-items: center;
  font-size: 17px;
}
.card h3 { font-size: 16px; margin: 0 0 7px; font-weight: 600; }
.card p { font-size: 13.8px; color: var(--ink2); margin: 0; }

/* 深色区块里的步骤卡：.step 默认是白底，但 h3 继承了 .sec.dark 的浅色字，
   结果是白字白底。这里把卡片本身也改成深色，风格反而更统一。 */
.sec.dark .step {
  background: #141417; border-color: #26262b;
}
.sec.dark .step h3 { color: #f5f5f7; }
.sec.dark .step p { color: #a1a1a6; }
.sec.dark .step .n { color: #6db3ff; }

.sec.dark .card {
  background: #141417; border-color: #26262b;
}
.sec.dark .card:hover { border-color: #3a3a42; box-shadow: none; }
.sec.dark .card h3 { color: #f5f5f7; }
.sec.dark .card p { color: #a1a1a6; }
.sec.dark .card .ico { background: #1d1d22; }

/* ---------------- 三步 ---------------- */

.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step {
  position: relative; padding: 26px 22px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--bg);
}
.step .n {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: .08em; margin-bottom: 10px;
}
.step h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 600; }
.step p { font-size: 13.6px; color: var(--ink2); margin: 0; }

/* ---------------- 定价 ---------------- */

.plans {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.plan {
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 24px 20px; background: var(--bg); display: flex;
  flex-direction: column; position: relative;
  transition: border-color .2s, transform .2s var(--ease);
}
.plan:hover { border-color: var(--line); transform: translateY(-2px); }
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .tag {
  position: absolute; top: -10px; left: 20px;
  background: var(--accent); color: #fff; font-size: 11px;
  padding: 3px 9px; border-radius: 980px; font-weight: 500;
}
.plan .tag.grey { background: var(--ink3); }
.plan h3 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.plan .price {
  font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -.02em;
  line-height: 1; margin-bottom: 4px;
}
.plan .price small { font-size: 14px; font-weight: 400; color: var(--ink2); }
.plan .per { font-size: 12.5px; color: var(--ink3); margin-bottom: 18px; }
.plan ul {
  list-style: none; padding: 0; margin: 0 0 20px;
  font-size: 13.4px; color: var(--ink2); display: grid; gap: 7px;
}
.plan li::before { content: "·"; margin-right: 8px; color: var(--ink3); }
.plan .btn { margin-top: auto; width: 100%; }

/* 只有一两档时不要摊满整行，居中收窄更好看 */
.plans.two { max-width: 720px; }
@media (max-width: 640px) { .plans.two { max-width: none; } }

/* ---------------- 价格说明 ---------------- */

.pricenote {
  max-width: 760px; margin-top: 26px;
  padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--bg2); border: 1px solid var(--line-soft);
  font-size: 12.8px; line-height: 1.75; color: var(--ink2);
}
.pricenote p { margin: 0 0 8px; }
.pricenote p:last-child { margin-bottom: 0; }
.pricenote b { color: var(--ink); font-weight: 500; }


/* ---------------- 移动端底部操作条 ---------------- */
/* 手机用户滚过首屏后，随时能点到「获取」，不用滚回去找按钮。
   只在 ≤640px 出现，桌面上完全不存在（display:none 且不占位）。 */
.mbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line-soft);
  gap: 10px; align-items: center;
  transform: translateY(110%);
  transition: transform .26s var(--ease);
}
.mbar.show { transform: none; }
.mbar .mbar-note {
  font-size: 11.5px; color: var(--ink3); line-height: 1.3; flex: 1; min-width: 0;
}
.mbar .mbar-note b { display: block; color: var(--ink); font-size: 13px; font-weight: 500; }
.mbar .btn { padding: 11px 16px; font-size: 14px; min-height: 42px; flex: none; }

@media (max-width: 640px) {
  .mbar { display: flex; }
  /* 给底部条让位，避免遮住页脚最后一行 */
  body { padding-bottom: 0; }
  .foot { padding-bottom: calc(26px + 64px); }
}

/* ---------------- 版本记录 ---------------- */
.changelog {
  border-left: 2px solid var(--line-soft);
  padding-left: 20px; display: grid; gap: 20px; max-width: 720px;
}
.rel { position: relative; }
.rel::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
}
.rel.new::before { border-color: var(--accent); background: var(--accent); }
.rel h3 {
  font-size: 14.5px; margin: 0 0 5px; font-weight: 600;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.rel .v {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink3);
  font-weight: 400;
}
.rel .d { font-size: 12px; color: var(--ink3); }
.rel p { margin: 0; font-size: 13.6px; color: var(--ink2); }

/* ---------------- 表格（窄屏转卡片） ---------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 520px;
}
table.tbl th, table.tbl td {
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
table.tbl th {
  font-weight: 500; color: var(--ink2); font-size: 12.5px;
  letter-spacing: .04em; background: var(--bg2);
}
table.tbl code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg2); padding: 1px 6px; border-radius: 5px;
}

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 10px; max-width: 820px; }
details.q {
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 15px 18px; background: var(--bg);
  transition: border-color .2s;
}
details.q[open] { border-color: var(--line); }
details.q summary {
  cursor: pointer; font-size: 14.5px; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  min-height: 24px; align-items: center;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: "+"; color: var(--ink3); font-size: 18px; font-weight: 300;
  flex: none; transition: transform .2s;
}
details.q[open] summary::after { content: "\2212"; }
details.q p { margin: 12px 0 0; font-size: 13.8px; color: var(--ink2); }

/* ---------------- 表单 ---------------- */

.form-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink2); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 13px;
  transition: border-color .18s, box-shadow .18s;
  width: 100%; min-height: 46px;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .16);
}
.field .hint { font-size: 12px; color: var(--ink3); }
.field.err input, .field.err textarea, .field.err select { border-color: var(--bad); }
.field .msg { font-size: 12px; color: var(--bad); min-height: 0; }

.form-foot {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 20px;
}
.form-foot .note { font-size: 12.5px; color: var(--ink3); }

.result {
  display: none; margin-top: 18px; padding: 16px 18px;
  border-radius: var(--r-sm); font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.result.show { display: block; }
.result.ok { border-color: rgba(29, 158, 117, .45); background: rgba(29, 158, 117, .07); }
.result.bad { border-color: rgba(215, 0, 21, .35); background: rgba(215, 0, 21, .06); }
.result b { font-family: var(--mono); font-size: 15px; }

/* ---------------- 页脚 ---------------- */

.foot {
  background: var(--dark2); color: #a1a1a6;
  padding: clamp(38px, 5vw, 60px) 0 26px; font-size: 13px;
}
.foot-in {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-bottom: 30px;
}
.foot h4 {
  color: #f5f5f7; font-size: 13px; margin: 0 0 11px; font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #a1a1a6; text-decoration: none; }
.foot a:hover { color: #f5f5f7; text-decoration: none; }
.foot-bottom {
  border-top: 1px solid #232328; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #6e6e73;
}

/* ---------------- 移动端 ---------------- */

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-drawer a {
    display: block; padding: 13px 0; font-size: 16px;
    color: var(--ink); border-bottom: 1px solid var(--line-soft);
    text-decoration: none; min-height: 46px;
  }
  .nav-drawer a:last-of-type { border-bottom: 0; }
  .nav-drawer .btn { width: 100%; margin-top: 14px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 38px; }
  .hero-actions .btn { width: 100%; }
  .verbar { gap: 12px 18px; font-size: 12px; }
  .card { padding: 20px 18px; }
  .plan { padding: 20px 18px; }

  /* 表格在手机上转成竖向卡片，避免横向滚动 */
  table.tbl { min-width: 0; }
  table.tbl thead { display: none; }
  table.tbl tr {
    display: block; border: 1px solid var(--line-soft);
    border-radius: var(--r-sm); margin-bottom: 10px; padding: 6px 4px;
  }
  table.tbl td {
    display: flex; gap: 12px; border: 0; padding: 8px 12px;
    font-size: 13.5px;
  }
  table.tbl td::before {
    content: attr(data-label); flex: 0 0 84px;
    color: var(--ink3); font-size: 12.5px;
  }
}

/* 焦点可见性：键盘用户 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

/* 进场动画：只对支持的浏览器，尊重 reduce-motion */
@media (prefers-reduced-motion: no-preference) {
  /* 只有 JS 给 html 加上 .anim 之后才隐藏，避免脚本失效时白屏 */
  html.anim .rv { opacity: 0; transform: translateY(14px); }
  html.anim .rv.in {
    opacity: 1; transform: none;
    transition: opacity .55s var(--ease), transform .55s var(--ease);
  }
}
