/**
 * C 壳 L3/L3b IA：首屏主任务收敛
 * L3b：填分卡上移、试用微条、场景芯片压薄、选场景后藏促销
 */

/* 促销：更薄 + 可收起 */
body.ia-first-focus .top-promo--dock {
  position: relative;
  padding: 4px 28px 4px 10px;
  min-height: 0;
}

body.ia-first-focus .top-promo--dock[hidden],
body.ia-first-focus .top-promo--dock[aria-hidden="true"] {
  display: none !important;
}

body.ia-first-focus .top-promo--dock .top-promo-call {
  padding: 2px 7px;
  font-size: 0.66rem;
}

body.ia-first-focus .ia-promo-dismiss {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9a3412;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

body.ia-first-focus .ia-promo-dismiss:hover {
  opacity: 1;
  background: rgba(154, 52, 18, 0.08);
}

/* L3b：步骤条收成一行小字，省垂直空间 */
body.ia-l3b #panel-input .step-hint {
  margin: 0 0 0.35rem;
  padding: 0.2rem 0;
  font-size: 0.72rem;
  opacity: 0.75;
}

/* 试用微条：单行、表单后 */
body.ia-first-focus .family-billing-banner,
body.ia-first-focus .family-billing-banner--quiet,
body.ia-first-focus .family-billing-banner--micro {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.45rem 0 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: #f8fafc !important;
  border: 1px solid #e8e8e8;
  color: #64748b;
  font-size: 0.72rem;
  box-shadow: none;
  overflow: hidden;
}

body.ia-first-focus .family-billing-banner > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ia-first-focus .family-billing-banner strong {
  color: #334155;
  font-weight: 600;
}

body.ia-first-focus .family-billing-unlock-btn {
  flex-shrink: 0;
  font-size: 0.68rem !important;
  padding: 0.2rem 0.45rem !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #475569 !important;
}

/* 场景芯片：去黄底大卡感 */
body.ia-l3b .family-scene-chip,
body.ia-l3b .family-scene-chip--micro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: #fff !important;
  font-size: 0.74rem;
  color: #64748b;
  box-shadow: none;
}

body.ia-l3b .family-scene-chip-reset {
  font-size: 0.72rem;
  color: var(--hgv-brand, #ff5722);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

/* 坐诊承诺：折叠一行 */
body.ia-first-focus .family-cx-trust--compact,
body.ia-first-focus .family-cx-trust {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ia-first-focus .ia-trust-details {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  color: #64748b;
}

body.ia-first-focus .ia-trust-details summary {
  cursor: pointer;
  list-style: none;
  color: #64748b;
  font-weight: 500;
}

body.ia-first-focus .ia-trust-details summary::-webkit-details-marker {
  display: none;
}

body.ia-first-focus .ia-trust-details p {
  margin: 0.35rem 0 0.1rem;
  line-height: 1.45;
  color: #64748b;
  font-weight: 400;
}

/* 会诊入口芯片 */
body.ia-first-focus .family-consult-open-btn,
body.ia-first-focus .family-consult-open-btn--chip {
  display: flex;
  width: 100%;
  margin: 0.4rem 0 0.65rem;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: none;
}

body.ia-first-focus .family-consult-open-btn:hover {
  border-color: var(--hgv-brand, #ff5722);
  color: var(--hgv-brand, #ff5722);
  background: #fff7ed;
}

/* L3b 排序：有场景后填分卡尽量靠上；试用/会诊在表单后 */
body.ia-first-focus #panel-input {
  display: flex;
  flex-direction: column;
}

body.ia-l3b #panel-input .step-hint {
  order: 1;
}

body.ia-l3b #family-scene-root {
  order: 2;
  margin: 0 0 0.35rem;
  background: transparent;
  box-shadow: none;
}

body.ia-l3b[data-family-scene] #family-cx-trust {
  margin-bottom: 0.2rem;
}

body.ia-l3b #family-cx-trust {
  order: 3;
}

body.ia-l3b #panel-input .card-flat {
  order: 10;
}

body.ia-l3b #plan-form {
  order: 20;
}

body.ia-l3b #panel-input .sticky-submit {
  order: 30;
}

body.ia-l3b #family-billing-banner {
  order: 32;
}

body.ia-l3b #family-consult-open {
  order: 35;
}

body.ia-l3b #family-consult-root {
  order: 40;
  margin-top: 0.25rem;
}

/* 亲子决策台：勿因默认 order:0 顶到填分卡之前（审计 P1） */
body.ia-l3b #family-decide-host {
  order: 45;
  margin-top: 0.5rem;
}

/* 选场景后：主标题略紧 */
body.ia-l3b[data-family-scene] #panel-input .card-flat {
  margin-top: 0.15rem;
}

body.ia-l3b[data-family-scene] #panel-input .card-flat .lead {
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}
