/* Static package storefront, isolated from the interview and training workspaces. */
body[data-page="packages"] {
  background: radial-gradient(ellipse at 80% 0, #052753 0, transparent 55%), #020e1c;
}
body[data-page="packages"] .site-header { height: 64px; }
body[data-page="packages"] .header-inner { max-width: 1448px; padding-inline: 40px; gap: 32px; }
body[data-page="packages"] .navigation { gap: 8px; }
body[data-page="packages"] .nav-item { font-size: 14px; padding: 9px 14px; }
body[data-page="packages"] .header-actions { gap: 20px; }
.packages-workspace { max-width: 1448px; padding: 0 40px 32px; margin: auto; }
.packages-hero { position: relative; isolation: isolate; padding: 28px 0 40px; min-height: 236px; }
.packages-mountain {
  position: absolute; z-index: -1; top: 0; right: 0; width: 62%; height: 100%;
  background: url('./assets/nowoffer-mountain.png') right center / auto 270px no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
  pointer-events: none;
}
.packages-hero h1 { font-size: 44px; font-weight: 850; line-height: 1.3; letter-spacing: 1px; }
.packages-hero h1 span {
  display: inline;
  font-family: "Source Han Sans CN","Noto Sans CJK SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-weight: 900;
  background: linear-gradient(180deg, #5aebff 0%, #1ec8f6 42%, #0a8dff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.packages-hero > p { margin: 5px 0 12px; color: #b8ceef; font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.packages-hero-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.packages-free-banner {
  display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%;
  padding: 9px 14px; border: 1px solid #087bc6; border-radius: 9px;
  background: linear-gradient(110deg, #083b89, #062458 70%, #06213e);
  box-shadow: inset 0 0 10px #158aff55, 0 0 12px #058aff1a;
}
.packages-free-banner > span { font-size: 23px; }
.packages-free-banner strong { font-size: 17px; letter-spacing: 1px; }
.packages-free-banner small { font-size: 12px; color: #b9cbed; }
.packages-free-banner b { color: #39c9ff; margin-left: 20px; font-size: 24px; font-weight: 400; }
.packages-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.package-card {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  border: 1px solid #164169; border-radius: 16px; padding: 66px 20px 20px;
  background: linear-gradient(120deg, #082a4b, #041a34 65%, #03172b);
  box-shadow: inset 0 1px 0 #68baff08;
}
.package-heading { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.package-heading > div { min-width: 0; }
.package-heading h2 { font-size: 22px; margin: 0 0 4px; color: #f0f5ff; line-height: 1.4; }
.package-heading p { font-size: 14px; color: #b1c5e8; margin: 0; line-height: 1.6; }
.package-icon {
  display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px;
  border: 1px solid #1889f4; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #1565c4, #063b88 65%, #05285d);
  color: #21dfff; box-shadow: inset 0 0 10px #268bff55, 0 0 12px #007fff22;
}
.package-icon svg { width: 35px; height: 35px; stroke-width: 2; filter: drop-shadow(0 0 5px #00aeff55); }
.package-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; color: #eef2ff; min-height: 48px; }
.package-price > span { font-size: 19px; font-weight: 700; }
.package-price strong { font-size: 40px; line-height: 1.15; letter-spacing: -1px; }
.package-price small { font-size: 16px; font-weight: 600; margin-left: 5px; color: #cbd3ed; }
.package-price del { color: #8a9cc5; font-size: 15px; margin-inline: 7px; }
.package-price .package-discount { border: 1px solid #b58d43; border-radius: 4px; padding: 2px 7px; color: #f8d27a; background: #5d4a242f; font-size: 11px; white-space: nowrap; }
.package-benefits { list-style: none; padding: 16px 14px; margin: 0 0 24px; min-height: 224px; border: 1px solid #174365; border-radius: 11px; background: linear-gradient(120deg, #0a2c50, #041e38); display: flex; flex-direction: column; gap: 14px; }
.package-benefits li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; column-gap: 10px; row-gap: 3px; font-size: 14px; line-height: 1.5; color: #eef4ff; }
.package-benefits i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: linear-gradient(#3989ce, #2459a0); color: #a9e9ff; box-shadow: inset 0 1px 2px #75cfff55; }
.package-benefits small { grid-column: 2; color: #adc6e8; font-size: 12px; margin: 0; text-align: left; }
.package-button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; margin-top: auto; border-radius: 9px; font-weight: 600; font-size: 17px; letter-spacing: 1px; cursor: pointer; }
.package-button span { font-size: 23px; line-height: 1; }
.package-button-blue { border: 1px solid #55d6ff; background: linear-gradient(115deg, #50d8f9, #228eff 65%, #0754ff); color: #fff; box-shadow: inset 0 1px 4px #adf1ff88, 0 0 12px #007bff44; }
.package-button:hover { filter: brightness(1.12); }
.package-featured { border: 1px solid #22c8ff; background: radial-gradient(ellipse at 90% 0, #064fdc66, transparent 50%), linear-gradient(130deg, #05366e, #052552 65%, #03224a); box-shadow: inset 0 0 12px #189eff66, 0 0 14px #009dff44; }
.package-featured .package-price > span, .package-featured .package-price strong { color: #f9d58e; }
.package-featured .package-benefits { background: linear-gradient(110deg, #0b3563, #07274c); }
.package-featured .package-benefits i { background: linear-gradient(#1cbffb, #0872d0); color: #e8ffff; }
.package-featured .package-button { color: #03345a; background: linear-gradient(110deg, #83edff, #31a6ff 85%); }
.package-recommended { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 4px 20px; border-radius: 6px 6px 12px 12px; background: linear-gradient(110deg, #ffe1a0, #ffbc4d); color: #653b0b; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px #e8a02c33; }
.package-coach .package-icon { border-color: #864aaf; background: radial-gradient(circle at 30% 20%, #633573, #291c4b); color: #e9a2f6; }
.package-coach .package-benefits i { background: linear-gradient(#79559b, #513575); color: #eadcff; }
.package-button-outline { border: 1px solid #236eab; color: #6bddff; background: linear-gradient(110deg, #082a50, #04192e); }
.package-single { padding-top: 66px; }
.package-tabs { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; gap: 4px; padding: 3px; border: 1px solid #1b4c73; background: #041c34; border-radius: 7px; }
.package-tabs button { flex: 1; font-size: 11.5px; min-height: 28px; padding: 4px 4px; background: none; color: #aecbeb; border-radius: 4px; white-space: nowrap; text-align: center; }
.package-featured::before, .package-coach::before { position: absolute; top: 25px; left: 20px; font-size: 12px; color: #86b9ed; letter-spacing: 2px; }
.package-featured::before { content: '诊断 · 训练 · 复测'; }
.package-coach::before { content: '专项补强 · 按需加练'; color: #c3a7de; }
.package-tabs [aria-selected="true"] { color: #75e6ff; background: #0b3963; box-shadow: inset 0 0 0 1px #20649c; }
.package-comparison { margin-top: 28px; border: 1px solid #15406c; border-radius: 14px; overflow-x: auto; background: linear-gradient(120deg, #06213e, #03182e); }
.package-comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; color: #bfd1ee; }
.package-comparison th, .package-comparison td { border-right: 1px solid #194675; text-align: center; padding: 10px 16px; height: 42px; }
.package-comparison tr > :last-child { border-right: 0; }
.package-comparison thead th { height: 52px; font-weight: 600; color: #e4edfc; border-bottom: 1px solid #194675; background: #0a2b4d; }
.package-comparison thead th:nth-child(3) { color: #f7d183; }
.package-comparison tr > :first-child { text-align: left; width: 20%; padding-left: 27px; font-weight: 400; }
.package-comparison tbody tr:not(:last-child) { border-bottom: 1px solid #0c2d4d; }
.package-comparison td { color: #a7bfe1; }
.package-comparison td b { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #28bca9; color: #023e45; font-size: 11px; margin-right: 15px; }
.packages-assurance { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; border: 1px solid #15436b; border-radius: 14px; margin-top: 24px; padding: 24px; background: linear-gradient(110deg, #092448, #04192f); }
.package-promise { display: flex; gap: 16px; align-items: center; flex: 1 1 100%; min-width: 0; padding-bottom: 20px; border-bottom: 1px solid #19416a; }
.package-promise .package-icon { width: 48px; height: 48px; flex-basis: 48px; color: #a3cdff; background: linear-gradient(135deg, #214e91, #0b2b60); }
.package-promise h2 { font-size: 17px; margin: 0 0 6px; }
.package-promise p { color: #abc4e4; font-size: 13px; line-height: 1.8; margin: 0; }
.package-assurance-item { display: flex; align-items: center; gap: 12px; flex: 1; }
.package-assurance-item > svg { color: #29b9ff; width: 35px; height: 35px; padding: 7px; border-radius: 50%; background: #073061; }
.package-assurance-item strong { font-size: 14px; display: block; }
.package-assurance-item small { display: block; font-size: 12px; color: #a6bfdf; margin-top: 4px; }
.packages-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.packages-redeem-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; min-height: 38px;
  background: linear-gradient(110deg, #10335e, #0a2344); border: 1px solid #2874af;
  border-radius: 9px; color: #62d4ff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px 2px #51bdff33, 0 2px 6px #041a33aa; transition: all .2s ease;
}
.packages-redeem-btn svg { width: 17px; height: 17px; stroke: #40c8ff; }
.packages-redeem-btn:hover { filter: brightness(1.15); border-color: #4dc7ff; transform: translateY(-1px); }

/* 我的已购权益轻量状态栏 */
.packages-my-entitlements {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin: 18px 0 24px; padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(115deg, #07223e, #04172c);
  border: 1px solid #14426d; box-shadow: inset 0 1px 0 #3388df22;
}
.entitlements-header { display: flex; align-items: center; gap: 10px; }
.entitlements-icon { font-size: 20px; }
.entitlements-title strong { font-size: 14px; color: #e6f1ff; display: block; }
.entitlements-title small { font-size: 12px; color: #8ba8cd; }
.entitlements-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entitlement-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 6px; background: #061e38; border: 1px solid #194b79; font-size: 12px;
}
.pill-k { color: #9bc0e7; }
.pill-v { color: #5ad8ff; font-weight: 600; }
.pill-v.mint { color: #2bf1c7; }
.pill-v.gold { color: #f5cb74; }
.entitlements-link { font-size: 12px; color: #63cdff; white-space: nowrap; transition: color .15s; }
.entitlements-link:hover { color: #a4e6ff; text-decoration: underline; }
.entitlements-unauth-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-left: auto;
}
.unauth-desc { font-size: 13px; color: #8faed1; }
.unauth-login-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; background: linear-gradient(110deg, #1fa8ff, #0077ff);
  color: #fff; text-decoration: none; box-shadow: 0 2px 8px #0066ff44; transition: filter .15s;
}
.unauth-login-btn:hover { filter: brightness(1.15); }


/* 兑换码弹窗 */
#redeem-dialog {
  width: min(520px, calc(100% - 32px)); border: 1px solid #236fad; border-radius: 18px;
  padding: 32px 28px; background: radial-gradient(circle at 50% 0, #09335f 0, #051a33 70%);
  color: #d7e8fc; box-shadow: 0 10px 40px #00000088, inset 0 1px 2px #49a8ff55;
}
#redeem-dialog::backdrop { background: #000000ba; backdrop-filter: blur(6px); }
.redeem-dialog-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.redeem-dialog-icon { font-size: 44px; margin-bottom: 8px; filter: drop-shadow(0 2px 8px #1393ff88); }
.redeem-dialog-content h2 { font-size: 24px; margin: 0 0 8px; color: #f3f8ff; font-weight: 800; }
.redeem-dialog-content > p { font-size: 13px; color: #a5c2e5; margin: 0 0 20px; line-height: 1.6; max-width: 420px; }
.redeem-form { width: 100%; margin-bottom: 20px; }
.redeem-input-wrap { display: flex; gap: 10px; width: 100%; }
.redeem-input-wrap input {
  flex: 1; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid #1f568a;
  background: #031428; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px;
  outline: none; transition: all .2s;
}
.redeem-input-wrap input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px #38bdf82a; }
.redeem-submit-btn { min-width: 110px; height: 46px; font-size: 15px; border-radius: 10px; flex-shrink: 0; }
.redeem-msg { font-size: 12px; margin: 8px 0 0; min-height: 18px; text-align: left; }
.redeem-msg.error { color: #ff6b8b; }
.redeem-msg.success { color: #34d399; }
.redeem-notes {
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 10px;
  background: #02112488; border: 1px solid #14375b; font-size: 12px; color: #8baacc;
}
.redeem-notes h4 { margin: 0 0 6px; font-size: 12px; color: #adc7e9; }
.redeem-notes ul { margin: 0; padding-left: 18px; line-height: 1.8; }

#package-preview-dialog { width: min(440px, calc(100% - 32px)); border: 1px solid #23669e; border-radius: 16px; padding: 28px; background: #08213d; color: #d7e8fc; }
#package-preview-dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
#package-preview-dialog h2 { font-size: 22px; }
#package-preview-dialog p { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.package-dialog-close { position: absolute; top: 8px; right: 12px; background: none; color: #b5d5ef; font-size: 24px; }
@media (min-width: 1280px) {
  .package-benefits li { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .package-benefits small { grid-column: 3; text-align: right; align-self: center; }
}
@media (max-width: 1200px) {
  .packages-workspace { padding-inline: 30px; }
  .packages-hero h1 { font-size: 40px; }
  .packages-hero > p { font-size: 18px; }
  .packages-free-banner { gap: 10px; }
  .packages-free-banner strong { font-size: 15px; }
  .packages-free-banner small { font-size: 12px; }
  .packages-mountain { background-size: auto 240px; }
  .packages-grid { gap: 16px; }
  .package-card { padding-inline: 16px; }
  .package-tabs { left: 16px; right: 16px; }
  .package-heading { gap: 12px; }
  .package-heading h2 { font-size: 20px; }
  .package-heading p { font-size: 13px; }
  .package-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .package-icon svg { width: 29px; height: 29px; }
  .package-price strong { font-size: 36px; }
  .package-price del { margin-inline: 2px; font-size: 13px; }
  .package-price .package-discount { padding-inline: 5px; }
  .package-benefits { min-height: 320px; }
  .package-button { min-height: 48px; font-size: 16px; letter-spacing: 0; }
}
@media (max-width: 900px) {
  body[data-page="packages"] .header-inner { margin-inline: 14px; gap: 14px; padding: 0; }
  body[data-page="packages"] .navigation { gap: 0; }
  body[data-page="packages"] .nav-item { font-size: 12px; padding-inline: 9px; }
  .packages-workspace { padding-inline: 20px; }
  .packages-mountain { width: 70%; }
  .packages-hero h1 { font-size: 32px; white-space: normal; }
  .packages-free-banner small { display: none; }
  .packages-grid { gap: 12px; }
  .package-heading { gap: 9px; align-items: flex-start; min-height: 112px; }
  .package-heading h2 { font-size: 18px; }
  .package-heading p { font-size: 13px; }
  .package-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .package-icon svg { width: 24px; height: 24px; }
  .package-price { min-height: 76px; align-content: start; }
  .package-benefits { padding-inline: 10px; min-height: 374px; }
  .package-tabs button { font-size: 12px; }
  .package-comparison table { min-width: 780px; }
  .packages-assurance { flex-wrap: wrap; }
  .package-promise { flex-basis: 100%; }
  .package-assurance-item { flex: 1; }
}
@media (max-width: 600px) {
  body[data-page="packages"] .site-header { height: auto; }
  body[data-page="packages"] .header-inner { height: 110px; padding-bottom: 44px; }
  body[data-page="packages"] .navigation { overflow-x: auto; bottom: 7px; }
  body[data-page="packages"] .nav-item { padding-inline: 8px; font-size: 11px; }
  .packages-workspace { padding-inline: 14px; }
  .packages-hero { padding: 24px 0 36px; }
  .packages-hero h1 { font-size: 29px; }
  .packages-hero > p { font-size: 13px; line-height: 1.7; max-width: 290px; }
  .packages-mountain { width: 100%; opacity: .45; background-size: auto 210px; }
  .packages-free-banner { gap: 8px; padding: 6px 9px; }
  .packages-free-banner strong { font-size: 13px; letter-spacing: 0; }
  .packages-free-banner b { margin-left: auto; }
  .packages-grid { grid-template-columns: 1fr; gap: 22px; }
  .package-card, .package-single { padding: 66px 20px 20px; }
  .package-tabs { left: 20px; right: 20px; }
  .package-heading { gap: 16px; min-height: 72px; }
  .package-heading h2 { font-size: 21px; }
  .package-heading p { font-size: 13px; }
  .package-icon { width: 54px; height: 54px; flex-basis: 54px; }
  .package-price { min-height: 48px; }
  .package-price strong { font-size: 38px; }
  .package-benefits { min-height: 0; margin-top: 5px; padding: 16px 14px; }
  .package-benefits li { font-size: 14px; }
  .package-benefits small { font-size: 12px; }
  .package-button { min-height: 48px; font-size: 16px; }
  .package-comparison { margin-top: 24px; }
  .packages-assurance { padding: 20px; gap: 20px; }
  .package-promise { gap: 10px; align-items: flex-start; }
  .package-promise h2 { font-size: 16px; line-height: 1.6; }
  .package-promise p { font-size: 12px; line-height: 1.8; }
  .package-assurance-item { flex-direction: column; text-align: center; }
}
