:root {
  --bg: #eef2ed;
  --paper: #fffdf5;
  --ink: #18201a;
  --muted: #6b746b;
  --line: #dde4d9;
  --green: #166b58;
  --green-deep: #0e4038;
  --amber: #d69a22;
  --red: #c24d3f;
  --blue: #315f9e;
  --shadow: 0 20px 60px rgba(20, 32, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(22, 107, 88, 0.14), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(214, 154, 34, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(24, 32, 26, 0.05) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--bg);
  font-family: "Arial Narrow", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

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

.client-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 14px 96px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  color: #f8fff8;
  background:
    linear-gradient(135deg, rgba(14, 64, 56, 0.94), rgba(22, 107, 88, 0.86)),
    linear-gradient(45deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 38% 40%, transparent 40%);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -78px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.mini-nav,
.brand-row,
.order-strip {
  position: relative;
  z-index: 1;
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(248, 255, 248, 0.72);
  font-size: 13px;
}

.mini-nav a {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--green-deep);
  background: #f5c85c;
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 -6px 0 rgba(14, 64, 56, 0.14);
}

.eyebrow {
  color: #f5c85c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  margin-top: 4px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin-top: 18px;
  color: rgba(248, 255, 248, 0.82);
  font-size: 15px;
}

.order-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.order-strip span,
.pill,
.trace-meta span,
.trace-meta em,
.link-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.order-strip span {
  color: #14362f;
  background: rgba(255, 255, 255, 0.82);
}

.card,
.status-card,
.link-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 245, 0.92);
  box-shadow: 0 12px 32px rgba(20, 32, 22, 0.08);
}

.card {
  padding: 18px;
}

.card h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.info-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.info-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f7ef;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.link-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.link-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
}

.link-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.link-card span,
.pill {
  width: max-content;
  color: var(--green-deep);
  background: #deeee5;
}

.link-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill.dark {
  color: #f8fff8;
  background: var(--green-deep);
}

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

.check-list li {
  position: relative;
  padding: 12px 12px 12px 36px;
  border-radius: 16px;
  background: #f7f0dc;
  font-weight: 700;
}

.check-list li::before {
  content: "查";
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #2d240c;
  background: #f5c85c;
  font-size: 11px;
  font-weight: 900;
}

.quote-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quote-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e7ebdf;
  border-radius: 18px;
  background: #fcfbf3;
}

.quote-line strong,
.quote-price b {
  display: block;
  font-size: 15px;
}

.quote-line small,
.quote-price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.quote-price {
  text-align: right;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cbd4c7;
}

.total-row span {
  color: var(--muted);
  font-weight: 800;
}

.total-row strong {
  color: var(--green);
  font-size: 28px;
}

.sign-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.signature-pad {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 116px;
  margin-top: 14px;
  border: 1px dashed #b4c0b0;
  border-radius: 20px;
  color: var(--muted);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(22, 107, 88, 0.08) 48% 52%, transparent 52%),
    #f8faf3;
}

.signature-pad span {
  color: var(--green-deep);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 700;
}

.signature-pad small {
  margin-top: -16px;
  color: var(--muted);
  font-size: 12px;
}

.signature-pad.readonly {
  cursor: default;
}

.sign-card.is-signed {
  border-color: rgba(22, 107, 88, 0.32);
  background: #f3fbf4;
}

.status-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #f8fff8;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
}

.status-card.done {
  background: linear-gradient(135deg, #315f9e, #14385f);
}

.status-card span {
  color: #f5c85c;
  font-size: 12px;
  font-weight: 900;
}

.status-card strong {
  font-size: 22px;
}

.status-card small {
  color: rgba(248, 255, 248, 0.72);
  font-size: 13px;
}

.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.timeline-tab {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 8px;
  border: 1px solid #dce5da;
  border-radius: 16px;
  color: var(--muted);
  background: #f7faf5;
  font: inherit;
  font-weight: 800;
}

.timeline-tab strong {
  color: var(--green-deep);
  font-size: 12px;
}

.timeline-tab.active {
  color: #fff;
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 12px 24px rgba(22, 107, 88, 0.18);
}

.timeline-tab.active strong {
  color: #fff;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
}

.time-dot {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
}

.time-dot strong {
  color: var(--green);
  font-size: 14px;
}

.time-dot span {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(214, 154, 34, 0.32);
}

.time-dot::after {
  content: "";
  width: 2px;
  min-height: calc(100% - 36px);
  margin-top: 7px;
  background: #d4dccf;
}

.timeline-item:last-child .time-dot::after {
  display: none;
}

.trace-body {
  padding-bottom: 18px;
}

.trace-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.trace-meta span {
  color: var(--green-deep);
  background: #deeee5;
}

.trace-meta em {
  color: #3c3318;
  font-style: normal;
  background: #f7e8bd;
}

.trace-body h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.trace-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.trace-body figure {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 20px;
  background: #dfe5db;
}

.trace-body img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.trace-body figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 64, 56, 0.82);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.sticky-action {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(238, 242, 237, 0.96) 28%);
}

.primary-action {
  width: min(100%, 402px);
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: #f8fff8;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(22, 107, 88, 0.24);
}

.primary-action:disabled {
  color: #526159;
  background: #d5ded4;
  box-shadow: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 20;
  transform: translate(-50%, 16px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 64, 56, 0.9);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

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

@media (min-width: 760px) {
  .client-shell {
    padding-top: 28px;
  }

  body::before {
    content: "客户 H5 · 独立链接演示";
    position: fixed;
    top: 34px;
    left: calc(50% + 250px);
    width: 180px;
    color: rgba(24, 32, 26, 0.42);
    font-size: 48px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
  }
}

@media (max-width: 374px) {
  .quote-line {
    grid-template-columns: 1fr;
  }

  .quote-price {
    text-align: left;
  }

  h1 {
    font-size: 34px;
  }
}
