/* =========================================================
   青禾开票 · Visual System
   ========================================================= */

:root {
  --ink: #18211e;
  --ink-soft: #35413d;
  --muted: #6e7773;
  --muted-light: #939b97;
  --green-950: #0b2e27;
  --green-900: #103b33;
  --green-800: #15473c;
  --green-700: #1a5b4b;
  --green-600: #277561;
  --green-500: #3c8c76;
  --mint-100: #edf5f0;
  --mint-200: #dfede5;
  --cream: #f7f4ed;
  --cream-deep: #efebe1;
  --paper: #fffdf9;
  --white: #ffffff;
  --orange: #d78a4d;
  --orange-soft: #f7e7d8;
  --red: #b74337;
  --red-soft: #fdf0ee;
  --border: #e7e3d9;
  --border-strong: #d8d4c9;
  --shadow-card: 0 28px 70px -34px rgba(16, 59, 51, 0.38), 0 4px 18px -12px rgba(16, 59, 51, 0.14);
  --shadow-soft: 0 16px 38px -26px rgba(16, 59, 51, 0.28);
  --radius-card: 28px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-number: "Bahnschrift", "DIN Alternate", "SF Pro Display", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 9%, rgba(220, 237, 227, 0.9) 0, rgba(220, 237, 227, 0) 27rem),
    radial-gradient(circle at 94% 18%, rgba(246, 226, 205, 0.72) 0, rgba(246, 226, 205, 0) 25rem),
    var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  color: var(--white);
  background: var(--green-700);
}

:focus-visible {
  outline: 3px solid rgba(39, 117, 97, 0.42);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-900);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.ambient-one {
  top: 35%;
  left: -170px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(26, 91, 75, 0.08);
}

.ambient-two {
  right: -120px;
  bottom: 4%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(215, 138, 77, 0.12);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 212, 201, 0.64);
  background: rgba(247, 244, 237, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: #f7f3e9;
  background: var(--green-900);
  border-radius: 13px;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  padding: 8px 2px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 2px;
  left: 50%;
  height: 1.5px;
  background: var(--green-700);
  border-radius: 99px;
  transition: right 180ms ease, left 180ms ease;
}

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

.main-nav a:hover::after {
  right: 0;
  left: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  color: var(--white);
  background: var(--green-900);
  border: 1px solid var(--green-900);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.header-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.header-cta:hover {
  background: var(--green-700);
  box-shadow: 0 8px 20px -12px rgba(16, 59, 51, 0.8);
  transform: translateY(-1px);
}

.header-cta:hover svg {
  transform: translateX(2px);
}

/* ---------- Shared typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215, 138, 77, 0.12);
}

.card-kicker {
  display: inline-block;
  color: var(--green-600);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.required-mark {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Hero ---------- */

.page-view.is-active {
  animation: page-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(478px, 0.96fr);
  gap: clamp(42px, 5.4vw, 82px);
  align-items: start;
}

.hero-copy {
  padding-top: 48px;
}

.hero-copy h1 {
  max-width: 620px;
  margin-top: 22px;
  color: var(--green-950);
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.title-accent {
  position: relative;
  display: inline-block;
  color: var(--green-700);
  background: linear-gradient(transparent 72%, rgba(238, 194, 153, 0.64) 72%, rgba(238, 194, 153, 0.64) 91%, transparent 91%);
}

.hero-lead {
  max-width: 545px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.9;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  margin-top: 36px;
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 138px;
}

.point-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--green-700);
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(216, 212, 201, 0.86);
  border-radius: 12px;
  place-items: center;
  box-shadow: 0 8px 20px -16px rgba(16, 59, 51, 0.45);
}

.point-icon svg {
  width: 21px;
  height: 21px;
}

.hero-point > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-point strong {
  font-size: 13px;
  font-weight: 650;
}

.hero-point small {
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.4;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 540px;
  margin-top: 42px;
  padding: 17px 18px;
  background: rgba(255, 253, 249, 0.62);
  border: 1px solid rgba(216, 212, 201, 0.86);
  border-radius: 18px;
  box-shadow: 0 16px 34px -28px rgba(16, 59, 51, 0.5);
}

.rule-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 11px;
  place-items: center;
}

.rule-icon svg {
  width: 20px;
  height: 20px;
}

.rule-label {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.rule-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Invoice card ---------- */

.invoice-card {
  position: relative;
  padding: 28px 32px 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 244, 236, 0.9) 0, rgba(232, 244, 236, 0) 16rem),
    var(--paper);
  border: 1px solid rgba(221, 217, 207, 0.92);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.invoice-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 44px;
  width: 64px;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 99px 99px;
  opacity: 0.88;
}

.step-rail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(231, 227, 217, 0.8);
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 2px;
  background: var(--border);
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  color: #89938e;
  background: #f2f0e9;
  border: 1px solid transparent;
  border-radius: 50%;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 650;
  place-items: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.step-number svg {
  width: 13px;
  height: 13px;
}

.step.is-active {
  color: var(--green-800);
  font-weight: 650;
}

.step.is-active .step-number {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
  box-shadow: 0 0 0 4px rgba(26, 91, 75, 0.1);
}

.step.is-complete {
  color: var(--green-700);
}

.step.is-complete .step-number {
  color: var(--green-700);
  background: var(--mint-200);
  border-color: rgba(39, 117, 97, 0.12);
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.form-card-head h2 {
  margin-top: 4px;
  color: var(--green-950);
  font-size: 27px;
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.form-card-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 6px 9px;
  color: var(--green-700);
  background: var(--mint-100);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.secure-pill svg {
  width: 13px;
  height: 13px;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.field {
  min-width: 0;
}

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

.field label,
.label-row > label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.optional-badge {
  padding: 2px 6px;
  color: var(--muted);
  background: #f3f1ea;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 500;
}

.counter {
  margin-bottom: 7px;
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 49px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:hover {
  border-color: #c7c3b9;
}

.input-shell:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(39, 117, 97, 0.11);
}

.input-shell.is-invalid {
  background: #fffafa;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(183, 67, 55, 0.08);
}

.input-shell input,
.input-shell textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: inherit;
  outline: 0;
}

.input-shell input {
  height: 47px;
  padding: 0 14px;
  font-size: 14px;
}

.input-shell input::placeholder,
.input-shell textarea::placeholder {
  color: #a7aea9;
  opacity: 1;
}

.input-shell input:focus,
.input-shell textarea:focus {
  box-shadow: none;
}

.input-affix,
.input-suffix {
  color: var(--muted);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.input-affix {
  padding-left: 14px;
}

.input-suffix {
  padding-right: 14px;
  font-size: 12px;
}

.amount-input input {
  padding-right: 4px;
  padding-left: 8px;
  font-family: var(--font-number);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.textarea-shell {
  align-items: stretch;
  min-height: 92px;
}

.input-shell textarea {
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.65;
  font-size: 13.5px;
}

.field-help,
.field-error {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.55;
}

.field-help {
  color: var(--muted-light);
}

.field-error {
  color: var(--red);
}

.field-error:empty {
  display: none;
}

.count-input {
  padding: 0;
  overflow: hidden;
}

.count-input input {
  flex: 1;
  height: 47px;
  padding: 0 4px;
  text-align: center;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.count-input input::-webkit-outer-spin-button,
.count-input input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.count-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 47px;
  padding: 0;
  color: var(--muted);
  background: #f8f6f0;
  border: 0;
  cursor: pointer;
  font-family: var(--font-number);
  font-size: 17px;
  font-weight: 500;
  place-items: center;
  transition: color 150ms ease, background 150ms ease;
}

.count-button:first-child {
  border-right: 1px solid var(--border);
}

.count-button:last-child {
  border-left: 1px solid var(--border);
}

.count-button:hover {
  color: var(--green-800);
  background: var(--mint-100);
}

.count-button:active {
  background: var(--mint-200);
}

/* ---------- Fee preview ---------- */

.fee-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 21px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(237, 245, 240, 0.88), rgba(250, 247, 239, 0.92));
  border: 1px solid rgba(196, 216, 203, 0.84);
  border-radius: 15px;
}

.fee-preview-copy {
  min-width: 0;
}

.fee-preview-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 650;
}

.fee-pulse {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215, 138, 77, 0.1);
}

.fee-preview-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.fee-preview-value {
  flex: 0 0 auto;
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.fee-preview.has-value .fee-preview-value {
  color: var(--green-800);
  animation: fee-pop 260ms ease both;
}

@keyframes fee-pop {
  0% { opacity: 0.45; transform: translateY(3px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  transition: transform 180ms ease;
}

.button:hover svg {
  transform: translateX(2px);
}

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

.button-primary {
  color: var(--white);
  background: var(--green-900);
  border-color: var(--green-900);
  box-shadow: 0 14px 30px -18px rgba(16, 59, 51, 0.8);
}

.button-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  box-shadow: 0 18px 34px -18px rgba(16, 59, 51, 0.75);
  transform: translateY(-1px);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.button-ghost {
  color: var(--green-800);
  background: transparent;
  border-color: var(--border-strong);
}

.button-ghost:hover {
  background: var(--mint-100);
  border-color: rgba(39, 117, 97, 0.3);
  transform: translateY(-1px);
}

.submit-button {
  width: 100%;
  margin-top: 15px;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.5;
}

.privacy-note svg {
  width: 13px;
  height: 13px;
}

/* ---------- Assurance strip ---------- */

.assurance-section {
  padding: 24px 0;
  background: rgba(255, 253, 249, 0.56);
  border-top: 1px solid rgba(221, 217, 207, 0.86);
  border-bottom: 1px solid rgba(221, 217, 207, 0.86);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.assurance-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.assurance-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--green-700);
  background: var(--mint-100);
  border-radius: 12px;
  place-items: center;
}

.assurance-icon svg {
  width: 21px;
  height: 21px;
}

.assurance-item strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.assurance-item p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- Pricing ---------- */

.pricing-section {
  padding: 96px 0;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
}

.section-heading h2 {
  margin-top: 14px;
  color: var(--green-950);
  font-size: clamp(32px, 3.4vw, 43px);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.section-heading > p {
  max-width: 460px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.example-chip {
  padding: 5px 9px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.75);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--font-number);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

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

.pricing-card {
  position: relative;
  min-height: 286px;
  padding: 28px 25px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card-fixed {
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-soft);
}

.pricing-card-rate {
  color: #f5f4ec;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 151, 128, 0.42), transparent 14rem),
    var(--green-900);
  border-color: var(--green-900);
  box-shadow: 0 26px 50px -32px rgba(16, 59, 51, 0.8);
}

.pricing-tag {
  color: var(--muted-light);
  font-family: var(--font-number);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.pricing-card-rate .pricing-tag {
  color: rgba(245, 244, 236, 0.52);
}

.pricing-value {
  margin-top: 34px;
  color: var(--green-900);
  font-family: var(--font-number);
  font-size: 53px;
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1;
}

.pricing-card-rate .pricing-value {
  color: #fff9ed;
}

.pricing-value span {
  margin-left: 2px;
  font-size: 31px;
  font-weight: 600;
}

.pricing-card h3 {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 650;
}

.pricing-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.pricing-card-rate p {
  color: rgba(245, 244, 236, 0.66);
}

/* ---------- FAQ ---------- */

.faq-section {
  padding: 24px 0 104px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 110px;
}

.faq-heading h2 {
  font-size: clamp(30px, 3.1vw, 40px);
}

.faq-list {
  border-top: 1px solid var(--border-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
}

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

.faq-list summary span {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--green-700);
  background: var(--mint-100);
  border-radius: 50%;
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 400;
  place-items: center;
  transition: transform 200ms ease, background 200ms ease;
}

.faq-list details[open] summary span {
  background: var(--mint-200);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 640px;
  padding: 0 42px 22px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* ---------- Payment page ---------- */

.payment-section {
  min-height: calc(100vh - 80px);
  padding: 43px 0 90px;
}

.step-rail-page {
  max-width: 540px;
  margin: 0 auto 45px;
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.back-link {
  position: absolute;
  top: 3px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 160ms ease;
}

.back-link svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.back-link:hover {
  color: var(--green-800);
}

.back-link:hover svg {
  transform: translateX(-2px);
}

.payment-heading h1 {
  margin-top: 12px;
  color: var(--green-950);
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.payment-heading p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(370px, 0.86fr);
  gap: 24px;
  align-items: start;
  max-width: 1030px;
  margin: 0 auto;
}

.info-card,
.payment-card {
  background: var(--paper);
  border: 1px solid rgba(221, 217, 207, 0.94);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 28px 30px 24px;
}

.info-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.info-card-head h2 {
  margin-top: 3px;
  color: var(--green-950);
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.text-button {
  min-height: 34px;
  padding: 0;
  color: var(--green-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color 150ms ease;
}

.text-button:hover {
  color: var(--green-500);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.summary-list {
  margin: 19px 0 0;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(231, 227, 217, 0.8);
}

.summary-row dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.summary-row dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  text-align: right;
  overflow-wrap: anywhere;
}

.summary-row dd.summary-amount {
  color: var(--green-800);
  font-family: var(--font-number);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.summary-row dd.summary-remark {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 450;
}

.sensitive-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reveal-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 0 6px;
  color: var(--green-700);
  background: var(--mint-100);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease;
}

.reveal-button svg {
  width: 13px;
  height: 13px;
}

.reveal-button:hover {
  background: var(--mint-200);
}

.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding: 11px 13px;
  background: #f7f4ed;
  border-radius: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.order-meta code {
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.next-step-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 17px;
  padding: 18px 20px;
  background: rgba(237, 245, 240, 0.68);
  border: 1px solid rgba(196, 216, 203, 0.84);
  border-radius: 18px;
}

.next-step-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--green-700);
  background: rgba(255, 253, 249, 0.8);
  border-radius: 10px;
  place-items: center;
}

.next-step-icon svg {
  width: 19px;
  height: 19px;
}

.next-step-note strong {
  display: block;
  color: var(--green-900);
  font-size: 12.5px;
  font-weight: 650;
}

.next-step-note p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- Payment card ---------- */

.payment-card {
  padding: 25px 27px 22px;
}

.payment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: #9a5a25;
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

.status-pill.is-success {
  color: var(--green-700);
  background: var(--mint-100);
}

.status-pill.is-success::before {
  background: var(--green-600);
}

.due-block {
  margin-top: 17px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--border);
}

.due-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.due-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 1px;
  color: var(--green-950);
  line-height: 1.06;
}

.due-amount .currency {
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.due-amount strong {
  font-family: var(--font-number);
  font-size: clamp(48px, 5vw, 60px);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
}

.due-formula {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.5;
}

.method-block {
  margin-top: 19px;
}

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

.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #f3f0e8;
  border-radius: 12px;
}

.method-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.method-tab:hover {
  color: var(--ink-soft);
}

.method-tab.is-active {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(223, 219, 209, 0.9);
  box-shadow: 0 4px 10px -8px rgba(16, 59, 51, 0.4);
  font-weight: 650;
}

.method-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  place-items: center;
}

.method-icon svg {
  width: 18px;
  height: 18px;
}

.method-wechat {
  color: var(--white);
  background: #22b573;
}

.method-alipay {
  color: var(--white);
  background: #1677ff;
  font-size: 12px;
  font-weight: 700;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.qr-frame {
  position: relative;
  width: 208px;
  height: 208px;
  padding: 9px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: 0 12px 28px -22px rgba(16, 59, 51, 0.5);
}

.qr-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(231, 227, 217, 0.45);
  border-radius: 10px;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.qr-caption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.demo-note {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 3px;
  color: #a76730;
  font-size: 9.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.demo-only.is-hidden {
  display: none;
}

.fee-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 17px;
  padding: 11px 12px;
  background: #fcf6eb;
  border: 1px solid #f1e1c9;
  border-radius: 11px;
}

.fee-notice svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #b6773e;
}

.fee-notice p {
  color: #7d633f;
  font-size: 10.5px;
  line-height: 1.7;
}

.fee-notice strong {
  color: #715431;
  font-weight: 650;
}

.pay-button {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
}

.payment-footnote {
  margin-top: 9px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Success ---------- */

.result-section {
  min-height: calc(100vh - 80px);
  padding: 43px 0 90px;
}

.result-container {
  max-width: 760px;
}

.result-container .step-rail-page {
  margin-bottom: 34px;
}

.result-card {
  padding: 42px 48px 34px;
  background:
    radial-gradient(circle at 50% 0, rgba(232, 244, 236, 0.92), transparent 18rem),
    var(--paper);
  border: 1px solid rgba(221, 217, 207, 0.94);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.success-mark {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  place-items: center;
}

.success-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(39, 117, 97, 0.18);
  border-radius: 50%;
  animation: success-ripple 1.7s ease-out infinite;
}

@keyframes success-ripple {
  0% { opacity: 0.8; transform: scale(0.86); }
  70%, 100% { opacity: 0; transform: scale(1.18); }
}

.success-circle {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  color: var(--white);
  background: var(--green-700);
  border-radius: 50%;
  box-shadow: 0 14px 26px -14px rgba(26, 91, 75, 0.7);
  place-items: center;
  animation: success-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-circle svg {
  width: 38px;
  height: 38px;
}

@keyframes success-pop {
  from { transform: scale(0.65); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-eyebrow {
  justify-content: center;
}

.result-card h1 {
  margin-top: 12px;
  color: var(--green-950);
  font-size: clamp(28px, 3.4vw, 37px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.result-lead {
  max-width: 500px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.result-summary {
  margin-top: 28px;
  padding: 20px 22px;
  background: #f8f5ee;
  border: 1px solid var(--border);
  border-radius: 19px;
  text-align: left;
}

.result-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 7px;
  color: var(--green-700);
  background: var(--mint-100);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 600;
  transition: background 150ms ease;
}

.copy-button:hover {
  background: var(--mint-200);
}

.copy-button svg {
  width: 13px;
  height: 13px;
}

.result-order-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid rgba(231, 227, 217, 0.86);
  border-radius: 9px;
  color: var(--muted);
  font-size: 10.5px;
}

.result-order-no code {
  color: var(--green-800);
  font-family: var(--font-number);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.result-grid > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  background: #fbf9f4;
}

.result-grid span {
  color: var(--muted-light);
  font-size: 9.5px;
}

.result-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-grid strong.success-fee {
  color: var(--green-700);
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}

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

.result-actions .button {
  min-width: 148px;
}

.result-hint {
  margin-top: 15px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0;
  background: rgba(239, 235, 225, 0.52);
  border-top: 1px solid rgba(216, 212, 201, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.footer-mark {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--green-700);
  background: var(--mint-100);
  border-radius: 11px;
  place-items: center;
}

.footer-mark svg {
  width: 23px;
  height: 23px;
}

.footer-brand strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.footer-brand p {
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-light);
  font-size: 10px;
}

.footer-divider {
  width: 1px;
  height: 11px;
  background: var(--border-strong);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  z-index: 100;
  bottom: 28px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  color: var(--white);
  background: rgba(16, 59, 51, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 14px 32px -16px rgba(16, 59, 51, 0.7);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(450px, 1.04fr);
    gap: 44px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 5.5vw, 64px);
  }

  .hero-points {
    gap: 18px 20px;
  }

  .hero-point {
    min-width: 125px;
  }

  .invoice-card {
    padding-right: 26px;
    padding-left: 26px;
  }
}

@media (max-width: 940px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding: 53px 0 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .hero-copy {
    max-width: 680px;
    padding-top: 6px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 8vw, 68px);
  }

  .hero-lead {
    max-width: 620px;
  }

  .rule-card {
    margin-top: 30px;
  }

  .invoice-card {
    width: 100%;
    max-width: 650px;
    justify-self: center;
  }

  .assurance-grid {
    gap: 18px;
  }

  .assurance-item {
    align-items: flex-start;
  }

  .pricing-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .faq-heading {
    position: static;
  }

  .pricing-cards {
    max-width: 680px;
  }

  .payment-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 650px;
  }

  .payment-card {
    padding: 27px 30px 24px;
  }

  .qty-br {
    display: block;
  }

  .payment-section,
  .result-section {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 560px);
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 7.5px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  .header-cta svg {
    width: 15px;
    height: 15px;
  }

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

  .hero-grid {
    gap: 31px;
  }

  .hero-copy h1 {
    margin-top: 17px;
    font-size: clamp(42px, 13.2vw, 57px);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.85;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    margin-top: 27px;
  }

  .hero-point {
    min-width: 0;
  }

  .point-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .point-icon svg {
    width: 19px;
    height: 19px;
  }

  .hero-point strong {
    font-size: 12px;
  }

  .hero-point small {
    font-size: 10.5px;
  }

  .rule-card {
    margin-top: 26px;
    padding: 14px;
    border-radius: 15px;
  }

  .rule-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .rule-card p {
    font-size: 11px;
  }

  .invoice-card {
    padding: 21px 17px 20px;
    border-radius: 23px;
  }

  .invoice-card::before {
    left: 30px;
    width: 52px;
  }

  .step-rail {
    gap: 5px;
    padding-bottom: 18px;
  }

  .step {
    gap: 5px;
    font-size: 10px;
  }

  .step-number {
    width: 21px;
    height: 21px;
    font-size: 10px;
  }

  .step:not(:last-child)::after {
    margin-left: 0;
  }

  .form-card-head {
    margin-top: 20px;
  }

  .form-card-head h2 {
    font-size: 24px;
  }

  .form-card-head p {
    font-size: 11.5px;
  }

  .secure-pill {
    display: none;
  }

  .form-fields {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .field-full {
    grid-column: auto;
  }

  .fee-preview {
    gap: 12px;
    margin-top: 18px;
    padding: 12px 13px;
  }

  .fee-preview-value {
    font-size: 21px;
  }

  .fee-preview-copy p {
    max-width: 190px;
  }

  .button {
    min-height: 50px;
  }

  .assurance-section {
    padding: 20px 0;
  }

  .assurance-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .assurance-item {
    align-items: center;
  }

  .assurance-icon {
    width: 38px;
    height: 38px;
  }

  .pricing-section {
    padding: 64px 0;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: 235px;
    padding: 23px 22px;
    border-radius: 20px;
  }

  .pricing-value {
    margin-top: 25px;
    font-size: 48px;
  }

  .pricing-card h3 {
    margin-top: 14px;
  }

  .faq-section {
    padding-bottom: 70px;
  }

  .faq-list summary {
    padding: 19px 0;
    font-size: 13.5px;
  }

  .faq-list details p {
    padding-right: 10px;
    font-size: 12.5px;
  }

  .payment-section,
  .result-section {
    padding: 27px 0 64px;
  }

  .step-rail-page {
    margin-bottom: 27px;
  }

  .payment-heading {
    margin-bottom: 25px;
    text-align: left;
  }

  .back-link {
    position: static;
    min-height: 34px;
    margin-bottom: 7px;
  }

  .payment-heading h1 {
    margin-top: 8px;
    font-size: 34px;
  }

  .payment-heading p {
    font-size: 12px;
  }

  .payment-grid {
    gap: 16px;
  }

  .info-card {
    padding: 21px 18px 18px;
    border-radius: 21px;
  }

  .info-card-head h2 {
    font-size: 21px;
  }

  .summary-row {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
  }

  .summary-row dt {
    font-size: 11px;
  }

  .summary-row dd {
    font-size: 13px;
  }

  .summary-row dd.summary-amount {
    font-size: 16px;
  }

  .next-step-note {
    padding: 15px;
    border-radius: 16px;
  }

  .payment-card {
    padding: 21px 18px 19px;
    border-radius: 21px;
  }

  .due-amount strong {
    font-size: 52px;
  }

  .qr-frame {
    width: 196px;
    height: 196px;
  }

  .result-container {
    width: min(100% - 32px, 560px);
  }

  .result-card {
    padding: 30px 18px 26px;
    border-radius: 23px;
  }

  .success-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 17px;
  }

  .success-circle {
    width: 58px;
    height: 58px;
  }

  .success-circle svg {
    width: 33px;
    height: 33px;
  }

  .result-card h1 {
    font-size: 27px;
  }

  .result-lead {
    font-size: 12px;
  }

  .result-summary {
    padding: 16px;
  }

  .result-order-no {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

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

  .result-grid strong {
    white-space: normal;
  }

  .result-actions {
    flex-direction: column;
    gap: 8px;
  }

  .result-actions .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-meta {
    flex-wrap: wrap;
    gap: 7px 10px;
  }

  .toast {
    bottom: 18px;
    width: max-content;
  }
}

@media (max-width: 390px) {
  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding: 0 10px;
  }

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

  .fee-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .fee-preview-value {
    align-self: flex-end;
  }

  .step-text {
    display: none;
  }

  .step:not(:last-child)::after {
    margin-left: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Anchor offset for the sticky header */
#service,
#pricing,
#faq,
#invoice-card {
  scroll-margin-top: 96px;
}

/* Graceful state when the live QR image is not in place yet */
.qr-frame.is-missing {
  display: grid;
  background:
    linear-gradient(135deg, #f8f6f0, #f2efe6);
  place-items: center;
}

.qr-frame.is-missing img {
  display: none;
}

.qr-frame.is-missing::before {
  content: "收款码\A暂未配置";
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  white-space: pre;
}

.qr-frame.is-missing::after {
  display: none;
}

@media (max-width: 680px) {
  #service,
  #pricing,
  #faq,
  #invoice-card {
    scroll-margin-top: 82px;
  }
}

/* Page transitions should start at the top immediately; explicit scrolling can still animate. */
html {
  scroll-behavior: auto;
}

/* Headings receive programmatic focus for screen readers, without a visible box. */
.payment-heading h1:focus,
.result-card h1:focus {
  outline: none;
}

/* Keep step labels visible on common phone widths. */
@media (min-width: 361px) {
  .step-text {
    display: inline;
  }
}

/* =========================================================
   Haina Baichuan · Invoice Center theme
   jade / ink / xuan paper / gold
   ========================================================= */

:root {
  --ink: #0c1418;
  --ink-soft: #2c3e45;
  --muted: #5a6b6a;
  --muted-light: #7a8b8a;
  --green-950: #06261f;
  --green-900: #0a3d35;
  --green-800: #0e5446;
  --green-700: #0f5d4d;
  --green-600: #137159;
  --green-500: #1a7a64;
  --mint-100: #e6f2ec;
  --mint-200: #cfe6dc;
  --cream: #f5f1e8;
  --cream-deep: #ede5d3;
  --paper: #fdfbf6;
  --orange: #b1802f;
  --orange-soft: #f5eacd;
  --red: #b03a2e;
  --red-soft: #f7ece8;
  --border: #e3ddd0;
  --border-strong: #d4ccbc;
  --shadow-card: 0 28px 72px -38px rgba(8, 44, 36, 0.45), 0 4px 18px -12px rgba(12, 20, 24, 0.12);
  --shadow-soft: 0 18px 40px -28px rgba(8, 44, 36, 0.34);
  --font-display: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

body {
  background:
    radial-gradient(ellipse 70% 52% at 8% 2%, rgba(19, 113, 89, 0.15), transparent 58%),
    radial-gradient(ellipse 55% 45% at 96% 9%, rgba(177, 128, 47, 0.12), transparent 56%),
    radial-gradient(ellipse 80% 55% at 50% 105%, rgba(29, 79, 92, 0.08), transparent 62%),
    linear-gradient(180deg, #f8f4eb 0%, #f3ede1 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 2px, rgba(12, 20, 24, 0.012) 2px 3px),
    repeating-linear-gradient(45deg, transparent 0 4px, rgba(12, 20, 24, 0.009) 4px 5px);
}

.site-header {
  background: rgba(248, 244, 235, 0.86);
  border-bottom-color: rgba(212, 204, 188, 0.72);
}

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 10px 22px -16px rgba(6, 38, 31, 0.55);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--ink-300, #7a8b8a);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.main-nav a {
  color: var(--ink-500, #3d4f55);
}

.main-nav a::after {
  background: var(--gold, #b1802f);
}

.header-cta {
  color: #fdfbf6;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  border-color: transparent;
  box-shadow: 0 8px 22px -14px rgba(6, 38, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  box-shadow: 0 10px 28px -14px rgba(6, 38, 31, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.header-cta:hover svg {
  transform: translateX(-2px);
}

.eyebrow {
  color: var(--green-700);
  letter-spacing: 0.1em;
}

.eyebrow-dot {
  background: var(--gold, #b1802f);
  box-shadow: 0 0 0 4px rgba(177, 128, 47, 0.13);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "川";
  position: absolute;
  top: 2%;
  left: 34%;
  color: rgba(10, 61, 53, 0.035);
  font-family: var(--font-display);
  font-size: clamp(260px, 34vw, 480px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-5deg);
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 620px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(52px, 5.8vw, 82px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.06;
}

.title-accent {
  color: var(--green-800);
  background: linear-gradient(transparent 70%, rgba(228, 196, 120, 0.58) 70%, rgba(228, 196, 120, 0.58) 92%, transparent 92%);
}

.hero-lead {
  color: var(--ink-500, #3d4f55);
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-motto {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  color: var(--gold, #b1802f);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.brand-motto span {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #b1802f));
}

.point-icon {
  color: var(--green-700);
  background: rgba(253, 251, 246, 0.72);
  border-color: rgba(212, 204, 188, 0.9);
}

.rule-card {
  background: rgba(253, 251, 246, 0.66);
  border-color: rgba(212, 204, 188, 0.9);
}

.rule-icon {
  color: var(--gold, #b1802f);
  background: var(--orange-soft);
}

.invoice-card {
  background:
    radial-gradient(circle at 100% 0, rgba(230, 242, 236, 0.92) 0, rgba(230, 242, 236, 0) 16rem),
    var(--paper);
  border-color: rgba(212, 204, 188, 0.96);
}

.invoice-card::before {
  background: linear-gradient(90deg, var(--gold, #b1802f), var(--gold-soft, #e4c478));
}

.step.is-active .step-number {
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(15, 93, 77, 0.1);
}

.secure-pill {
  color: var(--green-700);
  background: var(--mint-100);
}

.input-shell:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(19, 113, 89, 0.1);
}

.count-button:hover {
  color: var(--green-800);
  background: var(--mint-100);
}

.fee-preview {
  background: linear-gradient(135deg, rgba(230, 242, 236, 0.94), rgba(250, 246, 236, 0.94));
  border-color: rgba(190, 212, 201, 0.9);
}

.fee-pulse {
  background: var(--gold, #b1802f);
  box-shadow: 0 0 0 4px rgba(177, 128, 47, 0.1);
}

.button-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  border-color: transparent;
  box-shadow: 0 16px 30px -20px rgba(6, 38, 31, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  border-color: transparent;
  box-shadow: 0 20px 36px -20px rgba(6, 38, 31, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button-ghost {
  color: var(--green-800);
  background: rgba(253, 251, 246, 0.64);
  border-color: var(--border-strong);
}

.button-ghost:hover {
  color: var(--green-900);
  background: var(--mint-100);
  border-color: rgba(15, 93, 77, 0.28);
}

.assurance-section {
  background: rgba(253, 251, 246, 0.56);
  border-color: rgba(212, 204, 188, 0.7);
}

.assurance-icon {
  color: var(--green-700);
  background: var(--mint-100);
}

.section-heading h2 {
  color: var(--green-950);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.example-chip {
  background: rgba(253, 251, 246, 0.76);
  border-color: var(--border);
}

.pricing-card {
  border-color: var(--border);
}

.pricing-card-fixed {
  background: rgba(253, 251, 246, 0.92);
}

.pricing-card-rate {
  background:
    radial-gradient(circle at 100% 0, rgba(45, 158, 128, 0.3), transparent 14rem),
    linear-gradient(145deg, var(--green-800), var(--green-950));
  border-color: var(--green-900);
}

.pricing-value {
  color: var(--green-900);
}

.pricing-card-rate .pricing-value {
  color: #f8edcf;
}

.faq-list {
  border-top-color: var(--border-strong);
}

.faq-list details {
  border-bottom-color: var(--border-strong);
}

.faq-list summary span {
  color: var(--green-700);
  background: var(--mint-100);
}

.payment-heading h1,
.result-card h1 {
  color: var(--green-950);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.info-card,
.payment-card {
  background: var(--paper);
  border-color: rgba(212, 204, 188, 0.94);
}

.summary-row dd.summary-amount {
  color: var(--green-800);
}

.reveal-button {
  color: var(--green-700);
  background: var(--mint-100);
}

.reveal-button:hover {
  background: var(--mint-200);
}

.next-step-note {
  background: rgba(230, 242, 236, 0.7);
  border-color: rgba(190, 212, 201, 0.9);
}

.next-step-icon {
  color: var(--green-700);
}

.due-amount {
  color: var(--green-950);
}

.method-tab.is-active {
  border-color: rgba(212, 204, 188, 0.9);
}

.fee-notice {
  background: #fbf4e3;
  border-color: #ecddc0;
}

.fee-notice svg {
  color: var(--gold, #b1802f);
}

.fee-notice p {
  color: #705c39;
}

.pay-remark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 3px;
  color: #8d6a2f;
  font-size: 9.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.qr-frame {
  border-color: var(--border);
  box-shadow: 0 12px 28px -22px rgba(6, 38, 31, 0.44);
}

.payment-footnote {
  color: var(--muted-light);
}

.success-circle {
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
}

.result-card {
  background:
    radial-gradient(circle at 50% 0, rgba(230, 242, 236, 0.94), transparent 18rem),
    var(--paper);
  border-color: rgba(212, 204, 188, 0.94);
}

.result-summary {
  background: #f7f2e7;
  border-color: var(--border);
}

.result-order-no,
.result-grid > div {
  background: #fbf8f1;
}

.result-order-no code,
.result-grid strong.success-fee {
  color: var(--green-700);
}

.site-footer {
  background: rgba(237, 229, 211, 0.58);
  border-top-color: rgba(212, 204, 188, 0.8);
}

.footer-mark {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border-radius: 10px;
}

.footer-mark img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

::selection {
  background: var(--green-700);
}

@media (max-width: 680px) {
  .hero::before {
    top: 4%;
    left: 40%;
    font-size: 220px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13.6vw, 58px);
  }

  .brand-copy small {
    letter-spacing: 0.06em;
  }

  .brand-motto {
    margin-top: 15px;
    font-size: 12.5px;
  }

  .header-cta {
    padding-inline: 11px;
    font-size: 11.5px;
  }
}

@media (max-width: 390px) {
  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding-inline: 9px;
    font-size: 11px;
  }
}

.header-cta svg {
  order: -1;
}

/* Ticket submission feedback */
.submit-error {
  display: none;
  margin-top: 11px;
  padding: 9px 11px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(176, 58, 46, 0.2);
  border-radius: 9px;
  font-size: 10.5px;
  line-height: 1.6;
}

.submit-error:not(:empty) {
  display: block;
}

.alipay-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
}

.verify-payment {
  margin-top: 10px;
}

#order-number,
#success-order-number {
  min-width: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.order-meta > span {
  flex-shrink: 0;
}

.payment-footnote {
  color: var(--muted);
  font-size: 12px;
}

.submit-error {
  font-size: 13px;
}

#payment-status {
  flex-shrink: 0;
  letter-spacing: 0;
}

.result-ticket-no {
  margin-top: 8px;
}

.result-ticket-no code {
  color: var(--ink-soft);
}

.result-actions .button-primary {
  min-width: 228px;
}

@media (max-width: 680px) {
  .result-actions .button-primary {
    min-width: 0;
    width: 100%;
  }
}
