/* ============================================================
   JT DBVault — site stylesheet
   Palette mirrors the app: slate #2B3A4A, blue #2563EB
   ============================================================ */
:root {
  --slate: #2b3a4a;
  --slate-dark: #1f2937;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --violet: #7c3aed;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --line: #eaecef;
  --text: #1f2937;
  --muted: #6b7280;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 41, 55, .10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--slate-dark); }
.brand img { width: 34px; height: 34px; }
.brand:hover { text-decoration: none; }
.brand .v { color: var(--blue); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); font-size: 15px; }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
       border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
/* 导航里的 .nav-links a 优先级更高，会盖掉按钮文字色——在此显式覆盖 */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-outline { color: var(--blue); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: #eff6ff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 14px 32px; font-size: 17px; }

.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; padding: 4px 9px; font-size: 13px; cursor: pointer;
  border-radius: 6px; color: var(--muted);
}
.lang-switch button.on { background: var(--slate); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 55%, #34537a 100%);
  color: #fff; padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 18px; }
.hero p.lead { font-size: 19px; color: #cbd5e1; margin-bottom: 28px; }
.hero .db-badges { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.db-badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: 13px; color: #94a3b8; margin-top: 14px; }

/* app mockup */
.mock { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; color: var(--text); }
/* Windows 风格标题栏：左图标+标题，右侧最小化/最大化/关闭 */
.mock-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 8px 6px 8px 14px;
            display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.mock-winbtns { margin-left: auto; display: flex; }
.mock-winbtns span { width: 34px; text-align: center; font-size: 11px; color: #6b7280; padding: 2px 0; }
.mock-winbtns span:last-child { color: #9ca3af; }
.mock-row { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.mock-ico { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
            color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.mock-row b { display: block; font-size: 14px; }
.mock-row small { color: var(--muted); font-size: 12px; }
.mock-check { margin-left: auto; color: var(--green); font-weight: 700; }
.mock-switch { margin-left: auto; width: 38px; height: 20px; border-radius: 999px; background: var(--green); position: relative; }
.mock-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px;
                      background: #fff; border-radius: 50%; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.sec-title { text-align: center; font-size: 32px; margin-bottom: 10px; color: var(--slate-dark); }
.sec-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 48px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--slate-dark); }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ico { width: 62px; height: 62px; border-radius: 14px;
             background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff;
             display: flex; align-items: center; justify-content: center; font-size: 30px;
             margin-bottom: 16px; box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.card .ico svg { width: 30px; height: 30px; stroke: #fff; fill: none;
                 stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 8px 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* destination logos */
.dest-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.dest-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px;
             font-size: 14px; font-weight: 600; color: var(--slate-dark); display: flex; gap: 8px; align-items: center; }
.dest-pill span { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.price-grid.cols-5 .price { padding: 22px 16px; }
.price-grid.cols-5 .amount { font-size: 32px; }
.price-grid.cols-5 .price li { font-size: 13.5px; padding-left: 22px; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
         display: flex; flex-direction: column; }
.price.hot { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.price.hot .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
                   background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
                   border-radius: 999px; padding: 3px 14px; white-space: nowrap; }
.price h3 { font-size: 17px; color: var(--slate-dark); }
.price .amount { font-size: 38px; font-weight: 800; color: var(--slate-dark); margin: 10px 0 2px; }
.price .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; margin: 18px 0 22px; flex: 1; }
.price li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: var(--text); }
.price li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.price li.no { color: #9ca3af; }
.price li.no::before { content: "—"; color: #cbd5e1; }
.price .btn { width: 100%; text-align: center; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp td:first-child, .cmp th:first-child { text-align: left; }
.cmp thead th { background: var(--bg-soft); font-size: 15px; }
.cmp .y { color: var(--green); font-weight: 700; }
.cmp .n { color: #cbd5e1; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--slate-dark), var(--slate)); color: #fff; text-align: center;
            padding: 64px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: #cbd5e1; margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-dark); color: #9ca8b4; padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: #9ca8b4; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.foot-brand { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.foot-brand img { width: 30px; height: 30px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; text-align: center; color: #6b7a89; }

/* ---------- misc pages ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-head h1 { font-size: 34px; color: var(--slate-dark); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 32px 0 10px; font-size: 22px; color: var(--slate-dark); }
.prose p, .prose li { color: var(--text); font-size: 15.5px; }
.prose ul { padding-left: 22px; }
.dl-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
          text-align: center; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow); }
.dl-box .ver { color: var(--muted); font-size: 14px; margin: 10px 0 2px; }
.req { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--slate-dark); }
.faq p { margin-top: 10px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps, .price-grid, .price-grid.cols-5 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 14px; }
  /* 对比表横向滚动，避免溢出屏幕 */
  table.cmp { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 580px) {
  .grid-3, .grid-4, .steps, .price-grid, .price-grid.cols-5, .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 48px 0 56px; }
  section { padding: 52px 0; }
  /* 导航换行而不是隐藏：手机上所有入口可达 */
  .nav { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
  .nav-links { width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
  .nav-links a { font-size: 14px; }
  .nav-links .btn { padding: 8px 16px; margin-left: auto; }
  .sec-title { font-size: 26px; }
  .price .amount { font-size: 32px; }
}
