*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --border: #e8ecf1;
  --text: #1a1d26;
  --text-secondary: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #059669;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
}

.logo-icon {
  display: flex;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
}

.panel-mock {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
}

.panel-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.panel-header .dot:first-child {
  background: #fca5a5;
}

.panel-header .dot:nth-child(2) {
  background: #fcd34d;
}

.panel-header .dot:nth-child(3) {
  background: #86efac;
}

.panel-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.panel-body {
  padding: 16px;
}

.mock-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mock-card {
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
}

.mock-card.highlight {
  background: var(--primary-soft);
}

.mock-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mock-value {
  font-size: 16px;
  font-weight: 700;
}

.mock-value.success {
  color: var(--success);
}

.mock-value.danger {
  color: var(--danger);
}

.mock-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mock-tabs span {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  background: var(--bg);
}

.mock-tabs span.active {
  background: var(--primary);
  color: #fff;
}

.mock-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.mock-row:last-child {
  border-bottom: none;
}

.mock-row.head {
  background: var(--bg);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
}

.mock-row .danger {
  color: var(--danger);
  font-weight: 600;
}

.mock-row .success {
  color: var(--success);
  font-weight: 600;
}

.hero-glow {
  position: absolute;
  inset: 20% -10% -20% 10%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15), transparent 70%);
  pointer-events: none;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--primary-soft);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.flow-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.flow-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}

.flow-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text-secondary);
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--border);
  padding-top: 40px;
}

.privacy-section {
  background: linear-gradient(180deg, var(--bg) 0%, #eef2ff 100%);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.privacy-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-list li {
  display: flex;
  gap: 16px;
}

.privacy-list .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.privacy-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.privacy-list p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.shield-card {
  padding: 36px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.shield-icon {
  color: var(--primary);
  margin-bottom: 16px;
}

.shield-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.shield-stats {
  display: grid;
  gap: 16px;
}

.shield-stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.shield-stats div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.shield-stats dt {
  font-size: 14px;
  color: var(--text-secondary);
}

.shield-stats dd {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.install-steps {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-steps li {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-index {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

.install-steps h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.install-steps p {
  font-size: 14px;
  color: var(--text-secondary);
}

.install-steps pre {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

.install-steps pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.install-steps a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.install-steps a:hover {
  color: var(--primary-hover);
}

.install-note {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-inner p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: #f0f9ff;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-note {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 960px) {
  .hero-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 48px 0 64px;
  }

  .header-cta {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .hero-stats {
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }
}
