.coding-plan-page{max-width:1440px;margin:auto;padding-bottom:70px}.coding-plan-heading{max-width:850px;padding:66px 0 38px}.coding-plan-heading h1{font-size:clamp(30px,3.5vw,48px);line-height:1.25;margin:14px 0 20px}.coding-plan-heading>p:last-of-type{color:var(--text-muted,#637084);line-height:1.8}.coding-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}.coding-plan-card{display:flex;flex-direction:column;padding:28px 24px;border:1px solid var(--line,#dce1e8);border-radius:18px;background:var(--surface,#fff)}.coding-plan-card.is-featured{border:2px solid #345cea;padding:27px 23px;box-shadow:0 8px 28px #345cea12}.coding-plan-card h2{font-size:21px;margin:14px 0}.coding-plan-price{display:flex;align-items:baseline;gap:8px;margin:12px 0 22px}.coding-plan-price strong{font-size:35px;letter-spacing:-1px}.coding-plan-price span{color:#6b7280;font-size:13px}.coding-plan-quota{font-size:15px;line-height:1.6}.coding-plan-quota strong{font-size:25px}.coding-plan-card ul{padding-left:18px;line-height:1.85;flex:1;margin:20px 0 30px}.coding-plan-card li{padding-bottom:6px}.coding-plan-card .button{width:100%;text-align:center}.coding-plan-card button:disabled{opacity:.6;cursor:default}.coding-plan-rules{padding:26px 6px;color:#627086;font-size:14px;line-height:1.75}.coding-plan-rules p{margin:0 0 8px}.coding-plan-section{margin-top:36px}.coding-period{display:flex;align-items:center;gap:24px;border-bottom:1px solid #dce1e8;padding:18px 4px}.coding-period>div{flex:1;min-width:0}.coding-period p{font-size:13px;color:#637084;margin:8px 0 0;overflow-wrap:anywhere}.coding-credit-summary{display:flex;gap:40px}.coding-credit-summary strong{display:block;font-size:30px;margin-top:8px}@media(max-width:1100px){.coding-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.coding-plan-heading{padding-top:36px}.coding-plan-grid{grid-template-columns:1fr}.coding-plan-card{padding:24px}.coding-period{flex-wrap:wrap;gap:12px}.coding-period>div{flex-basis:100%}.coding-credit-summary{gap:24px}.coding-credit-summary strong{font-size:25px}}
.coding-plan-original{font-size:14px;color:#7a8595;margin:8px 0 0}.coding-plan-original s{margin-left:4px}


/* 单独充值：数量、价格和付款动作保持同一阅读顺序。 */
.credit-topup-section { padding: 30px; border: 1px solid #e0e5eb; border-radius: 20px; background: #f0f3f8; }
.credit-topup-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.credit-topup-heading :is(h2, h3) { margin: 0 0 8px; color: #202b3d; font-size: 23px; font-weight: 600; }
.credit-topup-heading p { margin: 0; color: #667286; font-size: 14px; line-height: 1.7; }
.credit-topup-heading > a { flex-shrink: 0; color: #53647f; font-size: 13px; }
.credit-topup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.credit-topup-card { min-width: 0; padding: 24px; border: 1px solid #dce3ed; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px #233f6604; transition: border-color .2s, box-shadow .2s, transform .2s; }
.credit-topup-card:hover, .credit-topup-card:focus-within { border-color: #9bb0ee; box-shadow: 0 8px 24px #345cea0c; transform: translateY(-2px); }
.credit-topup-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credit-topup-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #345cea; background: #eef2ff; border-radius: 11px; }
.credit-topup-icon svg { width: 23px; height: 23px; }
.credit-topup-validity { color: #67758b; font-size: 12px; }
.credit-topup-quota { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 25px 0 6px; color: #202c42; }
.credit-topup-quota strong { font-size: clamp(28px, 3vw, 38px); font-weight: 650; line-height: 1.2; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; }
.credit-topup-quota > span { color: #5c6b81; font-size: 13px; }
.credit-topup-use { margin: 0 0 24px; color: #6b788b; font-size: 12px; }
.credit-topup-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid #edf0f5; }
.credit-topup-price { display: flex; align-items: baseline; gap: 3px; margin: 0; color: #23314a; white-space: nowrap; }
.credit-topup-price > span { font-size: 16px; }
.credit-topup-price strong { font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.credit-topup-buy.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; border: 1px solid #345cea; border-radius: 8px; background: #345cea; color: white; font-size: 13px; font-weight: 500; box-shadow: none; white-space: nowrap; }
.credit-topup-buy.button:hover { background: #254bd2; border-color: #254bd2; color: white; }
.credit-topup-buy svg { width: 17px; height: 17px; }
.credit-topup-buy:disabled { opacity: .5; cursor: default; }
.credit-topup-buy:focus-visible, .native-payment-close:focus-visible { outline: 3px solid #9bb0ee; outline-offset: 3px; }
.account-section .credit-topup-section { padding: 24px; }
.account-section .credit-topup-heading h3 { font-size: 19px; }
.account-section .credit-topup-card { padding: 20px; }
.account-section .credit-topup-bottom { flex-direction: column; align-items: stretch; gap: 18px; }
.account-section .credit-topup-buy { flex: 1; }

/* 微信收银台：账号与金额始终先于二维码显示。 */
.native-payment-dialog { width: min(420px, calc(100% - 32px)); max-width: 420px; max-height: calc(100dvh - 32px); margin: auto; padding: 30px 32px 24px; overflow-y: auto; border: 1px solid #e0e6ed; border-radius: 22px; background: #fff; color: #202c42; text-align: center; box-shadow: 0 28px 90px #17203533; }
.native-payment-dialog::backdrop { background: #14203980; backdrop-filter: blur(5px); }
.native-payment-close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #f3f5f8; color: #718097; font-size: 24px; line-height: 1; cursor: pointer; }
.native-payment-close:hover { background: #e9edf3; color: #24324b; }
.native-payment-heading { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 24px; }
.native-payment-heading > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf7ef; color: #16834e; }
.native-payment-heading svg { width: 19px; height: 19px; }
.native-payment-heading h2 { margin: 0; color: #27354b; font-size: 18px; font-weight: 600; }
.native-payment-product { margin: 0 0 6px; color: #66748a; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.native-payment-amount { margin: 0 0 18px; color: #1e2c43; font-size: 42px; font-weight: 650; line-height: 1.3; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.native-payment-amount > span { padding-right: 4px; font-size: 23px; font-weight: 500; }
.native-payment-account { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 14px; border: 1px solid #e8ecf3; border-radius: 9px; background: #f7f9fc; text-align: left; font-size: 13px; }
.native-payment-account > span { flex-shrink: 0; color: #718097; }
.native-payment-account strong { min-width: 0; color: #334564; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.native-payment-qr { width: 244px; max-width: 100%; padding: 12px; margin: 22px auto 12px; border: 1px solid #e2e8ef; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px #26395806; }
.native-payment-qr img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.native-payment-expiry { margin: 0; color: #7b8799; font-size: 11px; line-height: 1.7; }
.native-payment-status { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; padding: 5px 11px; border-radius: 6px; background: #f1f4fa; color: #536985; font-size: 12px; line-height: 1.7; }
.native-payment-status > span { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.native-payment-status.is-paid { background: #eaf7ef; color: #16834e; }
.native-payment-status.is-closed { background: #f2f3f5; color: #7b8799; }
.native-payment-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #edf0f5; color: #7b8799; font-size: 12px; line-height: 1.8; }
.native-payment-dialog [data-payment-error] { margin: 12px 0 0; color: #b42318; font-size: 13px; line-height: 1.7; }
.native-payment-dialog [data-payment-error]:empty { display: none; }
.native-payment-result, .native-payment-loading { display: grid; justify-items: center; gap: 12px; padding: 36px 0 16px; color: #7b8799; }
.native-payment-result > svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: #f1f4fa; }
.native-payment-result.is-paid > svg { background: #eaf7ef; color: #16834e; }
.native-payment-result > strong { font-size: 18px; color: #334564; }
.native-payment-result > span { font-size: 13px; }
.native-payment-loading { min-height: 260px; align-content: center; font-size: 13px; }
.native-payment-spinner { display: block; width: 30px; height: 30px; border: 2px solid #e3e9f3; border-top-color: #345cea; border-radius: 50%; animation: native-payment-spin .9s linear infinite; }
@keyframes native-payment-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .credit-topup-card { padding: 20px; }
  .credit-topup-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .credit-topup-buy.button { width: 100%; }
  .credit-topup-quota strong { font-size: 30px; }
}
@media (max-width: 640px) {
  .credit-topup-section, .account-section .credit-topup-section { padding: 20px; border-radius: 16px; }
  .credit-topup-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .credit-topup-heading :is(h2, h3) { font-size: 21px; }
  .credit-topup-heading p { font-size: 13px; }
  .credit-topup-grid { grid-template-columns: 1fr; gap: 12px; }
  .credit-topup-quota { margin-top: 18px; }
  .credit-topup-quota strong { font-size: 34px; }
  .credit-topup-bottom { align-items: center; flex-direction: row; gap: 12px; padding-top: 16px; }
  .credit-topup-buy.button { width: auto; }
  .credit-topup-use { margin-bottom: 18px; }
  .account-section .credit-topup-buy { flex: initial; }
  .account-section .credit-topup-bottom { flex-direction: row; align-items: center; }
  .native-payment-dialog { padding: 28px 22px 22px; border-radius: 18px; }
}
.credit-recharge-page { max-width: 1200px; }
.credit-page-heading { padding-bottom: 28px; }
.credit-page-heading h1 { margin-top: 0; }
.credit-page-balance { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 24px 30px; border: 1px solid #e0e5eb; border-radius: 16px; background: #fff; }
.credit-page-balance span { font-size: 13px; color: #667286; }
.credit-page-balance strong { display: block; margin-top: 6px; color: #253b60; font-size: 36px; line-height: 1.3; font-weight: 600; }
.credit-page-balance small { margin-left: 8px; color: #7b8799; font-size: 13px; font-weight: 400; }
.credit-page-balance p { margin: 6px 0 0; color: #7b8799; font-size: 12px; }
.credit-recharge-rules { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 22px 0 38px; color: #6a788d; font-size: 12px; }
.credit-recharge-rules p { display: flex; align-items: center; gap: 6px; margin: 0; }
.credit-recharge-rules svg { width: 15px; height: 15px; color: #4e8d70; }
.credit-plan-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 20px 0 36px; padding: 24px 4px; border-block: 1px solid #e0e5eb; }
.credit-plan-link strong { color: #435773; font-weight: 500; font-size: 15px; }
.credit-plan-link p { margin: 6px 0 0; color: #7b8799; font-size: 13px; }
.credit-plan-link > a { flex-shrink: 0; }
@media (max-width: 640px) {
  .credit-page-balance, .credit-plan-link { align-items: flex-start; flex-direction: column; gap: 16px; }
  .credit-page-balance { padding: 20px; }
  .credit-recharge-rules { align-items: flex-start; flex-direction: column; gap: 12px; padding: 0 4px; }
}
@media (max-width: 360px) {
  .credit-topup-bottom { align-items: stretch; flex-direction: column; }
  .native-payment-dialog { width: calc(100% - 20px); padding: 28px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .credit-topup-card { transition: none; }
  .credit-topup-card:hover, .credit-topup-card:focus-within { transform: none; }
  .native-payment-spinner { animation: none; }
}
.plan-intro { text-align:center; padding:clamp(36px,6vw,84px) 0 clamp(36px,4vw,62px); }
.plan-intro h1 { margin:0; font-size:clamp(40px,5vw,72px); letter-spacing:-.045em; line-height:1.2; }
.plan-intro p { margin:15px auto 8px; color:#586579; line-height:1.7; }
.plan-platform-details { padding-top:14px; border-top:1px solid #e4e8ed; margin-top:20px; }
.plan-inclusions h3 { margin:0; font-size:16px; font-weight:600; }
.plan-platform-details .plan-platforms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; width:min(100%,176px); list-style:none; margin:24px auto 0; padding:0; }
.coding-plan-card .plan-platforms li { display:grid; place-items:center; padding:0; }
.plan-platforms img { display:block; width:100%; aspect-ratio:1; object-fit:contain; height:auto; border-radius:16px; }
.coding-plan-card .plan-title, .plan-pricing p { margin: 0; }
.plan-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 16px 0 20px;
}
.plan-pricing .coding-plan-price strong { font-size: clamp(36px, 3vw, 44px); line-height: 1.15; }
.plan-pricing + .button {
  background: #345cea;
  border-color: #345cea;
  color: white;
  border-radius: 8px;
}
.plan-pricing + .button:enabled:hover { background: #2448c8; }

.coding-plan-card .coding-plan-quota { margin:20px 0 0; color:#435166; }
.coding-plan-card ul:not(.plan-platforms) { margin: 12px 0; }
.coding-plan-card li { padding-bottom: 2px; }
.coding-plan-card ul.plan-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(155px, calc(50% - 6px))), 1fr));
  align-content: start;
  gap: 10px 16px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line, #dce1e8);
  list-style: none;
}
.plan-benefits li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #415064;
  font-size: 14px;
  line-height: 1.5;
}
.plan-benefits li:nth-child(3) { grid-column: 1 / -1; }
.plan-benefits li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 5px;
  border-left: 2px solid #345cea;
  border-bottom: 2px solid #345cea;
  transform: translateY(-3px) rotate(-45deg);
}
.coding-plan-grid { grid-template-columns:minmax(0,1fr); gap:clamp(18px,2vw,32px); align-items:start; }
.coding-plan-grid > .coding-plan-card {
  --offer-tint:#f2f5fa; --offer-ink:#28384d;
  display:grid; grid-template-rows:subgrid; grid-row:span 4; row-gap:0; align-self:stretch;
  padding:0; overflow:hidden; border:1px solid #dce2e9; border-radius:24px; box-shadow:none;
}
.coding-plan-grid > .coding-plan-card:nth-child(2) { --offer-tint:#edf6f3; --offer-ink:#245449; }
.coding-plan-grid > .coding-plan-card.is-featured { --offer-tint:#f1efff; --offer-ink:#493682; border-color:#d8d1ef; }
.plan-offer { padding:clamp(26px,2.8vw,44px); background:linear-gradient(155deg,var(--offer-tint),white 88%); }
.plan-offer .plan-title { color:var(--offer-ink); font-size:clamp(22px,2vw,29px); line-height:1.25; }
.plan-offer .plan-pricing { display:block; margin:30px 0 0; min-height:0; }
.plan-offer .coding-plan-price strong { font-size:clamp(48px,4.5vw,68px); letter-spacing:-.055em; line-height:1.12; font-variant-numeric:tabular-nums; }
.plan-offer .coding-plan-original { margin:8px 0 0; }
.plan-offer .coding-plan-quota { margin:24px 0; font-size:15px; }
.plan-offer .coding-plan-quota strong { font-size:20px; }
.plan-offer .button { min-height:48px; border-radius:24px; background:var(--offer-ink); border-color:var(--offer-ink); color:white; }
.plan-inclusions { display:grid; grid-template-rows:subgrid; grid-row:span 3; row-gap:0; border-top:1px solid #e4e8ee; padding:24px clamp(26px,2.8vw,44px) 32px; }
.plan-inclusions ul.plan-benefits { border:0; padding:0; margin:14px 0 0; }
.plan-comparison h2 { text-align:center; font-size:clamp(26px,3vw,40px); }

.coding-plan-card ul.plan-benefits { grid-template-columns:1fr; }
.coding-plan-card .plan-pricing { min-height:52px; align-content:center; }
.coding-plan-card:not(.is-featured) .plan-pricing + .button { background:#263349; border-color:#263349; }
.plan-comparison { margin:clamp(56px,7vw,100px) 0 40px; }
.plan-comparison h2 { margin-bottom:20px; }
.plan-table-scroll { overflow-x:auto; border-block:1px solid #dce1e8; }
.plan-comparison table { width:100%; min-width:570px; border-collapse:collapse; text-align:left; font-size:14px; }
.plan-comparison th, .plan-comparison td { padding:16px 12px; border-bottom:1px solid #edf0f4; }
.plan-comparison th { font-weight:600; }
.plan-comparison thead { background:#f4f6fa; }
@media (max-width:939px) {
  .coding-plan-grid { grid-auto-rows:auto auto minmax(max-content,1fr) minmax(max-content,2fr); }
}
@media (min-width:940px) {
  .enterprise-plans > .coding-plan-card { grid-column:2; }
  .coding-plan-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* 订阅计划下方直接呈现积分充值，保留清晰的区域间距。 */
.plan-inline-topup { margin-top:48px; margin-bottom:40px; scroll-margin-top:96px; }
@media(max-width:600px) { .plan-inline-topup { margin-top:32px; padding:22px 16px; } }

.plan-edition-switch { display:flex; width:fit-content; margin:24px auto 0; padding:4px; gap:4px; border-radius:999px; background:#eef0f4; }
.plan-edition-switch a { padding:10px 26px; border-radius:999px; font-size:15px; font-weight:600; color:#526073; }
.plan-edition-switch a[aria-current="page"] { background:white; color:#192231; box-shadow:0 1px 5px #202e441c; }

@keyframes plan-enter {
  from { opacity:0; transform:translateY(var(--plan-rise, 10px)); }
  to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:no-preference) {
  .plan-intro > * { animation:plan-enter 440ms ease-out backwards; }
  .plan-intro > p { animation-delay:55ms; }
  .plan-intro > .text-link, .plan-edition-switch { animation-delay:105ms; }
  .coding-plan-grid > article { --plan-delay:70ms; --plan-rise:16px; animation:plan-enter 460ms ease-out var(--plan-delay) backwards; }
  .coding-plan-grid > article:nth-child(2) { --plan-delay:150ms; }
  .coding-plan-grid > article:nth-child(3) { --plan-delay:230ms; }
  .plan-offer > *, .plan-inclusions > * {
    --plan-rise:7px;
    animation:plan-enter 340ms ease-out calc(var(--plan-delay) + var(--text-delay, 85ms)) backwards;
  }
  .plan-offer .plan-pricing { --text-delay:125ms; }
  .plan-offer .coding-plan-quota, .plan-offer .button { --text-delay:165ms; }
  .plan-inclusions > * { --text-delay:200ms; }
}
