/* ================= 开通帮 UI：信任蓝（深蓝顶栏 + 第一屏套餐卡） ================= */

body.ktb-site {
  background: var(--go-bg-b);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.ktb-site::before { display: none; }
.ktb-site .container { width: min(calc(100% - 40px), 1080px); max-width: 1080px; }
.ktb-home { padding-block: 0 24px; }
.kb-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 收藏 / 分享按钮：用处不大，先隐藏 */
.ktb-item-actions, .ktb-product-actions { display: none !important; }

/* ---------- 前台导航：深蓝 ---------- */
body.ktb-site:not(.ktb-admin) .ktb-nav { border-bottom-color: rgba(255, 255, 255, .08); background: #1b2559; }
body.ktb-site:not(.ktb-admin) .ktb-brand-name { color: #fff; }
body.ktb-site:not(.ktb-admin) .nav-primary .nav-item { color: #b8c1e8; font-size: .9rem; }
body.ktb-site:not(.ktb-admin) .nav-primary .nav-item:hover,
body.ktb-site:not(.ktb-admin) .nav-primary .nav-shopping { background: rgba(255, 255, 255, .08); color: #fff; }
body.ktb-site:not(.ktb-admin) .ktb-theme-toggle { border-color: rgba(255, 255, 255, .16) !important; background: transparent !important; color: #b8c1e8 !important; }
html[data-theme="dark"] body.ktb-site:not(.ktb-admin) .ktb-nav { background: #0b1030; }

/* ---------- 按钮 ---------- */
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: 0 1.4rem; border: 1px solid transparent; border-radius: 12px;
  font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.kb-btn-primary { background: var(--go-accent); color: #fff !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--go-accent) 28%, transparent); }
.kb-btn-primary:hover { background: var(--go-accent-hover); transform: translateY(-1px); }
.kb-btn-outline { border-color: #1b2559; background: transparent; color: #1b2559 !important; }
.kb-btn-outline:hover { background: #1b2559; color: #fff !important; }
html[data-theme="dark"] .kb-btn-outline { border-color: #a4acc9; color: #eef1fb !important; }
html[data-theme="dark"] .kb-btn-outline:hover { background: #eef1fb; color: #0e1226 !important; }
.kb-btn-block { width: 100%; }
.kb-btn.is-disabled { border-color: var(--go-line); background: var(--go-surface-soft); color: var(--go-muted) !important; box-shadow: none; cursor: not-allowed; }

/* ---------- 首页深蓝横幅（全屏宽） ---------- */
.kb-closed { margin: 0; padding: 10px 14px; background: #fff4dc; color: #8a5a00; font-size: .88rem; text-align: center; }
html[data-theme="dark"] .kb-closed { background: #2a2410; color: #f3c969; }
.kb-band {
  margin-inline: calc(50% - 50vw); padding: 44px calc(50vw - 50%) 96px;
  background: #1b2559; color: #fff;
}
html[data-theme="dark"] .kb-band { background: #0b1030; }
.kb-band-inner { max-width: 900px; }
.kb-nowrap { white-space: nowrap; }
.kb-eyebrow { display: inline-block; margin: 0 0 .9rem; padding: .25rem .7rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #c9d1f5; font-size: .78rem; font-weight: 600; }
.kb-band h1 { margin: 0 0 .7rem; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.kb-lead { margin: 0 0 1.1rem; color: #c9d1f5; font-size: 1rem; line-height: 1.8; }
.kb-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 0; padding: 0; color: #c9d1f5; font-size: .86rem; list-style: none; }
.kb-trust li::before { content: "\2713"; margin-right: .35rem; color: #8fa2ff; font-weight: 800; }

/* ---------- 套餐卡：压在横幅下沿 ---------- */
.kb-pricing { position: relative; margin-top: -64px; }
.kb-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kb-plans.is-single { grid-template-columns: minmax(0, 520px); }
.kb-plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 24px; border: 1px solid var(--go-line); border-radius: 16px; background: var(--go-surface-strong); box-shadow: 0 18px 44px rgba(27, 37, 89, .12); }
.kb-plan.is-featured { border: 2px solid var(--go-accent); }
.kb-plan-badge { position: absolute; top: -12px; left: 24px; padding: .22rem .7rem; border-radius: 999px; background: var(--go-accent); color: #fff; font-size: .75rem; font-weight: 700; }
.kb-plan-badge.is-muted { background: #e8ebf7; color: #1b2559; }
html[data-theme="dark"] .kb-plan-badge.is-muted { background: #262e52; color: #c9d1f5; }
.kb-plan h3 { margin: 4px 0 .25rem; font-size: 1.25rem; font-weight: 800; }
.kb-plan-sub { margin: 0 0 18px; color: var(--go-muted); font-size: .88rem; }
.kb-plan-price { margin-bottom: 22px; font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kb-plan-price small { margin-right: 2px; font-size: 1.2rem; }
.kb-plan-price span { margin-left: .3rem; color: var(--go-muted); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.kb-plan-price.is-ask { font-size: 2rem; }
.kb-plan-list { display: grid; flex: 1; gap: .7rem; align-content: start; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--go-line); list-style: none; }
.kb-plan-list li { position: relative; padding-left: 1.55rem; font-size: .9rem; line-height: 1.6; }
.kb-plan-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--go-accent); font-weight: 800; }
.kb-plan.is-pro .kb-plan-list li::before { color: #1b2559; }
html[data-theme="dark"] .kb-plan.is-pro .kb-plan-list li::before { color: #a4acc9; }
.kb-plan-note { margin: 12px 0 0; color: var(--go-muted); font-size: .8rem; text-align: center; }
.kb-pricing-note { margin: 16px 0 0; color: var(--go-muted); font-size: .86rem; text-align: center; }

/* ---------- 通用分区 ---------- */
.kb-section { margin: 0 0 64px; }
.kb-section-head { margin-bottom: 22px; }
.kb-section-head h2,
.ktb-guarantee.kb-section > h2,
.ktb-home .ktb-articles h2 { margin: 0 0 .35rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.kb-section-head p { margin: 0; color: var(--go-muted); }

/* ---------- 步骤 ---------- */
.kb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: kbstep; }
.kb-steps li { position: relative; padding: 22px; border: 1px solid var(--go-line); border-radius: 14px; background: var(--go-surface-strong); counter-increment: kbstep; }
.kb-steps li::before { content: "0" counter(kbstep); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; background: color-mix(in srgb, var(--go-accent) 12%, transparent); color: var(--go-accent); font-size: .82rem; font-weight: 800; }
.kb-steps b { display: block; margin-bottom: .35rem; font-size: 1.02rem; }
.kb-steps span { color: var(--go-muted); font-size: .88rem; line-height: 1.7; }

/* ---------- 质保（首页去掉外框） ---------- */
.ktb-guarantee.kb-section { padding: 0; border: 0; background: none; }
.ktb-guarantee.kb-section .ktb-guarantee-grid { gap: 20px; }
.ktb-guarantee.kb-section .ktb-guarantee-grid > div { padding: 22px; border-radius: 14px; }
.ktb-guarantee.kb-section ul { font-size: .9rem; }
.ktb-guarantee-yes { border-color: color-mix(in srgb, var(--go-accent) 30%, transparent) !important; background: color-mix(in srgb, var(--go-accent) 6%, var(--go-surface-strong)) !important; }
.ktb-guarantee-yes h3 { color: var(--go-accent) !important; }
.ktb-guarantee-no { background: var(--go-surface-strong) !important; }

/* ---------- 常见问题 ---------- */
.kb-faq { border-top: 1px solid var(--go-line); }
.kb-faq details { border-bottom: 1px solid var(--go-line); }
.kb-faq summary { position: relative; padding: 18px 2rem 18px 0; font-size: .98rem; font-weight: 700; list-style: none; cursor: pointer; }
.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary::after { content: "+"; position: absolute; top: 50%; right: 4px; color: var(--go-muted); font-size: 1.3rem; font-weight: 400; transform: translateY(-50%); }
.kb-faq details[open] summary::after { content: "\2212"; }
.kb-faq p { margin: 0 0 18px; color: var(--go-muted); font-size: .92rem; line-height: 1.8; }

/* ---------- 教程列表（首页去掉外框） ---------- */
.ktb-home .ktb-articles { margin-bottom: 40px; padding: 0; border: 0; background: none; }
.ktb-articles li a { border-radius: 12px; background: var(--go-surface-strong); }

/* ---------- 页脚：深蓝 ---------- */
.kb-footer { margin-top: 24px; background: #1b2559; color: #b8c1e8; font-size: .86rem; }
html[data-theme="dark"] .kb-footer { background: #0b1030; }
.kb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.kb-footer-brand b { color: #fff; font-size: 1.05rem; }
.kb-footer-brand p { margin: .5rem 0 0; }
.kb-footer-links { display: flex; flex-direction: column; gap: .45rem; }
.kb-footer-links h4 { margin: 0 0 .3rem; color: #fff; font-size: .88rem; font-weight: 700; }
.kb-footer-links a { color: #b8c1e8; text-decoration: none; }
.kb-footer-links a:hover { color: #fff; }
.kb-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 16px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }

/* ---------- 购买页、订单页：统一圆角和留白 ---------- */
.checkout-shell, .order-item, .ktb-purchase-guide, .ktb-aftersale { border-radius: 16px; }
.ktb-checkout-page, .ktb-query-page { padding-top: 24px; }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .kb-band { padding-top: 32px; padding-bottom: 84px; }
  .kb-plans, .kb-steps { grid-template-columns: 1fr; }
  .kb-plans { gap: 26px; }
  .kb-footer-grid { grid-template-columns: 1fr 1fr; }
  .kb-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ktb-site .container { width: min(calc(100% - 28px), 1080px); }
  .kb-band { padding-top: 26px; }
  .kb-band h1 { font-size: 1.6rem; }
  .kb-lead { font-size: .94rem; }
  .kb-section { margin-bottom: 48px; }
  .kb-plan { padding: 28px 20px 20px; }
  .kb-plan-price { font-size: 2.4rem; }
}

html { overflow-x: clip; }
