/* 软件开通：沿用产品详情的紫灰配色、三种字体和白色玻璃卡。 */

:root {
  --ink: #3d3746;
  --body: #575060;
  --muted: #857d90;
  --line: #e9e3ef;
  --paper: #ffffff;
  --wash: #f7f4f9;
  --brand-a: #c2555f;
  --brand-b: #a25f95;
  --brand-c: #7d6aa6;
  --brand-deep: #8a4f78;
  --serif: "Ma Shan Zheng", "Songti SC", "STSong", serif;
  --display: "Smiley Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --sans: "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--wash);
  -webkit-text-size-adjust: 100%;
}

body.buy-page {
  margin: 0;
  color: var(--body);
  background:
    radial-gradient(circle at 8% 12%, rgba(194, 85, 95, .045), transparent 26rem),
    radial-gradient(circle at 92% 34%, rgba(125, 106, 166, .055), transparent 30rem),
    var(--wash);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  text-wrap: pretty;
}

a { color: #8a5a92; }

.top {
  position: relative;
  z-index: 5;
  padding-top: 22px;
  padding-bottom: 18px;
}

.top-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.agent-chip {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(125, 106, 166, .18);
  border-radius: 999px;
  color: #715f88;
  background: rgba(255, 255, 255, .64);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.top-link { flex: none; }

.buy-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 86px;
  background:
    radial-gradient(82% 120% at 86% 10%, rgba(255, 219, 226, .35), transparent 56%),
    radial-gradient(70% 100% at 4% 100%, rgba(111, 92, 151, .32), transparent 58%),
    linear-gradient(155deg, #624f8d 0%, #7d5f9b 44%, #a76a8c 100%);
  color: #fff;
}

.buy-hero::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, .035), 0 0 0 7rem rgba(255, 255, 255, .022);
  pointer-events: none;
}

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

.buy-hero h1 {
  margin-bottom: 17px;
  font-size: clamp(3.2rem, 7vw, 4.5rem);
}

.buy-hero .lead {
  max-width: 36em;
  color: rgba(255, 255, 255, .88);
}

.buy-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.buy-steps li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1;
}

.buy-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #6f5889;
  background: rgba(255, 255, 255, .88);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.buy-main {
  position: relative;
  padding-bottom: 34px;
}

.notice {
  position: relative;
  z-index: 4;
  margin: -46px 0 16px;
  padding: 17px 20px;
  border: 1px solid rgba(194, 85, 95, .18);
  border-radius: 14px;
  color: #84465d;
  background: rgba(255, 250, 251, .96);
  box-shadow: 0 18px 45px -30px rgba(85, 63, 104, .5);
  font-size: 14px;
  line-height: 1.7;
}

.notice:not([hidden]) + .buy-sheet { margin-top: 16px; }

.buy-sheet {
  margin-top: -52px;
  padding: 46px 58px 40px;
  border-color: rgba(231, 225, 238, .9);
  border-radius: 22px;
  box-shadow:
    0 26px 70px -46px rgba(74, 52, 92, .38),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}

.sheet-head {
  margin: 0 0 32px;
}

.sheet-head .eyebrow,
.lookup .eyebrow { color: #a06d8d; }

.sheet-head h2 {
  margin: 7px 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
}

.sheet-head > p:last-child {
  max-width: 38em;
  margin: 0;
  color: var(--muted);
  font-size: .92em;
  line-height: 1.8;
}

.step {
  padding: 29px 0;
  border-top: 1px solid var(--line);
}

.step:first-of-type { border-top: 0; }

.step-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.step-head span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #9e5d80;
  background: linear-gradient(135deg, rgba(194, 85, 95, .1), rgba(125, 106, 166, .12));
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
}

.step-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .02em;
}

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

.choice {
  position: relative;
  display: block;
  padding: 16px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fdfcfe;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.choice:hover {
  border-color: #cdbdd8;
  transform: translateY(-1px);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice.checked {
  border-color: rgba(162, 95, 149, .46);
  background: linear-gradient(135deg, rgba(194, 85, 95, .035), rgba(125, 106, 166, .055));
  box-shadow: 0 0 0 1px rgba(162, 95, 149, .08) inset;
}

.choice-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.choice-top strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.12em;
  font-weight: 400;
}

.choice-top em {
  flex: none;
  color: #a24e6f;
  font-family: var(--display);
  font-size: 1.08em;
  font-style: normal;
}

.choice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82em;
  line-height: 1.65;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .88em;
  line-height: 1.5;
}

.field label b {
  color: #b25b70;
  font-weight: 400;
}

.field input,
.lookup-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fcfbfd;
  font-family: var(--sans);
  font-size: .92em;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input::placeholder,
.lookup-form input::placeholder { color: #b2aabb; }

.field input:focus,
.lookup-form input:focus {
  border-color: rgba(162, 95, 149, .55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(162, 95, 149, .08);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .76em;
  line-height: 1.6;
}

.summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 9px 0 20px;
  padding: 20px 22px;
  border: 1px solid rgba(231, 225, 238, .9);
  border-radius: 14px;
  background: linear-gradient(135deg, #fcfafd, #f8f5fa);
}

.summary span {
  display: block;
  color: var(--muted);
  font-size: .72em;
  letter-spacing: .08em;
}

.summary strong {
  display: block;
  margin-top: 3px;
  color: #a24e6f;
  font-family: var(--display);
  font-size: 2.2em;
  font-weight: 400;
  line-height: 1.1;
}

.summary p {
  max-width: 58%;
  margin: 0;
  color: var(--muted);
  font-size: .78em;
  line-height: 1.65;
  text-align: right;
}

button {
  font-family: var(--sans);
  cursor: pointer;
}

.primary {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background-image: linear-gradient(100deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
  box-shadow: 0 14px 28px -14px rgba(130, 63, 103, .78);
  font-family: var(--display);
  font-size: 1.02em;
  letter-spacing: .08em;
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

.primary:hover {
  filter: brightness(1.035);
  box-shadow: 0 17px 32px -14px rgba(130, 63, 103, .85);
  transform: translateY(-1px);
}

.primary:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.fineprint {
  max-width: 42em;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: .72em;
  line-height: 1.7;
  text-align: center;
}

.done {
  padding: 6px 0 8px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background-image: linear-gradient(135deg, #c2555f, #a25f95 58%, #7d6aa6);
  box-shadow: 0 16px 30px -18px rgba(130, 63, 103, .8);
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1;
}

.done .eyebrow { margin-bottom: 7px; }

.done h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.done-no {
  display: inline-block;
  margin: 0 0 13px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #806d8a;
  background: #fbfafc;
  font-family: var(--mono);
  font-size: .76em;
  letter-spacing: .035em;
}

.done-pay {
  max-width: 31em;
  margin: 0 auto 19px;
  color: var(--ink);
  font-size: 1.04em;
  line-height: 1.7;
}

.pay-box {
  max-width: 470px;
  margin: 0 auto 22px;
  padding: 21px 22px;
  border: 1px solid rgba(231, 225, 238, .95);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(194, 85, 95, .055), transparent 45%),
    linear-gradient(145deg, #fff, #fbf9fc);
  box-shadow: 0 18px 42px -34px rgba(74, 52, 92, .5);
  text-align: left;
}

.pay-box .pay-title {
  margin: 0 0 13px;
  color: #9a5d80;
  font-family: var(--display);
  font-size: .93em;
  letter-spacing: .08em;
}

.pay-box > div:not(.pay-gateway):not(.wx-pay) {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(233, 227, 239, .8);
  font-size: .85em;
}

.pay-box > div:not(.pay-gateway):not(.wx-pay):last-of-type { border-bottom: 0; }

.pay-box > div span { color: var(--muted); }
.pay-box > div b { font-weight: 400; color: var(--ink); word-break: break-all; }

.pay-gateway { margin: 1px 0 15px; }

.pay-gateway-btn {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background-image: linear-gradient(100deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
  box-shadow: 0 13px 26px -15px rgba(130, 63, 103, .72);
  font-family: var(--sans);
  font-size: .96em;
  letter-spacing: .03em;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pay-gateway-btn:hover {
  filter: brightness(1.035);
  box-shadow: 0 16px 30px -15px rgba(130, 63, 103, .8);
  transform: translateY(-1px);
}

.pay-gateway-btn:disabled { opacity: .55; cursor: default; transform: none; }
.pay-gateway-btn + .pay-gateway-btn { margin-top: 9px; }

.pay-gateway .pay-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .73em;
  line-height: 1.6;
  text-align: center;
}

.pay-box .pay-qr {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0 auto 15px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  cursor: zoom-in;
}

.pay-note,
.pay-box .pay-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .76em;
  line-height: 1.7;
}

.wx-pay {
  margin: 17px 0 7px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.wx-pay .wx-head {
  margin-bottom: 13px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.06em;
}

.wx-qr {
  display: inline-block;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(74, 52, 92, .55);
}

.wx-qr svg { display: block; width: 232px; max-width: 100%; height: auto; }

.wx-open,
.wx-open.ali-open {
  display: inline-block;
  margin: 13px auto 0;
  padding: 11px 19px;
  border-radius: 10px;
  color: #fff;
  background-image: linear-gradient(100deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
  box-shadow: 0 12px 24px -15px rgba(130, 63, 103, .7);
  font-size: .86em;
  text-decoration: none;
  font-weight: 400;
}

.wx-paid { margin-top: 13px; }
.wx-paid .pay-ok { margin: 0 0 8px; color: var(--ink); font-weight: 400; }

.order-token {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin: 3px auto 10px;
  color: var(--muted);
  font-size: .75em;
}

.order-token code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8d5778;
  background: #fbfafc;
  font-family: var(--mono);
  font-size: .95em;
  letter-spacing: .02em;
  word-break: break-all;
}

.done-note {
  max-width: 35em;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: .82em;
  line-height: 1.75;
}

.done-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 11px;
}

.outline {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: .82em;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.outline:hover {
  border-color: #cbbbd5;
  background: #fcfbfd;
  transform: translateY(-1px);
}

.text-btn {
  padding: 9px 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .8em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lookup {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.lookup-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.lookup-head h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.lookup-hint {
  max-width: 23em;
  margin: 0;
  color: var(--muted);
  font-size: .78em;
  line-height: 1.6;
  text-align: right;
}

.lookup-form {
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 9px;
}

.lookup-form input { height: 44px; }
.lookup-form .outline { min-height: 44px; padding-inline: 19px; }

.lookup-result {
  margin-top: 15px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--body);
  background: #fcfbfd;
  font-size: .8em;
  line-height: 1.9;
}

.lookup-result b { color: var(--ink); font-weight: 400; }

.lookup-code {
  display: block;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(162, 95, 149, .24);
  border-radius: 8px;
  color: #8d5778;
  background: rgba(162, 95, 149, .045);
  font-family: var(--mono);
  font-size: .82em;
  word-break: break-all;
}

.foot {
  padding-top: 28px;
  padding-bottom: 40px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(520px, calc(100% - 36px));
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: #fff;
  background: rgba(61, 55, 70, .94);
  box-shadow: 0 18px 38px -22px rgba(20, 15, 25, .65);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

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

@media screen and (max-width: 736px) {
  body.buy-page { font-size: 16px; }

  .top { align-items: flex-start; }
  .top-side { display: block; text-align: right; }
  .agent-chip { margin-bottom: 7px; white-space: normal; }
  .top-link { display: inline-block; font-size: 13px; }

  .buy-hero { padding: 43px 0 70px; }
  .buy-hero h1 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  .buy-steps { margin-top: 24px; }

  .buy-sheet { margin-top: -44px; padding: 33px 23px 30px; border-radius: 18px; }
  .sheet-head { margin-bottom: 25px; }
  .step { padding: 25px 0; }

  .summary { display: block; padding: 17px 18px; }
  .summary p { max-width: none; margin-top: 9px; text-align: left; }

  .done h2 { font-size: 2rem; }
  .pay-box { padding: 18px; }

  .lookup-head { display: block; }
  .lookup-hint { margin-top: 7px; text-align: left; }
  .lookup-form { grid-template-columns: 1fr; }

  .done-actions .outline { flex: 1 1 auto; }
  .foot { padding-bottom: 32px; }
}

@media screen and (max-width: 420px) {
  .top-side { max-width: 52%; }
  .top-link { max-width: 100%; }
  .buy-steps li { padding-right: 11px; }
  .buy-sheet { padding-inline: 18px; }
  .done-actions .outline { width: 100%; }
}
