/* =========================================================================
   本站补充样式
   -------------------------------------------------------------------------
   styles.css 是 1.1 的原样副本，保持不动以便日后对照它的更新。
   这里只放「1.1 没有、但我们新增的结构」所需的样式：
     · 七环节漏斗条（来自 1.0 的问题认知区块）
     · 服务面板容器（1.1 原本只有单个 panel，我们渲染成 4 个静态面板）
     · 区块结论句
   ========================================================================= */

/* ------------------------------------------------ 七环节漏斗条 ---- */

.funnel-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.funnel-strip span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.funnel-strip b {
  flex: 1;
  min-width: 12px;
  max-width: 42px;
  height: 1px;
  background: var(--line);
  position: relative;
}

.funnel-strip b::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--orange);
  border-top: 1px solid var(--orange);
  transform: rotate(45deg);
}

@media (max-width: 850px) {
  .funnel-strip b {
    max-width: 20px;
  }
}

@media (max-width: 600px) {
  .funnel-strip {
    gap: 4px;
    margin-top: 24px;
  }
  .funnel-strip span {
    font-size: 12.5px;
  }
  .funnel-strip b {
    max-width: 10px;
  }
}

/* -------------------------------------------- 服务面板容器 ---- */

/* 1.1 原本是「一个 panel 由 JS 换内容」，我们改成 4 个静态 panel 由 CSS 切换显示，
   这样四步内容都在 HTML 里，搜索引擎与无 JS 环境都能读到 */
.service-panels {
  position: relative;
}

.service-panels .service-panel[hidden] {
  display: none;
}

.service-question {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------ 区块结论句 ---- */

.section-conclusion {
  max-width: var(--max);
  margin: 0 auto;
  width: calc(100% - 96px);
  padding-top: 26px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .section-conclusion {
    width: calc(100% - 64px);
  }
}

@media (max-width: 600px) {
  .section-conclusion {
    width: calc(100% - 40px);
    margin-top: 32px;
    font-size: 16px;
  }
}

/* ------------------------------------------------ 页脚联系方式 ---- */

.footer-contact {
  margin-top: 14px;
  font-size: 14px;
  color: #b8cbd3;
}

.footer-contact a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------ Header 滚动态 ---- */

.header.is-scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 占位符样式（公司主体等未确认时使用） */
.placeholder-value {
  display: inline-block;
  padding: 2px 8px;
  font-size: 13px;
  color: #8a6d1f;
  background: #fdf6e7;
  border: 1px dashed #d9a441;
  border-radius: 2px;
}

/* =========================================================================
   诊断表单补充
   -------------------------------------------------------------------------
   1.1 的表单是 7 个字段的简单结构，我们换成跃港后端的 18 个字段，
   多出这些类需要补样式。
   ========================================================================= */

/* 必填 / 选填标记 */
.field-req,
.field-opt {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  vertical-align: 2px;
}

/* 选项内的主文与说明 */
.choice-t {
  display: block;
}

.choice-d {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

/* 两个选项时并排更紧凑 */
.choices-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .choices-2 {
    grid-template-columns: 1fr;
  }
}

/* 字段级补充说明（如「报告通过邮件发送」） */
.field-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* 分步标题（1.1 用的是 h2，我们改用 legend 保持语义） */
.form-step-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  margin-bottom: 9px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.form-step-title .step-no {
  font: italic 17px var(--serif);
  color: var(--orange);
}

/* 提交按钮下方说明 */
.form-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* 顶部说明里的强调句 */
.intro-emphasis {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--mist);
  border-left: 3px solid var(--orange);
}

/* 成功状态的结果纸张 */
.result-paper {
  max-width: 760px;
}

.result-paper .result-actions .btn {
  min-width: auto;
}

/* 提交失败等状态文案 */
.form-status.is-error {
  color: #b5321c;
}

/* =========================================================================
   行业方案的静态化补充
   -------------------------------------------------------------------------
   1.1 原本把四个行业的内容放在 JS 里、切换时替换 #industry-panel 的内部。
   我们改成构建时渲染四份，脚本只切换显示，所以需要这几个容器类。
   ========================================================================= */

.industry-intro-item[hidden],
.industry-work-item[hidden] {
  display: none;
}

/* 介绍区：1.1 的 .industry-intro 是普通块，子项按原样排布即可 */
.industry-intro-item .big-index {
  float: right;
}

/* 三件事列表上方的说明 */
.industry-work-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* 三件事：1.1 的 .path-flow>div 依赖父级 grid，这里显式声明保证不塌陷 */
.industry-work-item .path-flow > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.industry-work-item .path-flow > div:first-child {
  border-top: 0;
}

.industry-work-item .path-no {
  font: italic 17px var(--serif);
  color: var(--orange);
}

.industry-work-item .path-flow strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.industry-work-item .path-flow p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .industry-work-item .path-flow > div {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }
}

/* 需要准备的资料 */
.industry-prepare {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .industry-intro-item .big-index {
    float: none;
    display: block;
    margin-bottom: 8px;
  }
}

/* =========================================================================
   修复 <picture> 破坏 1.1 的 .hero-art>img 选择器
   -------------------------------------------------------------------------
   为了让 Hero 用上多尺寸 WebP，把 img 包进了 <picture>。
   但 1.1 的定位规则写的是 `.hero-art>img`（直接子元素），
   包一层之后选择器不再匹配 → object-fit:cover 失效 → 图片被拉伸变形。
   这里把 picture 与内部 img 的定位补回来。
   ========================================================================= */

.hero-art > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-art > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
}

/* =========================================================================
   修复 1.1 的一处可用性缺陷
   -------------------------------------------------------------------------
   1.1 在 @media(prefers-reduced-motion:reduce) 里把 .industry-visual 整体
   display:none。系统开启「减少动效」的用户因此完全看不到行业场景图，
   而图片承载的是信息，不是装饰 —— 不应该被一起关掉。
   这里改成只显示当前那一张，不播切换过渡。
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  .industry-visual {
    display: block;
  }

  .industry-visual img {
    display: none;
  }

  .industry-visual img.is-current {
    display: block;
  }
}

/* =========================================================================
   无 JS 降级
   -------------------------------------------------------------------------
   JS 未就绪时四组表单同时显示、直接给出提交按钮，
   避免用户点到没有反应的「下一步」。
   ========================================================================= */

.no-js .form-step[hidden] {
  display: block;
}

.no-js .stepper {
  display: none;
}

.no-js .form-nav #stepPrev,
.no-js .form-nav #stepNext {
  display: none;
}

.no-js .form-nav #submitBtn {
  display: inline-flex;
  margin-left: auto;
}

