@charset "UTF-8";
/* 购买页 /buy（app/index/view/buy/index.html）：深色页首、系统切换、产品卡片（cdb-）。沿用首页的变量与组件（products.css / home3.css，页面 main 带 cdh cdm 类）。 */

/* ---------- 共用：深色页首 ---------- */
.cdb-hero { position: relative; padding: 52px 0 54px; text-align: center; color: #cbd5e1; background: var(--night); overflow: hidden; }
.cdb-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 18% 0%, rgba(47, 91, 255, .5), transparent 70%), radial-gradient(700px 420px at 86% 20%, rgba(123, 92, 255, .42), transparent 70%);
}
.cdb-hero::after {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.cdb-hero > .container-xxl { position: relative; z-index: 1; }
.cdb-hero .cdh-eyebrow { color: #8fb0ff; font-size: 16px; letter-spacing: 2px; }
.cdb-hero h1 { margin: 0 auto 18px; max-width: 1100px; color: #fff; font-size: clamp(36px, 4.6vw, 62px); font-weight: 800; line-height: 1.14; letter-spacing: -1.2px; }
.cdb-hero__lead { max-width: 900px; margin: 0 auto; font-size: 21.5px; color: #b6c2dc; }

/* ---------- 购买页 ---------- */
.cdb-switch { display: flex; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 30px auto 0; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.cdh .cdb-switch a { display: inline-flex; align-items: center; gap: 12px; padding: 16px 38px; border-radius: 999px; color: #cbd5e1; font-size: 21px; font-weight: 750; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.cdh .cdb-switch a:hover { color: #fff; }
.cdb-switch svg { width: 24px; height: 24px; fill: currentColor; }
.cdh[data-platform="mac"] .cdb-switch a[data-set-platform="mac"],
.cdh[data-platform="windows"] .cdb-switch a[data-set-platform="windows"] { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.cdb-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; margin: 26px 0 0; padding: 0; font-size: 17px; color: #a9b7d6; }
.cdb-pay li::before { content: "✓"; margin-right: 8px; color: #6ee7a8; font-weight: 800; }

/* 页首下面紧跟产品卡片：上边距比一般区块（88px）小，第一屏就能看到推荐卡片和购买按钮 */
.cdb-hero + .cdh-block { padding-top: 56px; }
.cdb-group { margin: 0 0 22px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cdb-group h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.cdb-group p { margin: 0; font-size: 18px; color: var(--muted); }
.cdb-group--next { margin-top: 64px; }

.cdb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cdb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cdb-card { display: flex; flex-direction: column; padding: 30px 30px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 35, 95, .05); }
.cdb-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.cdb-card__top img { flex: none; width: 60px; height: 60px; }
.cdb-card h3 { margin: 0; font-size: 25px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.cdb-card h3 small { display: block; margin-top: 3px; font-size: 15px; font-weight: 650; color: var(--muted); }
.cdb-card__what { margin: 0 0 20px; min-height: 2.9em; font-size: 18px; color: #475569; }
.cdb-opts { display: grid; gap: 10px; margin: 0 0 22px; }
.cdb-opt { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.cdb-opt:hover { border-color: #b9c8f5; }
.cdb-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.cdb-opt__name { flex: 1; font-size: 18px; font-weight: 700; color: var(--ink); }
.cdb-opt__name small { display: block; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.cdb-opt__price { text-align: right; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cdb-opt__price del { display: block; font-size: 14.5px; font-weight: 500; color: #94a3b8; }
.cdb-opt:has(input:checked) { border-color: var(--blue); background: #f3f6ff; box-shadow: 0 0 0 3px rgba(53, 103, 255, .12); }
.cdb-opt--none { cursor: default; color: #94a3b8; font-size: 16px; border-style: dashed; justify-content: center; }
.cdb-card__go { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cdb-card__go .cdh-btn { flex: 1; padding: 17px 22px; font-size: 19px; }
.cdh .cdb-card__go a.cdb-free { font-size: 17px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.cdh .cdb-card__go a.cdb-free:hover { text-decoration: underline; }
.cdb-card__fine { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

/* 推荐：全格式读写，横向大卡片 */
.cdb-card--top { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; margin-bottom: 22px; padding: 38px 40px; border: 2px solid #7b5cff; background: linear-gradient(120deg, #f7f5ff 0%, #fff 55%); box-shadow: 0 30px 80px rgba(60, 40, 160, .14); }
.cdb-card--top .cdb-card__top img { width: 76px; height: 76px; }
.cdb-card--top h3 { font-size: 31px; }
.cdb-card--top .cdb-card__what { min-height: 0; font-size: 20px; }
.cdb-flag { position: absolute; top: -15px; left: 38px; padding: 5px 16px; border-radius: 999px; background: linear-gradient(92deg, #3567ff, #7b5cff); color: #fff; font-size: 15px; font-weight: 750; letter-spacing: .5px; }
.cdb-in { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; }
.cdb-in li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; font-weight: 650; color: var(--text); }
.cdb-in img { width: 22px; height: 22px; }
.cdb-card--top .cdb-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.cdb-card--top .cdb-opt { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; }
.cdb-card--top .cdb-opt input { position: absolute; opacity: 0; }
.cdb-card--top .cdb-opt__price { text-align: left; font-size: 28px; }
.cdb-card--top .cdb-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cdb-cross { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 40px 0 0; padding: 22px 30px; border-radius: 18px; background: #eef2ff; font-size: 18.5px; color: var(--text); }
.cdb-cross b { color: var(--ink); }
.cdh .cdb-cross a { font-weight: 750; text-decoration: none; white-space: nowrap; }

.cdb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.cdb-steps li { counter-increment: step; position: relative; padding: 30px 30px 28px 96px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.cdb-steps li::before { content: counter(step); position: absolute; left: 28px; top: 28px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 23px; font-weight: 800; }
.cdb-steps h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--ink); }
.cdb-steps p { margin: 0; font-size: 17px; color: #475569; }

.cdb-card { min-width: 0; }

/* 免费的 App 一节里的方案卡片放大一点（与效果图一致） */
.cdb .cdh-plan { padding: 32px 34px; font-size: 18px; }
.cdb .cdh-plan h3 { font-size: 25px; font-weight: 800; }
.cdb .cdh-plan h3 img { width: 44px; height: 44px; }
.cdb .cdh-plan__h { font-size: 19px; }
.cdb .cdh-plan__fine { font-size: 16px; }

@media (max-width: 1100px) {
  .cdb-grid, .cdb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdb-card--top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cdb-grid, .cdb-grid--2, .cdb-steps, .cdb-card--top .cdb-opts { grid-template-columns: 1fr; }
  .cdh .cdb-switch a { padding: 12px 20px; font-size: 17px; }
  .cdb-card--top { padding: 28px 22px; }
}

/* 大屏：页头、页脚照首页的档位放大（body.cdm-home，见 home3.css），正文单独用小一档的倍数（body.cdm-buy 的 --cdb-zoom）：
   购买页是挑版本、比价格的页面，一屏要多看到几张卡片。正文容器的宽度按正文自己的倍数折算，放大后仍是 86vw，左右边缘与页头对齐。 */
@media (min-width: 1536px) {
  body.cdm-buy > main.cdm { zoom: var(--cdb-zoom, 1); }
  body.cdm-buy > main.cdm .container-xxl { max-width: max(1320px, calc(86vw / var(--cdb-zoom, 1))); }
}
@media (min-width: 2000px) { body.cdm-buy { --cdb-zoom: 1.06; } }
@media (min-width: 2240px) { body.cdm-buy { --cdb-zoom: 1.12; } }
@media (min-width: 2560px) { body.cdm-buy { --cdb-zoom: 1.2; } }
@media (min-width: 3000px) { body.cdm-buy { --cdb-zoom: 1.35; } }
@media (min-width: 3600px) { body.cdm-buy { --cdb-zoom: 1.55; } }

/* 键盘操作：推荐大卡片里的单选框是隐藏的，焦点画在整个选项上 */
.cdb-opt:has(input:focus-visible) { outline: 3px solid rgba(53, 103, 255, .45); outline-offset: 2px; }
