/* 产品页面布局优化 */
:root {
    /* Ocean Professional Color System */
    --ocean-50: oklch(0.97 0.03 239);
    --ocean-100: oklch(0.94 0.06 239);
    --ocean-200: oklch(0.88 0.12 239);
    --ocean-300: oklch(0.81 0.15 240);
    --ocean-400: oklch(0.7 0.18 241);
    --ocean-500: oklch(0.6 0.2 242);
    --ocean-600: oklch(0.5 0.22 243);
    --ocean-700: oklch(0.42 0.2 244);
    --ocean-800: oklch(0.35 0.18 245);
    --ocean-900: oklch(0.25 0.15 246);

    /* Light Mode */
    --background: oklch(0.99 0.001 0);
    --foreground: oklch(0.145 0 0);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.145 0 0);
    --primary: var(--ocean-600);
    --primary-foreground: oklch(0.985 0 0);
    --secondary: var(--ocean-100);
    --secondary-foreground: var(--ocean-900);
    --muted: oklch(0.97 0 0);
    --muted-foreground: oklch(0.556 0 0);
    --accent: var(--ocean-600);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.577 0.245 27.325);
    --destructive-foreground: oklch(0.577 0.245 27.325);
    --border: oklch(0.922 0 0);
    --input: oklch(0.922 0 0);
    --ring: var(--ocean-500);
    --radius: 0.625rem;
}

body {
    overflow-x: hidden;
}

/* 产品筛选系统容器 */
body .kadence-product-filter-system {
    margin: 0 auto;
    max-width: 1680px;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 产品网格布局 */
body .kadence-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin: 24px auto !important;
    max-width: 1680px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* 产品卡片容器 */
body .kadence-product-card {
    width: 100% !important;
    height: 405px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    flex: none !important;
    min-width: 280px;
}

/* 产品卡片内部容器 */
body .kadence-product-card > * {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* 产品卡片链接 */
body .kadence-product-link {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    text-decoration: none !important;
}

/* 产品边框容器 */
body .product-border-container {
    width: 100% !important;
    height: calc(100% - 2px) !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #007bff !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    justify-content: flex-start !important;
}

/* 产品图片区域 */
body .kadence-product-image {
    width: 100% !important;
    height: 274px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

/* 产品图片 */
body .kadence-product-thumbnail {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    object-fit: contain !important;
}

/* 产品占位符 */
body .kadence-product-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    background: #ffffff !important;
}

.placeholder-icon {
    font-size: 27px; /* 原始34px → 27px (80%) */
    margin-bottom: 6px; /* 原始7px → 6px (80%) */
}

.placeholder-text {
    font-size: 9px; /* 原始11px → 9px (80%) */
}

/* 产品内容区域 - 注意：实际HTML中没有这个容器 */
body .kadence-product-content {
    display: none !important;
}

/* 产品标题 */
body .kadence-product-title {
    text-align: center !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}



/* 产品品牌 - 仅应用于产品列表卡片 */
body .kadence-product-card .product-brand {
    text-align: center !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    color: #666 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

/* 产品卡片底部 */
body .product-card-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-top: 8px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #f0f0f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* 箭头图标 */
body .arrow-icon {
    font-size: 16px !important;
    color: #007bff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* 移除不需要的元素 */
.kadence-product-meta,
.kadence-product-intro,
.image-count-badge,
.product-status-badge {
    display: none;
}

/* 产品筛选表单样式 */
.kadence-filter-form {
    margin-bottom: 30px;
}

/* 搜索框样式 */
.kadence-filter-field.search-field {
    margin: 0 auto 30px;
    max-width: 1680px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* 搜索组容器 */
.kadence-search-group {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

/* 搜索输入框包装器 */
.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 1332px;
    width: 100%;
}

/* 搜索图标样式 */
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
}

/* 搜索输入框样式 */
.kadence-filter-field.search-field input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 50px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #f8fafc;
    line-height: 36px;
}

/* 搜索输入框聚焦状态 */
.kadence-filter-field.search-field input:focus {
    outline: none;
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
    background-color: #ffffff;
}

/* 搜索输入框占位符样式 */
.kadence-filter-field.search-field input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* 搜索按钮样式 */
.kadence-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background-color: #1a5fb4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.kadence-search-btn:hover {
    background-color: #154a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 95, 180, 0.3);
}

.kadence-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 95, 180, 0.3);
}



/* 搜索按钮样式 - 已移除 */

/* 重置按钮样式 */
.kadence-reset-btn {
    height: 40px;
    padding: 0 25px;
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    line-height: 40px;
}

.kadence-reset-btn:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

/* 筛选区域标题样式 */
.kadence-filter-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 20px;
    color: #333;
    white-space: nowrap;
    width: 80px;
    flex-shrink: 0;
    text-align: right;
}

/* 筛选按钮组样式 */
.kadence-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
    min-width: 0;
    align-items: center;
}

/* 应用领域按钮组样式 */
.application-buttons {
    /* 移除min-height设置，让子分类按钮自然显示在下方 */
}

/* 应用领域子分类按钮容器 */
.sub-application-buttons-container {
    width: 100%;
    margin-left: 0;
    margin-top: 23px; /* 增加15px，使类别行向下移动 */
    flex-basis: 100%;
    order: 3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 子分类标题样式 */
.sub-application-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 20px;
    color: #333;
    white-space: nowrap;
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    display: block;
}

/* 移除"全部"按钮左侧的gap间距 */
.all-sub-application-button {
    margin-left: -12px;
}

/* 响应式调整 - 确保在小屏幕上标题和按钮组垂直排列 */
@media (max-width: 768px) {
    .kadence-filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-section-title {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .sub-application-buttons-container {
        margin-left: 0;
        width: 100%;
    }
}

/* 筛选按钮样式 */
.filter-button {
    width: 100px;
    height: 40px;
    padding: 0;
    border: 2px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    font-weight: 500;
    box-sizing: border-box;
    line-height: 36px; /* 垂直居中文字 */
}

.filter-button:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* 激活状态样式 */
.filter-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 产品类别区域样式 */
.product-categories-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    transition: all 0.3s ease;
}

/* 产品类别区域展开动画 */
.product-categories-section.show {
    display: block !important;
}

/* 分页按钮样式 - 参考应用领域按钮和筛选按钮样式 */
.kadence-pagination {
    margin-top: 30px;
    text-align: center;
}

.kadence-pagination-inner {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* 上一页/下一页按钮 */
.kadence-pagination-prev,
.kadence-pagination-next {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

/* 页码按钮 */
.kadence-pagination-link {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    width: auto;
    height: auto;
}

/* 当前页码 */
.kadence-pagination-current {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
}

/* 禁用状态 */
.kadence-pagination-prev.disabled,
.kadence-pagination-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #eee;
    background-color: #f9f9f9;
    color: #999;
}

/* 悬停效果 */
.kadence-pagination-prev:hover:not(.disabled),
.kadence-pagination-next:hover:not(.disabled),
.kadence-pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

/* 激活状态 */
.kadence-pagination-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 中等屏幕响应式调整 */
@media (max-width: 1332px) {
    body .kadence-products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    body .kadence-product-filter-system {
        max-width: 900px;
    }
}

/* 未找到相关产品样式 */
body .kadence-no-products {
    max-width: 1000px;
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 20px auto;
    text-align: center;
    grid-column: 1 / -1; /* 占据整个网格宽度 */
}

body .kadence-no-products .search-icon {
    text-align: center;
    margin-bottom: 30px;
    position: static;
    transform: none;
    left: auto;
    top: auto;
}

body .kadence-no-products .search-icon i {
    font-size: 64px;
    color: #718096;
    background-color: #f5f7fa;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;
}

body .kadence-no-products .title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #0f1f3d;
    margin-bottom: 20px;
}

body .kadence-no-products .description {
    text-align: center;
    color: #718096;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

body .kadence-no-products .reset-button {
    display: block;
    margin: 0 auto 50px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

body .kadence-no-products .reset-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.2);
}

body .kadence-no-products .reset-button i {
    margin-right: 8px;
}

body .kadence-no-products .suggestions-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #0f1f3d;
    margin-bottom: 30px;
}

body .kadence-no-products .contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

body .kadence-no-products .contact-option {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #f5f7fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body .kadence-no-products .contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body .kadence-no-products .contact-icon {
    font-size: 40px;
    color: #0077cc;
    margin-bottom: 20px;
}

body .kadence-no-products .contact-option h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f1f3d;
    margin-bottom: 15px;
}

body .kadence-no-products .contact-option p {
    color: #718096;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

body .kadence-no-products .contact-btn {
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

body .kadence-no-products .contact-btn:hover {
    background-color: #0056b3;
}

body .kadence-no-products .contact-btn i {
    margin-right: 8px;
}

/* 小屏幕响应式调整 */
@media (max-width: 768px) {
    body .kadence-products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 315px;
    }
    
    body .kadence-product-filter-system {
        max-width: 315px; /* 小屏幕无边距 */
        margin: 0 15px;
    }
    
    body .kadence-product-image {
        min-height: 200px;
    }
    
    body .product-border-container {
        padding: 15px;
    }
    
    /* 筛选器响应式 */
    body .kadence-filter-buttons {
        flex-direction: column;
    }
    
    body .filter-button {
        width: 100%;
        height: 40px;
        text-align: center;
        line-height: 36px;
    }
    
    /* 分页响应式 */
    body .kadence-pagination-inner {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    body .kadence-pagination-prev,
    body .kadence-pagination-next,
    body .kadence-pagination-link,
    body .kadence-pagination-current {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 未找到产品响应式 */
    body .kadence-no-products {
        padding: 25px;
    }
    
    body .kadence-no-products .contact-option {
        min-width: 100%;
    }
    
    body .kadence-no-products .search-icon i {
        width: 90px;
        height: 90px;
        line-height: 90px;
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    body .kadence-no-products {
        padding: 20px;
    }
    
    body .kadence-no-products .title {
        font-size: 24px;
    }
    
    body .kadence-no-products .description {
        font-size: 15px;
    }
}