:root {
  --ink: #172026;
  --muted: #66727d;
  --line: #d9e0e6;
  --paper: #f7f8f5;
  --white: #ffffff;
  --green: #1f7a5a;
  --blue: #2d6cdf;
  --orange: #c65f24;
  --red: #b64646;
  --charcoal: #101820;
  --shadow: 0 18px 45px rgba(18, 28, 34, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #3d4952;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.header-action,
.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-action,
.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(31, 122, 90, 0.18);
  font-weight: 700;
}

.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
}

.header-action:hover,
.primary-button:hover,
.secondary-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button svg,
.secondary-button svg,
.header-action svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(16, 24, 32, 0.86), rgba(16, 24, 32, 0.38) 58%, rgba(16, 24, 32, 0.18)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero-backdrop {
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, var(--paper), rgba(247, 248, 245, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 96px));
  margin-left: 48px;
  padding: 82px 0 116px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #2f8b68;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9be1c4;
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: 58px;
  line-height: 1.08;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin: -58px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.trust-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading.compact {
  display: block;
  max-width: 520px;
  margin-bottom: 0;
}

.section h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 22px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 28, 34, 0.06);
}

.project-card[data-accent="green"] {
  --accent: var(--green);
}

.project-card[data-accent="blue"] {
  --accent: var(--blue);
}

.project-card[data-accent="orange"] {
  --accent: var(--orange);
}

.project-card[data-accent="red"] {
  --accent: var(--red);
}

.project-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.project-card h3 {
  margin: 10px 0 0;
  font-size: 23px;
  line-height: 1.35;
}

.project-card p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
  color: #33424c;
  font-size: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.price {
  display: block;
  color: var(--charcoal);
  font-size: 28px;
  font-weight: 900;
}

.timeline-text {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.project-card .primary-button {
  background: var(--accent);
  box-shadow: none;
  white-space: nowrap;
}

.project-visual {
  display: grid;
  align-content: space-between;
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #ffffff), #eef2f4);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #ffffff);
}

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

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, #ffffff);
}

.mini-chart {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  height: 88px;
  margin-top: 24px;
}

.mini-chart span {
  border-radius: 5px 5px 0 0;
  background: var(--accent);
  opacity: 0.86;
}

.mini-chart span:nth-child(1) {
  height: 42%;
}

.mini-chart span:nth-child(2) {
  height: 66%;
}

.mini-chart span:nth-child(3) {
  height: 52%;
}

.mini-chart span:nth-child(4) {
  height: 82%;
}

.mini-chart span:nth-child(5) {
  height: 61%;
}

.visual-lines {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.visual-lines span {
  height: 10px;
  border-radius: 5px;
  background: rgba(23, 32, 38, 0.12);
}

.visual-lines span:nth-child(2) {
  width: 72%;
}

.visual-lines span:nth-child(3) {
  width: 88%;
}

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

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

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #e7efe8;
  color: var(--green);
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-band {
  width: 100%;
  max-width: none;
  margin-top: 86px;
  padding: 72px max(48px, calc((100vw - 1180px) / 2)) 82px;
  background: #e9eee9;
}

.support-band > div:first-child {
  width: min(1180px, 100%);
  margin: 0 auto 26px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.support-grid article {
  padding: 24px;
  border: 1px solid #d3ddd4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.support-grid svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.support-grid h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.support-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: start;
  padding-bottom: 82px;
}

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

.contact-panel div {
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-panel strong,
.contact-panel a,
.contact-panel span {
  display: block;
}

.contact-panel strong {
  margin-bottom: 14px;
  color: var(--muted);
}

.contact-panel a,
.contact-panel span {
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  padding: 26px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.pay-dialog {
  width: min(960px, calc(100% - 34px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.pay-dialog::backdrop {
  background: rgba(16, 24, 32, 0.62);
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  margin: 0;
  background: var(--white);
}

.dialog-main,
.payment-result {
  padding: 30px;
}

.dialog-main h2,
.payment-result h3 {
  margin: 0;
  font-size: 26px;
}

.dialog-summary {
  min-height: 58px;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  background: #edf1f1;
  color: var(--ink);
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  background: #f0f6f1;
}

.order-total strong {
  font-size: 24px;
}

label {
  display: block;
  margin: 12px 0 0;
  color: #33424c;
  font-weight: 700;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfd8dd;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.14);
}

textarea {
  resize: vertical;
}

.wide {
  width: 100%;
}

.dialog-main .primary-button {
  margin-top: 18px;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid var(--line);
  background: #f3f5f1;
}

.payment-result[hidden] {
  display: none;
}

.payment-result .secondary-button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 236px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.qr-box img {
  width: min(210px, 100%);
  height: auto;
  display: block;
}

.qr-box .text-link {
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.payment-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(31, 122, 90, 0.11), rgba(198, 95, 36, 0.12)),
    var(--paper);
}

.result-shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.result-card {
  margin-top: 42px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.result-card > svg {
  width: 54px;
  height: 54px;
  color: var(--green);
}

.result-card h1 {
  margin: 8px 0 12px;
  font-size: 32px;
}

.result-card p {
  color: var(--muted);
  line-height: 1.7;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.result-actions .secondary-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 24px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero-content {
    width: min(680px, calc(100% - 48px));
    margin-left: 24px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .trust-strip,
  .projects-grid,
  .section-heading,
  .split-section,
  .support-grid,
  .contact-section,
  .contact-panel,
  .dialog-shell {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: -38px;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .payment-result {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    padding: 0 12px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section,
  .trust-strip {
    width: calc(100% - 28px);
  }

  .section {
    padding-top: 64px;
  }

  .section h2 {
    font-size: 28px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 190px;
  }

  .project-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .project-card .primary-button {
    width: 100%;
  }

  .support-band {
    padding: 60px 14px 68px;
  }

  .site-footer {
    justify-content: flex-start;
    padding: 24px 16px;
  }

  .result-actions {
    flex-direction: column;
  }
}
