/**
 * Suopu Child Theme - Custom CSS
 * 
 * 此文件用于添加自定义样式，绝对在所有其他 CSS 文件之后加载（优先级999）
 * 适合用于覆盖和修改主题其他样式，确保开发新功能时不影响现有样式
 * 
 * 加载顺序：绝对最后加载，优先级最高，可以覆盖所有其他样式
 */

/* =================================================
   自定义模态弹窗样式 - 社交分享微信二维码
   ================================================= */

/* 模态弹窗遮罩层 */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

/* 模态弹窗显示状态 */
.custom-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* 遮罩背景 */
.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 弹窗内容容器 */
.custom-modal-content {
    position: relative;
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    margin: 1.75rem auto;
    pointer-events: auto;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

/* 弹窗头部 */
.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 弹窗标题 */
.custom-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* 关闭按钮 */
.custom-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-modal-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.custom-modal-close:active {
    transform: scale(0.95);
}

/* 弹窗主体 */
.custom-modal-body {
    padding: 32px 24px;
    text-align: center;
}

/* 二维码容器 */
.qrcode-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qrcode-info img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    padding: 16px;
    background: white;
}

/* 弹窗动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* 退出动画 */
.custom-modal.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.custom-modal.fade-out .custom-modal-content {
    animation: modalSlideOut 0.3s ease-in;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -50px, 0) scale(0.95);
    }
}

/* 响应式设计 */
@media (max-width: 576px) {
    .custom-modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    
    .custom-modal-header {
        padding: 16px 20px 12px;
    }
    
    .custom-modal-title {
        font-size: 16px;
    }
    
    .custom-modal-body {
        padding: 24px 20px;
    }
    
    .qrcode-info img {
        max-width: 180px;
        padding: 12px;
    }
}

/* 改善按钮焦点样式以增强可访问性 */
.custom-modal-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 确保在高对比度模式下的可见性 */
@media (prefers-contrast: high) {
    .custom-modal-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .custom-modal-content {
        border: 2px solid #000;
    }
}

/* =================================================
   产品PDF下载短代码样式 - [product_pdf_download]
   ================================================= */

/* 主容器 */
.product-download {
    display: flex;
    align-items: center;
}

/* 下载链接容器 */
.product-download__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit; flex-direction: column;gap: 15px;
}

/* 缩略图样式 */
.product-download__thumb {
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 无图片占位符 */
.product-download__thumb--noimg {
    width: 48px;
    height: 48px;
    display: inline-block;
    background: #f2f2f2;
    border-radius: 6px;
    margin-right: 12px;
}

/* 文本容器 */
.product-download__text {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #d33;
    cursor: pointer;font-size: 18px;
}

/* PDF 图标 */
.product-download__icon {
    margin-right: 8px;
    fill: currentColor;
}

/*
Theme Name: Suopu Child ACF Codestar
Theme URI: https://example.com/suopu-child-acf-codestar
Description: Clean Hello Elementor child theme migrated from TailAdmin custom panels to Codestar Pro + ACF Pro field workflow.
Author: Suopu
Template: hello-elementor
Version: 3.0.10
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: suopu-child
*/

.head-section { z-index:10000}
.contact-forms .wpforms-submit{ width:100%; text-transform:uppercase}
.wpforms-container .wpforms-field{ padding:8px 0!important}
#elementor-popup-modal-1392{ z-index:10001}
div.wpforms-container-full:not(:empty){ margin:0!important}
.why-choose ul,.why-choose li{ list-style:none; padding:0; margin:0}
.why-choose li{position: relative; padding-left: 26px; margin-bottom:10px}
.why-choose li:before{ content:''; width:11px; height:11px; background:#fff;border-radius:50%;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);}
.why-choose.black-ul li:before{background:#000;}
body{background-color:#F5F5F5}
.home-product-section .elementor-shape{direction: ltr;
  left: 0;
  line-height: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;transform: rotate(180deg);bottom: -1px;z-index: -1;}
.home-product-section .elementor-shape svg {
  display: block;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  width: calc(100% + 1.3px);
}
.home-product-section .elementor-shape .elementor-shape-fill {
  fill: #fff;
  transform: rotateY(0);
  transform-origin: center;
}
.feedback-gallery .elementor-animated-content .elementor-gallery-item__title{ opacity:1!important}
.team-gallery .e-gallery-image{background-size: auto; background-repeat:no-repeat}
.team-gallery .elementor-gallery-item__content{ position:inherit;height: auto; padding:0}
.team-gallery .elementor-gallery-item__title{ opacity:1}
.year-item-title{ min-height:45px; margin-top:45px}
.item-year{ position:relative}
.item-year:before{ content:'';position:absolute; right:70px; width:15px; height:15px; border-radius:50%; border:2px solid #143473; top:50%;transform: translateY(-50%); }
.item-year:after{ content:''; position:absolute; right:-20px;top:50%;transform: translateY(-50%); width:90px; height:1px; background:#143473}
.related-products .elementor-post__title{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;}
.id-flex {
  display: flex;gap: 10px;
}
.id-flex-wrap {
  flex-wrap: wrap;
}
.id-gap-x-6 {
  -moz-column-gap: 1.5rem;
  column-gap: 1.5rem;
}
.id-gap-y-3 {
  row-gap: .75rem;
}
.id-font-bold {
  font-weight: 700;
}
.id-text-\[26px\] {
  font-size: 26px;
}
.id-flex-col {
  flex-direction: column;
}
.id-text-\[\#222222\], .id-text-\[\#222\] {
  --tw-text-opacity: 1;
  color: rgba(34,34,34,1);margin-bottom: 5px;
}
.module_price{ border-top:1px solid #e5e7eb; border-bottom:1px solid #e5e7eb; padding:20px 0}
.id-z-base.id-absolute{ display:none}
.id-gap-2 .id-relative{ background:#fff; border-radius:5px; border:1px solid #ddd; padding:.5rem}
.id-gap-2 .id-relative:hover{ border:1px solid #222}
.id-gap-2 .id-relative p{ margin:0}
.id-gap-2 [data-testid="sku-more-text-indicator"]{ display:none}
.module_sku h4,.module_sku_summary_other_customization .id-font-semibold{ font-size:18px; text-transform:capitalize; font-weight:bold}
.module_sku [data-testid="sku-list"]{ margin-bottom:10px}
.module_sku{border-bottom:1px solid #e5e7eb; padding:10px 0}
.module_sku_summary_other_customization{padding:10px 0}
.module_sku_summary_other_customization .id-mt-3 p{ margin:0}
.module_sku_summary_other_customization .id-mt-3 .id-cursor-pointer,.three-col-right-floating-action-bar,.module_supplier_customization{ display:none}
.id-ml-2 span:first-child{ text-transform:capitalize; }
.id-ml-2:before{ content:'•'; margin-right:5px; }
.icbu-pc-detailSellerRecommend{ display:none}
.single-product-desc a{ color:#000}

/* Elementor 分页样式 - PC + 手机兼容 */
.elementor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 35px;
    margin-bottom: 35px;
}

/* 普通页码 */
.elementor-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9dce3;
    border-radius: 4px;
    background: #ffffff;
    color: #143473;
    font-size: 15px;
    font-weight: 500;
    line-height: 34px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* hover 效果 */
.elementor-pagination a.page-numbers:hover {
    background: #143473;
    border-color: #143473;
    color: #ffffff;
}

/* 当前选中页 */
.elementor-pagination .page-numbers.current {
    background: #143473;
    border-color: #143473;
    color: #ffffff;
    font-weight: 600;
}

/* 省略号 */
.elementor-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #666666;
    min-width: auto;
    padding: 0 4px;
}

/* 上一页 / 下一页按钮 */
.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
    min-width: 34px;
    width: 34px;
    padding: 0;
    font-size: 0;
    overflow: hidden;
}

/* 上一页图标 */
.elementor-pagination .page-numbers.prev::before {
    content: "‹";
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

/* 下一页图标 */
.elementor-pagination .page-numbers.next::before {
    content: "›";
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

/* 当前不可点击或灰色按钮效果 */
.elementor-pagination span.page-numbers.prev,
.elementor-pagination span.page-numbers.next {
    background: #8c8c8c;
    border-color: #8c8c8c;
    color: #ffffff;
}

/* 去掉 Elementor 隐藏文字影响 */
.elementor-pagination .elementor-screen-only {
    display: none !important;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .elementor-pagination {
        gap: 6px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .elementor-pagination .page-numbers {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 13px;
        line-height: 30px;
        border-radius: 4px;
    }

    .elementor-pagination .page-numbers.prev,
    .elementor-pagination .page-numbers.next {
        min-width: 30px;
        width: 30px;
    }

    .elementor-pagination .page-numbers.prev::before,
    .elementor-pagination .page-numbers.next::before {
        font-size: 22px;
    }
}
.main-menu .sub-menu { background:#fff!important; box-shadow: 0 0 15px 2px rgb(0 0 0 / 20%);}
.main-menu .sub-menu a{padding: 8px 15px!important;}
.pro-list-row .elementor-post__title{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden; }
.pca-item.pca-current > .pca-header{border-left: 4px solid #143473!important; background:rgba(20,52,115,.1)!important}
.pca-item.pca-current > .pca-header .pca-link{ color:#143473!important}
.id-aspect-video,.report-layout,.magic-47{ display:none}
.home-banner .e-n-carousel{ padding-bottom:0!important}
.home-banner .elementor-swiper-button-prev{ left:15px!important;transform: none!important;}
.home-banner .elementor-swiper-button-next{right:15px!important;transform: none!important;}
.home-banner .swiper-pagination-bullet-active{ background:#124BB9!important}
.home-banner .swiper-pagination-horizontal{ top:auto!important}
.id-rounded-lg{ padding:15px}
.id-mb-8{ margin-bottom:10px}

@media screen and (max-width:1024px){
.head-contact-btn{ position:absolute; top:15px; right:15px}	
.head-menu .elementor-menu-toggle{ margin:-45px 40% 0 0;position: relative;z-index: 10;}
	.head-menu .menu-item a{border: 1px solid #036; margin-bottom:10px;border-radius: 4px; }
}
@media screen and (max-width:480px){
	.head-contact-btn{ position:absolute; top:10px; right:10px}	
	.head-menu .elementor-menu-toggle{ margin:-47px 40% 0 0;position: relative;z-index: 10;}
	.homt-about-tab .e-n-tab-title{ flex-basis: 100%;}
	.img-box-line .elementor-image-box-wrapper{ display:flex;flex-direction: row;   flex-wrap: wrap;align-items:center}
	.img-box-line .elementor-image-box-content{ width:auto}
	.year-item-title{ margin-top:0}
	.team-gallery .e-gallery-image{background-size:contain; }
	.item-year:before{right: 70%;}
	.item-year:after{right: 0;width: 70%;}
	.main-menu .sub-menu{ padding:15px }
	.main-menu .elementor-nav-menu{padding:0 10px!important}
	.price-item{flex-basis: 45%}
	.id-text-\[26px\] ,.magic-26{ font-size: 18px;}
	.head-logo{ width:200px; position:relative; z-index:10000}
	
}


/* =================================================
   Suopu 迁移清理工具样式（后台独立命名空间 v3.0.28）
   ================================================= */
.suopu-cleanup-tool {
    --suopu-cleanup-primary: #0d6efd;
    --suopu-cleanup-danger: #dc3545;
    --suopu-cleanup-warning: #ffc107;
    --suopu-cleanup-success: #198754;
    --suopu-cleanup-border: #dee2e6;
    --suopu-cleanup-muted: #6c757d;
    max-width: 1280px;
}
.suopu-cleanup-tool .suopu-cleanup-lead {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    max-width: 980px;
}
.suopu-cleanup-tool .suopu-cleanup-mb {
    margin-bottom: 18px;
}
.suopu-cleanup-tool .suopu-cleanup-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.suopu-cleanup-tool .suopu-cleanup-card-danger {
    border-color: #f1aeb5;
}
.suopu-cleanup-tool .suopu-cleanup-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.suopu-cleanup-tool .suopu-cleanup-card-header h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}
.suopu-cleanup-tool .suopu-cleanup-card-header p {
    margin: 0;
    color: #64748b;
}
.suopu-cleanup-tool .suopu-cleanup-card-body {
    padding: 20px 22px;
}
.suopu-cleanup-tool .suopu-cleanup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.suopu-cleanup-tool .suopu-cleanup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.suopu-cleanup-tool .suopu-cleanup-field span {
    font-weight: 600;
}
.suopu-cleanup-tool .suopu-cleanup-field input,
.suopu-cleanup-tool .suopu-cleanup-confirm input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 10px;
}
.suopu-cleanup-tool .suopu-cleanup-field small,
.suopu-cleanup-tool .suopu-cleanup-small {
    color: #64748b;
}
.suopu-cleanup-tool .suopu-cleanup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}
.suopu-cleanup-tool .suopu-cleanup-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 14px 0;
    border: 1px solid transparent;
}
.suopu-cleanup-tool .suopu-cleanup-alert-warning {
    background: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}
.suopu-cleanup-tool .suopu-cleanup-alert-danger {
    background: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}
.suopu-cleanup-tool .suopu-cleanup-alert-success {
    background: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}
.suopu-cleanup-tool .suopu-cleanup-progress {
    width: 100%;
    height: 28px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
    margin-bottom: 14px;
}
.suopu-cleanup-tool #suopu-cleanup-progress-bar {
    height: 28px;
    line-height: 28px;
    background: linear-gradient(90deg, #0d6efd, #198754);
    color: #fff;
    text-align: center;
    font-weight: 700;
    transition: width .25s ease;
    min-width: 42px;
}
.suopu-cleanup-tool .suopu-cleanup-log {
    background: #0f172a;
    color: #d1e7dd;
    border-radius: 10px;
    padding: 14px;
    min-height: 220px;
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.65;
}
.suopu-cleanup-tool .suopu-cleanup-table {
    margin-bottom: 22px;
}
.suopu-cleanup-tool .suopu-cleanup-table td,
.suopu-cleanup-tool .suopu-cleanup-table th {
    vertical-align: middle;
}
.suopu-cleanup-tool .suopu-cleanup-table p {
    margin: 5px 0 0 24px;
    color: #64748b;
}
.suopu-cleanup-tool .suopu-cleanup-op-check label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.suopu-cleanup-tool .suopu-cleanup-count {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.suopu-cleanup-tool .suopu-cleanup-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.suopu-cleanup-tool .suopu-cleanup-pill-safe {
    background: #d1e7dd;
    color: #0f5132;
}
.suopu-cleanup-tool .suopu-cleanup-pill-warning {
    background: #fff3cd;
    color: #664d03;
}
.suopu-cleanup-tool .suopu-cleanup-pill-danger {
    background: #f8d7da;
    color: #842029;
}
.suopu-cleanup-tool .suopu-cleanup-backup {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}
.suopu-cleanup-tool .suopu-cleanup-confirm {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 700;
}
.suopu-cleanup-tool .suopu-cleanup-danger-button {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}
.suopu-cleanup-tool .suopu-cleanup-danger-button:hover,
.suopu-cleanup-tool .suopu-cleanup-danger-button:focus {
    background: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #fff !important;
}
@media (max-width: 782px) {
    .suopu-cleanup-tool .suopu-cleanup-confirm {
        display: block;
    }
    .suopu-cleanup-tool .suopu-cleanup-confirm input {
        display: block;
        margin-top: 8px;
        width: 100%;
    }
}

.suopu-cleanup-tool .suopu-cleanup-mode-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cfe2ff;
    border-radius: 12px;
    background: #f8fbff;
}
.suopu-cleanup-tool .suopu-cleanup-mode-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
}
.suopu-cleanup-tool .suopu-cleanup-mode-box label {
    display: block;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.suopu-cleanup-tool .suopu-cleanup-mode-box input {
    margin-right: 6px;
}
.suopu-cleanup-tool .suopu-cleanup-mode-box span {
    display: block;
    margin: 5px 0 0 24px;
    color: #64748b;
    line-height: 1.55;
}
