/* ============================================================
   Custom 详情页专属样式（custom/custom.html）
   命名空间全部以 .cd- 包裹，完全独立于：
     - home.css 的 .pd-* / .pm-* / .hero 等基础样式
     - quality.css 的 .quality-detail
     - custom-development.html 自身的局部内联样式
   --cd-header-h: 固定 header 真实高度（顶部条+主栏），用于 hero 让位
   ============================================================ */
:root {
    --cd-header-h: 130px;
}
   视觉版式严格复现 custom/custom-development.html 的各个 <section>。
   ============================================================ */

/* 页面容器：hero 通栏，header 让位由 hero 自身 padding 处理（避免背景图顶部被遮挡且上方无双倍空白） */
.cd-page {
    width: 100%;
    overflow: hidden;
    padding-top: 0;
}

/* 居中内容包裹（对齐 product/detail 的 .pd-container：max-width 1600，与首页通栏一致） */
.cd-wrap,
.cd-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* 区块通用标题（居中 + 蓝色下划线） */
.cd-title {
    font-size: 28px;
    font-weight: 700;
    color: #0a1f44;
    text-align: center;
    margin-bottom: 10px;
}
.cd-title--line::after {
    content: '';
    display: block;
    width: 48px; height: 3px;
    background: #0047cc;
    margin: 14px auto 0;
    border-radius: 2px;
}
.cd-subtitle {
    text-align: center;
    color: #5b6b85;
    font-size: 15px;
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ============ 1. Hero（与 quality 的 .pd-hero 显示效果一致） ============ */
.cd-hero {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(180deg,#f4f8ff 0%,#ffffff 100%);
}
.cd-hero--img {
    min-height: 72vh;
    display: flex;
    align-items: flex-start;
    padding: var(--cd-header-h) 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}
.cd-hero__bg {
    position: absolute;
    top: var(--cd-header-h); left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}
.cd-hero__bg img { display: none; }
.cd-hero .cd-container {
    position: relative;
    z-index: 1;
    width: 100%;
}
.cd-hero__left { max-width: 760px; margin-left: 0; padding-top: 30px; }
.cd-hero__title {
    font-size: 60px;
    font-weight: 800;
    color: #0f2c5c;
    line-height: 1.12;
    margin: 0 0 22px;
    letter-spacing: -1px;
}
.cd-hero__subtitle {
    font-size: 22px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 26px;
}
.cd-hero--img .cd-container { padding-left: 2%; }
.cd-hero--img .cd-hero__title { font-size: 64px; }
.cd-hero--img .cd-hero__subtitle { font-size: 17px; }
/* 标签（复刻 pd-hero__tags） */
.cd-hero__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.cd-tag { display: inline-block; padding: 8px 18px; background: #e8f0fe; color: #1a56db; font-size: 14px; font-weight: 600; border-radius: 999px; }
.cd-hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.cd-hero--img .cd-hero__btns { display: flex; }
.cd-hero--img .btn--ghost { background: transparent; border-color: #0f2c5c; color: #0f2c5c; }
/* 顶部 banner 按钮加大加长（仅作用于 hero 内按钮，不影响全站） */
.cd-hero__btns .btn { padding: 16px 44px; font-size: 18px; font-weight: 700; border-radius: 50px; }

/* ============ 2. 关键性能指标（3 卡片） ============ */
/* 各模块之间淡分隔线（不太明显） */
.cd-perf,
.cd-gauge,
.cd-banner {
    border-top: 1px solid rgba(15, 44, 92, 0.08);
}

.cd-perf {
    padding: 28px 0;
    background: #fff;
}
.cd-perf__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cd-perf-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 36px 26px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(10,31,68,.05);
    transition: transform .2s, box-shadow .2s;
}
.cd-perf-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,31,68,.1); }
.cd-perf-card__icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.cd-perf-card__icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cd-perf-card__title { font-size: 20px; font-weight: 600; color: #0a1f44; margin-bottom: 10px; }
.cd-perf-card__desc { font-size: 14px; color: #5b6b85; line-height: 1.7; margin-bottom: 18px; }
.cd-perf-card__stat { font-size: 30px; font-weight: 700; color: #0047cc; line-height: 1.1; }
.cd-perf-card__stat span { font-size: 13px; font-weight: 400; color: #94a3b8; display: block; margin-top: 4px; }

/* ============ 全宽 banner 长图（section 已通栏，直接 100% 铺满） ============ */
.cd-banner {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.cd-banner img { width: 100%; height: auto; display: block; }

/* ============ 4. 推荐规格选项（3 图） ============ */
.cd-gauge {
    padding: 80px 0;
    background: #fff;
}
.cd-gauge__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cd-gauge-card {
    text-align: center;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 20px;
    transition: transform .2s, box-shadow .2s;
}
.cd-gauge-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,31,68,.1); }
.cd-gauge-card img { width: 100%; height: 260px; object-fit: contain; display: block; margin-bottom: 14px; }
.cd-gauge-card__title { font-size: 20px; font-weight: 700; color: #0a1f44; }

/* ============ 7. 规格总览（左右双图） ============ */
.cd-specs {
    padding: 80px 0;
}
.cd-specs .cd-wrap {
    background: #f6f8fb;
    border-radius: 16px;
    padding: 48px 40px;
}
.cd-specs__inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: center;
}
.cd-specs__media img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.cd-specs__form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 28px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15,44,92,0.06);
}
.cd-specs__form-title { font-size: 22px; font-weight: 700; color: #0f2c5c; margin: 0 0 3px; }
.cd-specs__form-desc { font-size: 12px; color: #475569; line-height: 1.5; margin: 0 0 12px; }
/* 覆盖表单内联样式，压缩到 350px 高度内，与左侧 350 图片对齐 */
.cd-specs__form .contact-form { gap: 9px !important; }
.cd-specs__form label { font-size: 12px !important; margin-bottom: 3px !important; }
.cd-specs__form input,
.cd-specs__form textarea {
    font-size: 13px !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
}
.cd-specs__form textarea { min-height: 46px !important; }
.cd-specs__form .btn--primary {
    padding: 9px 26px !important;
    font-size: 14px !important;
}

/* ============ 8. 联系我们 CTA ============ */
.cd-cta {
    padding: 84px 0;
    text-align: center;
    background: linear-gradient(135deg, #0047cc 0%, #021a44 100%);
    color: #fff;
}
.cd-cta__title { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.cd-cta__desc { font-size: 16px; color: #cfe0ff; line-height: 1.7; max-width: 680px; margin: 0 auto 28px; }
.cd-cta__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 40px; border-radius: 4px;
    background: #fff; color: #0047cc;
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all .2s;
}
.cd-cta__btn:hover { background: #e6edff; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
    .cd-perf__grid, .cd-gauge__grid { grid-template-columns: 1fr; }
    .cd-specs__inner { grid-template-columns: 1fr; }
    .cd-hero__title { font-size: 34px; }
}
@media (max-width: 560px) {
    .cd-hero { padding: 80px 0; min-height: 50vh; }
    .cd-gauge-card img { height: 200px; }
}
