/* 迅捷官网 — 新增页面的补充样式（沿用原站视觉：蓝色主色 #1a4b9b 系） */

/* 无障碍隐藏（用于 SEO 的 H1，不影响视觉） */
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* 还原页右栏标题栏（复刻原站 .top-title 内联样式，h4→h1 视觉不变）
   用 .main-bg .top-title 提高优先级，覆盖主题默认的 4px double 双线，全站统一为单线 */
.main-bg .top-title { padding-bottom:20px; margin-bottom:10px; border-bottom:1px solid #cccccc; }
.main-bg .top-title h1.title { margin-bottom:0; font-size:18px; line-height:1; font-weight:bold; border-left:4px solid #1048a0; padding-left:10px; color:#333; }
.inner-page { min-height: 60vh; }
.inner-container { padding-top: 30px; padding-bottom: 60px; }
.breadcrumb-nav { font-size: 13px; color: #888; margin: 10px 0 20px; }
.breadcrumb-nav a { color: #666; }
.breadcrumb-nav a:hover { color: #1a4b9b; }
.inner-title { font-size: 26px; font-weight: 700; color: #222; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 2px solid #1a4b9b; }

.stream-content { line-height: 1.9; color: #333; font-size: 15px; }
.stream-content img { max-width: 100%; height: auto; }

.content-section { margin-bottom: 32px; }
.content-section-title { font-size: 20px; color: #1a4b9b; margin: 0 0 16px; }
.content-section-inner { display: flex; gap: 24px; align-items: flex-start; }
.content-section--right .content-section-inner { flex-direction: row-reverse; }
.content-section--top .content-section-inner,
.content-section--none .content-section-inner { display: block; }
.content-section-img { flex: 0 0 42%; }
.content-section-img img { width: 100%; height: auto; border-radius: 4px; }
.content-section-body { flex: 1; }

/* ===== 首屏资质带（导航下方，打开页面即可见） =====
   设计意图：承接导航的蓝色往下压一档形成层次，底部一道琥珀细线呼应
   西马克品牌视觉，并把资质带与轮播图分隔开。左定位、右要点，
   信息密度低、可扫读，符合采购与技术人员快速判断"这家是做什么的"。 */
.hero-cred {
    background: linear-gradient(180deg, #17427f 0%, #123566 100%);
    border-bottom: 2px solid #d98b2b;
    color: #dbe5f5;
}
.hero-cred-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 13px;
    padding-bottom: 13px;
    flex-wrap: wrap;
}
.hero-cred-lead {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    white-space: nowrap;
}
.hero-cred-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    font-size: 13px;
}
.hero-cred-points li {
    padding: 0 16px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    line-height: 1.4;
}
.hero-cred-points li:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 991px) {
    .hero-cred-inner { justify-content: center; text-align: center; padding-top: 11px; padding-bottom: 11px; }
    .hero-cred-lead { white-space: normal; font-size: 14px; }
    .hero-cred-points { justify-content: center; font-size: 12px; }
    .hero-cred-points li { padding: 0 10px; }
}
@media (max-width: 767px) {
    /* 手机端只留定位主句：要点竖排会让band高达140px+，把首屏轮播挤下去。
       核心信息是"西马克授权经销商"这一句，明细留给下方内容承接。 */
    .hero-cred-points { display: none; }
    .hero-cred-inner { padding-top: 9px; padding-bottom: 9px; }
    .hero-cred-lead { font-size: 13px; letter-spacing: 0; line-height: 1.5; }
}

/* ===== 联系卡片 =====
   合并电话后左卡多一行号码，两张卡高度就不齐了。原站卡片高度完全由内容
   撑开，这里让列本身成为 flex 容器、卡片撑满列高，两张即取齐到较高的一张。
   内容保持顶对齐（不用 justify-content: center），这样两张卡的图标和标题
   仍在同一水平线上，多出来的空间落在底部。 */
.index-contact-content .row > div { display: flex; }
.index-contact-content .row > div > .index-contact-item { flex: 1; }
.index-contact-item .contact-line2 { display: block; margin-top: 4px; }

/* ===== 手机端首屏比例修正 =====
   原站移动端把 1920×600 的横幅整张按宽度铺开（.banner 在 767.98px 以下
   会 unset 背景图与 :before 撑高，只剩一个 <img>），375px 宽时高度只有
   117px，首屏成了一条窄带；而下面第一张产品卡有 250px，主次完全颠倒。
   这里给轮播一个按视口宽度换算的高度，图片改用 object-fit 裁切，
   左对齐保留横幅左侧的标题文案；同时把产品卡整体压小一档。 */
@media (max-width: 767.98px) {
    /* 只作用于首页轮播（.dd-owl），内页顶部横幅保持原样 */
    .dd-owl .banner-index {
        height: 60vw;
        min-height: 190px;
        max-height: 260px;
    }
    /* 裁切锚点 23%：两张横幅的文案分别落在图片宽度的 19%–49% 和 23%–55%，
       这个锚点让可视窗口覆盖 11%–63%，两张的标题与卖点都完整保留。
       换图后若文案位置差别大，调这个百分比即可。 */
    .dd-owl .banner-index > img {
        height: 100%;
        object-fit: cover;
        object-position: 23% center;
    }

    .index-product-item.item1 { height: 200px; }
    .index-product-item.item2 { height: 130px; }
    .index-product-item.item3 { height: 105px; }
}

/* ===== 错误页（404 / 403） ===== */
.error-page { max-width: 760px; margin: 0 auto; padding: 70px 20px 90px; text-align: center; }
.error-code { font-size: 84px; font-weight: 700; color: #1a4b9b; line-height: 1; letter-spacing: 3px; opacity: .9; }
.error-title { font-size: 26px; color: #222; margin: 22px 0 14px; }
.error-desc { color: #666; line-height: 2; margin-bottom: 34px; }
.error-nav { padding: 26px; background: #f6f8fb; border-radius: 6px; }
.error-nav-title { color: #333; font-weight: 600; margin: 0 0 14px; }
.error-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.error-links a { display: inline-block; padding: 8px 18px; background: #fff; border: 1px solid #dde3ec; border-radius: 4px; color: #1a4b9b; font-size: 14px; }
.error-links a:hover { background: #1a4b9b; color: #fff; border-color: #1a4b9b; }
.error-cta { margin-top: 34px; padding-top: 28px; border-top: 1px solid #eee; }
.error-cta p { color: #666; margin-bottom: 16px; }
@media (max-width: 767px) {
    .error-page { padding: 44px 16px 60px; }
    .error-code { font-size: 62px; }
    .error-title { font-size: 21px; }
}

/* 页脚一句话定位 */
.footer-positioning { color: #dfe6f2; font-size: 15px; font-weight: 600; margin: 10px 0 8px; letter-spacing: .3px; }

/* ===== 数据表格（型号规格表等） ===== */
.stream-content table,
.block-table table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; background: #fff; }
.stream-content table th,
.block-table table th { background: #eef2f8; color: #1a4b9b; font-weight: 700; text-align: left; padding: 10px 12px; border: 1px solid #dde3ec; white-space: nowrap; }
.stream-content table td,
.block-table table td { padding: 9px 12px; border: 1px solid #e6eaf0; color: #444; }
.stream-content table tbody tr:nth-child(even),
.block-table table tbody tr:nth-child(even) { background: #fafbfd; }
.stream-content table tbody tr:hover,
.block-table table tbody tr:hover { background: #f2f6fc; }
.stream-content table caption,
.block-table table caption { caption-side: top; text-align: left; font-weight: 700; color: #222; padding-bottom: 8px; }
/* 表格在窄屏横向滚动，而不是把单元格挤成多行（否则手机上页面会被撑到极高） */
.block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.stream-content table, .block-table table { min-width: 620px; }
.stream-content table td, .block-table table td { white-space: nowrap; }
/* 最后一列（可替代型号等长文本）允许换行，避免表格过宽 */
.stream-content table td:last-child, .block-table table td:last-child { white-space: normal; min-width: 220px; }

/* 表格即时搜索框 */
.table-search { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.table-search input { flex: 1; min-width: 220px; padding: 9px 14px; border: 1px solid #d5dae2; border-radius: 4px; font-size: 14px; }
.table-search input:focus { border-color: #1a4b9b; outline: none; }
.table-search-count { color: #888; font-size: 13px; white-space: nowrap; }
/* 深链接命中行高亮 */
.stream-content table tr.row-highlight td,
.block-table table tr.row-highlight td { background: #fff6d9 !important; transition: background .4s; }
@media (max-width: 767px) {
    .stream-content table, .block-table table { font-size: 12px; }
    .stream-content table th, .block-table table th,
    .stream-content table td, .block-table table td { padding: 7px 8px; }
}

.faq-section, .related-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; }
.faq-item { margin-bottom: 18px; }
.faq-q { font-size: 16px; color: #222; margin: 0 0 6px; }
.faq-q::before { content: "Q "; color: #1a4b9b; font-weight: 700; }
.faq-a { color: #555; padding-left: 20px; }
.related-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.related-list a { display: inline-block; padding: 8px 16px; background: #f2f5fa; border-radius: 4px; color: #1a4b9b; }

.inquiry-cta { margin-top: 48px; padding: 28px; background: #f2f5fa; border-radius: 6px; text-align: center; }
.inquiry-cta .btn { margin-right: 20px; }
.inquiry-cta-contact { color: #555; }

.product-list { margin-top: 20px; }
.product-card { display: block; padding: 24px; margin-bottom: 24px; background: #fff; border: 1px solid #eee; border-radius: 6px; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.product-card h3 { font-size: 17px; color: #222; margin: 0 0 8px; }
.product-card p { color: #888; font-size: 13px; margin: 0; }

.tech-list { list-style: none; padding: 0; }
.tech-list-item { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px dashed #e5e5e5; }
.tech-list-item a { color: #333; }
.tech-list-item a:hover { color: #1a4b9b; }
.tech-date { color: #aaa; font-size: 13px; }
.tech-meta { color: #999; font-size: 13px; margin-bottom: 20px; }
.pagination { margin-top: 30px; text-align: center; }
.pagination a { margin: 0 12px; color: #1a4b9b; }
.contact-info { margin-top: 24px; line-height: 2; }

/* ===== 询价表单（4.4） ===== */
.inquiry-form { max-width: 760px; margin-top: 10px; }
.inquiry-form .form-row { margin-bottom: 20px; }
.inquiry-form label { display: block; font-size: 14px; color: #333; margin-bottom: 8px; font-weight: 600; }
.inquiry-form .req { color: #d33; }
.inquiry-form input[type=text], .inquiry-form input[type=email], .inquiry-form input[type=file], .inquiry-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d5dae2; border-radius: 4px; font-size: 14px; background: #fff;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: #1a4b9b; outline: none; }
.inquiry-form .form-hint { display: block; color: #999; font-size: 12px; margin-top: 6px; }
.inquiry-form .field-err { color: #d33; font-size: 12px; margin: 6px 0 0; }
.inquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.inquiry-form .form-captcha input { width: 140px; }
.inquiry-submit { margin-top: 10px; padding: 12px 46px; font-size: 16px; }
.inquiry-success { text-align: center; padding: 40px 0 20px; }
.inquiry-success-icon { width: 72px; height: 72px; line-height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #2e9b4f; color: #fff; font-size: 40px; }
@media (max-width: 767px) { .inquiry-form .form-grid { grid-template-columns: 1fr; } }

/* ===== 首页首屏（4.1） ===== */
.home-hero { position: relative; background-size: cover; background-position: center; padding: 120px 0; color: #fff; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,70,.72), rgba(10,30,70,.35)); }
.home-hero .container { position: relative; z-index: 1; }
.home-hero-inner { max-width: 780px; }
.home-hero-headline { font-size: 30px; line-height: 1.5; font-weight: 700; margin: 0 0 32px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.home-hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-btn { display: inline-block; padding: 13px 30px; border-radius: 4px; font-size: 16px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.7); transition: all .2s; }
.hero-btn:hover { background: #fff; color: #1a4b9b; }
.hero-btn-primary { background: #1a4b9b; border-color: #1a4b9b; }
.hero-btn-primary:hover { background: #143a78; color: #fff; }

/* ===== 首页模块（4.2） ===== */
.home-module { padding: 56px 0; }
.home-module:nth-child(even) { background: #f6f8fb; }
.home-module-inner.has-img { display: flex; gap: 40px; align-items: center; }
.home-module-inner.has-img .home-module-img { flex: 0 0 44%; }
.home-module-img img { width: 100%; height: auto; border-radius: 6px; }
.home-module-text { flex: 1; }
.home-module-title { font-size: 24px; color: #222; margin: 0 0 16px; }
.home-module-title small { display: block; font-size: 14px; color: #1a4b9b; font-weight: 400; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.home-module-body { line-height: 1.9; color: #555; margin-bottom: 20px; }
.home-qa-list { list-style: none; padding: 0; max-width: 900px; margin: 20px auto 0; }
.home-qa-list li a { display: flex; align-items: center; padding: 15px 6px; border-bottom: 1px dashed #dde3ec; color: #333; }
.home-qa-list li a:hover { color: #1a4b9b; }
.home-qa-list .q-dot { width: 7px; height: 7px; border-radius: 50%; background: #1a4b9b; margin-right: 12px; flex: 0 0 auto; }
.home-qa-list .q-date { margin-left: auto; color: #aaa; font-size: 13px; }
.home-qa-empty { color: #999; text-align: center; padding: 20px; }

@media (max-width: 767px) {
    .content-section-inner { display: block; }
    .content-section-img { margin-bottom: 16px; }
    .inquiry-cta .btn { display: block; margin: 0 auto 16px; }
    .home-hero { padding: 70px 0; }
    .home-hero-headline { font-size: 22px; }
    .home-hero-buttons { flex-direction: column; }
    .hero-btn { text-align: center; }
    .home-module-inner.has-img { display: block; }
    .home-module-inner.has-img .home-module-img { margin-bottom: 20px; }
}
