:root {
  --ink: #17362d;
  --ink-2: #1f4d3f;
  --leaf: #2f6f56;
  --leaf-soft: #e7f3ed;
  --brass: #b8956a;
  --sand: #f6f1e8;
  --paper: #fffcf7;
  --line: #e6ddd0;
  --muted: #6b645b;
  --danger: #9a3412;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, #e8f4ee 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #f3ead8 0%, transparent 50%),
    var(--sand);
  color: var(--ink);
  min-height: 100vh;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.site-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #2f6f56, #17362d);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(23, 54, 45, 0.18);
}

.nav-chip {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: 0.15s ease;
}

.nav-chip:hover,
.nav-chip.is-active {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(23, 54, 45, 0.05);
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 111, 86, 0.12);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}

.seg button.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.result-hero {
  background: linear-gradient(145deg, #17362d 0%, #2f6f56 70%, #3d7d5f 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
}

.result-hero .hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.ad-slot {
  border: 1px dashed #d3c8b6;
  background: repeating-linear-gradient(
    -45deg,
    #faf6f0,
    #faf6f0 8px,
    #f3ece1 8px,
    #f3ece1 16px
  );
  color: #8a8176;
  border-radius: 14px;
  min-height: 90px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.ad-slot.is-live {
  border-style: solid;
  background: #fff;
  padding: 8px 0;
}

.ad-slot.is-auto {
  display: none;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(23, 54, 45, 0.46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-bg.is-open {
  display: flex;
}

.modal-bg .panel {
  position: relative;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.site-header-inner,
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.nav-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-left: auto;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid a {
  color: inherit;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--leaf);
}

.btn-ink {
  width: 100%;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pay-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.pay-plan {
  text-align: left;
  cursor: pointer;
}

.pay-plan.is-on {
  box-shadow: 0 0 0 2px var(--leaf);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.qr-ph {
  width: 180px;
  height: 180px;
  border: 1px dashed #cbbfae;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  color: #6b645b;
  background:
    repeating-linear-gradient(45deg, #faf6f0, #faf6f0 10px, #fff 10px, #fff 20px);
}

.timeline-step {
  position: relative;
  padding-left: 28px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: -12px;
  width: 2px;
  background: #d7eee4;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--leaf);
}
