/* 将原站的颜色接到共用主题设计控件。 */
body.theme-spraytech {
    --blue: var(--td-primary, #0e7cc2);
    --text: var(--td-text, #22313f);
    --muted: var(--td-muted, #5c6b7a);
    --bg: var(--td-page_bg, #fff);
    --bg-soft: color-mix(in srgb, #f4f8fb calc(100% - var(--td-use-page_bg, 0%)), var(--bg) var(--td-use-page_bg, 0%));
    --spr-header-bg: var(--td-header_bg, #fff);
    --spr-header-text: var(--td-header_text, #22313f);
    --spr-footer-bg: var(--td-footer_bg, #0b2340);
    --spr-footer-text: var(--td-footer_text, #fff);
    --spr-blue-ink: var(--td-primary_ink, #fff);
    font-size: calc(16px * var(--td-body_scale, 1));
}

.theme-spraytech main [id] { scroll-margin-block-start: 110px; }
.theme-spraytech main { overflow-wrap: anywhere; }
.theme-spraytech :is(.biz, .stat-card, .product-card, .service-card, .flow-step, .kit-card, .chip, .contact-form) {
    background-color: var(--bg);
}
.theme-spraytech :is(.section-head, .about-text, .product-body, .service-card, .contact-info, .spr-prose) :is(h2, h3, h4) {
    color: var(--text);
}

/* 顶栏保留原站布局，语言弹层在导航上方且跟随文字方向。 */
.theme-spraytech .topbar { display: block; min-height: 0; z-index: 110; }
.theme-spraytech .topbar-inner { justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 8px 18px; }
.theme-spraytech .topbar-item { min-width: 0; overflow-wrap: anywhere; }
.theme-spraytech .language-picker { color: #fff; flex-shrink: 0; --language-accent: var(--blue); }
.theme-spraytech .language-options { max-inline-size: min(280px, 90vw); }

.theme-spraytech .navbar { background: var(--spr-header-bg); color: var(--spr-header-text); }
.theme-spraytech .nav-inner { gap: 18px; }
.theme-spraytech .nav-inner .nav-links { gap: 12px; }
.theme-spraytech .nav-links a:not(.btn),
.theme-spraytech .nav-toggle { color: inherit; }
.theme-spraytech .cms-brand {
    min-width: 0;
    color: inherit;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.theme-spraytech .navbar .cms-brand { max-width: 365px; }
.theme-spraytech .cms-brand img { width: 58px; height: 58px; object-fit: contain; }
.theme-spraytech .spr-header-brand .cms-brand-heading {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}
.theme-spraytech .spr-header-brand .cms-brand-subheading {
    display: block;
    margin-block-start: 3px;
    color: color-mix(in srgb, var(--spr-header-text) 76%, var(--spr-header-bg));
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .035em;
    line-height: 1.3;
}

/* 导航、卡片和按钮用颜色、现有背景或焦点轮廓反馈，正文里的行内链接保留识别线索。 */
.theme-spraytech a:hover,
.theme-spraytech .language-options a[aria-current],
.theme-spraytech .product-card:hover .more { text-decoration: none; }
.theme-spraytech .nav-links a:not(.btn):is(:hover, :focus-visible) { color: var(--blue); }
.theme-spraytech :is(a, button, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.theme-spraytech .hero h1 { white-space: pre-line; }
.theme-spraytech .btn-primary { color: var(--spr-blue-ink); }
.theme-spraytech .btn-primary:hover { background: var(--blue); filter: brightness(.92); }

/* 真实设备图片完整显示，固定卡片高度避免不同来源比例使网格错位。 */
.theme-spraytech .product-card { min-width: 0; }
.theme-spraytech .product-img { height: auto; aspect-ratio: 3 / 2; padding: 12px; }
.theme-spraytech .product-img img { object-fit: contain; }
.theme-spraytech .product-body { padding: clamp(16px, 3vw, 24px); }
.theme-spraytech .spr-preview-note { text-align: center; color: var(--muted); }
.theme-spraytech .spr-factory { min-height: 0; margin: 0; background: var(--bg); box-shadow: var(--shadow); }
.theme-spraytech .spr-factory img { display: block; width: 100%; height: auto; }
.theme-spraytech .spr-factory figcaption { padding: 10px 14px; color: var(--muted); text-align: center; font-size: 13px; }

/* 原始详情分栏保留图组和图注，CMS 图库不撑宽介绍列。 */
.theme-spraytech .spr-original :is(.p-layout, .case-layout, .comp-grid, .tu-duo, .feature-grid) > * { min-width: 0; }
.theme-spraytech .spr-original .p-img { min-height: 0; }
.theme-spraytech .spr-original .p-img > img { height: auto; object-fit: contain; }
.theme-spraytech .spr-original .cms-product-gallery-stage { aspect-ratio: 3 / 2; }
.theme-spraytech .spr-standalone-gallery { max-width: 780px; margin-block-start: 38px; }
.theme-spraytech .spr-source-fields:empty { display: none; }
.theme-spraytech .spr-detail { max-width: 900px; }
.theme-spraytech .spr-detail > .cms-product-gallery { max-width: 690px; margin-inline: auto; margin-block-end: 28px; }
.theme-spraytech .spr-prose { display: flow-root; line-height: 1.85; }
.theme-spraytech .spr-prose :is(p, ul, ol, blockquote, img) { margin-block: 12px; }
.theme-spraytech .spr-prose :is(ul, ol) { padding-inline-start: 1.4em; }
.theme-spraytech .spr-prose img { height: auto; margin-inline: auto; }
.theme-spraytech .spr-prose a { color: var(--blue); text-decoration: underline; }

/* 询盘状态和页脚在手机上均自然换行。 */
.theme-spraytech .contact-form { min-width: 0; padding: clamp(16px, 4vw, 34px); color: var(--text); }
.theme-spraytech .contact-form .cms-inquiry-fields { margin-block: 0; }
.theme-spraytech .spr-form-status { padding: 10px 14px; border-inline-start: 3px solid var(--blue); background: var(--bg-soft); }
.theme-spraytech .footer { background: var(--spr-footer-bg); color: var(--spr-footer-text); }
.theme-spraytech .footer-links { flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.theme-spraytech .footer-bottom { padding-inline: 4vw; color: inherit; overflow-wrap: anywhere; }

/* 轮播指示条覆盖图像，不在手机上单独占用一行。 */
.theme-spraytech .theme-carousel { position: relative; background: var(--navy); overflow: hidden; }
.theme-spraytech .carousel-slide { position: relative; }
.theme-spraytech .carousel-slide > img { display: block; width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; }
.theme-spraytech .carousel-copy { position: absolute; inset: auto 5% 14%; color: #fff; text-shadow: 0 1px 10px #000; }
.theme-spraytech .carousel-copy h2 { color: inherit; }
.theme-spraytech .carousel-controls { position: absolute; inset: auto 0 4px; }
.theme-spraytech .carousel-dots { display: flex; justify-content: center; gap: 8px; }
.theme-spraytech .carousel-dots button { width: 44px; height: 44px; padding: 0 5px; border: 0; background: transparent; }
.theme-spraytech .carousel-dots button span { display: block; height: 3px; background: #fff; opacity: .5; box-shadow: 0 0 3px #000; }
.theme-spraytech .carousel-dots button[aria-current="true"] span { opacity: 1; }

/* 英文字标与七项导航排不下时，先折叠菜单，为两行品牌文字保留空间。 */
@media (max-width: 1280px) {
    .theme-spraytech .nav-toggle { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; }
    .theme-spraytech .nav-inner .nav-links {
        position: absolute;
        inset: 100% 0 auto auto;
        inset-inline-start: auto;
        inset-inline-end: 0;
        width: min(330px, 92vw);
        max-height: min(65vh, 460px);
        overflow-y: auto;
        padding: 12px 20px;
        background: var(--spr-header-bg);
        color: var(--spr-header-text);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border-radius: 0 0 0 14px;
        box-shadow: var(--shadow);
        transform: none;
    }
    .theme-spraytech .nav-links:not(.open) { visibility: hidden; pointer-events: none; }
    .theme-spraytech .nav-links a:not(.btn) { display: flex; align-items: center; min-height: 44px; white-space: normal; }
}

@media (max-width: 720px) {
    .theme-spraytech .cms-brand img { width: 46px; height: 46px; }
    .theme-spraytech .cms-brand [data-brand-name] { font-size: 14px; }
    .theme-spraytech .spr-header-brand .cms-brand-heading { font-size: 13px; }
    .theme-spraytech .spr-header-brand .cms-brand-subheading { font-size: 10px; }
    .theme-spraytech .hero-inner { padding-block: 58px 64px; }
    .theme-spraytech :is(.biz, .stats, .products, .services, .contact, .aftermarket, .p-section) { padding-block: 46px; }
    .theme-spraytech .section-head { margin-block-end: 28px; }
    .theme-spraytech .stats-grid { margin-block-end: 36px; }
    .theme-spraytech .carousel-slide > img { height: auto; object-fit: contain; }
    .theme-spraytech .carousel-copy { position: static; padding: 16px 5% 48px; background: var(--navy); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-spraytech :is(.nav-links, .product-card, .service-card, .biz-card) { transition: none; }
}
