/* Focused writing and checkout refinements */
button.tool-card { font: inherit; text-align: left; width: 100%; color: var(--ink); cursor: pointer; }
button.chip { font: inherit; cursor: pointer; }
.chip .word-recommend { margin-left: 5px; color: var(--brand); font-size: 12px; }
.estimate strong { color: var(--accent); font-size: 19px; }
.checkout-modal { width: 620px; max-width: calc(100vw - 24px); }
.checkout-eyebrow { display: block; font-size: 11px; letter-spacing: 1.4px; color: var(--garnet); margin-bottom: 7px; }
.checkout-steps { display: flex; padding: 0 24px; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.checkout-steps li { flex: 1; padding: 13px 4px; color: var(--muted); text-align: center; font-size: 13px; border-bottom: 2px solid transparent; }
.checkout-steps li.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.checkout-modal .dl-doc { margin-bottom: 16px; }
.checkout-modal .dl-doc .tx { min-width: 0; }
.checkout-modal .dl-doc .tx b { white-space: normal; overflow-wrap: anywhere; }
.checkout-modal .dl-doc .tx span { display: block; margin-top: 5px; line-height: 1.6; }
.included-report { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; background: var(--ok-soft); color: #0A2036; border-radius: 8px; font-size: 14px; margin: 0 0 22px; }
.included-report span { font-size: 13px; margin-left: auto; opacity: .8; }
.checkout-section-label { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; margin: 18px 0 10px; }
.checkout-section-label span { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.checkout-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-extras .chip { min-height: 40px; }
.order-breakdown { margin: 20px 0 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-breakdown>div { display: flex; justify-content: space-between; gap: 16px; line-height: 2.2; font-size: 14px; }
.gift-price { color: var(--ok); }
.checkout-delivery { color: var(--muted); font-size: 13px; line-height: 1.8; }
.order-meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.order-meta b { font-family: var(--mono); color: var(--ink2); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-methods label { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 10px; cursor: pointer; }
.payment-methods label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.payment-methods input { accent-color: var(--brand); }
.payment-methods b { font-size: 14px; }
.payment-methods small { color: var(--muted); margin-left: auto; }
.method-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: white; font-size: 13px; }
.wechat { background: #0A2036; }.alipay { background: #24405C; }
.payment-placeholder { text-align: center; padding: 25px 20px 10px; }
.payment-symbol { display: grid; place-items: center; margin: 0 auto 12px; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 27px; }
.payment-placeholder strong { display: block; font-size: 17px; }.payment-placeholder p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 350px; margin: 8px auto; }
.checkout-status { font-size: 13px; text-align: center; color: var(--muted); }
.checkout-status.is-error { color: var(--garnet); font-weight: 600; }
.checkout-status.is-ok { color: var(--prussian); font-weight: 600; }
.checkout-success { text-align: center; padding: 16px 0 24px; }.checkout-success>span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin: 0 auto 14px; font-size: 25px; }
.checkout-success h4 { font-size: 20px; margin: 0 0 8px; }.checkout-success p { font-size: 14px; color: var(--muted); margin: 6px 0; }.checkout-success small { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
/* 下载文件列表：每个条目是一份可下载文件，不是普通按钮 */
.download-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; }
.dl-file { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s, transform .16s; }
.dl-file:hover { border-color: #B9C9DB; background: #FBFCFE; box-shadow: 0 8px 18px -14px rgba(10, 32, 54, .45); transform: translateY(-1px); }
.dl-file:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 32, 54, .14); }
.dl-ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.dl-ic.is-word { background: #EAF1F9; color: #2B5B8A; font-size: 14px; }
.dl-ic.is-pdf { background: #FBECEA; color: #A63A34; }
.dl-ic.is-txt { background: #EEF2F6; color: #4B5B6B; }
.dl-ic.is-ppt { background: #FDF0E7; color: #B85C2E; }
.dl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-tx b { font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.dl-tx small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.dl-go { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F2F6FA; color: var(--brand); font-size: 14px; line-height: 1; transition: background .16s, color .16s; }
.dl-file:hover .dl-go { background: var(--brand); color: #fff; }
.checkout-modal .modal-foot { gap: 12px; }.checkout-modal .pay-tip { gap: 10px; flex-wrap: wrap; }
/* 确认与付费：次要入口并列，窄屏自动换行不挤压 */
.checkout-modal .pay-tip>span:first-child { font-size: 12px; }
.checkout-modal .modal-body { overscroll-behavior: contain; }
.checkout-modal .modal-foot #dlPay { margin-left: auto; }
@media (max-width: 520px) {
 .checkout-modal { max-height: calc(100dvh - 24px); }.checkout-modal .modal-head,.checkout-modal .modal-body,.checkout-modal .modal-foot { padding: 16px; }
 .checkout-steps { padding: 0 12px; }.checkout-steps li { font-size: 12px; }
 .checkout-modal .modal-foot { flex-wrap: wrap; }.checkout-modal .modal-foot .btn { min-height: 44px; flex: 1; white-space: normal; }
 .payment-methods label { padding: 10px 8px; gap: 6px; }.method-icon { display: none; }
 .checkout-extras .chip { width: 100%; text-align: left; }.checkout-extras small { float: right; }
 .download-list { grid-template-columns: 1fr; }.checkout-modal .dl-pay b { font-size: 25px; }
}
.checkout-modal { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; }
.checkout-modal .modal-head, .checkout-modal .modal-foot, .checkout-steps { flex-shrink: 0; }
.checkout-modal .modal-body { min-height: 0; overflow-y: auto; }
#vbWas { display: none; }
.wordNote, #wordNote { line-height: 1.75; }

/* 结算金额和操作固定显示，长订单滚动时仍可核对。 */
.checkout-footer { flex-shrink: 0; border-top: 1px solid var(--line); background: #fff; }
.checkout-footer .pay-tip { margin: 0; padding: 12px 22px; text-align: left; }
.checkout-footer .dl-pay { white-space: nowrap; }
.checkout-footer .modal-foot { padding-top: 10px; }
@media (max-width: 520px) {
 .checkout-footer .pay-tip { padding: 11px 16px; align-items: flex-start; }
 .checkout-footer .pay-tip > span:first-child { flex: 1; min-width: 0; }
 .checkout-footer .modal-foot { padding-top: 5px; }
}

/* 下载面板与额度提示 */
.vb-unit { font-size: 15px; font-weight: 700; color: #fff; margin-left: 5px; letter-spacing: .01em; }
#dlTip { font-size: 13px; color: var(--ink2); font-weight: 500; }
#dlTip.is-warn { color: #5A0301; font-weight: 600; }
#dlTip.is-ok { color: #0A2036; }
/* 确认页只保留一个主按钮，其他入口均为次要；窄屏主按钮全宽。 */
.confirm-wrap { width: calc(100% - 40px); max-width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 46px; }
.cf-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.cf-step { flex: 1; min-width: 96px; padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 13px; text-align: center; }
.cf-step.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cf-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-top: 18px; }
.cf-main, .cf-side .panel { padding: 18px 20px; }
.cf-side { display: grid; gap: 14px; position: sticky; top: 88px; }
.cf-main .dl-doc { margin-bottom: 10px; }
.cf-main .dl-doc .tx b { white-space: normal; overflow-wrap: anywhere; }
.cf-main .dl-doc .tx span { display: block; margin-top: 5px; line-height: 1.6; }
.cf-include { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: var(--ok-soft); color: var(--ink); font-size: 13.5px; line-height: 1.7; }
/* 确认页：价格锚点标签与点数余额条（引导去淘宝买点数） */
.cf-from-tag { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid #EBCF9F; color: var(--accent); font-size: 13px; font-weight: 700; vertical-align: 4px; white-space: nowrap; }
.cf-balance { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 11px 14px; border: 1px solid #EBCF9F; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.cf-balance .cb-num b { font-size: 17px; font-weight: 700; color: var(--accent); }
.cf-balance .cb-state { color: var(--muted); }
.cf-main .pl-list { margin-bottom: 14px; }
.cf-amount { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.cf-amt-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 5px 0; font-size: 14px; color: var(--ink2); }
.cf-amt-row>span { flex: 0 0 84px; color: var(--muted); font-size: 13px; }
.cf-amt-row>b { font-size: 16px; font-weight: 700; color: var(--ink); }
.cf-amt-row>i { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted2); text-align: right; }
.cf-amt-row.is-need>b { color: var(--accent); }
.cf-amt-row.is-need { border-top: 1px dashed var(--line2); margin-top: 4px; padding-top: 9px; }
.cf-invite-tip { border-top: 1px dashed var(--line2); margin-top: 4px; padding-top: 9px; }
.cf-invite-tip>b { color: var(--brand); }
.cf-actions { display: grid; gap: 10px; justify-items: stretch; }
.cf-primary { width: 100%; min-height: 52px; padding: 0 22px; font-size: 16px; font-weight: 700; }
/* 买点数是本页最需要被点到的动作：亮度与动效不能低于旁边的邀请入口（沿用 style.css 的 invite 关键帧） */
#cfPrimary.is-buy {
  position: relative; overflow: hidden;
  min-height: 58px; font-size: 17px; font-weight: 800; letter-spacing: .01em;
  border: 1px solid #FFD08A;
  background: linear-gradient(135deg, #FF9A2E 0%, #F2612A 46%, #C81E1E 100%);
  color: #fff; text-shadow: 0 1px 0 rgba(120, 20, 0, .3);
  box-shadow:
    0 18px 36px -14px rgba(226, 61, 40, .85),
    0 0 0 5px rgba(255, 154, 46, .18),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  animation: inviteGlow 2.8s var(--ease) infinite;
}
#cfPrimary.is-buy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .55) 46%, transparent 60%);
  transform: translateX(-130%);
  animation: inviteShine 3.4s var(--ease) .6s infinite;
}
#cfPrimary.is-buy:hover {
  background: linear-gradient(135deg, #FFA83C 0%, #F86A2E 46%, #D42121 100%);
  border-color: #FFE0B0; color: #fff; transform: translateY(-1px); filter: saturate(1.06);
}
#cfPrimary.is-buy:active { transform: translateY(0); filter: brightness(.96); }
#cfPrimary.is-buy[disabled] { opacity: .55; }
.cf-primary-hint { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.cf-secondary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cf-secondary .btn { min-height: 42px; }
/* 次要区的邀请入口不做呼吸与扫光，避免与主按钮抢注意力 */
.cf-secondary .btn.btn-invite { animation: none; box-shadow: 0 6px 16px -12px rgba(226, 61, 40, .6); }
.cf-secondary .btn.btn-invite::after { content: none; animation: none; }
.cf-help { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #FBFCFE; }
.cf-help summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.cf-help-note { margin: 10px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.cf-cardbox .login-redeem-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cf-cardbox .field { font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.cf-cardbox .card-redeem { flex-wrap: wrap; }
.cf-order-row { display: flex; gap: 10px; align-items: baseline; font-size: 13px; padding: 4px 0; color: var(--muted); }
.cf-order-row>span { flex: 0 0 68px; }
.cf-order-row>b { color: var(--ink2); font-weight: 600; overflow-wrap: anywhere; }
.cf-order .btn { margin-top: 10px; width: 100%; }
#cfStatus { text-align: left; margin-top: 18px; }
#cfStatus.is-warn { color: #5A0301; font-weight: 600; }
#cfStatus.is-ok { color: var(--prussian, #0A2036); font-weight: 600; }
/* 登录面板里的“忘记密码”提示复用兑换区样式 */
.login-hint.is-ok { color: var(--prussian, #0A2036); font-weight: 600; }
.login-hint.is-error { color: var(--garnet, #5A0301); font-weight: 600; }
@media (max-width: 900px) {
  .cf-body { grid-template-columns: 1fr; }
  .cf-side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  #cfPrimary.is-buy { animation: none; }
  #cfPrimary.is-buy::after { content: none; animation: none; }
}
@media (max-width: 520px) {
  .cf-amt-row>i { margin-left: 0; text-align: left; flex-basis: 100%; }
  .cf-from-tag { display: flex; margin: 8px 0 0; align-self: flex-start; }
  .cf-secondary { flex-direction: column; }
  .cf-secondary .btn { width: 100%; min-height: 46px; }
  .cf-primary { width: 100%; min-width: 0; }
}
.card-redeem { display: flex; gap: 10px; align-items: stretch; }
.card-redeem .field { flex: 1; min-width: 0; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.card-redeem .btn { flex: none; min-width: 116px; height: 46px; padding: 0 18px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.card-redeem .btn[disabled] { opacity: .7; cursor: progress; }
.login-redeem-hint.is-ok { background: #EDF3EE; border: 1px solid #CDE0CE; border-radius: 9px; padding: 8px 11px; margin-top: 10px; }
.login-redeem-hint.is-error { background: #FBEFEF; border: 1px solid #ECCFCC; border-radius: 9px; padding: 8px 11px; margin-top: 10px; }
@media (max-width: 520px) { .card-redeem { flex-direction: column; } .card-redeem .btn { width: 100%; min-width: 0; min-height: 46px; } }

/* 支付方式与卡密兑换的交互反馈 */
.payment-methods label {
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.payment-methods label:hover { border-color: #C6D2E0; background: #F7F9FB; }
.payment-methods label:has(input:checked):hover { border-color: var(--brand); background: var(--brand-soft); }
.payment-methods label:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 32, 54, .14); }

/* ---------- 2026-10-30 · 卡密购买入口（淘宝链接 + 扫码） ---------- */
.card-buy {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F7F9FB;
}
.card-buy-info { flex: 1; min-width: 0; }
.card-buy-info b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.card-buy-info p { margin: 4px 0 12px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.card-buy-link { width: 100%; }
.card-buy-wechat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; padding: 9px 11px; border: 1px solid #F0DCBF; border-radius: 9px; background: #FFF8EE; color: #7A4A16; font-size: 12.5px; line-height: 1.6; }
.card-buy-wechat[hidden] { display: none; }
.card-buy-wechat b { color: #5A0301; }
.card-buy-copy { color: var(--ink2); }
.card-buy-qr { flex: 0 0 auto; margin: 0; text-align: center; }
.card-buy-qr img { display: block; width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.card-buy-qr figcaption { margin-top: 5px; font-size: 11px; color: var(--muted2); }
#loginAccountPanel .login-redeem .card-buy { background: #fff; }
@media (max-width: 520px) {
  .card-buy { flex-direction: column; align-items: stretch; }
  .card-buy-qr { align-self: center; }
  .card-buy-link { width: 100%; justify-content: center; }
}
