/* 国际站结账页（order/checkout3）与付款成功页（order/paid）。沿用首页的变量与组件（products.css、home3.css）。
 * 效果图：buy-about/site/mock.css 的 cdo- 部分；这里把效果图里用 span 画的选项、数量、优惠码改成真正的按钮与输入框，并加上付款区的各种状态。 */

[hidden] { display: none !important; }

.cdo { background: var(--panel); }
.cdo-top { padding: 34px 0 0; }
.cdo-crumb { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; color: var(--muted); }
.cdh .cdo-crumb a { color: var(--muted); text-decoration: none; }
.cdh .cdo-crumb a:hover { color: var(--blue); }
.cdo-title { margin: 14px 0 0; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.8px; color: var(--ink); }
.cdo-progress { display: flex; gap: 0; list-style: none; margin: 22px 0 0; padding: 0; font-size: 17px; font-weight: 700; color: #94a3b8; }
.cdo-progress li { display: flex; align-items: center; gap: 10px; }
.cdo-progress li + li::before { content: ""; width: 56px; height: 2px; margin: 0 16px; background: var(--line); }
.cdo-progress b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 15px; }
.cdo-progress li.is-on { color: var(--ink); }
.cdo-progress li.is-on b { background: var(--blue); color: #fff; }
.cdo-progress li.is-done { color: #15803d; }
.cdo-progress li.is-done b { background: #22c55e; color: #fff; }

.cdo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; padding: 30px 0 88px; }
.cdo-box { padding: 30px 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.cdo-box + .cdo-box { margin-top: 20px; }
.cdo-box > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 22px; font-weight: 800; color: var(--ink); }
.cdo-box > h2 i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 16px; font-style: normal; }
.cdo-empty { margin: 0 0 8px; font-size: 17px; color: var(--muted); }

/* 产品框 */
.cdo-product { display: flex; align-items: center; gap: 18px; }
.cdo-product img { width: 64px; height: 64px; flex: none; object-fit: contain; }
.cdo-product b { display: block; font-size: 23px; color: var(--ink); }
.cdo-product span { font-size: 16.5px; color: var(--muted); }
.cdh .cdo-product a { margin-left: auto; font-size: 16.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }

/* 个人版 / 企业版 */
.cdo-seg { display: inline-flex; gap: 4px; margin: 0 0 18px; padding: 5px; border-radius: 12px; background: #eff2fa; }
.cdo-seg button { padding: 9px 22px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.4; color: #475569; cursor: pointer; }
.cdo-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(15, 35, 95, .12); }

/* 期限卡片 */
.cdo-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cdo-period { position: relative; display: block; width: 100%; padding: 20px 20px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cdo-period:hover { border-color: #b9c8f5; }
.cdo-period b { display: block; font-size: 18px; color: var(--ink); }
.cdo-period strong { display: block; margin: 6px 0 2px; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.cdo-period del { font-size: 15px; color: #94a3b8; }
.cdo-period small { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.cdo-period.is-on { border-color: var(--blue); background: #f3f6ff; box-shadow: 0 0 0 3px rgba(53, 103, 255, .12); }
.cdo-period.is-on::after { content: "✓"; position: absolute; top: 14px; right: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; }
.cdo-seg button:focus-visible, .cdo-period:focus-visible, .cdo-qty button:focus-visible, .cdo-coupon button:focus-visible { outline: 3px solid rgba(53, 103, 255, .45); outline-offset: 2px; }

/* 数量、优惠码 */
.cdo-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; color: var(--text); }
.cdo-periods + .cdo-row, .cdo-empty + .cdo-row, .cdo-seg + .cdo-row { margin-top: 24px; }
.cdo-row:last-child { padding-bottom: 0; }
.cdo-row label { margin: 0; }
.cdo-row label small { color: #64748b; font-size: 15px; }
.cdo-row--coupon { align-items: flex-start; }
.cdo-row--coupon > label { padding-top: 10px; }
.cdo-qty { display: inline-flex; flex: none; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.cdo-qty button { display: grid; place-items: center; width: 46px; height: 44px; padding: 0; border: 0; background: #fff; font: inherit; font-size: 20px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cdo-qty button:hover { background: #f1f5f9; }
.cdo-qty input { width: 62px; height: 44px; padding: 0; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); border-radius: 0; background: #fff; font: inherit; font-size: 20px; font-weight: 700; text-align: center; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.cdo-qty input::-webkit-outer-spin-button, .cdo-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cdo-qty input:focus { outline: none; background: #f3f6ff; }
.cdo-coupon-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.cdo-coupon { display: flex; gap: 8px; max-width: 100%; }
.cdo-coupon input { width: 220px; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.cdo-coupon input::placeholder { color: #94a3b8; }
.cdo-coupon input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53, 103, 255, .14); }
.cdo-coupon button { height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #eff2fa; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cdo-coupon button:hover { background: #e2e8f8; }
.cdo-coupon-hint { margin: 0; font-size: 15px; color: #15803d; text-align: right; }
.cdo-coupon-hint.is-bad { color: #dc2626; }

/* 付款框 */
.cdo-side { position: sticky; top: 96px; }
.cdo-sum { margin: 0; }
.cdo-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 17.5px; color: #475569; }
.cdo-sum dt { font-weight: 500; }
.cdo-sum dd { margin: 0; font-weight: 650; color: var(--ink); text-align: right; }
.cdo-sum del { color: #94a3b8; font-weight: 500; }
.cdo-sum .cdo-sum__off { color: #16a34a; }
.cdo-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 750; color: var(--ink); }
.cdo-total strong { font-size: 40px; font-weight: 800; letter-spacing: -1px; text-align: right; }
.cdo-total.is-busy strong { opacity: .45; }
.cdo-settle { margin: -14px 0 20px; font-size: 15px; text-align: right; color: var(--muted); }
.cdo-promise { display: grid; gap: 10px; list-style: none; margin: 20px 0 0; padding: 18px 20px; border-radius: 16px; background: #f1f8f4; font-size: 16px; color: #1f5137; }
.cdo-promise li::before { content: "✓"; margin-right: 9px; font-weight: 800; color: #16a34a; }
.cdh .cdo-promise--plain { margin: 0; padding: 0; background: none; color: #475569; font-size: 17px; }
.cdo-nomail { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 16px 20px; border-radius: 16px; background: #eef2ff; font-size: 16.5px; color: var(--text); }
.cdo-nomail b { color: var(--ink); }
.cdo-nomail i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-weight: 800; }
.cdo-agree { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.cdo-agree a + a::before { content: " · "; color: var(--muted); }

/* Airwallex 付款组件的框：框头是我们的，里面由 Airwallex 的 Drop-in 填充 */
.cdo-awx { border: 1.5px solid #cbd5e1; border-radius: 18px; overflow: hidden; background: #fff; }
.cdo-awx__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 20px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; font-size: 15.5px; color: #475569; }
.cdo-awx__head svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #16a34a; stroke-width: 2; stroke-linecap: round; }
.cdo-awx__head b { color: var(--ink); font-size: 16.5px; }
.cdo-awx__head span { margin-left: auto; text-align: right; }
.cdo-awx__body { padding: 20px; }
.cdo-awx__drop.is-pending { height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.cdo-awx__drop:empty { display: none; }
.cdo-awx__wait, .cdo-awx__confirm { display: none; align-items: center; justify-content: center; gap: 14px; min-height: 180px; font-size: 16.5px; color: #475569; text-align: center; }
.cdo-js .cdo-awx__wait { display: flex; }
.cdo-js .cdo-awx__wait[hidden] { display: none !important; }
.cdo-awx__confirm { flex-direction: column; min-height: 220px; gap: 10px; }
.cdo-awx__confirm:not([hidden]) { display: flex; }
.cdo-awx__confirm b { font-size: 21px; color: var(--ink); }
.cdo-awx__confirm small { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; color: #475569; word-break: break-word; }
.cdo-awx__err { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fef2f2; font-size: 15.5px; line-height: 1.55; color: #b91c1c; }
.cdo-awx__fail { margin: 0; padding: 8px 0; font-size: 16.5px; line-height: 1.6; color: #475569; text-align: center; }
.cdo-awx__fail p { margin: 0 0 14px; }
.cdo-awx__fail .cdh-btn { width: auto; min-width: 120px; margin-top: 0; }
.cdo-spin { flex: none; width: 28px; height: 28px; border: 3px solid #dbe5ff; border-top-color: var(--blue); border-radius: 50%; animation: cdo-spin .8s linear infinite; }
@keyframes cdo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cdo-spin { animation-duration: 2.4s; } }

/* 付款成功页 */
.cdo-done { max-width: 1040px; margin: 0 auto; padding: 30px 0 88px; }
.cdo-done__head { text-align: center; margin: 40px 0 34px; }
.cdo-done__tick { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 46px; font-weight: 800; box-shadow: 0 16px 40px rgba(34, 197, 94, .35); }
.cdo-done__head h1 { margin: 0 0 10px; font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.cdo-done__head p { margin: 0; font-size: 20px; color: #475569; }
.cdo-codes { display: grid; gap: 12px; }
.cdo-code { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; background: #0b1230; }
.cdo-code code { flex: 1; min-width: 0; padding: 0; background: none; font: 700 27px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 1.5px; color: #fff; word-break: break-all; user-select: all; }
.cdo-code .cdh-btn { flex: none; border: 0; cursor: pointer; }
.cdo-codes-all { margin-top: 14px; }
.cdo-codes-all .cdh-btn { border: 1px solid var(--line); cursor: pointer; }
.cdo-code-note { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.cdo-mail { display: flex; gap: 10px; }
.cdo-mail input { flex: 1; min-width: 0; height: 58px; padding: 0 18px; border: 1.5px solid var(--blue); border-radius: 14px; background: #fff; box-shadow: 0 0 0 4px rgba(53, 103, 255, .12); font: inherit; font-size: 19px; color: var(--ink); }
.cdo-mail input::placeholder { color: #94a3b8; }
.cdo-mail input:focus { outline: none; }
.cdo-mail .cdh-btn { flex: none; height: 58px; padding: 0 30px; border: 0; font-size: 19px; cursor: pointer; }
.cdo-mail .cdh-btn[disabled] { opacity: .6; cursor: default; }
.cdo-mail-msg { margin: 12px 0 0; font-size: 16px; color: #b91c1c; }
.cdo-mail-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 16px; color: #475569; }
.cdo-mail-why li::before { content: "✓"; margin-right: 8px; font-weight: 800; color: #16a34a; }
.cdo-mail-done { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 18px 20px; border-radius: 16px; background: #f1f8f4; font-size: 18px; line-height: 1.55; color: #1f5137; }
.cdo-mail-done::before { content: "✓"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 15px; font-weight: 800; }
.cdo-mail-done b { color: var(--ink); word-break: break-all; }
.cdh .cdo-mail-done a { margin-left: 6px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.cdo-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: n; list-style: none; margin: 0; padding: 0; }
.cdo-next li { counter-increment: n; padding: 20px 22px; border-radius: 16px; background: var(--panel); font-size: 17px; color: #475569; }
.cdo-next li::before { content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; }
.cdo-next b { display: block; font-size: 19px; color: var(--ink); }
.cdo-order { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; font-size: 16.5px; color: #475569; }
.cdo-order b { color: var(--ink); font-weight: 700; word-break: break-all; }

/* 找回激活码（order/find）：复用 .cdo-done、.cdo-box、.cdo-mail；结账页付款框底部的入口 */
.cdo-find-link { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.cdh .cdo-find-link a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.cdo-find-label { display: block; margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.cdo-find-msg { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #b91c1c; }
.cdo-find-msg.is-info, .cdo-find-msg.is-wait { color: #475569; }
.cdo-find-msg.is-wait { display: flex; align-items: center; gap: 12px; }
.cdo-find-msg.is-wait[hidden] { display: none; }
.cdo-find-msg .cdo-spin { width: 22px; height: 22px; border-width: 2.5px; }
.cdh .cdo-find-notes { margin-top: 22px; }
.cdo-find-notes li { line-height: 1.55; }
.cdo-recent { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cdo-recent li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; background: var(--panel); }
.cdo-recent b { flex: 1; min-width: 0; font: 700 21px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5px; color: var(--ink); word-break: break-all; }
.cdo-recent time { flex: none; font-size: 16px; color: var(--muted); }
.cdo-recent .cdh-btn { flex: none; border: 0; cursor: pointer; }
.cdo-recent .cdh-btn[disabled] { opacity: .6; cursor: default; }

@media (max-width: 1100px) {
  .cdo-grid { grid-template-columns: 1fr; }
  .cdo-side { position: static; }
}
@media (max-width: 700px) {
  .cdo-periods, .cdo-mail-why, .cdo-next { grid-template-columns: 1fr; }
  .cdo-box { padding: 24px 20px; }
  .cdo-product { flex-wrap: wrap; }
  .cdh .cdo-product a { margin-left: 0; }
  .cdo-row { flex-wrap: wrap; }
  .cdo-row--coupon { align-items: stretch; }
  .cdo-row--coupon > label { padding-top: 0; }
  .cdo-coupon-wrap { width: 100%; align-items: stretch; }
  .cdo-coupon input { flex: 1; width: auto; }
  .cdo-coupon-hint { text-align: left; }
  .cdo-total strong { font-size: 34px; }
  .cdo-awx__body { padding: 14px; }
  .cdo-awx__head span { display: none; }
  .cdo-code { flex-direction: column; align-items: stretch; }
  .cdo-code code { font-size: 20px; }
  .cdo-mail { flex-direction: column; }
  .cdo-mail input { flex: none; width: 100%; }
  .cdo-mail .cdh-btn { width: 100%; }
  .cdo-recent li { flex-direction: column; align-items: stretch; gap: 8px; }
  .cdo-recent b { font-size: 19px; }
  .cdo-recent .cdh-btn { width: 100%; margin-top: 4px; }
}
