/* =========================================================================
 * 【学习注释】plans.css —— /plans 套餐选择与权益对比页面的独立布局样式。
 * ========================================================================= */
.plans-section { background: #f4f1e7; color: #303c30; padding: 75px 0 }
.plans-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px }
.plans-heading .eyebrow { color: #625b43; margin-bottom: 10px }
.plans-heading > p { max-width: 25em; color: #55624f; font-size: 14px; line-height: 1.7 }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px }
.plan-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 3vw, 38px); border: 1px solid #d8dccd; border-radius: 20px; background: #faf9f4 }
.plan-card-featured { border-color: #9aa681; background: #e9eddf }
.plan-index { margin-bottom: 14px; color: #526047; font-size: 12px; letter-spacing: .1em }
.plan-card h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.4 }
.plan-price { margin-top: 14px; font-size: clamp(32px, 5vw, 49px); font-variant-numeric: tabular-nums; letter-spacing: -.04em }
.plan-price small { color: #526047; font-size: 13px; letter-spacing: 0 }
.plan-card ul { margin: 16px 0 24px; padding: 16px 0 0 18px; border-top: 1px solid #cdd5c4; color: #526047; font-size: 14px; line-height: 2 }
.plan-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 11px 18px; min-height: 46px; border: 1px solid #a5b096; border-radius: 30px; color: #364631; font-size: 14px }
.plan-choice:hover { background: #dce5d2 }
.plan-card-featured .plan-choice { border-color: #3b4c34; background: #3b4c34; color: #fff9e8 }
.plan-card-featured .plan-choice:hover { background: #273724 }
.plan-choice:focus-visible, .plans-note a:focus-visible { outline: 2px solid #536943; outline-offset: 4px }
.plan-checkout { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; padding: 24px clamp(20px, 3vw, 34px); border: 1px solid #d8dccd; border-radius: 16px; background: #fffdf6 }
.plan-checkout h2 { margin-bottom: 5px; font-size: 23px; font-weight: 500 }
.plan-checkout p { font-size: 14px; line-height: 1.65; color: #526047 }
.payment-state strong { color: #6c492b; font-weight: 650 }
.plans-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; color: #526047; font-size: 13px; line-height: 1.8 }
.plans-note a { margin-inline-start: .25em; color: #3b5835; text-decoration: underline; text-underline-offset: 4px }
@media (max-width: 760px) {
  .plans-heading { display: block }
  .plans-heading > p { margin-top: 12px }
}
@media (max-width: 600px) {
  .plan-checkout { display: block }
  .payment-state { margin-top: 12px }
  .plans-grid, .plans-note { grid-template-columns: 1fr; gap: 12px }
}

.plan-checkout { display: block }
.payment-state { margin-top: 14px }
.payment-state .plan-choice { width: fit-content; margin-top: 10px }
.payment-recheck { background: transparent; border: 0; text-decoration: underline; color: #364631; cursor: pointer; padding: 10px 0; font: inherit }
.payment-details:not([hidden]) { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start }
.payment-code { margin: 0 }
.payment-code img { display: block; width: 100%; height: auto; border-radius: 12px }
.payment-code figcaption { margin-top: 8px; font-size: 12px; color: #526047 }
#payment-review-form label { display: block; margin: 12px 0 6px; font-size: 13px }
#payment-trade-number { box-sizing: border-box; width: 100%; max-width: 360px; border: 1px solid #a5b096; border-radius: 8px; padding: 10px; background: #fff; color: #303c30; font: inherit }
#payment-review-form .plan-choice { margin: 10px 0; background: #3b4c34; color: #fff9e8; cursor: pointer }
#payment-review-form .plan-choice:disabled { opacity: .55; cursor: default }
@media (max-width: 600px) {
  .payment-details:not([hidden]) { grid-template-columns: minmax(0, 1fr) }
  .payment-code { max-width: 240px }
}
