/* 独立询价页：精简头部 + 站内规范横幅 + 面包屑 + 表单卡（与联系页同一套表单 token）。 */

.rq-body { background: #f7f8fa; }

/* ===== 精简头部：复用站内 public-header 结构（Logo 位置/尺寸、地球语言菜单与常规页一致），
   仅去掉主导航与搜索；「返回官网」使用与询价按钮同规格的描边胶囊。 ===== */
/* 与其他内容页同一规范：头部使用 public-header--overlay 透明压覆横幅顶部，
   主内容不再补 padding-top，滚动后由 site.js 的 is-scrolled 统一切回白底。 */
/* 常规页靠主导航的 auto 外边距把操作区推到最右；本页无导航，需自行补齐。 */
.rq-header .public-header__actions { margin-inline-start: auto; }
/* ≤1200px 常规页头部切为 row-reverse（汉堡在右）；本页无汉堡，保持 Logo 在左。 */
@media (max-width: 1200px) {
    .rq-header .public-header__inner { flex-direction: row; justify-content: space-between; }
}
.rq-header__back {
    align-items: center; display: inline-flex; gap: 7px; justify-content: center;
    height: 40px; margin-inline-end: 10px; padding-inline: 18px;
    border: 1px solid var(--site-primary); border-radius: 20px;
    color: var(--site-primary); font-size: 15px; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.rq-header__back:hover { background: var(--site-primary); color: #fff; text-decoration: none; }
/* 透明压覆态下「返回官网」改为白描边白字，保证深色横幅上的可读性；
   滚动后头部切回白底（is-scrolled），自动恢复主色描边。
   仅限桌面端：≤1200px 时栏头被 site-header.css 强制为白底，白字白描边会完全不可见，
   移动端统一走上面的基础规则（主色描边 + 主色文字）。 */
@media (min-width: 1201px) {
    .public-header--overlay:not(.is-scrolled) .rq-header__back { border-color: #fff; color: #fff; }
    .public-header--overlay:not(.is-scrolled) .rq-header__back:hover { background: #fff; color: var(--site-primary); }
}
.rq-header__back-icon {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .rq-header__back-icon { transform: scaleX(-1); }
@media (max-width: 600px) {
    .rq-header__back { height: 32px; padding-inline: 12px; font-size: 13px; }
    .rq-header__back-icon { width: 14px; height: 14px; }
}

/* ===== 横幅：与产品列表页 .pl-banner 同一规格（360px 高、深青渐变兜底、
   白色标题 36px + 青色短线 hover 延展）；本页无后台配图，仅用渐变兜底。 ===== */
.rq-banner {
  background: var(--site-gradient-hero); height: 360px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px; text-align: center;
}
.rq-banner__inner { margin: 0 auto; max-width: 640px; }
/* 全局 h1 限宽 760px 且块级靠左，会使横幅标题偏左——加 auto 居中抵消。 */
.rq-banner__title { margin: 0 auto; color: #fff; font-size: 36px; font-weight: 700; line-height: 48px; }
.rq-banner__line { width: 64px; height: 4px; margin: 8px auto; background: var(--site-primary); transition: width .4s ease; }
.rq-banner:hover .rq-banner__line { width: 128px; }
.rq-banner__desc { margin: 0; color: #fff; font-size: 16px; line-height: 24px; }

.rq-shell { margin: 0 auto; max-width: 900px; padding: 20px 24px 56px; }

/* ===== 面包屑 ===== */
.rq-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #8a96a9; font-size: 12px; }
.rq-crumbs a { color: #8a96a9; text-decoration: none; }
.rq-crumbs a:hover { color: var(--site-primary-hover); }
.rq-crumbs__cur { color: #344054; }

/* ===== 表单卡：白卡 + 圆角 6，输入框 44px 与联系页一致 ===== */
.rq-card { background: #e8e8e8; border-radius: 6px; padding: 36px 32px; }
.rq-form { background: #fff; border-radius: 6px; padding: 28px 26px; }
.rq-to {
    align-items: center; display: flex; gap: 10px; margin-bottom: 18px;
    border-bottom: 1px solid #edf0f4; padding-bottom: 14px;
}
.rq-to__label { color: #8a96a9; font-size: 12px; flex: none; }
.rq-to__value { color: #344054; font-size: 13px; }
.rq-to__value strong { margin-right: 8px; }

.rq-field { margin-bottom: 18px; }
.rq-field label { display: block; margin-bottom: 6px; color: #344054; font-size: 13px; font-weight: 600; }
.rq-input {
    width: 100%; height: 44px; padding: 0 14px; border: 1px solid #ddd; border-radius: 4px;
    background: #fafafa; color: #323232; font-size: 14px; font-family: inherit;
    box-sizing: border-box; outline: none; transition: border-color .2s;
}
.rq-input:focus { border-color: var(--site-primary); background: #fff; }
.rq-input--inline { width: 240px; height: 38px; }
.rq-field__hint { display: block; margin-top: 4px; color: #98a2b3; font-size: 11px; text-align: right; }

/* 富文本编辑器：容器高度与站内表单一致，工具栏沿用 Quill snow 主题。 */
.rq-editor { min-height: 190px; background: #fafafa; }
.rq-editor .ql-editor { min-height: 160px; font-size: 14px; color: #323232; line-height: 1.7; }
.rq-editor .ql-toolbar.ql-snow { border-color: #ddd; background: #fff; }

.rq-details { border: 1px solid #edf0f4; border-radius: 6px; margin-bottom: 18px; padding: 0 16px; background: #fafafa; }
.rq-details > summary { padding: 14px 0; color: #344054; font-size: 13px; font-weight: 600; cursor: pointer; }
.rq-details__body { padding-bottom: 18px; }

.rq-options { border-top: 1px solid #edf0f4; margin-top: 6px; padding-top: 14px; }
.rq-options h3 { margin: 0 0 12px; color: #344054; font-size: 13px; }
.rq-option-row { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.rq-option-row__title { flex: 0 0 130px; color: #8a96a9; font-size: 12px; }
.rq-check { align-items: center; display: inline-flex; gap: 6px; color: #4e5b70; font-size: 12.5px; cursor: pointer; }
.rq-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.rq-notice { margin: 0 0 14px; padding: 10px 12px; border-radius: 4px; font-size: 12.5px; }
.rq-notice[hidden] { display: none; }
.rq-notice--ok { background: var(--site-tint-50); border: 1px solid var(--site-tint-200); color: var(--site-primary-hover); }
.rq-notice--error { background: #fdf3f2; border: 1px solid #f6c9c4; color: #b42318; }

/* 提交行：对齐参考站 —— 上方分隔线 + 左侧说明文案 + 右侧扁平按钮（min-width 160px），
   移动端竖排、按钮满宽。 */
.rq-submit-row {
    align-items: center; display: flex; justify-content: space-between; gap: 20px;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid #f0f0f0;
}
.rq-submit-note { margin: 0; max-width: 440px; color: #999; font-size: 12px; line-height: 1.7; }
.rq-submit {
    flex: none; min-width: 160px; height: 44px; padding-inline: 24px;
    border: 0; border-radius: 4px; background: var(--site-primary);
    color: #fff; font-size: 16px; font-family: inherit; cursor: pointer;
    transition: background-color .3s;
}
.rq-submit:hover { background: var(--site-primary-mid); }
.rq-submit:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 3px; }
.rq-submit:disabled { background: var(--site-tint-300); cursor: not-allowed; }

/* 反垃圾隐藏域：视觉隐藏且不可被 Tab 聚焦。 */
.rq-form__honeypot {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* RTL：头部与表单逻辑属性镜像。 */
[dir="rtl"] .rq-to__value { direction: rtl; }
[dir="rtl"] .rq-field__hint { text-align: left; }

@media (max-width: 768px) {
  .rq-banner { height: 180px; }
  .rq-banner__title { font-size: 28px; line-height: 38px; }
  .rq-banner__desc { font-size: 14px; line-height: 22px; }
  .rq-card { padding: 20px 14px; }
  .rq-form { padding: 18px 14px; }
  .rq-option-row__title { flex-basis: 100%; }
  .rq-input--inline { width: 100%; }
  /* 移动端竖排：按钮在上、说明在下，与参考站一致（column-reverse 反转 DOM 顺序）。 */
  .rq-submit-row { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .rq-submit { width: 100%; }
  .rq-submit-note { max-width: none; }
}
