/* ============================================================
   沧州友诚管道科技有限公司 — corporate site stylesheet v2
   Visual language: deep steel blue + industrial copper accent,
   full-bleed imagery, large type, generous white space
   (international industrial B2B style, Tenaris / Vallourec school)
   ============================================================ */

:root {
    --brand: #1f5f90;
    --brand-d: #16496f;
    --brand-l: #2f88cc;
    --accent: #d4822a;
    --accent-l: #e8a04f;
    --teal: #0f8a8a;
    --ink: #1e2c3a;
    --gray: #64717e;
    --gray-l: #8b98a5;
    --line: #e3e8ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --maxw: 1280px;
    --shadow: 0 2px 20px rgba(14, 58, 92, .08);
    --shadow-h: 0 14px 40px rgba(14, 58, 92, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 940px; }

/* ============ utility type ============ */
.eyebrow {
    font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
    color: var(--accent); font-weight: 700; margin-bottom: 14px; display: block;
}
h1.display { font-size: clamp(32px, 5vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
h2.headline { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -.3px; }
h3.title { font-size: clamp(19px, 2vw, 23px); line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(15px, 1.5vw, 18px); color: var(--gray); line-height: 1.75; }

/* ============ topbar ============ */
.topbar { background: var(--brand-d); color: #c6dbec; font-size: 12.5px; }
.topbar .container {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 36px; gap: 16px; flex-wrap: wrap;
}
.topbar .tb-right { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

/* ============ header ============ */
.header {
    position: sticky; top: 0; z-index: 200; background: #fff;
    border-bottom: 1px solid var(--line);
}
.header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 78px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 13px; }
.logo-mark {
    width: 46px; height: 46px; background: #fff; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px; letter-spacing: -.5px; overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-txt strong { display: block; font-size: 18px; color: var(--brand-d); letter-spacing: .2px; line-height: 1.2; }
.logo-txt small { display: block; font-size: 10.5px; color: var(--gray-l); letter-spacing: 1.6px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a {
    font-size: 14.5px; color: var(--ink); padding: 6px 0; position: relative; transition: color .2s;
}
.nav > a:hover { color: var(--brand-l); }
.nav > a.active { color: var(--brand); font-weight: 600; }
.nav > a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--accent);
}

.hdr-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line); overflow: hidden; }
.lang-switch button {
    border: 0; background: #fff; padding: 6px 12px; font-size: 12.5px;
    cursor: pointer; color: var(--gray); white-space: nowrap; transition: .2s;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.on { background: var(--brand); color: #fff; }

.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--brand-d); }

/* ============ hero (full bleed) ============ */
.hero {
    position: relative; min-height: 580px; display: flex; align-items: flex-end;
    color: #fff; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(20,60,92,.18) 0%, rgba(16,52,80,.38) 55%, rgba(13,46,72,.62) 100%),
        linear-gradient(135deg, #3a7fb4, #1d5a8a);
}
.hero::after {
    content: ""; position: absolute; left: -10%; top: -20%;
    width: 60%; height: 180%; transform: rotate(18deg);
    background: linear-gradient(90deg, rgba(212,130,42,.16), transparent 70%);
    z-index: 0; pointer-events: none;
}
/* 有视频时：橙色斜光收在视频之下，避免糊在画面上 */
.hero:has(.hero-video-wrap)::after { display: none; }
.hero.center { align-items: center; text-align: center; }
.hero.center h1, .hero.center p { margin-left: auto; margin-right: auto; }
.hero.center .hero-btns { justify-content: center; }
.hero .container { position: relative; z-index: 3; padding-top: 96px; padding-bottom: 64px; }
.hero h1 { max-width: 900px; }
.hero h1 .thin { display: block; font-size: .52em; font-weight: 500; letter-spacing: .5px; color: #ffd9ae; margin-top: 10px; }
.hero p { max-width: 660px; margin-top: 20px; font-size: clamp(15px, 1.6vw, 18px); color: #d9e5f0; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; font-size: 15px; font-weight: 600; transition: .25s;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-l); box-shadow: 0 14px 40px rgba(212,130,42,.35); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-l); box-shadow: var(--shadow-h); }
.btn-light { background: #fff; color: var(--brand-d); }
.btn-light:hover { background: #eef3f8; }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn .arw { font-size: 17px; line-height: 1; }

/* ============ KPI band (carousel) ============ */
.kpi { background: var(--brand-d); color: #fff; padding: 54px 0; }
.kpi-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; gap: 20px; }
.kpi-head h2 { font-size: 22px; font-weight: 700; }
.kpi-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9fb6cb; letter-spacing: 1px; }
.kpi-nav button {
    width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28);
    background: transparent; color: #fff; cursor: pointer; font-size: 15px; transition: .2s;
}
.kpi-nav button:hover { background: rgba(255,255,255,.16); }
.kpi-viewport { overflow: hidden; }
.kpi-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.kpi-slide { flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 44px; }
.kpi-item b {
    display: block; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; font-weight: 700;
    color: #fff; letter-spacing: -.5px;
}
.kpi-item b em { font-style: normal; color: var(--accent-l); font-size: .58em; margin-left: 4px; }
.kpi-item span { display: block; margin-top: 8px; font-size: 13.5px; color: #a9c0d4; }

/* ============ sections ============ */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--brand-d); color: #dfeaf4; }
.section.dark h2, .section.dark h3 { color: #fff; }

.sec-head { margin-bottom: 52px; max-width: 780px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 16px; font-size: 16px; color: var(--gray); }
.sec-head .lead-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }

/* ============ tiles (image cards) ============ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile {
    position: relative; min-height: 320px; overflow: hidden; display: flex;
    align-items: flex-end; padding: 28px; color: #fff;
    background:
        linear-gradient(180deg, rgba(20,60,92,.10) 0%, rgba(20,60,92,.52) 100%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #3d82b8, #1d5a8a);
    transition: .35s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.tile .tag {
    position: absolute; top: 22px; left: 26px; font-size: 11px; letter-spacing: 1.6px;
    text-transform: uppercase; color: #f4c48d; font-weight: 700;
}
.tile h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.tile p { margin-top: 10px; font-size: 14px; color: #cddcec; }
.tile .go { margin-top: 16px; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; }
.tile .go:hover { gap: 14px; }

/* ============ split media ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev .media { order: 2; }
.media {
    min-height: 380px; position: relative;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
        linear-gradient(140deg, #3f86bb, #1f5f90);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.72); letter-spacing: 3px; font-size: 12.5px;
}
.media.sm { min-height: 260px; }
.media.photo { background: #26557d center/cover no-repeat; }
.media.photo:not(.has-img) {
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
        linear-gradient(140deg, #3f86bb, #1f5f90);
}
.media.photo.has-img { color: transparent; font-size: 0; letter-spacing: 0; }
.split h2 { margin-bottom: 18px; }
.split p + p { margin-top: 14px; }

/* ============ 可上传图位（后台 data-img-key） ============ */
.tile, .page-hero, .cta, .media { background-repeat: no-repeat; background-position: center; background-size: cover; }
.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.tile.has-img, .page-hero.has-img, .cta.has-img, .media.has-img { background-size: cover; }
.tile.has-img .tag { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.tile.has-img h3 { text-shadow: 0 2px 10px rgba(0,0,0,.6); }

/* ============ 首页大横幅视频 ============ */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #2a6da3; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.hero.has-video::before,
.hero:has(.hero-video-wrap)::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(20,60,92,.15) 0%, rgba(16,52,80,.35) 55%, rgba(13,46,72,.55) 100%);
}
/* 视频就位后隐藏背景图，避免透明边缘露出旧图 */
.hero:has(.hero-video-wrap) { background-image: none !important; }
.hero.has-video { background-image: none; }
.hero-vbtn {
    position: absolute; right: 24px; bottom: 24px; z-index: 5;
    width: 42px; height: 42px; border-radius: 50%; padding: 0;
    border: 1px solid rgba(255,255,255,.55); background: rgba(20,60,92,.42);
    color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .2s;
}
.hero-vbtn:hover { background: rgba(212,130,42,.9); border-color: transparent; }
@media (max-width: 640px) {
    .hero-vbtn { right: 14px; bottom: 14px; width: 34px; height: 34px; font-size: 12px; }
}

/* ============ feature list ============ */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #2c3e50; }
.checklist li::before {
    content: "—"; flex: none; color: var(--accent); font-weight: 700; line-height: 1.6;
}

/* ============ plain cards ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.five { grid-template-columns: repeat(5, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); padding: 32px 28px; transition: .3s;
    border-top: 3px solid transparent;
}
.card:hover { box-shadow: var(--shadow-h); border-top-color: var(--accent); transform: translateY(-3px); }
.card h3 { color: var(--brand-d); margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--gray); }
.card .num {
    font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; display: block;
}

/* ============ 规格速览条（产品页顶部） ============ */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); }
.spec-strip > div { padding: 26px 28px; border-right: 1px solid var(--line); }
.spec-strip > div:last-child { border-right: 0; }
.spec-strip b { display: block; font-size: clamp(22px, 2.4vw, 30px); color: var(--brand); font-weight: 700; letter-spacing: -.5px; }
.spec-strip b em { font-style: normal; font-size: .55em; color: var(--accent); margin-left: 3px; }
.spec-strip span { display: block; margin-top: 6px; font-size: 13px; color: var(--gray); }

/* ============ 工艺徽章 ============ */
.proc-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.proc-badges span {
    padding: 8px 18px; border: 1px solid var(--line); background: #fff;
    font-size: 13.5px; font-weight: 600; color: var(--brand); letter-spacing: .5px;
}
.proc-badges span.hot { border-color: var(--accent); color: var(--accent); background: #fdf7ef; }

/* ============ 流程步骤 ============ */
.proc-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.proc-steps li {
    position: relative; padding: 26px 22px 22px; border-top: 3px solid var(--line);
    background: #fff; counter-increment: step;
}
.proc-steps li::before {
    content: "0" counter(step); display: block; font-size: 13px; font-weight: 700;
    color: var(--accent); letter-spacing: 2px; margin-bottom: 10px;
}
.proc-steps li b { display: block; font-size: 16px; color: var(--brand-d); margin-bottom: 6px; }
.proc-steps li p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ============ 案例卡（带编号） ============ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: .3s; display: flex; flex-direction: column; }
.case-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.case-card .cc-media {
    min-height: 190px; position: relative;
    background:
        linear-gradient(180deg, rgba(20,60,92,.08), rgba(20,60,92,.42)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #3d82b8, #1d5a8a);
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.case-card .cc-media.has-img { color: transparent; font-size: 0; }
.case-card .cc-year {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; letter-spacing: 1px;
}
.case-card .cc-media .cc-no {
    position: absolute; right: 16px; bottom: 8px; z-index: 2;
    font-size: 44px; font-weight: 800; color: rgba(255,255,255,.35); line-height: 1;
}
.case-card .cc-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case-card .cc-cat { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.case-card h3 { font-size: 17.5px; color: var(--brand-d); line-height: 1.45; margin-bottom: 10px; }
.case-card p { font-size: 13.5px; color: var(--gray); flex: 1; }
.case-card .cc-spec { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--gray-l); }

/* ============ 证书网格 ============ */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert-tile {
    background: #fff; border: 1px solid var(--line); padding: 30px 24px; text-align: center; transition: .3s;
}
.cert-tile:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); border-top: 3px solid var(--accent); }
.cert-tile .ct-ico { font-size: 34px; margin-bottom: 16px; color: var(--accent); line-height: 1; }
.cert-tile b { display: block; font-size: 15.5px; color: var(--brand-d); line-height: 1.5; margin-bottom: 8px; }
.cert-tile span { display: block; font-size: 12.5px; color: var(--gray); line-height: 1.6; }

/* ============ 标准徽章 ============ */
.std-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.std-badges span {
    background: var(--brand-d); color: #fff; padding: 12px 22px;
    font-size: 14px; font-weight: 600; letter-spacing: .6px;
    border-left: 3px solid var(--accent);
}

/* ============ table ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 660px; background: #fff; }
thead th {
    background: var(--brand-d); color: #fff; font-size: 13px; font-weight: 600;
    padding: 15px 20px; text-align: left; letter-spacing: .3px;
}
tbody td { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #fafbfd; }
tbody tr:hover { background: #f0f5fa; }
tbody td:first-child { font-weight: 600; color: var(--brand-d); white-space: nowrap; }

/* ============ timeline ============ */
.timeline { border-left: 2px solid var(--line); padding-left: 32px; }
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li::before {
    content: ""; position: absolute; left: -39px; top: 6px;
    width: 12px; height: 12px; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.timeline b { display: block; font-size: 13px; color: var(--accent); letter-spacing: 1.4px; margin-bottom: 4px; }
.timeline h4 { font-size: 17px; color: var(--brand-d); margin-bottom: 6px; }
.timeline p { font-size: 14px; color: var(--gray); }

/* ============ quote ============ */
.quote {
    background: var(--bg-soft); border-left: 4px solid var(--accent);
    padding: 30px 34px; margin-top: 34px;
}
.quote p { font-size: 17px; color: var(--brand-d); line-height: 1.65; font-style: italic; }
.quote footer { margin-top: 16px; font-size: 13.5px; color: var(--gray); }
.quote footer b { display: block; color: var(--ink); font-size: 14px; }

/* ============ downloads ============ */
.dl-row {
    display: grid; grid-template-columns: 1fr 120px 90px 120px; gap: 20px;
    align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff;
}
.dl-row.head { background: var(--brand-d); color: #fff; font-size: 12.5px; letter-spacing: 1px; font-weight: 600; }
.dl-row .fname { font-size: 14.5px; font-weight: 600; color: var(--brand-d); }
.dl-row .meta { font-size: 13px; color: var(--gray); }
.dl-row .get { font-size: 13.5px; font-weight: 600; color: var(--brand-l); }
.dl-row .get:hover { color: var(--accent); }

/* ============ cta band ============ */
.cta { background: var(--brand); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.cta::after {
    content: ""; position: absolute; right: -60px; bottom: -120px; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(circle, rgba(212,130,42,.35), transparent 65%);
}
.cta .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; line-height: 1.25; }
.cta p { margin-top: 12px; color: #c5d8e8; font-size: 15px; }

/* ============ breadcrumb ============ */
.crumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 13px; color: var(--gray); }
.crumb a:hover { color: var(--brand-l); }

/* ============ contact ============ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.info-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item .k {
    flex: none; width: 92px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray-l); font-weight: 700; padding-top: 3px;
}
.info-item .v b { display: block; font-size: 15px; color: var(--brand-d); font-weight: 600; }
.info-item .v span { font-size: 14px; color: var(--gray); }

.form-card { background: #fff; border: 1px solid var(--line); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray); font-weight: 700; margin-bottom: 7px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff;
    font-size: 14.5px; font-family: inherit; color: var(--ink); transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--brand-l); box-shadow: 0 0 0 3px rgba(26,109,168,.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--gray-l); margin-top: 14px; line-height: 1.6; }

/* ============ footer ============ */
.footer { background: var(--brand-d); color: #c6dbec; padding: 68px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { padding: 5px 0; font-size: 13.5px; }
.footer ul li a:hover { color: #fff; }
.footer .f-brand .logo-mark { background: #fff; color: var(--brand-d); }
.footer .f-brand .logo-txt strong { color: #fff; }
.footer .f-brand p { font-size: 13.5px; line-height: 1.85; margin-top: 16px; max-width: 320px; }
.footer-btm {
    margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #7f95ac;
}
.footer-btm a:hover { color: #fff; }

/* ============ page hero (inner) ============ */
.page-hero {
    position: relative; color: #fff; padding: 168px 0 138px; overflow: hidden;
    min-height: 470px; display: flex; align-items: center;
    background:
        linear-gradient(180deg, rgba(20,60,92,.22), rgba(20,60,92,.55)),
        repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 3px, transparent 3px 24px),
        linear-gradient(135deg, #3d82b8, #1d5a8a);
}
/* 有实拍图的内页横幅：与首页大横幅同尺寸（通栏 580px） */
.page-hero.has-img {
    min-height: 580px;
    padding: 0;
    background-position: center 62%;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 860px; }
.page-hero p { margin-top: 18px; max-width: 680px; color: #d2e1ee; font-size: 16.5px; }

/* ============ responsive ============ */
@media (max-width: 1080px) {
    .tiles.four, .cards.four { grid-template-columns: repeat(2, 1fr); }
    .cards.five { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-strip { grid-template-columns: repeat(2, 1fr); }
    .spec-strip > div:nth-child(2n) { border-right: 0; }
    .proc-steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .container { padding: 0 22px; }
    .tiles, .cards, .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .split.rev .media { order: 0; }
    .kpi-slide { grid-template-columns: repeat(2, 1fr); }
    .cta .container { grid-template-columns: 1fr; }
    .nav {
        display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 22px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .burger { display: block; }
    .header .container { position: relative; }
    .sec-head .lead-split { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .tiles, .tiles.two, .tiles.four, .cards, .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; }
    .kpi-slide { grid-template-columns: 1fr; gap: 26px; }
    .checklist, .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .dl-row { grid-template-columns: 1fr; gap: 6px; }
    .hero { min-height: 480px; }
    .page-hero.has-img { min-height: 480px; }
    .cert-grid { grid-template-columns: 1fr; }
    .spec-strip { grid-template-columns: 1fr; }
    .spec-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .proc-steps { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
}

/* 内页大横幅：小屏适当收窄 */
@media (max-width: 760px) {
    .page-hero { min-height: 340px; padding: 110px 0 92px; }
    .page-hero.has-img { min-height: 320px; padding: 0; }
}

/* ============ WhatsApp 悬浮按钮（全站） ============ */
.wa-float {
    position: fixed; right: 22px; bottom: 24px; z-index: 60;
    display: inline-flex; align-items: center; gap: 9px;
    background: #25D366; color: #fff; font-size: 15px; font-weight: 600;
    padding: 12px 18px 12px 15px; border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22); text-decoration: none;
    transition: opacity .18s ease;
}
.wa-float:hover { background: #1EBE5B; color: #fff; }
.wa-float svg { flex: 0 0 24px; display: block; }
@media (max-width: 760px) {
    .wa-float { right: 14px; bottom: 16px; padding: 13px; }
    .wa-float span { display: none; }
}

/* 联系页：WhatsApp 主按钮 + 二维码卡 */
.wa-cta { display: flex; width: fit-content; align-items: center; gap: 9px; background: #25D366; color: #fff !important; font-weight: 600; padding: 10px 20px; border-radius: 999px; margin-top: 12px; font-size: 14px; text-decoration: none; }
.wa-cta:hover { background: #1EBE5B; color: #fff; }
.qr-card { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.qr-card img { flex: 0 0 auto; width: 124px; height: 124px; display: block; border-radius: 8px; background: #fff; }
.qr-card .qr-t { font-size: 15px; font-weight: 600; color: var(--brand-d); margin-bottom: 4px; }
.qr-card .qr-d { font-size: 13px; color: var(--gray); line-height: 1.55; }
@media (max-width: 560px) { .qr-card { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   移动端优化（手机 / 小平板）
   —— 目标：375–430px 宽度下无横向溢出、文字不挤、触摸目标 ≥44px
   —— 桌面端样式完全不受影响（全部包在 max-width 里）
   ============================================================ */

/* ---------- 480px 及以下：手机主战场 ---------- */
@media (max-width: 480px) {

    /* --- 版心与纵向节奏 --- */
    .container { padding: 0 18px; }
    .section { padding: 52px 0; }
    .sec-head { margin-bottom: 32px; }
    .sec-head p { font-size: 15px; }

    /* --- 顶栏：手机端只留服务热线（可点拨打），其余收起避免两行挤压 --- */
    .topbar { display: block; font-size: 12px; }
    .topbar .container { min-height: 32px; justify-content: center; }
    .topbar .tb-right { display: none; }
    .topbar a { display: inline-block; padding: 6px 0; }

    /* --- 头部：Logo 收窄、语言切换与汉堡按钮放大到可点 --- */
    .header .container { height: 62px; gap: 12px; }
    .logo-mark { width: 38px; height: 38px; }
    .logo-txt strong { font-size: 15.5px; }
    .logo-txt small { font-size: 9.5px; letter-spacing: 1.1px; }
    .hdr-right { gap: 10px; }
    .lang-switch button { padding: 9px 11px; font-size: 13px; }
    .burger { font-size: 28px; padding: 4px 6px; }

    /* --- 导航下拉：跟随新的 62px 头高，项高 ≥44px 便于手指点 --- */
    .nav {
        top: 62px; gap: 0; padding: 6px 18px 14px;
    }
    .nav > a {
        width: 100%; padding: 13px 0; font-size: 16px;
        border-bottom: 1px solid var(--line);
    }
    .nav > a:last-child { border-bottom: 0; }
    .nav > a.active::after { display: none; }
    .nav > a.active { color: var(--brand); }

    /* --- 大横幅：手机竖屏按 4:3 左右，别撑成一屏 --- */
    .hero { min-height: 0; }
    .hero.has-img { min-height: min(78vh, 520px); }
    .hero .container { padding-top: 64px; padding-bottom: 44px; }
    .hero h1 { font-size: clamp(26px, 8vw, 34px); }
    .hero p { font-size: 14.5px; margin-top: 14px; }
    .hero-btns { gap: 10px; margin-top: 22px; }
    .hero-btns .btn { flex: 1 1 auto; justify-content: center; }

    .page-hero { padding: 96px 0 74px; }
    .page-hero.has-img { min-height: 0; }
    .page-hero h1 { font-size: clamp(25px, 7.6vw, 32px); }
    .page-hero p { font-size: 14.5px; margin-top: 12px; }

    /* --- 按钮：手机端通栏更好点 --- */
    .btn { padding: 13px 24px; font-size: 15px; }

    /* --- KPI 数字区 --- */
    .kpi { padding: 42px 0; }
    .kpi-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .kpi-item b { font-size: 30px; }
    .kpi-item span { font-size: 13px; }

    /* --- 卡片 / 图块内边距收紧 --- */
    .card { padding: 24px 20px; }
    .tile { min-height: 240px; padding: 22px; }
    .tile .tag { top: 18px; left: 20px; }
    .tile h3 { font-size: 19px; }
    .media, .media.sm { min-height: 230px; }
    .case-card .cc-body { padding: 20px 18px 22px; }
    .case-card .cc-media { min-height: 170px; }
    .cert-tile { padding: 24px 18px; }
    .proc-steps li { padding: 20px 18px 18px; }
    .spec-strip > div { padding: 20px 18px; }
    .quote { padding: 22px 20px; }
    .quote p { font-size: 15.5px; }
    .timeline { padding-left: 24px; }
    .timeline li::before { left: -31px; }

    /* --- 表格：横向可滑，加提示不隐藏内容 --- */
    .table-wrap { position: relative; -webkit-overflow-scrolling: touch; }
    table { min-width: 560px; }
    thead th { padding: 12px 14px; font-size: 12.5px; }
    tbody td { padding: 12px 14px; font-size: 13.5px; }

    /* --- 联系页 --- */
    .contact-grid { gap: 28px; }
    .info-item { gap: 14px; padding: 16px 0; }
    .info-item .k { width: 76px; font-size: 11px; }
    .info-item .v b { font-size: 14.5px; word-break: break-word; }
    .info-item .v span { font-size: 13.5px; }
    .form-card { padding: 24px 20px; }
    .field input, .field textarea, .field select { font-size: 16px; padding: 12px 13px; }
    .qr-card { padding: 16px; }
    .qr-card img { width: 108px; height: 108px; }
    .wa-cta { width: 100%; justify-content: center; }

    /* --- 页脚 --- */
    .footer { padding: 48px 0 0; }
    .footer-grid { gap: 30px; }
    .footer .f-brand p { font-size: 13px; }
    .footer ul li { padding: 7px 0; font-size: 14px; }
    .footer-btm { margin-top: 34px; flex-direction: column; gap: 10px; align-items: flex-start; }

    /* --- CTA 行动区：文字与按钮上下堆叠 --- */
    .cta { padding: 52px 0; }
    .cta h2 { font-size: 22px; }
    .cta p { font-size: 14.5px; }
    .cta .btn { width: 100%; justify-content: center; }

    /* --- 价格/规格徽章换行更自然 --- */
    .proc-badges { gap: 8px; }
    .proc-badges span { padding: 7px 14px; font-size: 13px; }
    .std-badges span { padding: 10px 16px; font-size: 13px; }

    /* --- 悬浮 WhatsApp 球：避让底部安全区 --- */
    .wa-float { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

    /* --- 后台「内容管理」入口：手机端不需要，隐藏（电脑端照常可见） --- */
    .admin-link { display: none; }
}

/* ---------- 后台入口：触摸设备在窄屏下一并隐藏（与 admin.html 的 900px 跳转阈值对齐） ---------- */
@media (hover: none) and (max-width: 900px) {
    .admin-link { display: none; }
}

/* ---------- 400px 及以下：小屏手机（iPhone SE 等） ---------- */
@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .section { padding: 44px 0; }
    .logo-txt strong { font-size: 14.5px; }
    .logo-txt small { display: none; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .kpi-item b { font-size: 26px; }
    .card { padding: 20px 16px; }
    .tile { min-height: 210px; }
    table { min-width: 520px; }
    .header .container { gap: 8px; }
    .lang-switch button { padding: 8px 9px; font-size: 12px; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }
}

/* ---------- 横屏手机（矮视口）：横幅别撑满整屏 ---------- */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero, .hero.has-img { min-height: 320px; }
    .hero .container { padding-top: 40px; padding-bottom: 32px; }
    .hero h1 { font-size: 26px; }
}

/* ---------- 触摸设备：去掉 hover 位移（避免点击时抖动） ---------- */
@media (hover: none) {
    .tile:hover, .card:hover, .case-card:hover, .cert-tile:hover { transform: none; }
    .footer ul li a, .nav > a { -webkit-tap-highlight-color: transparent; }
}

/* ---------- 全局防溢出：长英文/法文单词与长链接不撑破版心 ---------- */
@media (max-width: 640px) {
    h1, h2, h3, h4, p, li, td, th, .info-item .v { overflow-wrap: break-word; word-break: break-word; }
    a[href^="mailto:"], a[href^="tel:"], a[href*="wa.me"] { overflow-wrap: anywhere; }
    body { overflow-x: hidden; }
}

/* ---------- 安全区适配（iPhone 刘海屏 / 底部横条） ---------- */
@supports (padding: env(safe-area-inset-left)) {
    @media (max-width: 480px) {
        .container {
            padding-left: calc(18px + env(safe-area-inset-left, 0px));
            padding-right: calc(18px + env(safe-area-inset-right, 0px));
        }
    }
}
