:root {
  --primary: #1B3A6B;
  --accent: #0FA3A3;
  --bg: #F6F8FB;
  --text: #1F2937;
  --muted: #8A94A6;
  --card: #ffffff;
  --border: #e5e9f0;
  --shadow: 0 6px 24px rgba(27, 58, 107, 0.08);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-list { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.nav-list a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover { background: rgba(15,163,163,0.1); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--primary); }

/* Sections common */
main section {
  scroll-margin-top: 76px;
}
.block { padding: 72px 0; }
.block.alt { background: #fff; }
.block-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
h2 {
  font-size: 30px;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
h3 { font-size: 20px; color: var(--primary); margin: 18px 0 10px; }
.section-intro { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.tip { margin-top: 20px; padding: 12px 16px; background: rgba(15,163,163,0.08); border-left: 4px solid var(--accent); border-radius: 8px; font-size: 14.5px; }

/* Hero */
.hero {
  padding: 130px 24px 70px;
  background: linear-gradient(135deg, #1B3A6B 0%, #1d4d7a 55%, #0FA3A3 130%);
  color: #fff;
  scroll-margin-top: 64px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.2; margin-bottom: 10px; letter-spacing: -1px; }
.hero .subtitle { font-size: 19px; color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.hero .lead { font-size: 16.5px; color: rgba(255,255,255,0.92); max-width: 560px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.stat-card strong { display: block; font-size: 26px; color: #fff; }
.stat-card span { font-size: 13.5px; color: rgba(255,255,255,0.8); }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,0.28); }

/* Overview */
.overview-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: start; }
.overview-visual img, .template-visual img, .compare-visual img { border-radius: var(--radius); box-shadow: var(--shadow); }
.overview-text ul, .category-content ul, .security-text ul { padding-left: 22px; margin-top: 10px; }
.overview-text li, .category-content li, .security-text li { margin-bottom: 8px; }

/* Build */
.build-visual img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
.step-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step-list.compact { display: block; padding-left: 0; }
.step-list li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-list.compact li { margin-bottom: 14px; border-left: 4px solid var(--accent); padding: 14px 18px; box-shadow: none; }
.step-num { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }

/* Template / table */
.template-grid, .compare-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: start; }
.config-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.config-table th, .config-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.config-table th { background: var(--primary); color: #fff; font-weight: 600; }
.config-table tr:nth-child(even) td { background: rgba(15,163,163,0.04); }

/* Category */
.category-content p { margin-bottom: 12px; }

/* Collect */
.collect-content p { margin-bottom: 12px; }

/* Security */
.security-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: start; }
.security-visual img { border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; color: var(--primary); }
.faq-item p { padding-bottom: 18px; color: #4b5563; }

/* Long tail */
.longtail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.longtail-card {
  display: block;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.longtail-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(27,58,107,0.14); color: var(--accent); }

/* Footer */
.site-footer { background: #12233f; color: rgba(255,255,255,0.75); padding: 48px 24px; margin-top: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-inner p { margin-bottom: 10px; font-size: 14.5px; }
.footer-inner a { color: #fff; text-decoration: underline; }
.copyright { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .overview-grid, .template-grid, .compare-grid, .security-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .nav-list.open { display: flex; }
  .hero { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
