/* 全局卡片 */
.level1-card, .product-card, .news-item {
    border: 1px solid #d1d9e6 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    transition: all 0.3s ease;
    cursor: pointer; /* 确保鼠标悬停时显示手型 */
    outline: none; /* 清除点击时的焦点外框 */
}

/* 悬停状态 */
.level1-card:hover, .product-card:hover, .news-item:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15) !important;
}

/* =========================================
   Application - 一级目录大卡片 (一行一个)
   ========================================= */
.level1-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    border-left: 5px solid #0d6efd !important;
    margin-bottom: 24px;
}

.level1-img {
    width: 35%;
    min-height: clamp(180px, 20vw, 220px);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dee4ef !important;
}

.level1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level1-info {
    width: 65%;
    padding: clamp(16px, 2.2vw, 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.level1-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.level1-card:hover .level1-info h3 {
    color: #0d6efd;
}

.level1-info p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================
   Application - 正方形文章卡片 (一行三个)
   ========================================= */
.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 12;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #edf2f7;
    padding: 10px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    padding: 15px 8px 0 8px;
    text-align: center;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.5rem;
    background-color: #fcfcfc;
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: #0d6efd;
}

/* =========================================
   News - 列表样式 (一行一个)
   ========================================= */
.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    text-decoration: none; /* 保持无下划线 */
    color: inherit; /* 保持文字颜色继承，不变成链接蓝色 */
    margin-bottom: 25px;
}

.news-img-box {
    width: clamp(140px, 14vw, 200px);
    height: clamp(140px, 14vw, 200px);
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-item:hover .news-img-box img {
    transform: scale(1.05);
}

.news-info {
    padding: clamp(14px, 2vw, 30px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-item:hover .news-info h3 {
    color: #0d6efd;
}

.news-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   分页组件样式
   ========================================= */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.pagination a:hover {
    background-color: #e9ecef;
}

.pagination .active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

@media (max-width: 768px) {
    .level1-card,
    .news-item {
        flex-direction: column;
    }

    .level1-img,
    .news-img-box {
        width: 100%;
        height: 200px;
    }

    .level1-info {
        width: 100%;
    }

    .news-info h3 {
        font-size: 1.05rem;
    }
}