/* ==========================================================================
   一、 原有全局与核心组件样式 (Your Original Styles)
   ========================================================================== */

/* 全局基础样式 */
.catalog-page-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #222;
}

/* 首屏标题区 */
.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}
.main-title {
    font-size: 36px;
    color: #222;
    margin-bottom: 15px;
}
.sub-title {
    font-size: 28px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 700;
}
.header-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 规则区 */
.rules-box {
    text-align: left;
    margin-top: 20px;
    border-left: 4px solid #000;
    padding-left: 15px;
    background: #f9f9f9;
    padding-top: 10px;
    padding-bottom: 10px;
}
.rules-title {
    color: #000;
}
.rules-item {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* 搜索框 */
.search-box-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
}
.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #222;
}

/* 子目录筛选区 */
.subcategory-wrapper {
    margin-bottom: 25px;
}
.subcategory-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}
.subcategory-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.subcategory-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #222;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}
.subcategory-btn.active {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}
.subcategory-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 产品展示区 */
.product-showcase-wrapper {
    margin-bottom: 35px;
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.showcase-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}
.product-card {
    min-width: 200px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(100%);
}

/* 目录表格区 */
.catalog-table-wrapper {
    overflow-x: auto;
}
.catalog-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.catalog-table thead tr {
    background: #000;
    color: #fff;
}
.catalog-table th,
.catalog-table td {
    padding: 15px 10px;
    text-align: left;
}
.catalog-table tbody tr {
    border-bottom: 1px solid #ddd;
}
.loading-tip {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* 文件类型标签样式 */
.file-tag-pdf {
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.file-tag-excel {
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.file-tag-zip {
    background: #666;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 下载按钮样式 */
.download-btn {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}
.download-btn:hover {
    background: #333;
}

/* 分页控件区 */
.pagination-wrapper {
    text-align: center;
    margin: 40px 0;
    display: none;
}
.pagination-btn {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    color: #222;
    transition: background 0.3s;
}
.pagination-btn:hover {
    background: #f5f5f5;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.page-numbers {
    display: inline-block;
}
.page-numbers span {
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #222;
    transition: all 0.3s;
    display: inline-block;
}
.page-numbers span.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.total-count {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}


/* ==========================================================================
   二、 新增组件样式：How to Order (简易下单引导区)
   ========================================================================== */
.how-to-order-container {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.how-to-title {
    font-size: 18px;
    color: #222;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
}
.order-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.order-step-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}
.order-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.step-num {
    width: 28px;
    height: 28px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px auto;
    font-size: 14px;
}
.order-step-card h4 {
    margin: 5px 0 8px 0;
    color: #111;
    font-size: 15px;
    font-weight: 600;
}
.order-step-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}


/* ==========================================================================
   三、 强效隔离防污染版：右下角固定浮动通道组件样式
   ========================================================================== */

/* 1. 浮动条总容器：严格锁定宽度和最大高度，杜绝撑大 */
.ultimate-isolated-floating-trigger {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 10px !important; 
    z-index: 999999 !important; 
    width: 170px !important;     
    height: auto !important;     
    box-sizing: border-box !important;
    border: 1px solid #eeeeee !important;
    animation: uFloatSlideUp 0.4s ease-out !important;
    overflow: hidden !important; 
}

/* 2. 小标题：精简尺寸 */
.u-float-title {
    font-size: 10px !important; 
    font-weight: bold !important;
    color: #444444 !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important; 
    padding: 0 0 5px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border-bottom: 1px solid #f2f2f2 !important;
    line-height: 1.1 !important;
    height: auto !important;
    display: block !important;
    width: 100% !important;
}

/* 3. 按钮容器 */
.u-float-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important; 
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
}

/* 4. 按钮：完全强制锁定尺寸与内边距，清除外部 a 标签样式干扰 */
.u-float-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; 
    gap: 6px !important;
    width: 100% !important;
    height: 32px !important; /* 硬锁定高度 */
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 8px !important; /* 紧凑内边距 */
    margin: 0 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px !important; 
    font-weight: 600 !important;
    box-sizing: border-box !important;
    border: none !important;
    line-height: 32px !important;
    overflow: hidden !important; 
}

.u-btn-whatsapp {
    background: #25D366 !important;
}
.u-btn-whatsapp:hover {
    background: #20ba5a !important;
}

.u-btn-email {
    background: #111111 !important; 
}
.u-btn-email:hover {
    background: #333333 !important;
}

/* 5. 图标：强效锁死尺寸，绝对不可能撑大 */
.u-icon-svg {
    width: 14px !important; 
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 6. 按钮内单纯的文字 */
.u-btn-text {
    font-size: 12px !important;
    line-height: 12px !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    border: none !important;
    background: transparent !important;
}

@keyframes uFloatSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   四、 手机移动端响应式专属自适应布局
   ========================================================================== */
@media (max-width: 767px) {
    .ultimate-isolated-floating-trigger {
        position: fixed !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important; 
        border-radius: 10px 10px 0 0 !important;
        padding: 8px 12px !important; 
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        border: none !important;
        height: auto !important;
    }
    .u-float-title {
        display: none !important; 
    }
    .u-float-buttons {
        flex-direction: row !important; 
        width: 100% !important;
        gap: 8px !important;
    }
    .u-float-btn {
        flex: 1 !important;
        height: 38px !important; 
        line-height: 38px !important;
        font-size: 13px !important;
        justify-content: center !important; 
    }
    .catalog-page-wrapper {
        padding-bottom: 70px !important; 
    }
}