/* 桌面保留对比卡片；手机用紧凑可选行与统一购买入口。 */
.pricing-mobile-intro,
.mobile-purchase,
.plan-choice,
.plan-choice-label,
.plan-unit-mobile { display: none; }
.pricing-page .plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px 26px;
  border: 1px solid #343d2f;
  border-radius: 16px;
  background: #181c17;
}
.pricing-page .plan-card-featured { border-color: #7d945e; background: #20271b; }
.pricing-page .plan-card .plan-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #667b4f;
  border-radius: 5px;
  background: #2b3821;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pricing-page .plan-card .plan-name {
  margin: 22px 0;
  color: #e4ecd9;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.4px;
  overflow-wrap: anywhere;
}
.pricing-page .plan-card .plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #f1f4ed;
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pricing-page .plan-card .plan-price small {
  color: #b8c5ac;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.pricing-page .plan-card .plan-credits {
  display: block;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pricing-page .plan-card .plan-credits + .plan-credits {
  margin-bottom: 22px;
  color: #b2c0a6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}
.pricing-page .plan-card .plan-benefits {
  display: grid;
  gap: 13px;
  margin: 0 0 26px;
  padding: 21px 0 0;
  border-top: 1px solid #35402e;
  list-style: none;
  color: #c0cbb6;
  font-size: 12px;
  line-height: 1.7;
}
.pricing-page .plan-card > .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: auto;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.plan-credit-summary { margin: 0 0 20px; }
.plan-credit-summary .credit-benefit { margin: 0 0 8px; color: #d5ddcb; font-size: 13px; line-height: 1.6; }
.plan-credit-summary .credit-benefit strong { color: var(--accent); font-size: 21px; font-weight: 600; }
.plan-credit-summary .expiry-term { color: #a9b39f; font-size: 12px; line-height: 1.7; margin: 0; }
.plan-shared-benefits { display: none; }
.pricing-cost-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.pricing-cost-link:hover { color: #edf4df; }
.pricing-cost-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pricing-page .plan-video-estimate { display: grid; gap: 4px; margin: 10px 0 22px; padding: 14px 0 0; border-top: 1px solid #35402e; color: #dae5cd; font-size: 13px; line-height: 1.5; }
.plan-video-estimate strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-video-estimate > span { color: #a9b79d; font-size: 11px; line-height: 1.6; }
.pricing-page .plan-card .plan-benefits { display: none; }
.pricing-page .plan-shared-benefits { display: block; margin-top: 24px; }
.plan-shared-benefits h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: #dce5d2; letter-spacing: 0; }
.plan-shared-benefits ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 0; list-style: none; color: #b9c7ac; font-size: 12px; line-height: 1.7; }
.plan-shared-benefits > p { display: none; }
.video-credit-section { margin-top: 48px; padding-top: 36px; border-top: 1px solid #343e2e; scroll-margin-top: 96px; }
.video-credit-heading { margin-bottom: 24px; }
.video-credit-heading h2 { margin: 0 0 10px; font-size: clamp(23px, 2.4vw, 29px); line-height: 1.3; letter-spacing: -.7px; text-wrap: balance; }
.video-credit-heading p { max-width: 65ch; margin: 0; color: #aebba2; font-size: 13px; line-height: 1.75; }
.credit-cost-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid #35402f; border-radius: 12px; overflow: hidden; color: #e3ecda; background: #171c16; }
.credit-cost-table th, .credit-cost-table td { padding: 18px 16px; text-align: center; vertical-align: middle; line-height: 1.5; overflow-wrap: anywhere; }
.credit-cost-table thead th { background: #21291c; color: #bdcbb0; font-size: 12px; font-weight: 500; }
.credit-cost-table tr > :first-child { text-align: left; padding-left: 24px; }
.credit-cost-table tbody th { font-size: 14px; font-weight: 500; }
.credit-cost-table tbody td { border-left: 1px solid #ffffff0a; }
.credit-cost-table tbody tr + tr > * { border-top: 1px solid #35402f; }
.credit-cost-table td strong { display: block; color: var(--accent); font-size: 23px; font-weight: 500; font-variant-numeric: tabular-nums; }
.credit-cost-table td span { display: block; margin-top: 3px; color: #a9b79c; font-size: 11px; }
.credit-cost-note, .credit-cost-status { color: #aebba2; font-size: 12px; line-height: 1.8; margin: 14px 0 0; }
.credit-cost-state { padding: 24px; border: 1px solid #35402f; border-radius: 12px; background: #171c16; color: #b9c6ae; font-size: 13px; line-height: 1.7; }
.credit-cost-state p { margin: 0 0 12px; }
.credit-cost-state p:last-child { margin-bottom: 0; }
.credit-cost-state .button { min-height: 44px; }
.credit-cost-table .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pack .pack-credit { font-size: 13px; color: #c3cdb9; }
.pack-credit small { font-size: 12px; }
.pack .pack-price { color: #f1f4ed; font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.pack-price small { display: block; color: #a9b39f; font-size: 11px; line-height: 1.7; margin-top: 4px; }

@media (min-width: 761px) {
  .pricing-page .pricing-grid:has(> .plan-card:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1280px) {
  .pricing-page .pricing-grid:has(> .plan-card:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .pricing-page { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 34px max(16px, env(safe-area-inset-left, 0px)); }
  .pricing-page .pricing-heading { padding: 0; margin-bottom: 0; max-width: none; }
  .pricing-heading > .eyebrow { display: none; }
  .pricing-page .pricing-heading h1 { font-size: 29px; letter-spacing: -1px; line-height: 1.25; margin: 0 0 12px; }
  .pricing-page .pricing-heading > p { font-size: 13px; line-height: 1.7; margin: 0; color: #b6c1ac; }
  .pricing-page .plan-toolbar { margin: 22px 0; display: block; }
  .pricing-page .billing-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; background: #181d17; border-color: #35402e; }
  .pricing-page .billing-switch button { min-height: 44px; padding: 10px; font-size: 14px; color: #b7c2ac; }
  .pricing-page .billing-switch .active { color: #e8f1df; background: #303e26; }
  .pricing-page .pricing-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
  .pricing-page .price-plan { position: relative; padding: 21px 20px; border-radius: 12px; background: #181c17; border-color: #3a4432; }
  .pricing-page .price-plan.featured { order: 0; background: #20271b; border-color: #7d945e; }
  .pricing-page .plan-top { min-height: 0; }
  .pricing-page .plan-number { display: none; }
  .pricing-page .recommended { position: absolute; top: 21px; right: 20px; font-size: 11px; padding: 4px 8px; }
  .pricing-page .price-plan h2 { font-size: 18px; line-height: 1.3; margin: 0 0 18px; padding-right: 60px; letter-spacing: 0; overflow-wrap: anywhere; }
  .pricing-page .price { gap: 8px; }
  .pricing-page .price strong { font-size: 42px; letter-spacing: -1.5px; font-weight: 600; }
  .pricing-page .price > span { color: #bec9b3; font-size: 13px; }
  .pricing-page .billing-term { margin: 10px 0 18px; font-size: 12px; line-height: 1.6; min-height: 0; color: #b3c0a7; }
  .pricing-page .plan-credit-summary { margin: 0 0 18px; padding: 13px 14px; background: #242d1e; border-radius: 8px; }
  .pricing-page .plan-credit-summary .credit-benefit { margin: 0 0 6px; font-size: 12px; line-height: 1.4; color: #cfdbc3; }
  .pricing-page .credit-benefit strong { font-size: 23px; font-variant-numeric: tabular-nums; }
  .pricing-page .plan-credit-summary .expiry-term { font-size: 12px; line-height: 1.6; color: #b5c2a9; }
  .pricing-page .price-plan > .button { min-height: 48px; justify-content: center; font-size: 14px; white-space: nowrap; }
  .pricing-page .plan-benefits { display: none; }
  .pricing-page .pricing-note { margin: 16px 0 0; font-size: 12px; color: #b0bba5; line-height: 1.8; }
  .pricing-page .plan-shared-benefits { display: block; margin-top: 24px; }
  .plan-shared-benefits h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: #dce5d2; letter-spacing: 0; }
  .plan-shared-benefits ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; color: #b9c7ac; font-size: 12px; line-height: 1.7; }
  .plan-shared-benefits > p { margin: 16px 0 0; font-size: 12px; line-height: 1.8; color: #b2bea6; }
  .plan-shared-benefits a { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
  .pricing-page .credit-packs { display: block; margin-top: 28px; padding: 26px 0 12px; border-color: #343e2d; }
  .credit-packs > div > .eyebrow { display: none; }
  .pricing-page .credit-packs h2 { margin: 0 0 10px; font-size: 21px; }
  .pricing-page .credit-packs p { font-size: 12px; line-height: 1.8; color: #b2bea6; }
  .pricing-page .pack-options { gap: 0; margin-top: 14px; }
  .pricing-page .pack { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 17px 0; }
  .pricing-page .pack + .pack { border-top: 1px solid #2c3526; }
  .pricing-page .pack > .pack-info { gap: 5px; min-width: 0; }
  .pricing-page .pack .pack-name { font-size: 12px; color: #b6c1ab; font-weight: 400; overflow-wrap: anywhere; }
  .pricing-page .pack .pack-credit { font-size: 22px; line-height: 1.3; color: #e4ecd9; font-weight: 500; }
  .pricing-page .pack-credit small { font-size: 12px; font-weight: 400; color: #b5c1a9; }
  .pricing-page .pack .pack-price { font-size: 21px; line-height: 1.3; font-weight: 500; }
  .pricing-page .pack-price small { font-size: 11px; font-weight: 400; }
  .pricing-page .pack .button { min-height: 46px; min-width: 82px; padding: 11px 12px; font-size: 12px; justify-content: center; white-space: nowrap; }
  .pricing-page .pack .button[aria-busy="true"] { grid-column: 1 / -1; width: 100%; }
  .pricing-page .pricing-faq { display: block; margin-top: 24px; }
  .pricing-faq > div > .eyebrow { display: none; }
  .pricing-page .pricing-faq h2 { margin: 0 0 18px; font-size: 21px; max-width: none; }
  .pricing-page .pricing-faq summary { min-height: 56px; padding: 18px 0; font-size: 13px; gap: 12px; }
  .pricing-page .pricing-faq details p { color: #b1bba9; font-size: 13px; line-height: 1.85; margin-right: 0; }
  .pricing-page .pricing-faq summary svg { flex-shrink: 0; transition: transform .15s ease; }
  .pricing-page .pricing-faq details[open] summary svg { transform: rotate(180deg); }
  .pricing-page .empty-state { padding: 28px 16px; }
  .pricing-page .empty-state h2 { font-size: 19px; line-height: 1.5; }
  .pricing-page .empty-state p { font-size: 13px; line-height: 1.8; }
  .pricing-page .empty-state .button { min-height: 44px; }
  /* 新积分包主卡片与旧模板并存，购买入口继续使用现有 data-buy。 */
  .pricing-page .plan-toolbar:empty { display: none; margin: 0; }
  .pricing-page .pricing-mobile-intro { display: block; margin: 0 0 18px; color: #b6c1ac; font-size: 12px; line-height: 1.6; }
  .pricing-page .pricing-grid { gap: 10px; }
  .pricing-page .plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 3px;
    align-content: center;
    min-width: 0;
    min-height: 78px;
    padding: 12px 12px 12px 40px;
    border: 1px solid #3a4432;
    border-radius: 9px;
    background: #181c17;
  }
  .pricing-page .plan-card-featured { border-color: #526444; background: #181c17; }
  .pricing-page .plan-card:has(.plan-choice:checked) { border-color: var(--accent); background: #252e1e; }
  .pricing-page .plan-card:has(.plan-choice:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
  .pricing-page .plan-choice {
    position: absolute;
    z-index: 2;
    display: block;
    inset: 50% auto auto 13px;
    width: 17px;
    height: 17px;
    margin: 0;
    transform: translateY(-50%);
    accent-color: var(--accent);
    cursor: pointer;
  }
  .pricing-page .plan-choice-label { position: absolute; z-index: 1; display: block; inset: 0; border-radius: inherit; cursor: pointer; touch-action: manipulation; }
  .plan-choice-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pricing-page .plan-card:has(.plan-choice:disabled) .plan-choice-label { cursor: wait; }
  .pricing-page .plan-card .plan-name {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 0;
    color: #e4ecd9;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .pricing-page .plan-card .plan-badge {
    position: absolute;
    inset: -7px auto auto 39px;
    max-width: none;
    margin: 0;
    padding: 0 5px;
    border: 1px solid #667b4f;
    border-radius: 3px;
    background: #2b3821;
    color: var(--accent);
    font-size: 9px;
    line-height: 1.5;
  }
  .pricing-page .plan-card .plan-benefits { display: none; }
  .pricing-page .plan-card .plan-price {
    grid-column: 2;
    grid-row: 1;
    display: block;
    margin: 0;
    color: #f1f4ed;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.6px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .pricing-page .plan-card .plan-price small { display: none; }
  .pricing-page .plan-card .plan-credits {
    grid-column: 1;
    grid-row: 2;
    display: block;
    margin: 0;
    color: var(--accent);
    font-size: clamp(15px, 4.3vw, 17px);
    font-weight: 500;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .pricing-page .plan-card .plan-credits + .plan-credits {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0;
    color: #b2c0a6;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
  }
  .pricing-page .plan-card .plan-video-estimate { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 7px 0 0; padding: 7px 0 0; font-size: 12px; line-height: 1.5; }
  .pricing-page .plan-video-estimate > span { font-size: 10px; }
  .plan-unit-desktop { display: none; }
  .plan-unit-mobile { display: inline; }
  .pricing-page .plan-card > .button { display: none; }
  .pricing-page .mobile-purchase {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 0 0;
    border-top: 1px solid #35402e;
  }
  .mobile-purchase-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
  .mobile-purchase-summary > span { min-width: 0; }
  .mobile-purchase-summary small { display: block; margin-bottom: 3px; color: #aebca2; font-size: 11px; line-height: 1.4; }
  .mobile-purchase-summary strong { display: block; color: #e4ecd9; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
  .mobile-purchase-summary b { flex-shrink: 0; color: #f1f4ed; font-size: 24px; line-height: 1.3; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
  .pricing-page .mobile-purchase > .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    touch-action: manipulation;
  }
  .pricing-page .mobile-purchase > .button:focus-visible { outline-offset: 3px; }
  .pricing-page .plan-shared-benefits { margin-top: 20px; }
  .pricing-cost-link { font-size: 12px; min-height: 40px; }
  .video-credit-section { margin-top: 32px; padding-top: 28px; scroll-margin-top: 80px; }
  .video-credit-heading { margin-bottom: 18px; }
  .video-credit-heading h2 { font-size: 22px; letter-spacing: -.5px; }
  .video-credit-heading p { font-size: 12px; }
  .credit-cost-table { border-radius: 9px; }
  .credit-cost-table th, .credit-cost-table td { padding: 14px 6px; }
  .credit-cost-table tr > :first-child { padding-left: 12px; }
  .credit-cost-table thead th { font-size: 11px; }
  .credit-cost-table thead th:first-child { padding-inline: 6px; white-space: nowrap; overflow-wrap: normal; }
  .credit-cost-table tbody th { font-size: 12px; }
  .credit-cost-table td strong { font-size: 18px; }
  .credit-cost-table td span { font-size: 9px; }
  .credit-cost-note { font-size: 11px; }
}
@media (max-width: 359px) {
  .pricing-page .pack { gap: 8px; }
  .pricing-page .pack .pack-credit { font-size: 20px; }
  .pricing-page .pack .pack-price { font-size: 19px; }
  .pricing-page .pack .button { min-width: 76px; padding-inline: 9px; }
  .pricing-page .plan-card .plan-price { font-size: 22px; }
  .pricing-page .plan-shared-benefits ul { grid-template-columns: minmax(0, 1fr); gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-page .pricing-faq summary svg { transition: none; }
}
