/* ==========================================================================
   底部 CTA 区块（仅首页 #quote）
   --------------------------------------------------------------------------
   独立于 home.css，避免与历史 .quote-* 规则混杂、层层覆盖。
   所有选择器统一以 #quote 开头，用 ID 提升优先级，不依赖 !important。
   修改此区块样式，只需要看这一个文件。
   ========================================================================== */

#quote.quote-section {
  background: #fafafa;
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

#quote .quote-layout {
  /* 该元素同时是 .container，宽度由 .container 统一负责，这里只做内部排版 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 56px;
  align-items: center;
}

/* ---------------- 左侧文案 ---------------- */

#quote .quote-copy {
  max-width: 660px;
}

#quote .quote-copy .eyebrow {
  font-size: 14px;
  letter-spacing: 1.4px;
  color: #9ca1a7;
  margin-bottom: 16px;
}

#quote .quote-copy h2 {
  font-size: 34px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.3px;
}

#quote .quote-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--secondary);
}

/* 打消顾虑的要点：两列短句，配合左侧大标题做「成交前的最后一层说服」 */
#quote .quote-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

#quote .quote-points li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--secondary);
}

/* 用纯 CSS 勾选图标，不额外加载图片 */
#quote .quote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px rgba(243, 106, 33, 0.35);
}

#quote .quote-points li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--orange);
  border-bottom: 1.5px solid var(--orange);
  transform: rotate(-45deg);
}

/* 电话与微信二维码同一行 */
#quote .quote-contact {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 34px;
}

#quote .quote-phone {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  transition: color 0.18s;
}

#quote .quote-phone:hover {
  color: var(--orange);
}

#quote .quote-wx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: var(--secondary);
}

#quote .quote-wx img {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

#quote .quote-wx:hover {
  color: var(--orange);
}

/* 不允许被 flex 压缩，否则窄屏下会缩成一字一行 */
#quote .quote-wx span {
  flex-shrink: 0;
}

/* ---------------- 右侧表单 ---------------- */

#quote .quote-form {
  padding: 26px 28px 24px;
  background: #fff;
  border: 1px solid #ebecee;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 22, 25, 0.04);
}

#quote .quote-form h3 {
  font-size: 20px;
  font-weight: 600;
}

#quote .quote-form > label,
#quote .form-field > label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7076;
}

/* 拍摄类型 + 联系电话 两列并排，压缩表单高度 */
#quote .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

#quote .form-field {
  min-width: 0;
}

#quote .quote-form label > span {
  font-weight: 400;
  color: #9ca1a7;
}

#quote .quote-form em {
  margin-left: 2px;
  font-size: inherit;
  font-style: normal;
  color: var(--orange);
}

#quote .quote-form input:not([type=checkbox]),
#quote .quote-form select,
#quote .quote-form textarea {
  width: 100%;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

#quote .quote-form input:not([type=checkbox]),
#quote .quote-form select {
  height: 44px;
}

#quote .quote-form textarea {
  min-height: 64px;
  padding: 10px 12px;
  resize: vertical;
}

#quote .quote-form input:not([type=checkbox]):focus,
#quote .quote-form select:focus,
#quote .quote-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 106, 33, 0.12);
}

/* 验证码：输入框收窄，图片与「换一张」同一行 */
#quote .captcha-row {
  display: flex;
  margin-top: 18px;
  gap: 10px;
  align-items: center;
}

#quote .captcha-row input {
  flex: 0 1 150px;
  min-width: 0;
}

#quote .captcha-row img {
  flex-shrink: 0;
  width: 100px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
  cursor: pointer;
}

#quote .captcha-row .captcha-refresh {
  flex-shrink: 0;
  margin: 0;
  font-size: 14px;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#quote .captcha-refresh:hover {
  color: var(--orange);
}

/* 隐私同意 */
#quote .quote-form .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--secondary);
}

#quote .consent input {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--orange);
}

#quote .inline-link {
  padding: 0;
  font-size: inherit;
  color: #a44314;
  text-decoration: underline;
}

/* 提交按钮：深色克制，悬停转为品牌橙 */
#quote .quote-form .submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  transition: background 0.18s;
}

#quote .quote-form .submit:hover {
  background: var(--orange);
}

#quote .quote-form .submit span {
  font-size: 18px;
}

/* 校验提示 */
#quote .field-error {
  margin: 6px 0 0;
  font-size: 14px;
  color: #c0392b;
}

#quote .field-error:empty {
  display: none;
}

#quote .form-notice {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: #737982;
}

#quote .form-notice.active {
  color: #a44314;
}

/* ---------------- 响应式 ---------------- */

/* 宽屏：放大主标题，避免大面积留白下文字显得单薄 */
@media (min-width: 1600px) {
  #quote .quote-layout {
    grid-template-columns: minmax(0, 1fr) 640px;
  }

  #quote .quote-copy h2 {
    font-size: 40px;
  }

  #quote .quote-phone {
    font-size: 30px;
  }
}

@media (max-width: 1199px) {
  #quote.quote-section {
    padding: 72px 0;
  }

  #quote .quote-layout {
    grid-template-columns: minmax(0, 1fr) 1fr;
    gap: 40px;
  }

  #quote .quote-copy h2 {
    font-size: 30px;
  }

  #quote .quote-contact {
    gap: 24px;
    margin-top: 26px;
  }

  #quote .quote-phone {
    font-size: 23px;
  }

  #quote .quote-form {
    padding: 26px 24px;
  }
}

@media (max-width: 767px) {
  #quote.quote-section {
    padding: 52px 0;
  }

  #quote .quote-layout {
    display: block;
  }

  #quote .quote-copy h2 {
    font-size: 26px;
  }

  #quote .quote-desc {
    margin-top: 12px;
    font-size: 13px;
  }

  #quote .quote-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  #quote .quote-points li {
    font-size: 14px;
  }

  #quote .quote-contact {
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-top: 22px;
  }

  #quote .quote-phone {
    font-size: 21px;
  }

  #quote .quote-wx img {
    width: 56px;
    height: 56px;
  }

  #quote .quote-form {
    margin-top: 28px;
    padding: 22px 18px;
  }

  /* 窄屏两列会挤，改回单列 */
  #quote .form-row {
    grid-template-columns: 1fr;
  }

  #quote .captcha-row input {
    flex: 1 1 auto;
  }

  #quote .quote-form h3 {
    font-size: 17px;
  }

  /* 手机端 16px，避免 iOS 聚焦时页面自动放大 */
  #quote .quote-form input:not([type=checkbox]),
  #quote .quote-form select,
  #quote .quote-form textarea {
    font-size: 16px;
  }

  #quote .captcha-row img {
    width: 96px;
  }
}
