/* 站点修正样式（PHP 版专用，不改动原站 CSS 文件）
 *
 * 原站基于 Element Plus，正文图片统一是 <el-image>，它内部自带
 *   .el-image img { width:100%; height:100% }
 * 所以图片永远贴合容器。PHP 版把 <el-image> 换成原生 <img> 后，
 * 图片会按原始像素宽度渲染（产品页的 products2/3/4.jpg 原图宽 1000px，
 * 左侧栏只有 900px），于是右侧溢出、压到在线预约栏下面。
 *
 * 这里只做一件事：让所有图片不超过容器宽度，其余尺寸规则保持原样。
 */

img {
    max-width: 100%;
}

/* ===== SEO H1 方案（2026-11-15）=====
 * 现网本身没有 <h1>；首页等以图片为主的页面用 .sr-h1（1px 裁剪、视觉不可见）承载品牌名 H1；
 * 服务页/产品页/关于我们/服务保障 + 招商 8 页则把「页面本来就可见的主标题」直接改成 <h1>，
 * 通过下面的重置让 h1 表现得和原 div 完全一致（字号/字重/颜色/行高由各自的 class 决定）。
 */
.sr-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

h1 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    display: block;
}

/* ------------------------------------------------------------------
 * 数据表格：原站「全国网点 / 经销商查询」用的是 Element UI 的 el-table
 *（border stripe），边框、行高、内边距全部来自 element-ui 的 theme-chalk，
 *  PHP 版换成原生 <table> 后没有这些规则，浏览器默认渲染成 1px 黑框、行高 22px。
 *  这里按现网实测值补齐：边框 #ebeef5、行高 48px、单元格左右内边距 10px、
 *  白底、14px 文字、表头加粗。实测现网竖线 x=83/263/443/623/1282、横线间距 48。
 * ------------------------------------------------------------------ */
.case-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    font-size: 14px;
    color: #606266;
}

.case-table th,
.case-table td {
    border: 1px solid #ebeef5;
    padding: 12px 10px;
    line-height: 23px;
    text-align: left;
    font-weight: 400;
    word-break: break-word;
}

.case-table th {
    font-weight: 700;
    color: #606266;
    white-space: nowrap;
}

/* 现网 el-table 的前三列固定 180px（<720 时由 JS 改成 70px），第四列自适应 */
.case-table th:nth-child(1),
.case-table th:nth-child(2),
.case-table th:nth-child(3) {
    width: 180px;
}

/* 标题后的圆形图标按钮（el-button circle mini），现网直径 24px、主色 #409eff */
.title-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #409eff;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    margin-left: 10px;
}

.title-icon svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    vertical-align: -2px;
}

/* 表单项：Element UI 的 el-form / el-input 在 PHP 版里没有对应样式，
 * 这里按现网实测（输入框高 40px、边框 #dcdfe6、圆角 4px、标签列 100px 右对齐）复刻 */
.form-item {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    font-size: 14px;
    color: #606266;
}

.form-item>label {
    flex: 0 0 100px;
    width: 100px;
    text-align: right;
    padding-right: 10px;
    line-height: 40px;
    box-sizing: border-box;
}

.form-item input[type="text"],
.form-item textarea {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}

.form-item input[type="text"] {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
}

.form-item textarea {
    min-height: 53px;
    height: 53px;
    padding: 5px 15px;
    line-height: 21px;
    resize: vertical;
}

.form-item input[type="text"]:hover,
.form-item textarea:hover {
    border-color: #c0c4cc;
}

.form-item input[type="text"]:focus,
.form-item textarea:focus {
    border-color: #409eff;
}

.form-item input::placeholder,
.form-item textarea::placeholder {
    color: #c0c4cc;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
    line-height: 40px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0 8px 0 0;
    border: 1px solid #dcdfe6;
    border-radius: 50%;
    background: #fff;
    position: relative;
    cursor: pointer;
    outline: none;
    flex: 0 0 14px;
}

.radio-label input[type="radio"]:checked {
    border-color: #409eff;
    background: #409eff;
}

.radio-label input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.form-item .btn-primary,
.form-item .btn-plain {
    height: 40px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
}

.form-item .btn-primary {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
    margin-right: 10px;
}

/* 查询输入框 + 追加按钮（el-input 的 append slot） */
.input-with-select {
    display: flex;
    font-size: 14px;
}

.input-with-select input[type="text"] {
    flex: 1 1 auto;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    outline: none;
    color: #606266;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.input-with-select input[type="text"]:focus {
    border-color: #409eff;
}

.input-with-select input::placeholder {
    color: #c0c4cc;
}

.input-with-select button {
    width: 58px;
    height: 40px;
    padding: 0;
    border: 1px solid #dcdfe6;
    border-radius: 0 4px 4px 0;
    background: #f5f7fa;
    color: #909399;
    cursor: pointer;
}

.input-with-select button:hover {
    color: #409eff;
    border-color: #c0c4cc;
}

.input-with-select button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    vertical-align: -2px;
}

@media (max-width: 720px) {
    .case-table th,
    .case-table td {
        height: auto;
        line-height: 22px;
        padding: 6px 6px;
        font-size: 12px;
        white-space: normal;
    }

    .case-table th:nth-child(1),
    .case-table th:nth-child(2),
    .case-table th:nth-child(3) {
        width: 70px;
    }

    .form-item>label {
        flex: 0 0 76px;
        width: 76px;
        font-size: 13px;
    }

    .radio-label {
        margin-right: 16px;
        line-height: 30px;
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------
 * 服务页左上图组轮播（2026-11-15 修正）
 * 原站是 <el-carousel>（4 张图一屏一张、3 秒自动切换、悬停出左右箭头、底部圆点）。
 * PHP 版早期把 <el-carousel> 省成了普通容器，4 张图按 420×420 硬撑全部竖排堆出来：
 *   - 三页里 snkq(420×420)、snkqjc(750×750) 是方图，硬撑还看不出问题；
 *   - xdsj 的 4 张是 750×424 横幅图，硬撑 420×420 会被横向压扁变形，
 *     于是 /xdsj.html 左上「产品特色」卡片明显走形。
 * 现在按「一屏一张 + 按图片自身比例自适应高度」还原：容器宽 420、高度跟着当前图，
 * 方图页仍是 420×420，xdsj 自动变成 420×237，图片既不裁切也不拉伸。
 * 无 JS 时（脚本失败）由 :not(.svc-ready) 规则兜底显示第一张。
 * ------------------------------------------------------------------ */
.servicepic {
    position: relative;
    width: 420px;
    background: #f5f7fa;
}

.servicepic_img {
    display: none;
    width: 420px;
    height: auto;
}

.servicepic_img.is-active {
    display: block;
}

.servicepic:not(.svc-ready) .servicepic_img:first-child {
    display: block;
}

.svc-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 3;
    text-align: center;
    line-height: 0;
}

.svc-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 2px rgba(0, 0, 0, .3);
    cursor: pointer;
}

.svc-dots span.is-on {
    background: #0089e3;
}

.svc-arrow {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 40px;
    margin-top: -20px;
    line-height: 40px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, .28);
    z-index: 3;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s;
    user-select: none;
}

.servicepic:hover .svc-arrow {
    opacity: 1;
}

.svc-arrow.prev {
    left: 0;
}

.svc-arrow.next {
    right: 0;
}

.servicebo_left_imgsmall {
    cursor: pointer;
}

.servicebo_left_imgsmall.is-on .servicebo_left_imgsmall_img {
    outline: 2px solid #0089e3;
    outline-offset: 1px;
}
