/* ==========================================================================
 * 畅学村 课程价格 v4（2026-11-16，按课程价格版式图）
 * Banner 沿用原样式；以下为：计算器（左选项卡 + 右深色结果卡 + 整宽年历卡）、两种买法、底部体验带。
 * 加载顺序：main → v3 → v7 → polish → pricing-v4（本文件最后）
 * ========================================================================== */

.p4-wrap { max-width: 1022px; } /* 958 内容 + 两侧 32 */

/* ---------- 计算器 ---------- */
.v3-sheet.p4-sheet { background: #F6F7FA; border-radius: 0; margin-top: 0; box-shadow: none; }
.p4-calc-sec { padding: 80px 0 32px; }
.p4-calc-sec .v3-h2 { margin-bottom: 12px; }
.p4-lead { margin: 0 0 28px; text-align: center; font-size: 14px; color: #5A6372; }
.p4-calc__top { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }

.p4-opts { padding: 26px 24px 22px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.04); }
.p4-opts__group + .p4-opts__group { margin-top: 26px; }
.p4-opts__k { display: flex; align-items: baseline; gap: 6px; margin: 0 0 16px; font-size: 15px; font-weight: 800; color: #0E1A2B; }
.p4-opts__k b { font-weight: 800; }
.p4-opts__row { display: flex; flex-wrap: wrap; gap: 8px; }
.p4-opt {
  min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
  background: #F3F4F7; color: #3D4A5C; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.p4-opt:hover { background: #E9EBF0; }
.p4-opt[aria-pressed="true"] { background: linear-gradient(180deg, #FFC27A 0%, #F59B3D 100%); color: #fff; font-weight: 800; box-shadow: 0 4px 10px rgba(245, 155, 61, 0.3); }
.p4-opt:focus-visible { outline: 2px solid #F59B3D; outline-offset: 2px; }
.p4-opts__note { margin: 26px 0 0; font-size: 11px; color: #7A8494; }
.p4-opts__note--warn { margin-top: 6px; color: #B4570C; }

.p4-result { display: flex; flex-direction: column; padding: 24px 22px 20px; border-radius: 12px; background: #0B1424; color: #fff; box-shadow: 0 18px 40px rgba(11, 20, 36, 0.22); }
.p4-result__k { margin: 0 0 14px; font-size: 14px; font-weight: 800; }
.p4-result__sum { margin: 0 0 14px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.p4-result__total { margin: 0 0 12px; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.p4-result__total b {
  font-family: Outfit, Inter, var(--font, sans-serif); font-size: clamp(44px, 4.4vw, 60px); font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, #FFD08A 0%, #F59B3D 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p4-result__total .v3-tbd { display: block; font-size: 15px; font-weight: 700; color: #FFC46B; line-height: 1.5; }
.p4-result__line { margin: 0 0 16px; font-size: 12px; color: rgba(255, 255, 255, 0.86); }
.p4-result__tk { margin: 0 0 6px; font-size: 11px; color: rgba(255, 255, 255, 0.64); }
.p4-result__hours { margin: 0 0 20px; font-size: 24px; font-weight: 900; color: #FFB54C; }
.p4-result__hours b { font-weight: 900; font-variant-numeric: tabular-nums; }
.p4-result__cta.v3-btn { width: 100%; justify-content: center; min-height: 44px; margin-top: auto; font-size: 13px; }

.p4-year { margin-top: 18px; padding: 24px 22px 18px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.04); }
.p4-year__t { margin: 0 0 16px; font-size: 16px; font-weight: 800; color: #0E1A2B; }
.p4-year .v3-year { padding: 18px 16px 16px; border-radius: 14px; background: #121B2A; }
.p4-year .v3-year__months { margin-bottom: 10px; }
.p4-year .v3-year__months span { font-size: 12px; }
.p4-year .v3-year__grid, .p4-year .v3-year__wk { gap: 4px; }
.p4-year .v3-year__wk i { border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.p4-year .v3-year__wk i.is-wk { background: rgba(255, 196, 107, 0.14); }
.p4-year .v3-year__wk i.is-on { background: radial-gradient(circle at 35% 35%, #FFE0A8, #F9973E 60%, #F2711C); box-shadow: 0 0 6px rgba(249, 151, 62, 0.75); }
.p4-year__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 16px 0 0; font-size: 14px; color: #5A6372; }
.p4-year__legend span { display: inline-flex; align-items: center; gap: 6px; }
.p4-year__legend i { display: block; width: 14px; height: 14px; border-radius: 3px; background: #E3E6EC; }
.p4-year__legend i.is-on { background: radial-gradient(circle at 35% 35%, #FFE0A8, #F9973E 60%, #F2711C); box-shadow: 0 0 6px rgba(249, 151, 62, 0.6); }
.p4-year__legend i.is-wk { background: #FBE3BE; }
.p4-year__note { margin: 14px 0 0; text-align: center; font-size: 11px; color: #7A8494; }

/* ---------- 两种买法 ---------- */
.p4-plans-sec { padding: 72px 0 56px; background: #fff; }
.p4-plans-sec .v3-h2 { margin-bottom: 26px; }
.p4-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.p4-plan {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 312px; padding: 30px 24px 30px; border-radius: 12px;
}
.p4-plan--king { background: linear-gradient(135deg, #FFF8EF 0%, #FFE9D2 100%); }
.p4-plan--coin { background: linear-gradient(135deg, #FFFBF6 0%, #FFF1E2 100%); }
.p4-plan__art { position: absolute; top: 18px; right: 22px; width: 120px; height: auto; filter: drop-shadow(0 10px 16px rgba(220, 140, 40, 0.3)); pointer-events: none; }
.p4-plan__when { margin: 0 0 22px; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); font-size: 11px; font-weight: 700; color: #E0731F; }
.p4-plan__name { margin: 0 0 18px; font-size: 22px; font-weight: 900; color: #0E1A2B; }
.p4-plan__price { margin: 0 0 18px; font-size: 24px; font-weight: 900; color: #F2711C; }
.p4-plan__line { max-width: 34em; margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: #5A6372; }
.p4-plan__btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 180px; min-height: 40px; margin-top: auto; padding: 0 28px;
  border-radius: 999px; background: linear-gradient(180deg, #FFC27A 0%, #F59B3D 100%); box-shadow: 0 6px 14px rgba(245, 155, 61, 0.3);
  font-size: 13px; font-weight: 800; color: #3A1D04; text-decoration: none;
}
.p4-plan__btn--navy { background: #0E1A2B; box-shadow: none; color: #fff; }
.p4-plan__btn:hover { filter: brightness(1.05); }

/* ---------- 不是试听价：暖色底横条 ---------- */
.p4-exp-sec { padding: 64px 0 72px; background: #FFF8EE; }
.p4-exp-sec .v3-h2 { margin-bottom: 18px; }
.p4-exp__text { max-width: 54em; margin: 0 auto 24px; font-size: 14px; color: #5A6372; }
.p4-exp__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.p4-exp__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; min-height: 44px; padding: 0 28px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; }
.p4-exp__btn--white { background: #fff; color: #0E1A2B; box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06); }
.p4-exp__btn--white:hover { box-shadow: 0 0 0 1.5px #0E1A2B; }

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 860px) {
  .p4-calc__top, .p4-plans { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .p4-calc-sec { padding: 52px 0 24px; }
  .p4-opts, .p4-result, .p4-year { padding: 20px 16px; }
  .p4-year .v3-year { padding: 10px 8px; }
  .p4-year .v3-year__grid, .p4-year .v3-year__wk { gap: 1.5px; }
  .p4-year .v3-year__months span { font-size: 9px; }
  .p4-year__legend { font-size: 12px; }
  .p4-plan { min-height: 0; padding: 24px 18px; }
  .p4-plan__art { width: 88px; top: 14px; right: 12px; }
  .p4-plan__btn, .p4-exp__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .p4-opt { transition: none; }
}
