:root {
  --bg: #fbf7f1;
  --surface: #fffdf9;
  --surface-2: #f4ebe0;
  --ink: #211b17;
  --muted: #6f6258;
  --line: #e7dacb;
  --accent: #bb4b2b;
  --accent-dark: #8f3218;
  --accent-soft: #f6e2d7;
  --green: #2e6a50;
  --green-soft: #e7f1eb;
  --shadow: 0 18px 50px rgba(74, 48, 32, 0.09);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(187, 75, 43, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(46, 106, 80, 0.07), transparent 28rem),
    var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid rgba(187, 75, 43, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.88);
  border-bottom: 1px solid rgba(231, 218, 203, 0.75);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(33, 27, 23, 0.10), 0 0 0 1px rgba(33, 27, 23, 0.05);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #50463f;
}

.nav a {
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.nav-cta {
  padding: 9px 16px !important;
  border: 1px solid var(--border, var(--line)) !important;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  border-bottom-color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark) !important;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

h1,
.display {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.13;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.hero h1 {
  max-width: 12em;
  margin-bottom: 22px;
}

.hero h1 em {
  color: var(--accent-dark);
  font-style: normal;
  background: linear-gradient(transparent 66%, rgba(187, 75, 43, 0.16) 66%);
}

.lead {
  max-width: 40em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(74, 48, 32, 0.1);
}

.button.primary {
  border-color: var(--accent-dark);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(143, 50, 24, 0.2);
}

.button.ghost {
  background: transparent;
}

.button .arrow {
  font-size: 17px;
  line-height: 1;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 86%;
  height: 86%;
  border-radius: 46% 54% 56% 44%;
  background: linear-gradient(145deg, #f1dfd1, #f8efe5);
  transform: rotate(-8deg);
}

.console {
  position: relative;
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid rgba(231, 218, 203, 0.9);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
  transform: rotate(1.6deg);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9c7b7;
}

.console-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.mini-phone {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: stretch;
}

.phone-frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  padding: 14px 12px;
  border-radius: 20px;
  background: linear-gradient(170deg, #342720, #1e1814);
  color: #fff;
  overflow: hidden;
}

.phone-notch {
  width: 34px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.phone-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.phone-sub {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  line-height: 1.5;
}

.phone-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  text-align: center;
}

.phone-lines {
  display: grid;
  gap: 7px;
}

.phone-lines span {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.phone-lines span:nth-child(2) {
  width: 74%;
}

.phone-lines span:nth-child(3) {
  width: 55%;
}

.console-panel {
  display: grid;
  gap: 10px;
}

.stat-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.stat-card .accent {
  color: var(--accent-dark);
}

.stat-card .green {
  color: var(--green);
}

.list-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.list-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed #eadfd4;
  font-size: 11px;
  color: var(--muted);
}

.list-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.list-row b {
  color: var(--ink);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.warm {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 48px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2,
.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}

.trust-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.trust-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card .num {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.75);
  font-size: 14px;
}

.check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step {
  position: relative;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: #c9b5a2;
  font-size: 13px;
}

.step:last-child::after {
  display: none;
}

.step b {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.step strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.step span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.callout {
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, #2e241e, #443127);
  color: #fff;
}

.callout h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}

.callout p {
  max-width: 46em;
  color: rgba(255, 255, 255, 0.72);
}

.callout .button {
  border-color: rgba(255, 255, 255, 0.22);
  background: #fff;
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

summary {
  padding: 16px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

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

summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0 36px;
}

.page-hero .lead {
  max-width: 52em;
}

.content-section {
  padding: 32px 0 64px;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.4;
}

.prose h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.5;
}

.prose p,
.prose li {
  color: #5d524a;
  font-size: 15px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.meta-note {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #6e3a28;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card .mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-card small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.contact-card strong,
.contact-card a {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--accent-dark);
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.64);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-grid a,
.footer-grid p,
.footer-grid li {
  color: #61544b;
  font-size: 13px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-brand p {
  max-width: 28em;
  margin-top: 10px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #85766b;
  font-size: 12px;
  line-height: 1.8;
}

.footer-bottom a {
  color: #6b5b50;
}

.footer-bottom a:hover {
  color: var(--accent-dark);
}

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

  .hero-visual {
    min-height: 360px;
  }

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

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step:nth-child(3)::after,
  .step:nth-child(5)::after {
    display: none;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 7px 13px !important;
  }

  .hero {
    padding: 44px 0 32px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1 {
    max-width: none;
  }

  .lead {
    font-size: 15px;
  }

  .trust-strip,
  .card-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 6px 4px;
  }

  .section {
    padding: 50px 0;
  }

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

  .step::after {
    content: "↓";
    right: 18px;
    top: auto;
    bottom: -18px;
    transform: none;
  }

  .step:nth-child(3)::after,
  .step:nth-child(5)::after {
    display: block;
  }

  .step:last-child::after {
    display: none;
  }

  .callout {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-visual {
    min-height: auto;
    padding: 12px 0;
  }

  .console {
    transform: none;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 15px;
  }

  .mini-phone {
    grid-template-columns: 94px 1fr;
    gap: 10px;
  }

  .phone-frame {
    min-height: 245px;
    padding: 12px 10px;
  }

  .stat-card strong {
    font-size: 19px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 商户注册 / 登录 ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.auth-layout-narrow {
  grid-template-columns: 480px minmax(0, 1fr);
}

.auth-side h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.auth-side .feature-list {
  margin-top: 8px;
}

.auth-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.auth-note a,
.auth-foot a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-sub span {
  color: var(--accent);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field-wide {
  grid-column: 1 / -1;
}

.field input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}

.field input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(187, 75, 43, 0.12);
}

.auth-card .field + .field,
.auth-card .field + .auth-check {
  margin-top: 14px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.auth-check a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-error {
  background: #fdecea;
  color: #a12a22;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 14px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-foot {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-layout,
  .auth-layout-narrow {
    grid-template-columns: 1fr;
  }

  .auth-side {
    order: 2;
  }

  .auth-card {
    order: 1;
  }
}

@media (max-width: 560px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid .field-wide {
    grid-column: auto;
  }

  .auth-grid > div:empty {
    display: none;
  }
}
