/**
 * 配件详情深色 UI（电机 / 云台 / 热成像）
 * 重映射 Autel 变量，并压过硬编码 white / #f9f9f9 等浅色
 */

body.site-dark {
    --autel-blue: #5b9cff;
    --autel-light-blue: #9ec4ff;
    --autel-hover-blue: #4a88f5;
    --autel-gray: rgba(255, 255, 255, 0.06);
    --autel-text: #e8eef8;
    --autel-light-text: rgba(190, 205, 230, 0.72);
    --autel-border: rgba(255, 255, 255, 0.1);
    background-color: var(--sd-bg) !important;
    color: var(--sd-text) !important;
}

/* ---------- 面包屑 ---------- */
body.site-dark .breadcrumb-section {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 88px;
}

body.site-dark .breadcrumb a {
    color: rgba(186, 205, 230, 0.75) !important;
}

body.site-dark .breadcrumb a:hover {
    color: #9ec4ff !important;
}

body.site-dark .breadcrumb .current,
body.site-dark .breadcrumb .separator {
    color: rgba(190, 205, 230, 0.55) !important;
}

/* ---------- 主内容壳 ---------- */
body.site-dark .motor-details-section,
body.site-dark .motor-content,
body.site-dark .product-details-section,
body.site-dark .specs-section,
body.site-dark .features-section,
body.site-dark .applications-section,
body.site-dark .related-section,
body.site-dark .download-section,
body.site-dark .manual-section,
body.site-dark main {
    background-color: transparent !important;
    background: transparent !important;
}

body.site-dark .motor-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-dark .motor-header h1 {
    color: #f2f7ff !important;
}

body.site-dark .motor-header h1,
body.site-dark .product-header h1,
body.site-dark h1 {
    color: #f2f7ff !important;
    letter-spacing: -0.02em;
}

body.site-dark .product-brief,
body.site-dark .motor-header p {
    color: var(--sd-muted) !important;
}

body.site-dark .motor-info h2,
body.site-dark .motor-info h3,
body.site-dark .selection-title,
body.site-dark h2,
body.site-dark h3 {
    color: #f2f7ff !important;
}

body.site-dark .meta-label {
    color: rgba(190, 205, 230, 0.55) !important;
}

body.site-dark .meta-value {
    color: #e8eef8 !important;
}

/* ---------- 图库 / 选项卡 ---------- */
body.site-dark .motor-gallery,
body.site-dark .product-gallery,
body.site-dark .main-image,
body.site-dark .gallery-main {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
}

body.site-dark .thumbnail-container,
body.site-dark .thumbnail {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-dark .thumbnail:hover,
body.site-dark .thumbnail.active {
    border-color: rgba(120, 170, 255, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(91, 156, 255, 0.25);
}

body.site-dark .option-item,
body.site-dark .option-container .option-item {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--sd-text);
}

body.site-dark .option-item:hover,
body.site-dark .option-item.active {
    background-color: rgba(91, 156, 255, 0.12) !important;
    border-color: rgba(120, 170, 255, 0.4) !important;
}

body.site-dark .option-name {
    color: #f2f7ff !important;
}

body.site-dark .option-desc {
    color: var(--sd-muted) !important;
}

body.site-dark .option-image {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* ---------- Tabs / 参数表 ---------- */
body.site-dark .tabs,
body.site-dark .product-tabs,
body.site-dark .tab-nav {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
}

body.site-dark .tab-btn,
body.site-dark .tab-item,
body.site-dark .tabs button {
    background: transparent !important;
    color: rgba(186, 205, 230, 0.8) !important;
    border-color: transparent !important;
}

body.site-dark .tab-btn.active,
body.site-dark .tab-item.active,
body.site-dark .tabs button.active {
    background: rgba(91, 156, 255, 0.16) !important;
    color: #f2f7ff !important;
    border-color: rgba(120, 170, 255, 0.3) !important;
}

body.site-dark .tab-content,
body.site-dark .specs-table,
body.site-dark .spec-table,
body.site-dark .feature-list,
body.site-dark .content-card,
body.site-dark .info-card,
body.site-dark .spec-card,
body.site-dark .manual-card,
body.site-dark .related-card {
    background-color: rgba(255, 255, 255, 0.04) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--sd-text) !important;
    box-shadow: none !important;
    border-radius: 14px;
}

body.site-dark table {
    background: transparent !important;
    color: var(--sd-text);
}

body.site-dark table th {
    background: rgba(91, 156, 255, 0.1) !important;
    color: #9ec4ff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.site-dark table td {
    color: var(--sd-muted) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
}

body.site-dark table tr:nth-child(even) td,
body.site-dark table tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.site-dark p,
body.site-dark li,
body.site-dark .desc,
body.site-dark .product-desc {
    color: var(--sd-muted);
}

/* 硬编码浅色块（电机/热成像大量 #f9f9f9 / white） */
body.site-dark [style*="background: #f"],
body.site-dark [style*="background:#f"],
body.site-dark [style*="background-color: #f"],
body.site-dark [style*="background-color:#f"],
body.site-dark [style*="background: white"],
body.site-dark [style*="background:white"],
body.site-dark [style*="background-color: white"],
body.site-dark [style*="background-color:white"] {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* CTA */
body.site-dark .btn,
body.site-dark .btn-primary,
body.site-dark .contact-btn,
body.site-dark .download-btn,
body.site-dark .inquire-btn,
body.site-dark a.btn {
    background: transparent !important;
    border: 1px solid rgba(120, 170, 255, 0.45) !important;
    color: #e8eef8 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

body.site-dark .btn:hover,
body.site-dark .btn-primary:hover,
body.site-dark .contact-btn:hover,
body.site-dark .download-btn:hover,
body.site-dark .inquire-btn:hover {
    background: rgba(91, 156, 255, 0.2) !important;
    border-color: rgba(155, 196, 255, 0.7) !important;
    color: #fff !important;
}

body.site-dark .btn-outline,
body.site-dark .btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(200, 218, 245, 0.9) !important;
    border-radius: 999px !important;
}

/* 说明书 / FAQ 折叠 */
body.site-dark .accordion-item,
body.site-dark .faq-item,
body.site-dark .collapse-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.site-dark .accordion-header,
body.site-dark .faq-question {
    color: #f2f7ff !important;
    background: transparent !important;
}

body.site-dark .accordion-body,
body.site-dark .faq-answer {
    color: var(--sd-muted) !important;
}

body.site-dark .back-to-top {
    background: rgba(12, 20, 36, 0.85);
    border: 1px solid rgba(120, 170, 255, 0.28);
    color: var(--sd-text);
}

/* 热成像页额外类名 */
body.site-dark.page-thermal-imaging .hero,
body.site-dark.page-thermal-imaging .product-hero,
body.site-dark .thermal-hero {
    background:
        radial-gradient(ellipse 70% 50% at 30% 40%, rgba(91, 156, 255, 0.16), transparent 55%),
        var(--sd-bg) !important;
}

body.site-dark .price-tag,
body.site-dark .badge {
    background: rgba(91, 156, 255, 0.14) !important;
    color: #9ec4ff !important;
    border: 1px solid rgba(120, 170, 255, 0.25);
}

/* 热成像「资料下载」：压过白底 secondary，统一深色幽灵 / 主按钮 */
body.site-dark .download-section {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-dark .download-section-label {
    color: rgba(190, 205, 230, 0.78) !important;
}

body.site-dark .download-section-btns .primary-btn,
body.site-dark .download-section-btns .secondary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 42px;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    transform: none !important;
}

body.site-dark .download-section-btns .primary-btn {
    background: #5b9cff !important;
    border: 1px solid #5b9cff !important;
    color: #fff !important;
}

body.site-dark .download-section-btns .primary-btn:hover {
    background: #3d7de8 !important;
    border-color: #3d7de8 !important;
    color: #fff !important;
}

body.site-dark .download-section-btns .secondary-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e8eef8 !important;
}

body.site-dark .download-section-btns .secondary-btn:hover {
    background: rgba(91, 156, 255, 0.14) !important;
    border-color: rgba(120, 170, 255, 0.45) !important;
    color: #fff !important;
}

/* ---- 精确压过 2810 / thermal 硬编码浅色 ---- */
body.site-dark .motor-container,
body.site-dark .motor-content,
body.site-dark .motor-info,
body.site-dark .motor-gallery,
body.site-dark .product-container,
body.site-dark .product-content-wrap,
body.site-dark .selection-section,
body.site-dark .product-selection,
body.site-dark .feature-tabs,
body.site-dark .feature-tab,
body.site-dark .feature-content,
body.site-dark .product-actions,
body.site-dark .action-buttons,
body.site-dark .specs-container,
body.site-dark .detail-block,
body.site-dark .tech-block {
    background-color: transparent !important;
    background: transparent !important;
}

body.site-dark .motor-gallery,
body.site-dark .main-image {
    background-color: rgba(0, 0, 0, 0.32) !important;
}

body.site-dark .feature-tabs {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

body.site-dark .feature-tab {
    background-color: transparent !important;
    color: rgba(186, 205, 230, 0.8) !important;
}

body.site-dark .feature-tab:hover:not(.active) {
    background-color: rgba(91, 156, 255, 0.1) !important;
    color: #f2f7ff !important;
}

body.site-dark .feature-tab.active {
    background-color: rgba(91, 156, 255, 0.2) !important;
    color: #f2f7ff !important;
    border-bottom-color: #5b9cff !important;
}

body.site-dark .spec-table {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-dark .spec-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.site-dark .spec-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

body.site-dark .spec-table tr:hover {
    background-color: rgba(91, 156, 255, 0.08) !important;
}

body.site-dark .spec-table td {
    border-right-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--sd-muted) !important;
}

body.site-dark .spec-table td:first-child {
    color: #e8eef8 !important;
    background-color: rgba(91, 156, 255, 0.08) !important;
}

body.site-dark .option-item,
body.site-dark .thumbnail,
body.site-dark .related-product,
body.site-dark .download-card,
body.site-dark .manual-box,
body.site-dark .contact-box,
body.site-dark .advantage-item,
body.site-dark .param-card {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-dark .option-item.active,
body.site-dark .option-item:hover {
    background-color: rgba(91, 156, 255, 0.12) !important;
    border-color: rgba(120, 170, 255, 0.4) !important;
}

body.site-dark .motor-details-section,
body.site-dark .product-intro,
body.site-dark .features-overview,
body.site-dark .tech-specs-section {
    background-color: transparent !important;
}

/* 缩略图 / 型号条：隐藏滚动条（可换行或内部滚但不露条） */
body.site-dark .thumbnail-container,
body.site-dark .option-container {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.site-dark .thumbnail-container::-webkit-scrollbar,
body.site-dark .option-container::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* 热成像专属浅色块 */
body.site-dark .kit-card,
body.site-dark .package-card,
body.site-dark .highlight-box,
body.site-dark .notice-box,
body.site-dark .manual-section,
body.site-dark .preview-wrap {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--sd-text) !important;
}

/* =========================================================
 * 热成像「产品详情」长图区 —— 写死 #f9f9f9 的白底根因
 * ========================================================= */
body.site-dark .detail-images-section {
    background: transparent !important;
    background-color: var(--sd-bg, #050b16) !important;
    padding-top: 40px;
    padding-bottom: 40px;
}

body.site-dark .detail-images-list {
    background: transparent !important;
}

body.site-dark .detail-images-list img {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0;
}

/* =========================================================
 * 产品优势 / 应用场景 / 相关推荐 —— 这是截图白底的根因区块
 * ========================================================= */
body.site-dark .product-advantages-section,
body.site-dark .application-section,
body.site-dark .related-products-section {
    background-color: transparent !important;
    background: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

body.site-dark .product-advantages-section {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* 详情长图区保持纯黑底，避免二次规则把底色冲掉 */
body.site-dark .detail-images-section {
    background: #050b16 !important;
    background-color: #050b16 !important;
}

body.site-dark .related-products-section {
    background: rgba(0, 0, 0, 0.22) !important;
}

body.site-dark .section-title {
    color: #f2f7ff !important;
    letter-spacing: -0.02em;
}

body.site-dark .section-title::after {
    background: linear-gradient(90deg, #5b9cff, transparent) !important;
    background-color: transparent !important;
}

/* 优势卡 */
body.site-dark .advantage-item {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}

body.site-dark .advantage-item:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(120, 170, 255, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

body.site-dark .advantage-icon {
    background-color: rgba(91, 156, 255, 0.12) !important;
    border: 1px solid rgba(120, 170, 255, 0.22);
}

body.site-dark .advantage-icon i {
    color: #9ec4ff !important;
}

body.site-dark .advantage-item h3 {
    color: #f2f7ff !important;
}

body.site-dark .advantage-item p {
    color: rgba(190, 205, 230, 0.72) !important;
}

/* 应用场景行 */
body.site-dark .application-item img {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
    object-fit: cover !important;
}

body.site-dark .application-content h3 {
    color: #f2f7ff !important;
}

body.site-dark .application-content h3::after {
    background: linear-gradient(90deg, #5b9cff, transparent) !important;
}

body.site-dark .application-content p {
    color: rgba(190, 205, 230, 0.72) !important;
}

/* 相关产品 */
body.site-dark .related-product {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}

body.site-dark .related-product:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(120, 170, 255, 0.35) !important;
}

body.site-dark .related-product h3 {
    color: #f2f7ff !important;
}

body.site-dark .related-product .product-desc,
body.site-dark .related-product p {
    color: rgba(190, 205, 230, 0.72) !important;
}

body.site-dark .product-badge {
    background: linear-gradient(135deg, #3d7aef, #5b9cff) !important;
    color: #fff !important;
    box-shadow: none !important;
}
