:root { font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif; color: #20242c; background: #f5f7fa; letter-spacing: 0; --ink:#20242c; --muted:#737b87; --line:#dfe3e8; --green:#f45b5b; --green-dark:#d94848; --blue:#1677ff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7fa; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 max(22px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { display: grid; gap: 2px; }
.brand strong { color: var(--ink); font-size: 14px; }
.brand small { color: #7b898f; font-size: 10px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav > a, .nav-tab { min-height: 40px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; color: #66757b; background: transparent; font-size: 12px; }
.site-header nav > a { display: inline-flex; align-items: center; }
.site-header nav > a:hover, .nav-tab:hover, .nav-tab.is-active { color: var(--green); }
.nav-tab.is-active { border-bottom-color: var(--green); }
main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.page { display: none; }
.page.is-active { display: block; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.page-heading > div { max-width: 720px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 11px; font-weight: 800; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 34px; line-height: 1.3; }
.page-heading p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.availability { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #9b6612; font-size: 11px; }
.availability i { width: 7px; height: 7px; border-radius: 50%; background: #d69b36; }
.availability.is-online { color: var(--green); }
.availability.is-online i { background: #12ae81; }
.purchase-section { padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-title h2, .contact-section h2 { margin: 0; color: var(--ink); font-size: 15px; }
.section-title span { color: #849198; font-size: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.plan-card { display: grid; justify-items: start; min-height: 142px; padding: 20px; border: 1px solid #d6dfdb; border-radius: 8px; color: #2a373d; background: #fff; text-align: left; }
.plan-card:hover { border-color: #f0aaa6; }
.plan-card.is-selected { border: 2px solid var(--green); padding: 19px; box-shadow: 0 12px 28px rgba(14,83,64,.1); }
.plan-card span { color: #65747a; font-size: 11px; }
.plan-card strong { margin-top: 18px; color: var(--ink); font-size: 26px; }
.plan-card small { align-self: end; color: #849198; font-size: 10px; }
.contact-section { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(380px,1.2fr); align-items: center; gap: 40px; padding: 30px 0 20px; }
.contact-section > div p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.contact-section > div p.is-prefilled { color: #287eb7; }
.contact-section label, .order-form label, .transaction-field { display: grid; gap: 7px; color: #526167; font-size: 10px; }
input { min-width: 0; height: 44px; padding: 0 13px; border: 1px solid #d2dcd8; border-radius: 6px; outline: 0; color: var(--ink); background: #fff; }
input.is-prefilled { border-color: #9bc7e2; background: #f6fbfe; }
input:focus { border-color: #f19a95; box-shadow: 0 0 0 3px rgba(244,91,91,.1); }
.purchase-message { min-height: 18px; margin: 0 0 8px; color: #a14343; font-size: 11px; text-align: right; }
.checkout-bar { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-bar > div { display: grid; gap: 6px; }
.checkout-bar span { color: #7b898f; font-size: 10px; }
.checkout-bar strong { color: var(--ink); font-size: 13px; }
.checkout-bar .price { color: var(--green); font-size: 22px; }
.checkout-bar button, .order-form > button, .dialog-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 1px solid var(--green); border-radius: 6px; color: #fff; background: var(--green); font-weight: 800; }
.checkout-bar button:hover, .dialog-action:hover { background: var(--green-dark); }
.checkout-bar button:disabled, .dialog-action:disabled { cursor: wait; opacity: .6; }
.checkout-bar button > span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 900; }
.purchase-notes { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; padding-top: 30px; }
.purchase-notes p { display: grid; gap: 8px; margin: 0; padding: 0 24px; border-right: 1px solid var(--line); }
.purchase-notes p:first-child { padding-left: 0; }
.purchase-notes p:last-child { padding-right: 0; border-right: 0; }
.purchase-notes strong { color: var(--ink); font-size: 11px; }
.purchase-notes span { color: var(--muted); font-size: 10px; line-height: 1.7; }
.order-heading { align-items: start; }
.order-form { display: grid; grid-template-columns: minmax(260px, 560px) auto; align-items: end; justify-content: start; gap: 12px; padding: 32px 0 24px; }
.order-form > button { min-width: 100px; }
.order-result { display: grid; gap: 8px; min-height: 120px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.order-result strong { color: var(--ink); font-size: 14px; }
.order-result span { color: var(--muted); font-size: 11px; line-height: 1.7; }
.order-result .order-data { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-result .order-data span { display: grid; gap: 5px; }
.order-result .order-data b { color: var(--ink); font-size: 12px; }
.license-delivery { display: grid; gap: 9px; margin-top: 16px; padding: 16px; border: 1px solid #cde7dc; border-radius: 8px; background: #f1faf6; }
.license-delivery strong { color: #087356; font-size: 13px; }
.license-delivery code { overflow-wrap: anywhere; padding: 11px 12px; border: 1px dashed #9bcdb7; border-radius: 5px; color: #183b2c; background: #fff; font-size: 13px; font-weight: 800; letter-spacing: .4px; }
.license-delivery button { justify-self: start; min-height: 34px; padding: 0 13px; border: 1px solid #9bcdb7; border-radius: 5px; color: #087356; background: #fff; font-size: 11px; font-weight: 800; }
.license-delivery span { color: #5d756b; font-size: 10px; line-height: 1.6; }
dialog { width: min(900px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 8px; color: #243037; box-shadow: 0 28px 90px rgba(10,23,19,.3); }
dialog::backdrop { background: rgba(9,18,22,.68); }
.dialog-close { position: absolute; right: 12px; top: 10px; z-index: 2; width: 36px; height: 36px; border: 0; color: #75848a; background: transparent; font-size: 24px; }
.payment-layout { display: grid; grid-template-columns: 330px 1fr; min-height: 620px; }
.payment-qr-column { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 30px; background: #edf4ff; }
.payment-provider { margin-bottom: 18px; color: #125cbf; font-size: 12px; font-weight: 800; }
.payment-qr-column img { width: 270px; border: 1px solid #d8e3ef; border-radius: 8px; background: #fff; }
.payment-qr-column p { margin: 14px 0 0; color: #57708c; font-size: 10px; }
.payment-automatic { display: grid; gap: 12px; width: min(260px, 82vw); padding: 24px; border: 1px solid #cfe0f6; border-radius: 10px; background: #fff; color: #315170; text-align: center; }
.payment-automatic strong { color: #125cbf; font-size: 15px; }
.payment-automatic span { color: #647b92; font-size: 11px; line-height: 1.7; }
.payment-automatic a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 6px; color: #fff; background: #1677ff; font-size: 12px; font-weight: 800; text-decoration: none; }
.payment-automatic a:hover { background: #0c63dc; }
.payment-details { padding: 48px 44px 36px; }
.payment-heading { padding-right: 30px; }
.payment-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.status-created { color: #8a5a0c; background: #fff0d6; }
.status-processing { color: #165fab; background: #e5f1ff; }
.status-paid { color: #087356; background: #e2f5ef; }
.payment-heading h2 { margin: 12px 0 8px; color: var(--ink); font-size: 23px; }
.payment-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.order-summary { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 22px 0; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; }
.order-summary span { grid-column: 1 / -1; color: #76858b; font-size: 9px; }
.order-summary code { min-width: 0; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-summary button { border: 0; color: var(--green); background: transparent; font-size: 10px; font-weight: 800; }
.payment-contact { display: grid; gap: 4px; margin: -8px 0 20px; padding: 12px 15px; border: 1px solid #dbe7ec; border-radius: 6px; background: #f6fafc; }
.payment-contact span { color: #76858b; font-size: 9px; }
.payment-contact strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payment-contact small { color: #62737a; font-size: 10px; line-height: 1.5; }
.payment-steps { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.payment-steps li { display: flex; gap: 10px; align-items: flex-start; }
.payment-steps li > span { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #23343c; font-size: 9px; font-weight: 800; }
.payment-steps p { margin: 2px 0 0; color: #55656b; font-size: 11px; line-height: 1.6; }
.payment-confirmation-note { display: grid; gap: 5px; margin: 0 0 16px; padding: 14px 15px; border: 1px solid #d8e8e2; border-radius: 6px; background: #f1f8f5; }
.payment-confirmation-note strong { color: #087356; font-size: 11px; }
.payment-confirmation-note span { color: #62737a; font-size: 10px; line-height: 1.6; }
.dialog-message { min-height: 18px; margin: 9px 0; color: #a14343; font-size: 10px; }
.dialog-action { width: 100%; }
#payment-dialog [hidden] { display: none !important; }
.dialog-secondary { width: 100%; min-height: 40px; margin-top: 8px; border: 0; color: #64737a; background: transparent; font-size: 10px; }
@media (max-width: 760px) {
  .site-header { min-height: 64px; padding-inline: 14px; }
  .brand small, .site-header nav > a { display: none; }
  .site-header nav { flex: 0 0 auto; }
  .nav-tab { padding-inline: 9px; }
  main { width: calc(100% - 28px); padding-top: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .page-heading h1 { font-size: 27px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plan-card { min-height: 130px; padding: 16px; }
  .plan-card.is-selected { padding: 15px; }
  .contact-section { grid-template-columns: 1fr; gap: 14px; }
  .purchase-message { text-align: left; }
  .checkout-bar { grid-template-columns: 1fr 1fr; }
  .checkout-bar button { grid-column: 1 / -1; }
  .purchase-notes { grid-template-columns: 1fr; gap: 18px; }
  .purchase-notes p, .purchase-notes p:first-child, .purchase-notes p:last-child { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .purchase-notes p:last-child { border-bottom: 0; }
  .order-form { grid-template-columns: 1fr; }
  .order-result .order-data { grid-template-columns: repeat(2,1fr); }
  .payment-layout { grid-template-columns: 1fr; }
  .payment-qr-column { padding: 30px 22px; }
  .payment-qr-column img { width: min(260px, 82vw); }
  .payment-details { padding: 30px 20px 24px; }
}
@media (max-width: 380px) {
  .brand strong { font-size: 12px; }
  .nav-tab { padding-inline: 6px; font-size: 11px; }
  .plan-card strong { font-size: 22px; }
}
