/* 重置样式 */
.mortgage-reset * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 面包屑导航 */
.mortgage-breadcrumb {
    max-width: 1420px;
    margin: 20px auto;
    padding: 0 15px;
    padding-top: 115px;
}
.mortgage-breadcrumb-text {
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.mortgage-breadcrumb-text a {
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
	text-decoration: none;
}

/* 产品列表容器样式 */
.product-list-container {
    padding: 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center; /* 保证子元素在水平方向上居中 */
    flex-direction: column;
}

/* 产品内容版块 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1420px; /* 限制PC端最大宽度为1420px */
    width: 100%;
}

/* 产品项 */
.product-item {
    width: 30%; /* 每行3个 */
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* 文字居中 */
    padding: 15px;
}

.product-item:hover {
    transform: scale(1.05);
}

.product-item img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #f0f0f0;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* PC端 - 限制宽度为1420px */
@media (min-width: 768px) {
    .product-list-container {
        max-width: 1420px; /* 限制在PC端宽度为1420px */
        margin: 0 auto; /* 居中显示 */
    }

    /* 每行显示3个产品项 */
    .product-item {
        width: 30%;
    }
}

/* 移动端 - 保证不受影响，仍然自适应 */
@media (max-width: 767px) {
    .product-list-container {
        width: 100%;
        padding: 10px;
    }

    /* 移动端每行1个产品项 */
    .product-item {
        width: 100%; /* 单列显示 */
        margin-bottom: 15px;
    }
}

/* 分页样式 - 移动到底部 */
.pagination-container {
    margin-top: 30px;
    text-align: center;
    width: 100%; /* 确保分页宽度与内容对齐 */
    clear: both; /* 确保分页不被其他浮动元素影响 */
    box-sizing: border-box; /* 确保不受其他内外边距影响 */
}

/* 分页容器 */
.pagination {
    list-style: none;  /* 移除默认的黑色圆点 */
    padding: 0;        /* 移除内边距 */
    margin: 0;         /* 移除外边距 */
    display: flex;     /* 使用flexbox将li标签排列在同一行 */
    justify-content: center; /* 居中对齐分页 */
}

/* 分页项 */
.pagination li {
    margin: 0 5px; /* 每个分页项之间的间距 */
}

/* 分页项链接样式 */
.pagination a {
    text-decoration: none; /* 去除默认的链接下划线 */
    color: #333;           /* 设置文字颜色 */
    padding: 5px 10px;     /* 添加内边距以增加点击区域 */
    border: 1px solid #ccc; /* 给分页项添加边框 */
    border-radius: 5px;    /* 圆角边框 */
    font-size: 14px;       /* 设置字体大小 */
}

/* 当前页（激活状态）样式 */
.pagination .active a {
    background-color: #007bff; /* 活动页背景色 */
    color: white;              /* 活动页文字颜色 */
    border-color: #007bff;    /* 活动页边框颜色 */
}

.pagination a:hover {
    background-color: #f0f0f0; /* 鼠标悬停时的背景色 */
}