.subpage {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding: 48px 24px 72px;
}

.subpage h1 {
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

[data-about-link][aria-current="page"] { color: var(--accent); font-weight: 650; }
.about-page { max-width: 56rem; padding-block: clamp(40px, 6vw, 76px) 72px; }
.about-intro { text-align: center; }
.about-intro h1 { font-size: clamp(32px, 5vw, 50px); }
.about-intro > p:last-child { max-width: 36rem; margin: 12px auto 0; font-size: clamp(15px, 2vw, 18px); }
.about-brand { margin-bottom: 10px; color: var(--accent); font-size: 14px; font-weight: 700; }
.about-story, .about-work, .about-contact { margin-top: clamp(32px, 5vw, 52px); }
.about-story { margin-bottom: 24px; }
.about-page h2 { margin-bottom: 9px; font-size: clamp(21px, 3vw, 27px); letter-spacing: normal; }
.about-page p { line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.about-card h2, .about-card h3 { margin-bottom: 6px; font-size: 17px; letter-spacing: normal; }
.about-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 9px; background: var(--soft); color: var(--accent); }
.about-work > .about-grid { margin-top: 16px; }
.about-contact { padding: 28px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.about-email { display: block; width: fit-content; max-width: 100%; margin: 12px auto 18px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
}

body[data-page="register"], body[data-page="checkout"] { background: var(--surface); }
body[data-page="register"] { background: var(--bg); }
body[data-page="register"] #siteHeader,
body[data-page="register"] #siteFooter,
body[data-page="checkout"] #siteHeader,
body[data-page="checkout"] #siteFooter { display: none; }

.register-page { min-height: 100svh; display: grid; align-content: start; justify-items: center; padding: 38px 16px; }
.register-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-size: 16px; font-weight: 600; }
.mini-brand { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--surface); }
.mini-brand svg { width: 15px; height: 15px; }
.register-card { width: min(100%, 384px); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 5px #0001; }
.register-card h1 { font-size: 22px; }
.register-card > p { text-align: center; font-size: 14px; margin: 0 0 23px; }
.register-card form label { margin: 0 0 19px; color: var(--ink); }
.register-card form input { height: 38px; margin-top: 4px; border-radius: 8px; }
.register-card form .button { margin-top: 17px; padding: 7px 12px; }
.register-card .register-login { margin: 16px 0 0; color: var(--ink); }
.register-login button { text-decoration: underline; text-underline-offset: 3px; }
.password-help { display: block; min-height: 18px; color: var(--muted); font-size: 12px; }
.password-help[data-valid="true"] { color: #4d835b; }
.register-card label:has(input[type="password"]) { margin-bottom: 6px; }

.pricing-page > h1 { text-align: center; font-size: clamp(30px, 4vw, 46px); }
.pricing-page > p { text-align: center; font-size: 15px; }
.pricing-toggle { display: flex; width: max-content; max-width: 100%; margin: 26px auto 38px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pricing-toggle button { padding: 7px 18px; border-radius: 7px; color: var(--muted); }
.pricing-toggle button[aria-pressed="true"] { background: var(--soft); color: var(--accent); font-weight: 600; }
.pricing-page .pricing-grid { margin-top: 0; }
.pricing-page .price-card { position: relative; text-align: left; padding: 26px 24px; }
.pricing-page .price-card .price { margin: 10px 0; }
.pricing-page .price-card > p { text-align: left; }
.price-card .popular-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 11px; white-space: nowrap; }
.pricing-page .price-card .unit-price { margin-top: 7px; color: var(--muted); font-size: 12px; }
.pricing-page .faq-list { margin: 55px auto 0; }
.pricing-page .faq-list h2 { font-size: 27px; margin-bottom: 14px; }
.pricing-page details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pricing-page details summary { cursor: pointer; font-weight: 600; }
.pricing-page details p { margin-top: 10px; }
.subscription-preview { min-height: 210px; display: grid; place-content: center; text-align: center; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.subscription-preview h2 { font-size: 20px; margin-bottom: 8px; }

.account-page { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 44px; min-height: 560px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 7px 12px; border-radius: 7px; color: var(--ink); }
.account-nav a[aria-current="page"] { color: var(--accent); background: var(--soft); font-weight: 600; }
.account-nav svg { width: 16px; height: 16px; }
.account-body h1 { text-align: left; font-size: 25px; }
.account-body > p { font-size: 15px; }
.account-empty { min-height: 234px; display: grid; place-content: center; justify-items: center; gap: 9px; text-align: center; padding: 28px 12px; }
.account-empty h2 { font-size: 18px; color: var(--muted); font-weight: 500; }
.account-empty p { font-size: 14px; }
.account-empty .button { margin-top: 8px; }
.account-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.account-summary span:first-child { overflow-wrap: anywhere; }
.account-summary button { color: var(--accent); text-decoration: underline; }
.account-credits { padding: 20px; margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.account-credits strong { display: block; font-size: 32px; color: var(--ink); }
.account-credits a { margin-top: 12px; }
.jobs-list { margin-top: 22px; }

.checkout-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.checkout-summary, .checkout-details { padding: 42px clamp(20px, 6.5vw, 80px); }
.checkout-summary { background: var(--bg); box-shadow: 4px 0 17px #00000008; }
.checkout-details { background: var(--surface); }
.checkout-inner { max-width: 390px; margin-inline: auto; }
.checkout-summary .checkout-inner { margin-inline: auto 0; }
.checkout-details .checkout-inner { margin-inline: 0 auto; }
.checkout-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); margin-bottom: 24px; }
.checkout-page h1 { text-align: left; font-size: 21px; margin: 12px 0 22px; }
.checkout-page h2 { font-size: 15px; margin-bottom: 10px; }
.checkout-currency { min-inline-size: 0; margin: 0 0 24px; padding: 0; border: 0; }
.checkout-currency legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 650; }
.currency-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.currency-options label { position: relative; margin: 0; }
.currency-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.currency-option { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: var(--soft); cursor: pointer; }
.currency-option small { margin-inline-start: auto; color: var(--muted); }
.currency-options input:checked + .currency-option { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.currency-options input:focus-visible + .currency-option { outline: 2px solid #2287cd; outline-offset: 2px; }
.currency-options input:disabled + .currency-option { cursor: default; }
.currency-note { margin: 7px 0 0; min-height: 2.6em; color: var(--muted); font-size: 12px; }
.usd-flag, .cny-flag { position: relative; flex: 0 0 16px; height: 11px; border-radius: 2px; overflow: hidden; }
.usd-flag { background: repeating-linear-gradient(#b7334b 0 1px, #fff 1px 2px); }
.usd-flag::before { position: absolute; inset: 0 auto auto 0; width: 7px; height: 6px; background: #304a85; content: ''; }
.cny-flag { background: #de2910; }
.cny-flag::before { position: absolute; top: 0; left: 2px; color: #ffde00; font: 7px/8px Arial, sans-serif; content: '★'; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-line.total { font-size: 16px; font-weight: 700; border-bottom: 0; }
.promo-toggle { padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; cursor: pointer; }
.promo-toggle:hover { border-color: var(--accent); }
#promoField { width: 100%; }
#promoField input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
#promoField input:focus-visible { outline: 2px solid #2287cd; outline-offset: 1px; }
#promoHint { display: block; margin-top: 7px; color: var(--muted); }
.checkout-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 25px; }
.checkout-wallets span { display: flex; justify-content: center; align-items: center; gap: 4px; height: 50px; border-radius: 6px; font-size: 23px; font-weight: 650; background: #101010; color: #fff; }
.checkout-wallets span:last-child { background: #00ce70; color: #07361f; }
.checkout-wallets svg { width: 22px; height: 22px; }
.checkout-wallets svg, .method-alipay svg, .method-wechat_pay svg { fill: currentColor; stroke: none; }
.checkout-wallets path[stroke] { stroke: #00ce70; }
.checkout-contact { display: block; font-size: 13px; margin-bottom: 23px; }
.checkout-contact input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 5px; color: var(--muted); padding: 8px 10px; margin-top: 5px; }
.checkout-method-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.checkout-method-group legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 650; }
.checkout-methods { display: grid; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 7px; }
.checkout-methods label { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-height: 45px; margin: 0; padding: 9px 13px; cursor: pointer; }
.checkout-method-group:disabled label { cursor: default; }
.checkout-methods label:has(input:checked) .method-name { font-weight: 650; }
.checkout-methods input[type="radio"] { flex: 0 0 auto; width: 14px; height: 14px; margin: 0 5px 0 0; padding: 0; accent-color: var(--ink); }
.checkout-methods input:focus-visible { outline: 2px solid #2287cd; outline-offset: 2px; }
.checkout-methods li + li { border-top: 1px solid var(--line); }
.checkout-methods svg { width: 17px; height: 17px; color: var(--muted); }
.method-alipay svg { color: #1677ff; }
.method-wechat_pay svg { color: #07a936; }
.checkout-method-help { margin: 0 12px 12px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.checkout-method-help p + p { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.wallet-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; font: 800 12px/1 Arial, sans-serif; }
.wallet-cash { background: #00b858; color: #fff; }
.wallet-amazon { border: 1px solid var(--line); border-bottom: 2px solid #f90; font-size: 8px; }
.card-brands { display: flex; gap: 3px; margin-inline-start: auto; }
.card-brands span { display: grid; place-items: center; width: 27px; height: 17px; border-radius: 3px; color: #fff; font: 800 8px/1 Arial, sans-serif; }
.card-brands .visa { background: #154485; font-style: italic; }
.card-brands .mastercard { background: radial-gradient(circle at 60% 50%, #ffab00 5px, transparent 5.5px), radial-gradient(circle at 40% 50%, #e52d35 5px, transparent 5.5px), #212121; }
.card-brands .amex { background: #0073b1; }
.card-brands .discover { background: linear-gradient(155deg, #fff 70%, #e87925 72%); color: #151515; border: 1px solid #ddd; font-size: 4.5px; }
.checkout-submit { width: 100%; margin: 17px 0 0; background: #0876c9; border-color: #0876c9; }
.checkout-submit:disabled { opacity: .7; cursor: default; }
.checkout-status { margin-top: 12px; }
.checkout-explain { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.checkout-legal { display: flex; justify-content: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.checkout-legal button { padding: 0; text-decoration: underline; text-underline-offset: 2px; }

.site-footer {
  --ink: #f6f1ec;
  --muted: #b8ada2;
  --line: #3c3732;
  --accent: #f49b45;
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  color: var(--muted);
  background: #211e1b;
  border-color: var(--line);
}
.site-footer .footer-columns { width: min(100%, 80rem); margin: 0 auto; padding: 58px 24px 44px; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; color: var(--muted); font-size: 14px; }
.site-footer .footer-intro { display: flex; flex-direction: column; gap: 14px; max-width: 390px; }
.site-footer .footer-intro .brand { color: var(--accent); font-size: clamp(22px, 2.4vw, 36px); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.footer-column h2 { color: var(--ink); font-size: 14px; margin: 0 0 5px; letter-spacing: 0; }
.site-footer .footer-column button { padding: 0; color: inherit; font-size: inherit; }
.footer-column a:hover, .footer-column button:hover { color: var(--accent); }
.footer-email { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; overflow-wrap: anywhere; }
.footer-email svg { align-self: flex-start; width: 16px; height: 16px; margin-top: 4px; }
.site-footer .footer-bottom { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; width: min(100% - 48px, 77rem); margin: auto; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }

@media (max-width: 900px) {
  .account-page { gap: 24px; }
  .checkout-summary, .checkout-details { padding-inline: 26px; }
  .site-footer .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .subpage { padding: 32px 16px 48px; }
  .account-page { grid-template-columns: 1fr; gap: 22px; }
  .account-nav { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .account-nav a { padding: 6px 8px; font-size: 12px; }
  .checkout-page { grid-template-columns: 1fr; }
  .checkout-summary, .checkout-details { padding: 26px 20px; }
  .checkout-page .checkout-inner { margin-inline: auto; }
  .checkout-summary { border-bottom: 1px solid var(--line); }
  .checkout-brand { margin-bottom: 16px; }
  .site-footer .footer-columns { padding: 32px 18px; gap: 22px; }
  .site-footer .footer-intro { grid-column: 1 / -1; }
  .site-footer .footer-bottom { width: calc(100% - 36px); }
}
