/* LockPri 官网。视觉来源：防窥信封内衬的菱格底纹 + 钴蓝封蜡色。无外部字体、无内联样式（配合服务器的严格 CSP）。 */
:root {
  --paper: #f2f5f9;
  --white: #ffffff;
  --tint: #d3dbeb;
  --tint-soft: #e4e9f3;
  --cobalt: #2736d9;
  --cobalt-deep: #141c73;
  --ink: #0f1533;
  --muted: #485373;
  --brass: #d9a441;
  --ok: #17784a;
  --bad: #b3261e;
  --sans: "SF Pro Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M0 14 14 0 28 14 14 28Z' fill='none' stroke='%23d3dbeb' stroke-width='1'/%3E%3Cpath d='M0 0 28 28M28 0 0 28' stroke='%23e4e9f3' stroke-width='.7'/%3E%3C/svg%3E");
  --lattice-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M0 14 14 0 28 14 14 28Z' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'/%3E%3Cpath d='M0 0 28 28M28 0 0 28' stroke='%23ffffff' stroke-opacity='.05' stroke-width='.7'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.7 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

/* 中英文切换：html[lang] 决定显示哪一种 */
html[lang="en"] [data-l="zh"], html[lang="zh-CN"] [data-l="en"] { display: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.15rem; letter-spacing: -.005em; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--cobalt);
  background: var(--cobalt); color: #fff; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn.line { background: transparent; color: var(--cobalt); }
.btn.line:hover { background: var(--cobalt); color: #fff; }
.btn.on-dark { background: #fff; color: var(--cobalt-deep); border-color: #fff; }
.btn.on-dark:hover { background: var(--tint); border-color: var(--tint); color: var(--cobalt-deep); }
.btn.small { padding: 7px 18px; font-size: .94rem; }

/* ---------- 顶栏 ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(242, 245, 249, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tint-soft); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.links { display: flex; gap: 26px; margin-left: 12px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .97rem; }
.links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { font: inherit; font-size: .88rem; font-weight: 650; color: var(--muted); background: transparent; border: 1px solid var(--tint); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.lang:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; background: var(--lattice); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 28% 40%, var(--paper) 35%, rgba(242, 245, 249, 0) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 92px; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 信封：按住按钮，封口掀开，内衬的菱格底纹褪去，密文变成明文 */
.seal { position: relative; max-width: 460px; width: 100%; margin-left: auto; perspective: 900px; padding-top: 34px; }
.flap { position: absolute; left: 0; right: 0; top: 34px; height: 92px; background: var(--cobalt); border-radius: 18px 18px 0 0; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .55s cubic-bezier(.3, .7, .2, 1); z-index: 2; backface-visibility: hidden; }
.seal.open .flap { transform: rotateX(172deg); }
.seal-body { position: relative; background: var(--white); border: 1.5px solid var(--cobalt); border-radius: 18px; padding: 112px 28px 26px; }
.seal-who { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.seal-who b { font-size: 1.25rem; }
.seal-who span { color: var(--muted); }
.seal-label { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.seal-line { font: 1.05rem/1.5 var(--mono); min-height: 3.2em; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--tint); background: var(--lattice) var(--paper); color: var(--muted); word-break: break-all; transition: background-color .3s, color .3s, border-color .3s; }
.seal.open .seal-line { background: #fff; color: var(--cobalt); border-color: var(--cobalt); font-weight: 600; }
.seal-note { margin: 14px 0 18px; min-height: 3em; font-size: .95rem; color: var(--muted); }
.seal-body .btn { width: 100%; user-select: none; -webkit-user-select: none; touch-action: none; }
.seal-fine { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.seal:not(.open) .when-open, .seal.open .when-closed { display: none; }

/* ---------- 通用区块 ---------- */
.band { padding: 96px 0; }
.band-head { max-width: 40em; margin-bottom: 48px; }
.band-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

.facts { border-top: 1px solid var(--tint); border-bottom: 1px solid var(--tint); background: var(--white); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px; border-left: 1px solid var(--tint); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.fact > span { color: var(--muted); font-size: .93rem; }

/* 功能：大格 + 小格，一种圆角，没有阴影 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, auto); gap: 20px; }
.cell { background: var(--white); border: 1px solid var(--tint); border-radius: 16px; padding: 28px; }
.cell p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.cell.big { grid-column: 1 / 3; grid-row: 1 / 3; padding: 36px; background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; background-image: var(--lattice-dark); }
.cell.big h3 { font-size: 1.6rem; }
.cell.big p { color: #c6cdf0; font-size: 1.05rem; max-width: 30em; }
.log { list-style: none; margin: 30px 0 0; padding: 0; font: .9rem/1.5 var(--mono); }
.log li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .16); color: #e5e8fb; }
.log time { color: #9aa5e6; }
.log .ok { color: #7fe0ae; }
.log .no { color: #ffb4ab; }

/* 流程：这是真正的先后顺序，所以用数字 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 26px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--tint); }
.steps li::before { content: counter(step); display: block; font: 800 2.6rem/1 var(--sans); color: var(--cobalt); margin-bottom: 14px; }
.steps p { margin-top: 10px; color: var(--muted); }
.honest { margin-top: 44px; max-width: 46em; padding: 18px 22px; border-left: 4px solid var(--brass); background: var(--white); color: var(--muted); font-size: .97rem; }

/* ---------- 下载 ---------- */
.dl { position: relative; background: var(--cobalt) var(--lattice-dark); color: #fff; }
.dl .band-head p { color: #cfd5f7; }
.dl h2 { color: #fff; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.dl-card h3 { font-size: 1.3rem; }
.dl-card .sub { color: var(--muted); font-size: .93rem; margin-top: -8px; }
.qr { width: 188px; height: 188px; margin: 4px 0; border: 1px solid var(--tint); border-radius: 12px; background: #fff; padding: 6px; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-soon { width: 188px; height: 188px; margin: 4px 0; border: 1.5px dashed var(--tint); border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); background: var(--lattice) var(--paper); font-size: .93rem; }
.dl-card .btn { align-self: flex-start; }
.dl-card .web-steps { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }
.dl-card .web-steps li + li { margin-top: 6px; }
.dl-note { margin-top: 26px; max-width: 52em; font-size: .9rem; color: #cfd5f7; }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.about .prose p { color: var(--muted); font-size: 1.06rem; max-width: 36em; }
.about .prose p + p { margin-top: 16px; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.principles li { padding: 20px 0; border-bottom: 1px solid var(--tint); }
.principles b { display: block; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: .97rem; }
.who { margin-top: 28px; padding: 16px 20px; background: var(--white); border: 1px solid var(--tint); border-radius: 12px; font-size: .95rem; color: var(--muted); }
.who b { color: var(--ink); }

/* ---------- 联系 ---------- */
.contact { background: var(--white); border-top: 1px solid var(--tint); border-bottom: 1px solid var(--tint); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.contact h2 { font-size: 1.7rem; }
.contact p { color: var(--muted); margin-top: 8px; max-width: 34em; }
.mail { font: 700 clamp(1.2rem, 2.6vw, 1.7rem)/1.2 var(--sans); color: var(--cobalt); text-decoration: none; border-bottom: 3px solid var(--brass); padding-bottom: 4px; word-break: break-all; }
.mail:hover { color: var(--cobalt-deep); }

/* ---------- 页脚 ---------- */
.foot { padding: 40px 0 48px; font-size: .92rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.foot .brand { font-size: 1.1rem; }
.foot .brand img { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-left: auto; text-align: right; }

/* ---------- 使用条款页 ---------- */
.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .9rem; }
.toc b { display: block; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--tint); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--cobalt); }
.doc { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.35rem; margin: 44px 0 12px; letter-spacing: 0; }
.doc p, .doc li { color: #2a3354; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { padding-left: 1.3em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 750; }
.doc .notice { margin: 24px 0 8px; padding: 20px 22px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; }
.doc .notice p { color: var(--ink); }
.doc .num { font-weight: 700; color: var(--cobalt); margin-right: 6px; }

@media (max-width: 960px) {
  .hero .wrap, .about { grid-template-columns: 1fr; gap: 48px; }
  .seal { margin: 0 auto 0 0; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--tint); }
  .grid { grid-template-columns: 1fr 1fr; }
  .cell.big { grid-column: 1 / 3; grid-row: auto; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 22px 0 22px; border-left: 0; border-top: 2px solid var(--ink); }
  .dl-grid { grid-template-columns: 1fr; }
  .doc-wrap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .links { display: none; }
}
@media (max-width: 560px) {
  .band { padding: 64px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .grid { grid-template-columns: 1fr; }
  .cell.big { grid-column: auto; padding: 28px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--tint); }
  .fact:first-child { border-top: 0; }
  .nav .wrap { gap: 12px; }
  .foot .legal { margin-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flap, .seal-line, .btn { transition: none; }
}
.about .prose h2 { margin-bottom: 18px; }
