/* ============================================
   产品列表页样式
   ============================================ */

/* ---------- 页面横幅 ---------- */
.page-banner {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 400px;
    object-fit: cover;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb-nav {
    padding: 12px 0 16px 0;
    font-size: 14px;
    color: #888;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: max-content;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.breadcrumb li a {
    color: #666;
    text-decoration: none;
    padding: 4px 2px;
    font-size: 14px;
    transition: color 0.2s;
}

.breadcrumb li a:hover {
    color: #ea5504;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
    flex-shrink: 0;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
    flex-shrink: 0;
}

/* ---------- 页面标题 ---------- */
.page-title {
    font-size: clamp(28px, 5.5vw, 32px);
    font-weight: 700;
    color: #222;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #ea5504;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ea5504;
}

/* ============================================
   产品网格
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 30px;
}

/* ---------- 产品卡片 ---------- */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    -webkit-tap-highlight-color: rgba(200, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-card:active {
    transform: scale(0.97);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 产品图片 */
.product-card-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
	height:380px;
}

.product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-card-thumb img {
    transform: scale(1.05);
}

/* 占位图 */
.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 48px;
}

/* 产品标题 */
.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 14px 16px 8px 16px;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    transition: color 0.3s;
}

.product-card:hover .product-card-title {
    color: #333;
}

/* Learn More 按钮 */
.product-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px 16px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ea5504;
    text-decoration: none;
    transition: gap 0.3s;
}
.product-card-more:hover{color: #ea5504;}
.product-card-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.product-card-more:hover {
    gap: 10px;
}

.product-card-more:hover i {
    transform: translateX(3px);
}

/* ============================================
   平板适配 (768-1023px)
   ============================================ */
@media (max-width: 1023px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ============================================
   手机适配 (≤767px)
   ============================================ */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-bottom: 20px;
    }

    .product-card-title {
        font-size: 14px;
        padding: 10px 12px 4px 12px;
        min-height: 40px;
    }

    .product-card-more {
        font-size: 12px;
        padding: 4px 12px 12px 12px;
    }

    .breadcrumb-nav {
        font-size: 12px;
        padding: 8px 0 12px 0;
    }

    .breadcrumb li a {
        font-size: 12px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
}

/* ============================================
   手机小屏适配 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-card-title {
        font-size: 13px;
        padding: 8px 8px 2px 8px;
        min-height: 36px;
    }

    .product-card-more {
        font-size: 11px;
        padding: 2px 8px 10px 8px;
    }

    .product-card-placeholder {
        font-size: 32px;
    }
}

/* ============================================
   暗色模式
   ============================================ */
@media (prefers-color-scheme: dark) {
    .page-title {
        color: #e8e8e8;
        border-bottom-color: #444;
    }

    .page-title::after {
        background: #ea5504;
    }

    .breadcrumb-nav {
        border-bottom-color: #333;
    }

    .breadcrumb li a {
        color: #999;
    }

    .breadcrumb .current {
        color: #ddd;
    }

    .product-card {
        background: #1a1a1a;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .product-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }

    .product-card-title {
        color: #ddd;
    }

    .product-card:hover .product-card-title {
        color: #e55;
    }

    .product-card-thumb {
        background: #2a2a2a;
    }

    .product-card-placeholder {
        background: #2a2a2a;
        color: #555;
    }

    .product-card-more {
        color: #e55;
    }
}

/* ============================================
   减少动画 (用户偏好)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none !important;
    }

    .product-card:hover {
        transform: none !important;
    }

    .product-card:active {
        transform: none !important;
    }

    .product-card:hover .product-card-thumb img {
        transform: none !important;
    }

    .product-card-more {
        transition: none !important;
    }

    .product-card-more i {
        transition: none !important;
    }
}