/* Design tokens and shared foundations */
:root {
    --dtp-blue: #005ca8;
    --dtp-blue-dark: #073a65;
    --dtp-green: #8dbb26;
    --dtp-green-dark: #587d13;
    --dtp-ink: #173147;
    --dtp-muted: #53687a;
    --dtp-line: #dce5eb;
    --dtp-paper: #ffffff;
    --dtp-surface: #f4f7f9;
    --dtp-radius: 12px;
    --dtp-shadow: 0 10px 28px rgba(22, 57, 80, .07);
    --dtp-width: 1360px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    margin: 0;
    color: var(--dtp-ink);
    background: var(--dtp-surface);
    font: 15px/1.8 "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--dtp-blue);
}

:focus-visible {
    outline: 3px solid var(--dtp-green);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

h1, h2, h3, h4, h5, p, figure, dl {
    margin: 0;
}

h1, h2, h3, h4, h5 {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: 30px;
    font-weight: 700;
}

h3 {
    font-size: 21px;
    font-weight: 700;
}

h4 {
    font-size: 18px;
}

p {
    color: var(--dtp-muted);
}

.dtp-main {
    min-height: 45vh;
}

.dtp-container {
    width: min(var(--dtp-width), calc(100% - 64px));
    margin-inline: auto;
    min-width: 0;
}

.dtp-section {
    padding-block: 64px;
}

.dtp-section + .dtp-section {
    padding-top: 16px;
}

.dtp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dtp-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.dtp-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--dtp-green);
}

.dtp-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}

.dtp-section-heading p {
    max-width: 760px;
    margin-top: 10px;
}

.dtp-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dtp-blue);
    font-weight: 700;
    font-size: 14px;
}

.dtp-text-link i {
    transition: transform .2s;
}

.dtp-text-link:hover i {
    transform: translateX(5px);
}

.dtp-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dtp-blue);
    background: var(--dtp-blue);
    color: #fff;
    border-radius: 6px;
    min-height: 46px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    transition: background .22s, border-color .22s, transform .22s;
    text-align: center;
}

.dtp-button:hover {
    background: var(--dtp-blue-dark);
    border-color: var(--dtp-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.dtp-button-outline {
    background: transparent;
    color: var(--dtp-blue);
}

.dtp-icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--dtp-ink);
    font-size: 19px;
    border-radius: 6px;
}

.dtp-icon-button:hover {
    background: #eaf2f8;
    color: var(--dtp-blue);
}

/* Inner page hero */
.dtp-inner-hero {
    min-height: 310px;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--dtp-blue-dark);
}

.dtp-inner-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.dtp-inner-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,34,60,.85), rgba(4,34,60,.22));
    z-index: -1;
}

.dtp-inner-hero-copy {
    padding-block: 60px;
    color: #fff;
}

.dtp-inner-hero-copy .dtp-eyebrow {
    color: #e7f5d2;
}

.dtp-inner-hero-copy h1 {
    font-size: 40px;
    max-width: 850px;
}

.dtp-channel-nav {
    background: #fff;
    border-bottom: 1px solid var(--dtp-line);
}

.dtp-channel-links, .dtp-product-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.dtp-channel-links a {
    padding: 16px 18px;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 14px;
}

.dtp-channel-links a:hover, .dtp-channel-links a[aria-current=page] {
    color: var(--dtp-blue);
    border-color: var(--dtp-green);
}

.dtp-product-subnav {
    margin-block: 24px;
}

.dtp-product-subnav a {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: 5px;
    font-size: 14px;
}

.dtp-product-subnav a:hover, .dtp-product-subnav a[aria-current=page] {
    background: var(--dtp-blue);
    border-color: var(--dtp-blue);
    color: #fff;
}

.dtp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 20px 0;
    font-size: 13px;
    color: var(--dtp-muted);
}

/* Editorial content */
.dtp-rich {
    overflow-wrap: anywhere;
    line-height: 1.8;
    color: #415567;
    min-width: 0;
}

.dtp-rich h2, .dtp-rich h3, .dtp-rich h4, .dtp-rich h5 {
    color: var(--dtp-ink);
    margin: 24px 0 12px;
}

.dtp-rich h2 {
    font-size: 26px;
}

.dtp-rich h3 {
    font-size: 22px;
}

.dtp-rich h4 {
    font-size: 19px;
}

.dtp-rich h5 {
    font-size: 16px;
}

.dtp-rich p {
    margin: 0 0 14px;
    color: inherit;
}

.dtp-rich ul, .dtp-rich ol {
    margin: 14px 0;
    padding-left: 24px;
}

.dtp-rich li {
    margin: 6px 0;
}

.dtp-rich a {
    color: var(--dtp-blue);
    text-decoration: underline;
}

.dtp-rich strong, .dtp-rich b {
    color: var(--dtp-ink);
}

.dtp-rich img {
    max-width: 100%;
    height: auto !important;
    border-radius: 5px;
}

.dtp-rich iframe, .dtp-rich video {
    max-width: 100%;
}

.dtp-rich blockquote {
    margin: 20px 0;
    padding: 16px 22px;
    border-left: 4px solid var(--dtp-green);
    background: #edf4f7;
}

.dtp-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.dtp-rich table, .dtp-catalog-table, .dtp-rfq-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.dtp-rich table {
    min-width: 420px;
    margin-block: 12px;
}

.dtp-rich td, .dtp-rich th {
    padding: 12px 14px;
    border: 1px solid var(--dtp-line);
    text-align: left;
}

.dtp-rich th {
    background: #e9f1f7;
    color: var(--dtp-blue-dark);
}

/* Form controls and inline validation */
.dtp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.dtp-form-wide {
    grid-column: 1 / -1;
}

.dtp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.dtp-field > span > span {
    color: #bf3e36;
}

.dtp-field input, .dtp-field select, .dtp-field textarea, .dtp-site-search input, .dtp-catalog input:not([type=checkbox]), .dtp-catalog select, .dtp-rfq-table input:not([type=checkbox]) {
    border: 1px solid #ccdbe4;
    border-radius: 6px;
    background: #fff;
    color: var(--dtp-ink);
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    min-height: 44px;
    transition: border-color .2s, box-shadow .2s;
}

.dtp-field textarea {
    resize: vertical;
    min-height: 112px;
}

.dtp-field input:focus, .dtp-field textarea:focus, .dtp-field select:focus {
    outline: none;
    border-color: var(--dtp-blue);
    box-shadow: 0 0 0 3px rgba(0,92,168,.12);
}

.dtp-field .dtp-field-invalid, .dtp-rfq-table .dtp-field-invalid {
    border-color: #c13f35 !important;
    background: #fff7f6 !important;
}

.dtp-field-error {
    color: #ad2c24;
    font-size: 12px;
    font-weight: 400;
}

.dtp-inquiry-form > .dtp-button, .dtp-rfq-panel > .dtp-button {
    margin-top: 20px;
}

.dtp-form-notice:empty {
    display: none;
}

.dtp-form-notice {
    margin-top: 14px;
    border-radius: 6px;
    padding: 10px 12px;
    background: #e7f1f7;
    color: var(--dtp-blue-dark);
    font-size: 14px;
}

.dtp-form-notice[data-state=error] {
    background: #fff0ee;
    color: #9f2f28;
}

.dtp-form-notice[data-state=success] {
    background: #edf5de;
    color: #365c0b;
}

.dtp-inquiry-card {
    background: #fff;
    padding: 24px;
    border: 1px solid var(--dtp-line);
    border-top: 4px solid var(--dtp-green);
    border-radius: var(--dtp-radius);
}

.dtp-inquiry-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.dtp-inquiry-card .dtp-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.dtp-inquiry-card .dtp-button {
    width: 100%;
}

/* Shared slider, tab and preview components */
.dtp-slider {
    --dtp-slide-gap: 20px;
    --dtp-visible: 1;
    position: relative;
    min-width: 0;
}

.dtp-slider-window {
    overflow: hidden;
    min-width: 0;
}

.dtp-slider-track {
    display: flex;
    align-items: stretch;
    gap: var(--dtp-slide-gap);
    transition: transform .65s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
}

.dtp-slide {
    flex: 0 0 calc((100% - (var(--dtp-visible) - 1) * var(--dtp-slide-gap)) / var(--dtp-visible));
    min-width: 0;
}

.dtp-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
}

.dtp-slider-controls > button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dtp-line);
    border-radius: 50%;
    background: #fff;
    color: var(--dtp-blue);
    font-size: 23px;
}

.dtp-slider-controls > button:hover {
    background: var(--dtp-blue);
    color: #fff;
}

.dtp-slider-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.dtp-slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #b8c9d4;
    transition: width .25s, background .25s;
}

.dtp-slider-dots button[aria-current=true] {
    width: 25px;
    background: var(--dtp-green);
}

.dtp-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dtp-tab-buttons button {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: 7px;
    color: var(--dtp-ink);
    font-weight: 600;
    padding: 12px 18px;
}

.dtp-tab-buttons button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.dtp-tab-buttons button[aria-selected=true] {
    background: var(--dtp-blue);
    border-color: var(--dtp-blue);
    color: #fff;
}

.dtp-tab-panel {
    animation: dtp-panel-enter .35s ease-out;
}

@keyframes dtp-panel-enter {
    from {
        opacity: .35;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.dtp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(8,23,36,.89);
    display: grid;
    place-items: center;
    padding: 36px;
}

.dtp-lightbox img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
}

.dtp-lightbox button {
    position: absolute;
    top: 20px;
    right: 25px;
    background: #fff;
    color: var(--dtp-ink);
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    width: 44px;
    height: 44px;
}

.dtp-toast {
    position: fixed;
    z-index: 3100;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dtp-blue-dark);
    color: #fff;
    padding: 12px 20px;
    max-width: calc(100% - 32px);
    border-radius: 7px;
    box-shadow: var(--dtp-shadow);
}

.dtp-reveal-pending {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.dtp-reveal-pending.dtp-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shared article and solution cards */
.dtp-news-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.dtp-news-card {
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: var(--dtp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}

.dtp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dtp-shadow);
}

.dtp-news-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.dtp-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s;
}

.dtp-news-card:hover .dtp-news-image img {
    transform: scale(1.055);
}

.dtp-news-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 22px;
}

.dtp-news-copy time {
    color: var(--dtp-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.dtp-news-copy h3 {
    font-size: 20px;
}

.dtp-news-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.dtp-news-copy .dtp-text-link {
    margin-top: auto;
}

.dtp-solution-feature {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: var(--dtp-radius);
    overflow: hidden;
}

.dtp-solution-photo {
    min-height: 350px;
}

.dtp-solution-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtp-solution-copy {
    padding: 36px;
}

.dtp-solution-copy > p {
    margin: 14px 0;
}

.dtp-solution-examples {
    display: grid;
    gap: 10px;
    margin-block: 20px;
}

.dtp-solution-examples a {
    display: grid;
    grid-template-columns: 60px minmax(0,1fr) 15px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--dtp-line);
    border-radius: 6px;
}

.dtp-solution-examples img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.dtp-solution-examples p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dtp-certificate-card {
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.dtp-certificate-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
}

.dtp-certificate-card figcaption {
    margin-top: 12px;
    font-size: 14px;
}

.dtp-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-top: 26px;
}

.dtp-metric {
    border-top: 3px solid var(--dtp-green);
    padding: 12px 4px;
}

.dtp-metric strong {
    color: var(--dtp-blue);
    font-size: clamp(25px,3vw,39px);
    line-height: 1.1;
}

.dtp-metric b {
    color: var(--dtp-green-dark);
    font-size: 22px;
}

.dtp-metric span {
    display: block;
    color: var(--dtp-muted);
    font-size: 13px;
    margin-top: 6px;
}

.dtp-pagination {
    margin: 28px auto 0;
    text-align: center;
}

.dtp-pagination a, .dtp-pagination span {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 5px;
    margin: 3px;
    background: #fff;
    border: 1px solid var(--dtp-line);
}

.dtp-pagination a:hover, .dtp-pagination .current {
    background: var(--dtp-blue);
    border-color: var(--dtp-blue);
    color: #fff;
}

@media (max-width: 991px) {
    .dtp-container {
        width: calc(100% - 40px);
    }

    .dtp-section {
        padding-block: 42px;
    }

    .dtp-news-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .dtp-solution-copy {
        padding: 25px;
    }

    .dtp-solution-photo {
        min-height: 280px;
    }

}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 88px;
    }

    body {
        font-size: 15px;
    }

    .dtp-container {
        width: calc(100% - 32px);
    }

    .dtp-section {
        padding-block: 34px;
    }

    .dtp-section + .dtp-section {
        padding-top: 8px;
    }

    h1, .dtp-inner-hero-copy h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 19px;
    }

    .dtp-section-heading {
        flex-wrap: wrap;
        align-items: start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .dtp-inner-hero {
        min-height: 190px;
    }

    .dtp-inner-hero-copy {
        padding-block: 35px;
    }

    .dtp-channel-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .dtp-channel-links a {
        padding: 12px 10px;
    }

    .dtp-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dtp-news-grid, .dtp-solution-feature {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dtp-solution-feature {
        gap: 0;
    }

    .dtp-solution-photo {
        min-height: 0;
        aspect-ratio: 16/10;
    }

    .dtp-solution-copy {
        padding: 20px;
    }

    .dtp-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .dtp-slider {
        --dtp-slide-gap: 12px;
    }

    .dtp-tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .dtp-tab-buttons button {
        flex-shrink: 0;
        padding: 10px 12px;
    }

    .dtp-rich h2 {
        font-size: 23px;
    }

    .dtp-rich h3 {
        font-size: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .dtp-reveal-pending {
        opacity: 1;
        transform: none;
    }

}

/* Compact inquiry panel for product and category pages. */
.dtp-inquiry-card.dtp-quote-panel {
    padding: 0;
    border: 1px solid var(--dtp-line);
    border-top: 3px solid var(--dtp-green);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(7, 58, 101, .045);
}

.dtp-quote-panel .dtp-quote-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 14px;
    background: #f0f6fa;
    border-bottom: 1px solid #dce7ef;
    border-radius: 5px 5px 0 0;
}

.dtp-quote-heading .dtp-quote-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--dtp-blue);
    color: #fff;
    font-size: 19px;
}

.dtp-inquiry-card.dtp-quote-panel .dtp-quote-heading h2 {
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 3px;
    color: var(--dtp-blue-dark);
}

.dtp-quote-heading p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.dtp-quote-panel .dtp-inquiry-form {
    padding: 15px;
}

.dtp-inquiry-card.dtp-quote-panel .dtp-form-grid {
    gap: 9px;
}

.dtp-quote-panel .dtp-field {
    font-size: 12px;
    gap: 4px;
    line-height: 1.4;
}

.dtp-inquiry-card.dtp-quote-panel .dtp-field input,
.dtp-inquiry-card.dtp-quote-panel .dtp-field textarea {
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid #d8e4ed;
    border-radius: 5px;
    background: #f8fafc;
    color: var(--dtp-ink);
}

.dtp-inquiry-card.dtp-quote-panel .dtp-field input {
    min-height: 37px;
}

.dtp-inquiry-card.dtp-quote-panel .dtp-field textarea {
    min-height: 80px;
}

.dtp-inquiry-card.dtp-quote-panel .dtp-field input:focus,
.dtp-inquiry-card.dtp-quote-panel .dtp-field textarea:focus {
    border-color: var(--dtp-blue);
    background: #fff;
}

.dtp-quote-panel .dtp-inquiry-form > .dtp-button {
    margin-top: 13px;
    min-height: 42px;
    font-size: 14px;
    border-radius: 5px;
}

.dtp-quote-panel .dtp-inquiry-form > .dtp-button:hover {
    background: var(--dtp-blue-dark);
    border-color: var(--dtp-blue-dark);
}

/* Chinese typography and form alignment */
html[lang="zh-CN"] .dtp-rich {
    line-height: 1.85;
    overflow-wrap: anywhere;
}

html[lang="zh-CN"] .dtp-eyebrow {
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: none;
}

html[lang="zh-CN"] .dtp-section-heading h2 {
    line-height: 1.4;
}

@media (max-width: 768px) {
    html[lang="zh-CN"] body {
        font-size: 14px;
    }

    html[lang="zh-CN"] .dtp-rich {
        line-height: 1.8;
    }
}
