:root {
  --ink: #17201e;
  --muted: #6c7773;
  --paper: #fffdf8;
  --surface: #ffffff;
  --soft: #f7f2ea;
  --line: #eadfd3;
  --brand: #ef5b55;
  --brand-deep: #ce403c;
  --peach: #fff0e7;
  --mint: #e9f7ee;
  --green: #167447;
  --blue: #1677ff;
  --shadow: 0 18px 48px rgba(76, 48, 33, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 2%, rgba(255, 188, 137, 0.24), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(159, 213, 178, 0.22), transparent 23rem),
    #eeeae3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

.phone {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(36, 27, 21, 0.14);
}

.page {
  min-height: 100vh;
  padding-bottom: 104px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
}

.back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 32, 30, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  backdrop-filter: blur(10px);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
}

.topbar-action {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  padding: 26px 22px 32px;
}

.hero::before {
  position: absolute;
  top: -90px;
  right: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffb698, #ffcfaf 56%, transparent 57%);
  content: "";
  opacity: 0.62;
}

.hero::after {
  position: absolute;
  top: 145px;
  left: -80px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(239, 91, 85, 0.18);
  border-radius: 50%;
  content: "";
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #ff9477);
  box-shadow: 0 10px 20px rgba(239, 91, 85, 0.23);
  font-size: 19px;
  font-weight: 800;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.preview-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(22, 116, 71, 0.13);
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  font-size: 12px;
  font-weight: 700;
}

.preview-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin: 16px 0 12px;
  font-size: 39px;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  color: var(--brand);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 21px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff7b68);
  box-shadow: 0 12px 24px rgba(239, 91, 85, 0.25);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

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

.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.section {
  padding: 0 20px;
  margin-top: 18px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.section-note {
  color: var(--muted);
  font-size: 12px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(234, 223, 211, 0.9);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-top {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 76px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(145deg, #f16a5e, #ffb06f);
}

.product-art::before,
.product-art::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
}

.product-art::before {
  width: 48px;
  height: 48px;
  left: -16px;
  bottom: -14px;
}

.product-art::after {
  width: 42px;
  height: 42px;
  right: -14px;
  top: -14px;
}

.product-art span {
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 900;
}

.product-name {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.price {
  color: var(--brand-deep);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.price small {
  font-size: 13px;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.stock::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

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

.trust-item {
  min-height: 91px;
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--soft);
  text-align: center;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border-radius: 10px;
  color: var(--brand-deep);
  background: var(--surface);
  font-size: 16px;
}

.trust-item strong {
  display: block;
  font-size: 12px;
}

.trust-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--brand-deep);
  background: var(--peach);
  font-size: 13px;
  font-weight: 900;
}

.step strong {
  display: block;
  font-size: 13px;
}

.step p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.notice {
  padding: 15px 16px;
  border: 1px solid #f0dfc0;
  border-radius: 16px;
  color: #75501f;
  background: #fff8e9;
  font-size: 12px;
  line-height: 1.7;
}

.footer {
  padding: 28px 20px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 15px;
  margin-bottom: 9px;
  color: #515d58;
  font-size: 11px;
}

.bottom-bar {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  display: flex;
  width: min(100%, 460px);
  align-items: center;
  gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(234, 223, 211, 0.9);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.bottom-price {
  min-width: 105px;
}

.bottom-price span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.bottom-price strong {
  color: var(--brand-deep);
  font-size: 21px;
}

.bottom-bar .primary-btn {
  flex: 1;
}

.detail-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(76, 48, 33, 0.06);
}

.detail-hero {
  padding: 22px 22px 8px;
}

.detail-hero .eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.detail-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

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

.feature-list li {
  display: flex;
  gap: 9px;
  color: #47534f;
  font-size: 12px;
  line-height: 1.55;
}

.feature-list li::before {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: var(--green);
  background: var(--mint);
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
}

.step-image {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

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

.faq {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  padding: 15px 16px;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

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

.faq p {
  margin: 0;
  padding: 0 16px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.order-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.order-row,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.order-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mini-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #ffad6d);
  font-size: 22px;
  font-weight: 900;
}

.order-item h3 {
  margin: 3px 0 7px;
  font-size: 14px;
}

.order-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.summary-block {
  display: grid;
  gap: 13px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.summary-row strong {
  color: var(--ink);
}

.total strong {
  color: var(--brand-deep);
  font-size: 24px;
}

.pay-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.pay-method-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.alipay-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.pay-check {
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.agreement {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.agreement input {
  accent-color: var(--brand);
  margin-top: 2px;
}

.agreement a {
  color: var(--blue);
}

.pay-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #3f98ff);
  box-shadow: 0 12px 24px rgba(22, 119, 255, 0.24);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.demo-note {
  margin: 13px 0 0;
  color: #8c6a47;
  text-align: center;
  font-size: 10px;
}

.success-wrap {
  padding: 25px 20px 0;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 12px auto 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2ea665, #68c886);
  box-shadow: 0 14px 35px rgba(46, 166, 101, 0.22);
  font-size: 30px;
}

.success-wrap h1 {
  margin: 0;
  text-align: center;
  font-size: 27px;
}

.success-wrap > p {
  margin: 9px 0 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.code-card {
  padding: 20px;
  border: 1px dashed #efb9ae;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff9f4, #fffdf9);
  text-align: center;
}

.code-label {
  color: var(--muted);
  font-size: 11px;
}

.code-value {
  margin: 10px 0 13px;
  color: var(--brand-deep);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.copy-btn {
  padding: 9px 16px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: var(--brand-deep);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

[hidden],
body.shop-live .demo-only {
  display: none !important;
}

.copy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pay-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.pay-status[data-tone="error"] {
  color: #b63c2f;
}

.pay-status[data-tone="success"] {
  color: #26774b;
}

.secondary-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #e6aa9e;
  border-radius: 14px;
  color: var(--brand-deep);
  background: #fff8f3;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.secondary-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.return-code-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.return-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.return-code-form input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dfd5c9;
  border-radius: 12px;
  color: var(--ink);
  background: #fffdf9;
  font: 700 17px/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.return-code-form input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(255, 107, 53, 0.12);
}

.return-code-form button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.return-code-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 25, 24, 0.48);
  backdrop-filter: blur(4px);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.modal-card button {
  width: 100%;
  margin-top: 17px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}

@media (min-width: 700px) {
  body {
    padding: 22px 0;
  }

  .phone {
    min-height: calc(100vh - 44px);
    border-radius: 30px;
  }

  .bottom-bar {
    bottom: 22px;
    border-radius: 0 0 30px 30px;
  }
}
