/*
  维修报价页（/quotation）专用样式。
  只作用于本页 q- 前缀类名，页头页脚与全站组件零改动。

  视觉语言：深墨蓝首屏 + 亮蓝强调 + 白底细线卡片。
  相比参考稿收紧了间距与字号层级，去掉装饰性圆圈，
  改用细网格与边框，和官网其他服务页更协调。
*/

.q-hero {
    --q-navy: #0b1424;
    --q-blue: #168bd0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(122deg, #0b1424 0%, #10243a 62%, #173b59 100%);
    color: #fff;
    padding: clamp(52px, 6vw, 76px) 0 clamp(92px, 9vw, 116px);
}
.q-hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(126, 205, 245, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 205, 245, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(110deg, transparent 20%, #000 100%);
}
.q-hero__inner { position: relative; }
.q-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8bd7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}
.q-eyebrow::before { content: ""; width: 22px; height: 1px; background: #55b9ed; }
.q-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 4.6vw, 48px);
    line-height: 1.18;
    letter-spacing: .02em;
}
.q-hero__intro {
    max-width: 680px;
    margin: 0;
    color: #b8c9da;
    font-size: 15px;
    line-height: 1.8;
}
.q-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 28px;
    color: #dce9f4;
    font-size: 12px;
}
.q-hero__points span { display: inline-flex; align-items: center; gap: 8px; }
.q-hero__points i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63c7f7;
    box-shadow: 0 0 10px rgba(99, 199, 247, .8);
}

.q-crumb {
    background: #f4f7fb;
    border-bottom: 1px solid #e7edf5;
    color: #718096;
    font-size: 12px;
}
.q-crumb .container { padding-top: 12px; padding-bottom: 12px; }
.q-crumb a { color: inherit; text-decoration: none; }
.q-crumb a:hover { color: var(--q-blue); }
.q-crumb .sep { margin: 0 9px; opacity: .55; }
.q-crumb .current { color: #172235; font-weight: 700; }

.q-main { padding: 0 0 clamp(56px, 7vw, 88px); background: #f4f7fb; }
.q-panel {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    padding: clamp(20px, 3vw, 30px);
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(20, 42, 70, .08);
}
.q-panel__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.q-panel__head h2 { margin: 0 0 4px; font-size: 19px; font-weight: 750; }
.q-panel__head p { margin: 0; color: #718096; font-size: 12px; }
.q-search { position: relative; width: min(270px, 100%); flex: 0 0 auto; }
.q-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 38px;
    border: 1px solid #e2eaf3;
    border-radius: 11px;
    outline: none;
    background: #fbfdff;
    color: #172235;
    font-size: 13px;
}
.q-search input:focus { border-color: #75c8f1; box-shadow: 0 0 0 3px rgba(85, 185, 237, .14); }
.q-search::before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 5px;
    color: #8293a8;
    font-size: 22px;
    pointer-events: none;
}
.q-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.q-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaf0f6;
}
.q-tab {
    padding: 9px 17px;
    border: 1px solid #e2eaf3;
    border-radius: 999px;
    background: #fff;
    color: #526176;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.q-tab:hover { border-color: #9bd8f5; color: #167eb8; }
.q-tab.is-active {
    background: #10243a;
    border-color: #10243a;
    color: #fff;
    box-shadow: 0 5px 14px rgba(16, 36, 58, .14);
}
.q-tab__count { margin-left: 5px; opacity: .62; font-size: 11px; }

.q-group { padding-top: 26px; }
.q-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.q-group__head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
}
.q-group__head h3::before {
    content: "";
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--q-blue);
}
.q-group__head span { color: #98a5b4; font-size: 11px; letter-spacing: .12em; }
.q-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #e7edf5;
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.q-item:hover {
    border-color: #b7e1f6;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 91, 130, .06);
}
.q-item__main { min-width: 0; }
.q-item__main h4 { margin: 0; font-size: 14px; font-weight: 650; }
.q-item__main p { margin: 4px 0 0; color: #8a98a9; font-size: 11px; line-height: 1.5; }
.q-price { flex: 0 0 auto; text-align: right; color: var(--q-blue); }
.q-price__line { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.q-price strong { display: block; font-size: 17px; font-weight: 750; white-space: nowrap; }

/* 报价说明：价格后的小叹号，悬停/聚焦/点击时在旁边弹出小窗 */
.q-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff0df;
    color: #ef6c00;
    cursor: help;
    line-height: 0;
    box-shadow: 0 1px 4px rgba(239, 108, 0, .22);
    transition: background .18s, box-shadow .18s;
}
.q-note:hover, .q-note:focus-visible, .q-note.is-open {
    background: #ef6c00;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 108, 0, .38);
}
.q-note:focus-visible { outline: 2px solid rgba(239, 108, 0, .45); outline-offset: 2px; }
.q-note svg { display: block; width: 13px; height: 13px; }
.q-note__tip {
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    z-index: 6;
    width: max-content;
    max-width: min(240px, 62vw);
    padding: 8px 11px;
    border-radius: 8px;
    background: #172235;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
    white-space: normal;
    box-shadow: 0 8px 20px rgba(16, 36, 58, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px);
    pointer-events: none;
    transition: opacity .16s, transform .16s, visibility .16s;
}
.q-note__tip::before {
    content: "";
    position: absolute;
    right: 5px;
    top: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #172235;
}
.q-note:hover .q-note__tip,
.q-note:focus-visible .q-note__tip,
.q-note.is-open .q-note__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.q-item { position: relative; }
.q-item:hover, .q-item:focus-within { z-index: 3; }

.q-empty { margin: 32px 0 0; color: #8795a6; font-size: 13px; text-align: center; }
.q-empty--static { margin: 40px 0 8px; }
.q-notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-top: 24px;
    padding: 15px 17px;
    border: 1px solid #e9f0f6;
    border-radius: 12px;
    background: #f7fafc;
}
.q-notice strong { color: #43556b; font-size: 12px; white-space: nowrap; }
.q-notice p { margin: 0; color: #718096; font-size: 12px; line-height: 1.8; }

.q-process { padding-top: clamp(48px, 6vw, 72px); }
.q-section-head { text-align: center; margin-bottom: 26px; }
.q-section-head span { color: var(--q-blue); font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.q-section-head h2 { margin: 7px 0 5px; font-size: clamp(21px, 3vw, 25px); }
.q-section-head p { margin: 0; color: #718096; font-size: 12px; }
.q-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.q-step {
    padding: 19px 17px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 14px;
}
.q-step__num { color: var(--q-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.q-step h3 { margin: 9px 0 5px; font-size: 14px; }
.q-step p { margin: 0; color: #8492a3; font-size: 11px; line-height: 1.7; }

.q-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding: 24px 28px;
    border-radius: 18px;
    background: linear-gradient(110deg, #10243a, #173b59);
    color: #fff;
}
.q-cta h2 { margin: 0 0 5px; font-size: 19px; }
.q-cta p { margin: 0; color: #b6c8d8; font-size: 12px; }
.q-cta a {
    flex: 0 0 auto;
    padding: 11px 18px;
    border-radius: 9px;
    background: #65c8f5;
    color: #082039;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.q-cta a:hover { background: #8bd7ff; }

@media (max-width: 860px) {
    .q-items { grid-template-columns: 1fr; }
    .q-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .q-hero { padding-top: 44px; padding-bottom: 86px; }
    .q-panel { margin-top: -28px; padding: 17px; }
    .q-panel__head { flex-direction: column; align-items: stretch; gap: 14px; }
    .q-search { width: 100%; }
    .q-group__head span { display: none; }
    .q-item { padding: 13px 14px; }
    .q-price strong { font-size: 15px; }
    .q-notice { grid-template-columns: 1fr; gap: 4px; }
    .q-steps { grid-template-columns: 1fr 1fr; }
    .q-cta { flex-direction: column; align-items: stretch; }
    .q-cta a { width: 100%; text-align: center; }
}
@media (max-width: 400px) {
    .q-steps { grid-template-columns: 1fr; }
}
