:root {
  --blue: #126dff;
  --blue-dark: #0754db;
  --ink: #101c45;
  --muted: #647598;
  --body: #4b5c7e;
  --line: #e2edfc;
  --pale: #f2f7ff;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(44, 105, 188, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 600px, #f5f9ff 100%);
  line-height: 1.75;
}

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

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

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon { font-size: 22px; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--ink); }
.brand-caption { font-size: 12.5px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a.active, .site-nav a:hover {
  color: var(--blue);
  background: var(--pale);
}

.site-nav a.nav-tool {
  color: var(--blue);
  border: 1px solid #cfe0ff;
}

.site-nav a.nav-contact {
  background: var(--blue);
  color: #fff;
}
.site-nav a.nav-contact:hover { background: var(--blue-dark); }

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(189, 220, 255, 0.45), transparent 55%),
              linear-gradient(115deg, #edf7ff 0%, #e5f2ff 50%, #f3f9ff 100%);
  border-bottom: 1px solid var(--line);
  padding: 46px 20px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-copy { flex: 1; }

.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.38;
  font-weight: 850;
  color: #0b1844;
}

.hero-copy p {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: #596d92;
  max-width: 620px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-contact {
  width: 296px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hc-tag { font-size: 12px; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.hc-wx { font-size: 17px; margin-bottom: 4px; }
.hc-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hc-actions { display: flex; gap: 8px; }

/* Main Grid */
.wrap {
  max-width: 1160px;
  margin: 28px auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.full-span { grid-column: 1 / -1; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 99px;
  background: var(--blue);
  display: inline-block;
}

.sub-note, .footnote { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

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

.btn-outline { background: #fff; border-color: #cfe0ff; color: var(--blue); }
.btn-outline:hover { background: var(--pale); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--blue); }

/* Estimator */
.teaser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.teaser-head h2 { margin-bottom: 4px; }

.estimator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.est-textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  background: var(--pale);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  color: var(--ink);
}
.est-textarea:focus { border-color: var(--blue); background: #fff; }

.est-panel {
  background: var(--pale);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.est-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--body);
}
.est-stat strong { color: var(--blue); font-size: 16px; }
.est-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* Lists */
.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--body);
  font-size: 14.5px;
}
.warn-list li::before { content: "!"; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fef3c7; color: #d97706; font-size: 11px; font-weight: 800; text-align: center; line-height: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }

/* Prices */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.price-label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.price-val b { font-size: 30px; color: var(--blue); margin-right: 4px; }
.price-val span { font-size: 13px; color: var(--muted); }
.price-card p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-item {
  background: var(--pale);
  border-radius: 14px;
  padding: 16px;
}

.step-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-item h3 { margin: 0 0 6px; font-size: 15px; }
.step-item p { margin: 0; font-size: 13px; color: var(--muted); }

/* FAQ & Tutorials */
.faq-grid, .tutorials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  background: var(--pale);
  border-radius: 12px;
  padding: 14px 16px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 14.5px; }
.faq-item p { margin: 0; font-size: 13.5px; color: var(--body); }

.tut-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcff;
  transition: 0.15s ease;
}
.tut-card:hover { border-color: var(--blue); background: var(--pale); }
.tut-card strong { font-size: 14.5px; color: var(--ink); }
.tut-card span { font-size: 12.5px; color: var(--muted); }

/* QR */
.qr-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.qr-img-wrap img, .qr-fallback {
  width: 152px;
  height: 152px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.qr-fallback {
  background: var(--pale);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.back-link { color: var(--blue); font-weight: 600; }

.mobile-bar { display: none; }

@media (max-width: 960px) {
  .brand-caption { display: none; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-contact { width: 100%; }
  .estimator-grid, .price-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { padding-bottom: 74px; }
  .site-nav a:not(.nav-tool):not(.nav-contact) { display: none; }
  .hero-copy h1 { font-size: 26px; }
  .wrap { grid-template-columns: 1fr; }
  .estimator-grid, .price-grid, .steps-grid, .faq-grid, .tutorials-grid { grid-template-columns: 1fr; }
  .teaser-head { flex-direction: column; align-items: flex-start; }
  .qr-box { flex-direction: column; text-align: center; }
  .qr-actions { justify-content: center; }
  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 8px;
    z-index: 50;
  }
  .mobile-bar > * { flex: 1; }
}
