/* 砺流阀门：将通用设计控件映射到页头、轮播、产品目录、正文和页脚。 */
body.theme-valve {
    --ink: var(--td-text, #17243a);
    --paper: var(--td-page_bg, #fff);
    --accent: var(--td-primary, #2456c4);
    --muted: var(--td-muted, #526076);
    --rule: color-mix(in srgb, var(--ink) 16%, var(--paper));
    --valve-tint: color-mix(in srgb, var(--ink) 5%, var(--paper));
    --valve-hero-bg: var(--td-dark_bg, #17243a);
    --valve-hero-ink: var(--td-hero_text, #fff);
    --valve-heading-scale: calc(var(--td-heading_scale, 100) / 100);
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--td-font_family, "Segoe UI", "Microsoft YaHei", sans-serif);
    font-size: var(--td-body_size, 16px);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.theme-valve .wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.theme-valve :is(h1, h2, h3) { color: inherit; letter-spacing: -.022em; font-weight: 710; line-height: 1.2; }
.theme-valve h1 { font-size: calc(clamp(32px, 4.8vw, 62px) * var(--valve-heading-scale)); margin: 0 0 16px; }
.theme-valve h2 { font-size: calc(clamp(24px, 3vw, 37px) * var(--valve-heading-scale)); margin: 0 0 12px; }
.theme-valve h3 { font-size: calc(19px * var(--valve-heading-scale)); margin: 0 0 10px; }
.theme-valve p { margin: 0 0 16px; color: var(--muted); }
.theme-valve :is(a, summary, button, input):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.theme-valve .valve-eyebrow { font-size: .75em; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.theme-valve .valve-section { padding-block: clamp(40px, 5.1vw, 76px); }
.theme-valve .valve-section-tinted { background: var(--valve-tint); }

/* 页头用共用菜单；移动端的展开和语言选择由现有组件负责。 */
.theme-valve .valve-header {
    background: var(--td-header_bg, #fff);
    color: var(--td-header_text, #17243a);
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--rule);
}
.theme-valve .site-header { min-height: 78px; padding-block: 12px; }
.theme-valve .site-header .site-brand { font-size: calc(22px * var(--td-logo_scale, 100) / 100); font-weight: 750; line-height: 1.2; }
.theme-valve .site-logo { width: calc(46px * var(--td-logo_scale, 100) / 100); height: auto; }
.theme-valve .site-header .desktop-navigation { gap: clamp(20px, 2.5vw, 42px); }
.theme-valve .site-header .desktop-navigation > a { font-size: .92em; font-weight: 620; padding-block: 12px; }
.theme-valve .site-header .desktop-navigation > a:hover,
.theme-valve .site-header .desktop-navigation > a[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -2px var(--accent); }
.theme-valve .site-header .mobile-navigation-links { --paper: var(--td-header_bg, #fff); }

/* 控件共用同一品牌色。轮播上的描边版使用文字色，在背景照片上保持可读。 */
.theme-valve .valve-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 10px calc(20px * var(--td-button_padding, 100) / 100);
    max-width: 100%;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--td-button_radius, 6px);
    color: var(--td-primary_ink, #fff);
    font: inherit;
    font-size: .9em;
    font-weight: 680;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.theme-valve .valve-button:hover { text-decoration: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 24%, transparent); }
.theme-valve[data-td-button_style="outline"] .valve-button { background: transparent; border-color: currentColor; color: inherit; }
.theme-valve .valve-text-link { font-weight: 680; text-decoration: underline; text-underline-offset: .24em; }

/* 桌面首屏将照片定位在阅读方向末端，手机回归公共原图比例布局。 */
.theme-valve .valve-hero { position: relative; background: var(--valve-hero-bg); color: var(--valve-hero-ink); }
.theme-valve .valve-slide {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    --valve-slide-height: calc(clamp(430px, 41vw, 572px) * var(--td-hero_scale, 100) / 100);
    min-height: var(--valve-slide-height);
}
.theme-valve .valve-slide[hidden],
.theme-valve .valve-slide-controls[hidden] { display: none; }
.theme-valve .valve-slide > img {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(78%, calc(var(--valve-slide-height) * 1.5));
    height: 100%;
    object-fit: contain;
    object-position: right center;
    z-index: -2;
}
.theme-valve .valve-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--valve-hero-bg), color-mix(in srgb, var(--valve-hero-bg) 94%, transparent) 32%, transparent 74%);
    pointer-events: none;
}
/* 只淡化照片与底色的交界，保留完整产品轮廓；手机原图无需遮罩。 */
@media (min-width: 721px) {
    .theme-valve .valve-slide > img { mask-image: linear-gradient(90deg, transparent, #000 30%); }
    [dir="rtl"] .theme-valve .valve-slide > img {
        object-position: left center;
        mask-image: linear-gradient(-90deg, transparent, #000 30%);
    }
}
[dir="rtl"] .theme-valve .valve-slide::after { transform: scaleX(-1); }
.theme-valve .valve-hero-copy-inner { width: min(1200px, calc(100% - 64px)); margin-inline: auto; padding-block: 38px 75px; }
.theme-valve .valve-hero-copy-inner > :is(h1, h2, p) { max-width: min(48%, 540px); color: inherit; }
.theme-valve .valve-hero-copy-inner h2 { font-size: calc(clamp(32px, 4.8vw, 62px) * var(--valve-heading-scale)); }
.theme-valve .valve-hero-description { font-size: 1.08em; margin-block-end: 24px; }
.theme-valve .valve-slide-controls {
    position: absolute;
    inset-inline-start: max(32px, calc((100% - 1200px) / 2));
    bottom: 14px;
    display: flex;
    z-index: 2;
}
.theme-valve .valve-slide-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.theme-valve .valve-slide-controls button > span {
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    opacity: .45;
}
.theme-valve .valve-slide-controls button[aria-current="true"] > span { opacity: 1; }

/* 商品卡片使用完整封面；编辑器给图片叠加的控件也保留在卡片内。 */
.theme-valve .valve-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.theme-valve .valve-section-heading p:last-child { margin-bottom: 0; }
.theme-valve .valve-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.theme-valve .valve-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rule);
    border-radius: 7px;
    background: var(--paper);
}
.theme-valve .valve-card:focus-within { border-color: var(--accent); }
.theme-valve .valve-card-image-link { display: block; }
.theme-valve .valve-card-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 6px 6px 0 0;
    background: var(--valve-tint);
}
.theme-valve .valve-card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 20px; }
.theme-valve .valve-card-copy h2 { font-size: calc(21px * var(--valve-heading-scale)); }
.theme-valve .valve-card-copy p { flex: 1; font-size: .94em; }
.theme-valve .valve-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.theme-valve .valve-note-list { display: grid; gap: 14px; }
.theme-valve .valve-quote { color: var(--td-dark_text, #fff); background: var(--td-dark_bg, #17243a); }
.theme-valve .valve-quote-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.theme-valve .valve-quote-inner p { margin: 0; color: inherit; }

/* 栏目、产品技术资料与统一询盘都以同一内容宽度对齐。 */
.theme-valve .valve-masthead { background: var(--valve-tint); border-bottom: 1px solid var(--rule); padding-block: 26px 34px; }
.theme-valve .valve-masthead h1 { margin: 0; }
.theme-valve .breadcrumbs { margin: 0 0 18px; }
.theme-valve .valve-filters { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.theme-valve .valve-family-links { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-valve .valve-family-links a { padding: 9px 13px; border: 1px solid var(--rule); border-radius: 6px; }
.theme-valve .valve-family-links a[aria-current] { font-weight: 700; background: var(--valve-tint); border-color: currentColor; }
.theme-valve .valve-search { display: flex; gap: 8px; width: min(100%, 340px); }
.theme-valve :is(.valve-search input, .valve-inquiry input, .valve-inquiry textarea, .valve-inquiry select) {
    min-width: 0;
    width: 100%;
    padding-inline: 12px;
    border: 1px solid var(--rule);
    border-radius: 5px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.theme-valve .valve-search input { min-height: 46px; }
.theme-valve .valve-detail { padding-block: 28px 60px; }
.theme-valve .valve-detail-grid, .theme-valve .valve-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 56px); }
.theme-valve .valve-detail h1 { font-size: calc(clamp(30px, 4vw, 50px) * var(--valve-heading-scale)); }
.theme-valve .valve-reading { max-width: 800px; margin-inline: auto; }
.theme-valve .valve-reading-photo { margin: 24px auto; }
.theme-valve .valve-reading-photo img { display: block; width: 100%; height: auto; }
.theme-valve .valve-detail-image { min-width: 0; }
.theme-valve .valve-detail-image:empty { display: none; }
.theme-valve .valve-detail-grid:has(.valve-detail-image:empty) { grid-template-columns: minmax(0, 800px); }
.theme-valve .valve-lead { font-size: 1.12em; }
.theme-valve .specs { margin-block: 22px; }
.theme-valve .article-body { white-space: normal; margin-block: 28px; min-height: 0; }
.theme-valve .article-body h2 { font-size: calc(23px * var(--valve-heading-scale)); margin-block: 24px 8px; }
.theme-valve .valve-inquiry { background: var(--valve-tint); border-color: var(--rule); border-radius: 7px; padding: clamp(16px, 3vw, 28px); }
.theme-valve .valve-inquiry .valve-button { margin-top: 14px; }
.theme-valve .valve-product-inquiry { width: min(100%, 800px); margin: 38px auto 0; }
.theme-valve .valve-inquiry .honeypot { position: absolute; inset: auto; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

.theme-valve .valve-footer { color: var(--td-footer_text, #f2f5fc); background: var(--td-footer_bg, #142039); padding-top: 28px; }
.theme-valve .valve-footer-inner, .theme-valve .valve-footer-end { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; }
.theme-valve .valve-footer p { margin: 8px 0 0; color: inherit; }
.theme-valve .valve-footer-end { margin-top: 24px; padding-block: 14px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: .85em; }

/* 720px 下画面按原图高度渲染，指示条覆盖轮播内部。 */
@media (max-width: 720px) {
    .theme-valve .wrap { width: calc(100% - 32px); }
    .theme-valve .valve-hero-copy { padding-inline: 16px; }
    .theme-valve .valve-hero-copy-inner { width: 100%; padding: 0; }
    .theme-valve .valve-hero-copy-inner > :is(h1, h2, p) { max-width: 100%; }
    .theme-valve .valve-section-heading { flex-wrap: wrap; align-items: start; }
    .theme-valve .valve-cards, .theme-valve .valve-split,
    .theme-valve .valve-contact, .theme-valve .valve-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .theme-valve .valve-detail h1 { margin-block-end: 12px; }
    .theme-valve .valve-inquiry .valve-button { width: 100%; }
}

/* 公司简介与联系资料共用同一版式，遇到长邮箱或地址时可自然换行。 */
.theme-valve .valve-company { border-block: 1px solid var(--rule); }
.theme-valve .valve-company-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 5vw, 72px);
}
.theme-valve .valve-company-intro > p:not(.valve-eyebrow) { max-width: 62ch; }
.theme-valve .valve-company-grid > .valve-company-details {
    border: 1px solid var(--rule);
    border-radius: 7px;
    padding: clamp(16px, 2.7vw, 34px);
    background: var(--valve-tint);
}
.theme-valve .valve-company-details { margin: 0; }
.theme-valve .valve-company-details > div + div {
    border-top: 1px solid var(--rule);
    margin-top: 12px;
    padding-top: 12px;
}
.theme-valve .valve-company-details dt { color: var(--muted); font-size: .87em; }
.theme-valve .valve-company-details dd { margin: 3px 0 0; font-weight: 600; }
.theme-valve .valve-reading .valve-company-details { margin-block-start: 25px; }
.theme-valve .valve-footer .valve-company-details { margin-block: 10px 0; font-size: .92em; }
.theme-valve .valve-footer .valve-company-details dt { color: inherit; opacity: .78; }
.theme-valve .valve-footer .valve-company-details > div + div { border: 0; margin-top: 8px; padding: 0; }

@media (max-width: 720px) {
    .theme-valve .valve-company-grid { grid-template-columns: minmax(0, 1fr); }
}


/* 内页横幅保留真实图片和编辑绑定。正文标题有独立排版，不依赖照片内文字。 */
.theme-valve .valve-masthead-photo {
    position: relative;
    display: grid;
    align-items: end;
    isolation: isolate;
    min-height: clamp(235px, 22vw, 348px);
    padding-block: 30px clamp(28px, 4vw, 56px);
    color: var(--valve-hero-ink);
    background: var(--valve-hero-bg);
    --valve-masthead-direction: 90deg;
}
[dir="rtl"] .theme-valve .valve-masthead-photo { --valve-masthead-direction: -90deg; }
.theme-valve .valve-masthead-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(var(--valve-masthead-direction), var(--valve-hero-bg), color-mix(in srgb, var(--valve-hero-bg) 84%, transparent) 38%, transparent 82%);
    pointer-events: none;
}
.theme-valve .valve-masthead-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    z-index: -2;
}
.theme-valve .valve-masthead-photo .breadcrumbs { color: inherit; }
.theme-valve .valve-masthead-photo h1 {
    max-width: 26ch;
    font-size: calc(clamp(33px, 4.4vw, 57px) * var(--valve-heading-scale));
}
@media (max-width: 720px) {
    .theme-valve .valve-masthead-photo { min-height: 0; padding: 0; }
    .theme-valve .valve-masthead-photo::after { display: none; }
    .theme-valve .valve-masthead-image {
        position: static;
        height: auto;
        min-height: 125px;
        aspect-ratio: 2.6 / 1;
        z-index: auto;
    }
    .theme-valve .valve-masthead-photo > .wrap { padding-block: 16px 20px; }
    .theme-valve .valve-masthead-photo .breadcrumbs { margin-bottom: 8px; }
    .theme-valve .valve-masthead-photo h1 { font-size: calc(29px * var(--valve-heading-scale)); }
}

