/*
 * 密码管家官网。单页静态站，无框架、无构建。
 *
 * 配色：蓝 + 蓝调中性灰。
 * 蓝是密码/安全类产品的通用语言 —— 用户不需要学习就知道这是什么类型的产品。
 * 但不铺亮蓝渐变（那是消费类 App 的做法），而是收着用：
 * 底色留白，深蓝只在"安全"那一屏压场，强调色仅落在按钮与图标上。
 * 严谨感来自克制的用色与整齐的栅格，不是来自花哨。
 */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deep: #0f2242;   /* 深蓝底，用于"安全"区块与页脚 */
  --blue-soft: #eff4ff;
  --ink: #0f1c33;
  --text: #4a5670;
  --muted: #8794ad;
  --line: #e3e9f2;
  --line-deep: #1e3559;
  --paper: #ffffff;
  --paper-2: #f6f9fd;
  --wrap: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.32; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; padding: 2px 7px; border-radius: 5px;
  background: var(--blue-soft); color: var(--blue-dark);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.wrap-narrow { max-width: 780px; }

/* ─────────── 按钮 ─────────── */
.btn {
  display: inline-block; padding: 12px 26px;
  border-radius: 9px; font-size: 15px; font-weight: 500;
  transition: background .18s, border-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap; text-align: center; cursor: pointer;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .22);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-nav { padding: 9px 20px; font-size: 14px; background: var(--blue); color: #fff; }
.btn-nav:hover { background: var(--blue-dark); }

/* ─────────── 导航 ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.solid { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(15, 28, 51, .04); }
.nav-inner { display: flex; align-items: center; gap: 34px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.brand img { border-radius: 7px; }
.nav-links { margin-left: auto; display: flex; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--text); transition: color .18s; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 30px; padding: 6px; margin-left: auto;
}
.nav-toggle span { display: block; height: 1.7px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

/* ─────────── 首屏 ─────────── */
.hero {
  padding: 140px 0 96px;
  /* 极淡的蓝调铺底：让首屏与下方白区分开，又不喧宾夺主 */
  background:
    radial-gradient(900px 460px at 78% 18%, rgba(37, 99, 235, .09), transparent 62%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 60px; align-items: center;
}
.pill {
  display: inline-block; padding: 5px 14px; margin-bottom: 22px;
  border-radius: 100px; background: var(--blue-soft);
  color: var(--blue-dark); font-size: 13px; font-weight: 500;
}
.hero h1 { font-size: 58px; letter-spacing: -1.4px; margin-bottom: 22px; }
.lead { font-size: 17px; max-width: 520px; }
.hero .lead { margin-bottom: 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.trust {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}
.trust i { width: 3px; height: 3px; border-radius: 50%; background: #c3cddd; }

/* 产品界面还原（按真实插件布局搭的，不是抽象示意图） */
.hero-shot { display: flex; justify-content: center; }
.app {
  width: 348px; background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 34, 66, .13), 0 2px 8px rgba(15, 34, 66, .05);
  overflow: hidden;
}
.app-top {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: #f4f7fc; border-bottom: 1px solid var(--line);
}
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d4dcea; }
.app-name { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.app-body { padding: 13px; }
.app-search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; color: #b3bdd0;
}
.app-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.app-tabs { display: flex; gap: 7px; margin-bottom: 12px; }
.app-tabs span {
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; color: var(--muted); background: var(--paper-2);
}
.app-tabs .on { background: var(--blue); color: #fff; }

.row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 10px;
}
.ava {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600;
}
.row-main { flex: 1; min-width: 0; line-height: 1.5; }
.row-main b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.row-main em {
  display: block; font-style: normal; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-act { font-size: 12px; color: var(--blue); flex-shrink: 0; }
.row.otp { border-color: #cfdcf7; background: #fafcff; }
.row.otp .code {
  font-size: 19px; font-weight: 600; color: var(--blue);
  letter-spacing: 2px; font-family: ui-monospace, Menlo, monospace;
}
/* 动态码剩余秒数：环 + 中间的数字，和插件里的实际样子一致 */
.tick { position: relative; width: 32px; height: 32px; flex-shrink: 0; }
.tick svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tick circle { fill: none; stroke: #e6ecf7; stroke-width: 2.5; }
.tick .fg { stroke: var(--blue); stroke-dasharray: 94; stroke-dashoffset: 38; stroke-linecap: round; }
.tick span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--blue);
  font-family: ui-monospace, Menlo, monospace;
}

.app-bar { display: flex; border-top: 1px solid var(--line); background: #fcfdff; }
.app-bar span { flex: 1; text-align: center; padding: 11px 0; font-size: 12px; color: var(--muted); }
.app-bar .on { color: var(--blue); font-weight: 500; }

/* ─────────── 通用区块 ─────────── */
.section { padding: 96px 0; }
.section-soft { background: var(--paper-2); }
.section-deep { background: var(--blue-deep); }

.kicker {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 12px;
}
.kicker.light { color: #7ba7ff; }
.h2 { font-size: 36px; letter-spacing: -.7px; margin-bottom: 16px; }
.h2.light { color: #fff; }
.lead-c { font-size: 16.5px; max-width: 620px; margin-bottom: 54px; }
.lead-c.light { color: #a9bad6; }

/* ─────────── 痛点 ─────────── */
.pain-sec .h2 { margin-bottom: 52px; }
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain {
  padding: 26px 28px; background: var(--paper-2);
  border-radius: var(--radius); border-left: 3px solid #cfdcf2;
}
.pain-q { font-size: 16.5px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.pain p { font-size: 14.5px; }

/* ─────────── 功能 ─────────── */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  padding: 30px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.fcard:hover { box-shadow: 0 12px 30px rgba(15, 34, 66, .07); transform: translateY(-2px); }
.fcard .ic { width: 26px; height: 26px; color: var(--blue); margin-bottom: 16px; display: block; }
.fcard h3 { font-size: 16.5px; margin-bottom: 9px; }
.fcard p { font-size: 14.5px; }

/* ─────────── 多设备 ─────────── */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { margin: 22px 0 30px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.dev-art { display: flex; align-items: center; justify-content: center; gap: 16px; }
.mini { background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(15, 34, 66, .1); }
.mini.pc { width: 244px; border-radius: 12px; overflow: hidden; }
.mini-top {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 12px; background: #f4f7fc; border-bottom: 1px solid var(--line);
}
.mini-top i { width: 6px; height: 6px; border-radius: 50%; background: #d4dcea; }
.dev-one { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dev-one figcaption { font-size: 12px; color: var(--muted); }
.mini.phone { width: 148px; border-radius: 20px; padding: 9px 0; }
.mini-notch { width: 42px; height: 4px; border-radius: 3px; background: #dde4ef; margin: 2px auto 6px; }
.mini-home { width: 46px; height: 3px; border-radius: 3px; background: #dde4ef; margin: 8px auto 2px; }
.mini-body { padding: 11px; display: grid; gap: 7px; }
.mini-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 7px; background: var(--paper-2);
}
.mini-row .d {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9.5px; font-weight: 600;
}
.mini-row b { flex: 1; font-size: 11.5px; font-weight: 500; color: var(--ink); }
.sync {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--blue); flex-shrink: 0;
  /* 两侧的 figure 底部多了一行说明，抵消掉才能和设备图的中线对齐 */
  margin-bottom: 31px;
}
.sync svg { width: 24px; height: 24px; }
.sync span { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ─────────── 安全 ─────────── */
.locks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lock {
  padding: 30px 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-deep);
  border-radius: var(--radius);
}
.lock-n {
  display: block; font-size: 13px; color: #7ba7ff; margin-bottom: 14px;
  font-family: ui-monospace, Menlo, monospace;
}
.lock h3 { font-size: 17px; color: #fff; margin-bottom: 10px; }
.lock p { font-size: 14.5px; color: #a9bad6; }

.honest {
  margin-top: 22px; padding: 26px 30px; border-radius: var(--radius);
  background: rgba(37, 99, 235, .13);
  border: 1px solid rgba(123, 167, 255, .28);
}
.honest h4 { font-size: 15.5px; color: #fff; margin-bottom: 8px; }
.honest p { font-size: 14.5px; color: #b8c8e2; }
.honest b { color: #fff; font-weight: 500; }

/* ─────────── 安装 ─────────── */
.inst { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.inst-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
}
.inst-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.inst-head .ic { width: 26px; height: 26px; color: var(--blue); flex-shrink: 0; margin-top: 4px; }
.inst-head h3 { font-size: 18px; margin-bottom: 2px; }
.inst-head small { font-size: 13px; color: var(--muted); }
.inst-steps { counter-reset: s; margin-bottom: 24px; }
.inst-steps li { counter-increment: s; position: relative; padding-left: 32px; margin-bottom: 11px; font-size: 14.5px; }
.inst-steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 5px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.inst-tip {
  margin-top: 22px; padding: 20px 26px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
}
.inst-tip b { color: var(--ink); }

/* ─────────── 常见问题 ─────────── */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  padding: 21px 44px 21px 0; font-size: 16.5px; font-weight: 500;
  color: var(--ink); cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 20px 24px 0; font-size: 15px; }

/* ─────────── 收尾 ─────────── */
.closing {
  padding: 100px 0; text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(37, 99, 235, .08), transparent 60%),
    var(--paper);
  border-top: 1px solid var(--line);
}
.closing h2 { font-size: 36px; letter-spacing: -.7px; margin-bottom: 12px; }
.closing p { font-size: 16.5px; color: var(--muted); margin-bottom: 30px; }

/* ─────────── 页脚 ─────────── */
.footer { background: var(--blue-deep); color: #8fa2c2; padding: 56px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; }
.fb-top { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 7px; }
.footer-brand span { font-size: 15.5px; font-weight: 600; color: #fff; }
.footer-brand p { margin-top: 10px; font-size: 13.5px; }
.footer-links { display: flex; gap: 70px; }
.footer-links h4 { font-size: 13.5px; color: #fff; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13.5px; margin-bottom: 9px; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; padding-bottom: 26px;
  border-top: 1px solid var(--line-deep); font-size: 13px;
}

/* ─────────── 响应式 ─────────── */
@media (max-width: 960px) {
  .hero { padding: 120px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero h1 { font-size: 44px; }
  .fgrid, .locks { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr; gap: 44px; }
  .inst { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 66px; left: 0; right: 0;
    padding: 14px 26px 20px; background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 9px 0; }
  .nav-toggle { display: block; }
  .btn-nav { display: none; }

  .hero h1 { font-size: 34px; letter-spacing: -.8px; }
  .lead, .lead-c { font-size: 15.5px; }
  .cta-row .btn { flex: 1; }
  .section { padding: 66px 0; }
  .h2 { font-size: 27px; }
  .lead-c { margin-bottom: 38px; }
  .pains, .fgrid, .locks { grid-template-columns: 1fr; }
  .app { width: 100%; max-width: 348px; }

  /* 三条短句横排会折行，末尾留下一个悬空的分隔点。窄屏改竖排，去掉分隔点 */
  .trust { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trust i { display: none; }

  /* 电脑 + 手机横排约 474px，窄屏放不下会把整页撑宽。改成上下排 */
  .dev-art { flex-direction: column; gap: 22px; }
  .sync { margin-bottom: 0; }
  /* figure 是 shrink-to-fit 的，这里给百分比宽度会反而变窄，必须写死 */
  .mini.pc { width: 260px; }
  .closing { padding: 74px 0; }
  .closing h2 { font-size: 27px; }
  .footer-links { gap: 44px; }
}
