/* SafeVault 官网静态页共享样式（/security/ /migration/ /pricing/） */
:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: #fff;
  color: #111827;
}
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.page-container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* 页头 */
.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}
.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.page-brand img { height: 2.5rem; }
.page-nav { display: none; align-items: center; gap: 2rem; }
.page-nav a { color: #374151; font-weight: 500; transition: color 150ms ease; }
.page-nav a:hover { color: #00387B; }
.page-nav a.is-current { color: #00387B; }
.page-section a,
.page-hero a { color: #00387B; text-decoration: underline; text-underline-offset: 0.15em; }
.page-section a:hover,
.page-hero a:hover { color: #1f62ab; }
.page-hero-note { margin-top: 0.85rem; }
a.accent-link,
.page-hero a.note-link { color: #ea580c; }
a.accent-link:hover,
.page-hero a.note-link:hover { color: #c2410c; }
.page-hero a.note-link { font-size: 0.9rem; }
html[data-theme="dark"] .page-section a,
html[data-theme="dark"] .page-hero a { color: #6ea8e8; }
html[data-theme="dark"] .page-section a:hover,
html[data-theme="dark"] .page-hero a:hover { color: #a8c8ec; }
html[data-theme="dark"] a.accent-link,
html[data-theme="dark"] .page-hero a.note-link { color: #fb923c; }
html[data-theme="dark"] a.accent-link:hover,
html[data-theme="dark"] .page-hero a.note-link:hover { color: #fdba74; }
.page-download {
  background-color: #00387B;
  color: #fff !important;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  transition: background-color 150ms ease, transform 120ms ease;
}
.page-download:hover { background-color: #002b61; }
.page-download:active { transform: scale(0.95); }
html[data-theme="dark"] .page-download { background-color: #00387B; }
html[data-theme="dark"] .page-download:hover { background-color: #1f62ab; }

.page-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.page-tool {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #fff;
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.page-tool:hover { border-color: #00387B; color: #00387B; }

/* 主体 */
.page-main { padding: 3.5rem 0 4rem; }
.page-hero { text-align: center; margin-bottom: 3rem; }
.page-eyebrow {
  display: inline-block;
  border: 1px solid #b3cfee;
  background: #eef4fb;
  color: #002b61;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.page-hero h1 { font-size: 2.6rem; line-height: 1.2; color: #111827; margin-bottom: 1rem; }
.page-hero p { font-size: 1.15rem; line-height: 1.7; color: #4b5563; max-width: 42rem; margin: 0 auto; }

.page-section { margin-bottom: 3rem; }
.page-section h2 { font-size: 1.9rem; color: #111827; text-align: center; margin-bottom: 0.6rem; }
.page-section .section-sub { text-align: center; color: #6b7280; font-size: 1.05rem; margin-bottom: 2.5rem; }

/* 定价：单一价格卡（价格独立于标题，随语言切换本地货币） */
.plan-card {
  max-width: 24rem;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: #fff;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 12px 32px rgb(15 23 42 / 0.08);
}
.plan-badge {
  display: inline-block;
  background: #e8f0fa;
  color: #00387B;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.plan-name { font-size: 1.4rem; color: #111827; margin-bottom: 0.9rem; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; }
.price-amount { font-size: 2.6rem; font-weight: 700; color: #00387B; }
.price-unit { font-size: 0.95rem; color: #6b7280; }
.price-note { margin-top: 0.5rem; font-size: 0.85rem; color: #9ca3af; }
.plan-card .cta-btn { margin-top: 1.25rem; display: inline-block; }
html[data-theme="dark"] .plan-card { background: #111a2c; border-color: #1f2937; }
html[data-theme="dark"] .plan-name { color: #f8fafc; }
html[data-theme="dark"] .price-amount { color: #4d8fd6; }
html[data-theme="dark"] .plan-badge { background: rgba(0, 56, 123, 0.25); color: #7fb1e8; }
html[data-theme="dark"] .price-unit { color: #94a3b8; }

/* 卡片 */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgb(15 23 42 / 0.05);
}
.card h3 { font-size: 1.15rem; color: #111827; margin-bottom: 0.5rem; }
.card p { color: #4b5563; line-height: 1.65; font-size: 0.98rem; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

/* 步骤条（流程图） */
.flow { display: flex; flex-direction: column; gap: 1.25rem; counter-reset: flow; }
.flow-step {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  padding: 1.75rem 1.75rem 1.75rem 4.25rem;
  box-shadow: 0 4px 12px rgb(15 23 42 / 0.05);
}
.flow-step::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 1.5rem;
  top: 1.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #00387B;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.flow-step h3 { font-size: 1.1rem; color: #111827; margin-bottom: 0.4rem; }
.flow-step p { color: #4b5563; line-height: 1.65; font-size: 0.98rem; }
.flow-arrow { display: none; }

/* 两列清单：能看到 / 看不到 */
.view-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.view-card { border-radius: 1rem; padding: 1.75rem; }
.view-card--yes { background: #f0fdf4; border: 1px solid #bbf7d0; }
.view-card--no { background: #fef2f2; border: 1px solid #fecaca; }
.view-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.view-card--yes h3 { color: #15803d; }
.view-card--no h3 { color: #b91c1c; }
.view-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: #374151;
  line-height: 1.6;
  font-size: 0.98rem;
}
.view-card li::before { position: absolute; left: 0; font-weight: 700; }
.view-card--yes li::before { content: "✓"; color: #16a34a; }
.view-card--no li::before { content: "✕"; color: #dc2626; }

/* 迁移来源卡片 */
.source-card { text-align: center; }
.source-card .source-logo {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.9rem;
  border-radius: 0.9rem;
  background: #eef4fb;
  color: #002b61;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
}
.source-card h3 { margin-bottom: 0.4rem; }
.source-card .source-note { font-size: 0.9rem; color: #6b7280; line-height: 1.6; }

/* 价格表 */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.price-card { border-radius: 1rem; padding: 2rem; text-align: center; }
.price-card--free { border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 4px 12px rgb(15 23 42 / 0.05); }
.price-card--pro { border: 2px solid #00387B; background: linear-gradient(180deg, #eef4fb, #fff); }
.price-card .price-tag { font-size: 2.2rem; font-weight: 800; color: #111827; margin: 0.75rem 0 0.25rem; }
.price-card .price-note { color: #6b7280; font-size: 0.9rem; margin-bottom: 1.25rem; }
.price-card ul { text-align: left; margin-bottom: 1.5rem; }
.price-card li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; color: #374151; line-height: 1.6; font-size: 0.98rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.price-card .coming { display: inline-block; background-color: #00387B; color: #fff; font-weight: 600; border-radius: 0.5rem; padding: 0.65rem 1.5rem; }
html[data-theme="dark"] .price-card .coming { background-color: #00387B; }

/* 段落分组：每块独立占屏（信息少的两个小模块可共处一块） */
.screen-block {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.screen-block .page-footer { margin-top: 2rem; }

/* CTA 与页脚 */
.page-cta {
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
}
.page-cta h2 { margin-bottom: 0.75rem; }
.page-cta p { color: #4b5563; margin-bottom: 1.5rem; }
.cta-btn { display: inline-block; background-color: #00387B; color: #fff !important; font-weight: 600; border-radius: 0.75rem; padding: 0.9rem 2.25rem; transition: background-color 150ms ease, transform 120ms ease; }
.cta-btn:hover { background-color: #002b61; }
.cta-btn:active { transform: scale(0.96); }
html[data-theme="dark"] .cta-btn { background-color: #00387B; }
html[data-theme="dark"] .cta-btn:hover { background-color: #1f62ab; }
.cta-btn--ghost { background: #fff; color: #111827 !important; border: 2px solid #d1d5db; margin-left: 0.75rem; }
.cta-btn--ghost:hover { background: #f9fafb; }

.page-footer { background: #fff; border-top: 1px solid #e5e7eb; color: #4b5563; padding: 2.5rem 0 1.5rem; }
.page-footer__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.page-footer img { height: 2.5rem; }
.page-footer h3 { color: #111827; font-size: 1rem; margin-bottom: 0.9rem; }
.page-footer li { margin-bottom: 0.55rem; }
.page-footer a { color: #4b5563; font-size: 0.92rem; transition: color 150ms ease; }
.page-footer a:hover { color: #00387B; }
.page-footer address { font-style: normal; color: #4b5563; font-size: 0.9rem; line-height: 1.7; }
.page-footer__bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: #4b5563;
  font-size: 0.88rem;
}
.page-footer .footer-beian { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem 1.25rem; }
.page-footer .footer-beian a { display: inline-flex; align-items: center; gap: 0.3rem; }
.page-footer .footer-beian img { height: 1rem; width: auto; display: block; }
html[data-theme="dark"] .page-footer .footer-beian img { filter: none; }

@media (min-width: 768px) {
  .page-nav { display: flex; }
  .page-hero h1 { font-size: 3.2rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { flex-direction: row; justify-content: center; }
  .flow-step { flex: 1 1 15rem; max-width: 17rem; padding: 1.5rem 1.25rem 1.25rem; text-align: center; }
  .flow-step::before { left: 50%; top: -1.1rem; transform: translateX(-50%); }
  .flow-step h3 { margin-top: 1.4rem; }
  .view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
  .page-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
}

@media (max-width: 767px) {
  .page-main { padding-top: 3rem; }
  .page-hero h1 { font-size: 2.1rem; }
  .cta-btn--ghost { margin-left: 0; margin-top: 0.75rem; }
}

/* 深色主题（与首页共享 safevault-theme 存储键） */
html[data-theme="dark"] body { background: #0b1220; color: #e5e7eb; }
html[data-theme="dark"] .page-header { background: #0b1220; border-color: #1f2937; }
html[data-theme="dark"] .page-brand img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .page-footer { background: #0b1220; border-color: #1f2937; color: #94a3b8; }
html[data-theme="dark"] .page-footer h3 { color: #f8fafc; }
html[data-theme="dark"] .page-footer a { color: #94a3b8; }
html[data-theme="dark"] .page-footer a:hover { color: #fff; }
html[data-theme="dark"] .page-footer address { color: #94a3b8; }
html[data-theme="dark"] .page-footer__bottom { border-color: #1f2937; color: #94a3b8; }
html[data-theme="dark"] .page-footer img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .page-nav a { color: #cbd5e1; }
html[data-theme="dark"] .page-nav a:hover,
html[data-theme="dark"] .page-nav a.is-current { color: #3e78c4; }
html[data-theme="dark"] .page-tool { background: #111827; border-color: #334155; color: #e5e7eb; }
html[data-theme="dark"] .page-tool:hover { border-color: #3e78c4; color: #3e78c4; }
html[data-theme="dark"] .page-hero h1 { color: #f9fafb; }
html[data-theme="dark"] .page-hero p { color: #9ca3af; }
html[data-theme="dark"] .page-section h2 { color: #f9fafb; }
html[data-theme="dark"] .section-sub { color: #9ca3af; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .flow-step { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .flow-step h3 { color: #f9fafb; }
html[data-theme="dark"] .card p,
html[data-theme="dark"] .flow-step p { color: #9ca3af; }
html[data-theme="dark"] .view-card--yes { background: rgb(22 101 52 / 0.18); border-color: #166534; }
html[data-theme="dark"] .view-card--no { background: rgb(127 29 29 / 0.18); border-color: #7f1d1d; }
html[data-theme="dark"] .view-card li { color: #d1d5db; }
html[data-theme="dark"] .source-logo { background: #1e293b; color: #3e78c4; }
html[data-theme="dark"] .price-card--free { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .price-card--pro { background: linear-gradient(180deg, #001630, #111827); border-color: #00387B; }
html[data-theme="dark"] .price-card .price-tag { color: #f9fafb; }
html[data-theme="dark"] .price-card li { color: #d1d5db; }
html[data-theme="dark"] .page-cta { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .page-cta h2 { color: #f9fafb; }
html[data-theme="dark"] .page-cta p { color: #9ca3af; }
html[data-theme="dark"] .page-eyebrow { background: rgb(0 56 123 / 0.14); border-color: #002b61; color: #7fafe0; }
