/* ==========================================================================
   预约诊断页 diagnosis.html 专属样式（= 脑图「客户留资」）
   只放本页独有的版式；颜色、圆角、阴影全部用 style.css 里的变量。
   选择器统一加 .dg- 前缀。图片如需写在 CSS 里，路径用 ../../img/文件名.jpg。
   ========================================================================== */

/* 横幅：遮罩左深右透（同首页首屏桌面版的做法），右边两位的脸不再压暗。
   标题固定两行（.dg-hero__line）、副标题两句各占一行（.dg-seg），字块收在左边，不擦到人的额头。
   手机另有一套（见文件末尾）：照片取景往上，脸露在上半截；字贴底排在深色渐变上 */
.dg-hero .page-hero__bg img { object-position: center 18%; }
.dg-hero .page-hero__bg::after {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .84) 0%, rgba(15, 23, 42, .74) 26%, rgba(30, 27, 75, .42) 44%, rgba(30, 27, 75, .12) 60%, rgba(30, 27, 75, 0) 76%),
    linear-gradient(180deg, rgba(15, 23, 42, .12) 0%, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, .18) 100%);
}
.dg-hero__line, .dg-seg { display: block; }

/* 1. 三亚企业免费上门诊断（首页 .booking 的渐变） ---------------------------
   去掉公共 .booking 渐变底下那层城市照片（模糊楼影显脏），只留渐变和光斑。
   桌面：左边「标题 + 说明」、右边表单；标题和说明是两块，用网格区域拼成一栏，整栏和表单上下居中 */
.dg-booking { background: var(--grad); }
.dg-booking__grid {
  grid-template-areas: ". form" "head form" "intro form" ". form";
  grid-template-rows: 1fr auto auto 1fr;
  row-gap: 0;
}
.dg-booking__head { grid-area: head; }
.dg-booking__intro { grid-area: intro; container: dg-intro / inline-size; }
.dg-booking__grid > .form-card { grid-area: form; }
.dg-booking .booking__lead { max-width: 31em; color: rgba(255, 255, 255, .92); }
/* 电话行：窄屏放不下时号码整个换到下一行，不把「直接打电话」挤成两截 */
.dg-booking .booking__phone { flex-wrap: wrap; row-gap: 2px; color: rgba(255, 255, 255, .92); }

/* 大数字：不套框，白色大字直接排在渐变上，上下两条细线、中间竖线分隔；说明字提亮 */
.dg-nums {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px; padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .24); border-bottom: 1px solid rgba(255, 255, 255, .24);
}
.dg-num { display: flex; flex-direction: column; align-items: center; padding: 2px 8px; text-align: center; }
.dg-num + .dg-num { border-left: 1px solid rgba(255, 255, 255, .22); }
.dg-num__v {
  display: inline-flex; align-items: baseline; justify-content: center; gap: 3px;
  font-family: var(--font-num); font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: #fff;
}
.dg-num__u { font-family: var(--font-sans); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.dg-num__k { margin-top: 8px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .95); }

/* 三条保障：去掉半透明框，变成白色对勾清单 */
.dg-gets { margin-top: 26px; gap: 16px; }
.dg-gets li {
  align-items: flex-start; padding: 0;
  border: 0; border-radius: 0; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.dg-gets .check-dot { width: 26px; height: 26px; margin-top: 1px; }
.dg-gets .check-dot .i { width: 14px; height: 14px; }
.dg-gets small { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .92); }

/* 行业芯片：间距收到 8px，表单变窄时 6 个也排得下一行 */
.dg-booking .chip-group { gap: 8px; }
/* 下拉框停在「请选择」时用占位灰，看着不像已经填好了 */
.dg-booking .form-select:has(option[value=""]:checked) { color: #A3ABBC; }
.dg-booking .form-select option { color: var(--c-title); }

/* 2. 其他诊断报名 -------------------------------------------------------- */
.dg-way { display: flex; flex-direction: column; overflow: hidden; }
/* 线上诊断照片：老板的头在画面上沿，裁成 16:10 时往上取景 */
.dg-way__media--online > img { object-position: 50% 12%; }
.dg-way__body { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 24px; }
.dg-way__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-way__title { margin-top: 12px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.45; color: var(--c-title); }
.dg-way__desc { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--c-muted); }
.dg-way__meta {
  display: grid; gap: 8px;
  margin-top: 16px; padding: 14px 16px;
  border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--brand-100);
  font-size: 14px; line-height: 1.5; color: var(--c-text);
}
.dg-way__meta li { display: flex; align-items: center; gap: 8px; }
.dg-way__meta .i { flex-shrink: 0; width: 17px; height: 17px; color: var(--brand); }
.dg-way__more { margin-top: auto; padding-top: 18px; font-size: 15px; }
@media (hover: hover) {
  .dg-way:hover .dg-way__more .i { transform: translateX(4px); }
}

/* 报名表：左说明（浅渐变，内容上下居中）+ 右表单，合成一张大卡 */
.dg-signup {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  margin-top: 48px; overflow: hidden;
  background: #fff; border: 1px solid var(--c-card-border); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -30px rgba(79, 70, 229, .35);
}
.dg-signup__intro {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 40px 36px;
  background: var(--grad-soft);
  border-right: 1px solid var(--brand-100);
}
.dg-signup__intro::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; z-index: -1;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .14), transparent 70%);
}
.dg-signup__title { margin-top: 20px; font-size: 24px; font-weight: 700; line-height: 1.4; color: var(--c-title); }
.dg-signup__lead { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--c-muted); }
.dg-signup__list { margin-top: 22px; font-size: 15px; color: var(--c-text); }
.dg-signup__list li::before { background-color: #fff; }
.dg-signup__phone { margin-top: 26px; font-size: 14px; color: var(--c-muted); }
.dg-signup__phone a { font-family: var(--font-num); font-size: 18px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.dg-signup__form.form-card { border: 0; border-radius: 0; box-shadow: none; padding: 36px 40px 32px; }

/* 从卡片点「报名…」过来时，被勾上的报名类型闪两下 */
@keyframes dg-flash {
  from { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); }
  to { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
}
.chip.dg-chip-flash span { animation: dg-flash 1s var(--ease) .45s 2; }

/* 响应式 ---------------------------------------------------------------- */
/* 大数字按说明栏的实际宽度排：窄于 520px（如 1280 宽时只有 456px、手机）就排 2×2，标签不折行 */
@container dg-intro (max-width: 519.98px) {
  .dg-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .dg-num:nth-child(2n + 1) { border-left: 0; }
}
@media (max-width: 1199.98px) {
  .dg-booking .chip span { padding: 0 13px; }
  .dg-way__body { padding: 22px 22px; }
  .dg-way__meta { padding: 12px 12px; }
  .dg-signup { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .dg-signup__intro { padding: 36px 30px; }
  .dg-signup__form.form-card { padding: 32px 32px 28px; }
}
/* <1024：单栏，「标题 → 表单 → 说明」，先让人填表 */
@media (max-width: 1023.98px) {
  .dg-booking__grid { grid-template-areas: "head" "form" "intro"; grid-template-rows: none; row-gap: 32px; }
  .dg-booking__head { max-width: 640px; }
  .dg-signup { grid-template-columns: minmax(0, 1fr); }
  .dg-signup__intro { border-right: 0; border-bottom: 1px solid var(--brand-100); }
  .dg-signup__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .dg-ways > .dg-way:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .dg-ways > .dg-way:last-child:nth-child(odd) > .media { width: 46%; flex-shrink: 0; aspect-ratio: auto; min-height: 260px; }
}
@media (max-width: 767.98px) {
  /* 横幅：照片框高过字块，取景贴顶、往右（两位的脸在 x≈52%–77%），脸露在上半截；
     字块贴底，padding-top 给脸留位置；遮罩上透下深，字压在深色上 */
  .dg-hero { align-items: flex-end; }
  .dg-hero .page-hero__inner { padding-top: 224px; padding-bottom: 28px; }
  .dg-hero .page-hero__bg img { object-position: 76% 0; }
  .dg-hero .page-hero__bg::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, .06) 0%, rgba(15, 23, 42, .04) 34%, rgba(17, 24, 39, .5) 44%, rgba(30, 27, 75, .86) 56%, rgba(30, 27, 75, .92) 100%);
  }
  .dg-seg--more { display: none; }
  .dg-hero .page-hero__actions { gap: 10px; }
  .dg-hero .page-hero__actions .btn { flex: 1 1 auto; padding: 0 14px; }

  .dg-booking { padding-block: 44px 56px; }
  .dg-booking__grid { row-gap: 24px; }
  .dg-nums { margin-top: 22px; padding-block: 16px; }
  .dg-num__v { font-size: 34px; }
  .dg-num__u { font-size: 15px; }
  .dg-num__k { margin-top: 4px; font-size: 13px; }
  .dg-gets { margin-top: 22px; gap: 14px; }
  .dg-gets strong { font-size: 16px; }
  .dg-gets small { font-size: 13px; }

  .dg-way__body { padding: 20px; }
  .dg-ways > .dg-way:last-child:nth-child(odd) { flex-direction: column; }
  .dg-ways > .dg-way:last-child:nth-child(odd) > .media { width: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .dg-signup { margin-top: 32px; border-radius: 18px; }
  .dg-signup__intro { padding: 26px 20px 24px; }
  .dg-signup__title { margin-top: 14px; font-size: 21px; }
  .dg-signup__list { grid-template-columns: minmax(0, 1fr); }
  .dg-signup__form.form-card { padding: 24px 20px 24px; }
}
