/* ============================================================
   合批网官网 · 单页样式
   主色：绿色；点缀：品牌红
   ============================================================ */

:root {
  --green-900: #052e16;
  --green-800: #063d1d;
  --green-700: #0a5c2c;
  --green-600: #0b7a38;
  --green-500: #14994a;
  --green-400: #2fb765;
  --green-100: #dff4e7;
  --green-50: #eef9f2;
  --red: #e11d2e;
  --ink: #14251b;
  --ink-soft: #364b3d;
  --muted: #5b6b61;
  --line: #e1ede5;
  --bg: #f5faf6;
  --white: #ffffff;
  --radius: 20px;
  --shadow-sm: 0 6px 20px rgba(6, 61, 29, 0.06);
  --shadow-md: 0 18px 50px rgba(6, 61, 29, 0.12);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 122, 56, 0.28);
}

.btn-primary:hover {
  background: var(--green-500);
  box-shadow: 0 14px 28px rgba(11, 122, 56, 0.34);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.btn-ghost {
  border-color: var(--green-600);
  color: var(--green-600);
  background: transparent;
  padding: 9px 20px;
}

.btn-ghost:hover {
  background: var(--green-50);
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(6, 61, 29, 0.06);
}

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

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

.brand-logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
  transition: right 0.22s ease;
}

.nav a:hover {
  color: var(--green-600);
}

.nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-soft);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(126, 224, 166, 0.30), transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(20, 153, 74, 0.34), transparent 42%),
    linear-gradient(135deg, #052e16 0%, #083f20 48%, #0a5c2c 100%);
  padding: 96px 0 132px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 64px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin: 22px 0 20px;
}

.hero-copy h1 .accent {
  color: #8ff0b4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 5px 14px;
}

.eyebrow-light {
  color: #a9f0c4;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ff0b4;
  box-shadow: 0 0 0 3px rgba(143, 240, 180, 0.18);
}

.hero-card {
  justify-self: end;
  width: 100%;
  max-width: 330px;
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: 26px 26px 22px;
  box-shadow: 0 30px 70px rgba(2, 24, 11, 0.38);
  text-align: center;
}

.qr-frame {
  position: relative;
  border-radius: 18px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 14px;
}

.qr-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(11, 122, 56, 0.25);
  border-radius: 14px;
  pointer-events: none;
}

.qr-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.qr-title {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.qr-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.qr-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: #8a978e;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
  display: block;
}

/* ---------- 价值条 ---------- */
.value-strip {
  background: var(--bg);
  padding: 8px 0 36px;
}

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

.value-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.value-item strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: 0.5px;
}

.value-item span {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 88px 0;
  background: #fff;
}

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

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

.section-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.3px;
}

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

/* ---------- 核心能力 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c9e6d4;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-600);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ---------- 流通链路 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(11, 122, 56, 0.24);
}

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

.flow-step p {
  color: var(--muted);
  font-size: 14.5px;
}

.flow-note {
  margin-top: 32px;
  text-align: center;
  color: var(--green-700);
  font-size: 15px;
  font-weight: 600;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 14px;
  padding: 14px 20px;
}

/* ---------- 商户入驻 ---------- */
.merchant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: start;
}

.merchant-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.benefit-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 32px;
}

.benefit-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(20, 153, 74, 0.12);
}

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

.benefit-list span {
  color: var(--muted);
  font-size: 14.5px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-main {
  font-size: 19px;
  font-weight: 700;
  color: var(--green-700);
  transition: color 0.18s ease;
}

.contact-main:hover {
  color: var(--green-500);
}

/* ---------- 入驻表单 ---------- */
.merchant-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.merchant-form h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

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

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.field label em {
  color: var(--red);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a2aea6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 153, 74, 0.12);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.08);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 20px;
  cursor: pointer;
}

.agree input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--green-600);
}

.agree.has-error span {
  color: var(--red);
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-success {
  color: var(--green-600);
}

.form-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form-note a {
  color: var(--green-600);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #c9e6d4;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 18px;
}

.footer-slogan {
  max-width: 360px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-company {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #8ff0b4;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: #8ff0b4;
}

.dot {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

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

  .merchant-grid {
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(6, 61, 29, 0.08);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--bg);
    font-size: 16px;
  }

  .nav a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding: 72px 0 116px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
    max-width: 360px;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 104px;
  }

  .hero-copy h1 {
    margin-top: 18px;
  }

  .hero-sub {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-card {
    max-width: none;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .value-item {
    padding: 18px;
  }

  .value-item strong {
    font-size: 19px;
  }

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

  .merchant-form {
    padding: 26px 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-card {
    gap: 16px 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

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