  /* reset & 基础样式 - 所有尺寸使用 rem */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动态根字号基准: 设计稿宽度 1920px 时 1rem = 16px, 最小12px, 最大20px */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafcff;
    color: #1a2c3e;
    line-height: 1.5rem;
}

/* 添加到您的 productCenter.css 文件中 */

/* 隐藏整个页面的滚动条 */
html, body {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}




/* 容器最大宽度限制，内容居中 */
.container {
    width: 90%;
    max-width: 95rem;
    margin: 0 auto;
}

/* 通用组件 rem 化 */
h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    line-height: 1.6rem;
    color: #334e68;
}
.nav-links li:nth-child(4) .MenuTitle{
    color: #409eff !important;
    /*font-size: 1.6rem !important;*/
}


/* 产品导航头图区域 (product-nav) */
.product-nav {
    width: 100%;
    position: relative;
}
.product-nav img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 65vh;
}

 /* 面包屑 + 页面标题区 */
 .page-header {
    width: 90%;
    max-width: 95rem;
    margin: 0 auto;
    padding: 20px 0 ;
}

.breadcrumb {
    font-size: 14px;
    color: #6c7a8e;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #0077b6;
    text-decoration: none;
}

.breadcrumb span {
    color: #8e9aae;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2a44;
    letter-spacing: -0.3px;
}

/* 产品网格区域 */
.news-section {
    width: 90%;
    max-width: 95rem;
    margin: 0 auto;
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
    gap: 0;
    margin-bottom: 48px;
}

/* 产品卡片 */
.news-card {
    flex: 1;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease,
    box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid #eef2f8;
    padding: 40px;
}


.news-card:hover {
    transform: translateY(0px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
}

.news-card::before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    width: 0;
    height: 100%;
    background: linear-gradient(to bottom, #0075c2, #004d80); /* 从上到下渐变 */
    z-index: 2;
    transition: width .7s ease; /* 添加高度变化的过渡效果 */
}

.news-card:hover::before {
    width: 100%; /* 悬停时高度变为 50% */
}

/* 鼠标悬停在卡片上时，图片容器内的图标放大 */
.news-card:hover .card-img .icon-emoj {
    transform: scale(1.18);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}




/* 图片容器 - 带溢出隐藏和过渡动画，实现悬停放大效果 */
.card-img {
    position: relative;
    z-index: 3;
    background-color: #eef3fc;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 400;
    color: #2c7da0;
    border-bottom: 1px solid #e2e9f2;
    overflow: hidden;          /* 保证放大的图标不会超出边界 */
    position: relative;
    transition: all 0.2s;
    border-radius: 10px;
    overflow: hidden;
}

.card-img .icon-emoj {
    width: 100%;
    height: 100%;
    font-size: 72px;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), filter 0.2s;
    display: inline-block;
    will-change: transform;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 24px;
}

.news-card:hover .news-name{
   color: #ffffff;
}
.news-time {
    position: relative;
    z-index: 3;
    text-align: left;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}
.news-card:hover .news-time {
    color: #ffffff;
}

.news-title {
    position: relative;
    z-index: 3;
    text-align: left;
    margin-bottom: 8px;
}
.news-card:hover .news-title {
    color: #ffffff;
}

.news-card:hover .news-desc{
    color: #ffffff;
 }

.news-desc {
    position: relative;
    z-index: 3;
    text-align: left;
    font-size: 20px;
    color: #5a6e86;
    margin-top: 30px;
}



/* 分页器 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.pagination button {
    background: white;
    border: 1px solid #dce3ec;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #2c3e50;
}

.pagination button.active-page {
    background-color: #0077b6;
    border-color: #0077b6;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f4f7fc;
}

.pagination button:not(:disabled):hover {
    background-color: #e6f0fa;
    border-color: #bdd4ec;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-numbers .page-num {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    background: white;
    border: 1px solid #dce3ec;
    cursor: pointer;
    transition: 0.1s;
    font-weight: 500;
}

.page-numbers .page-num.active {
    background-color: #0077b6;
    border-color: #0077b6;
    color: white;
}

@media (max-width: 48rem) {
    .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 0;
        margin-bottom: 48px;
    }

}
@media (max-width: 30rem) {
    .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 0;
        margin-bottom: 48px;
    }
}


/* page6 底部区域 */
#page6 {
    height: 360px !important;
    background-color: #1a2e50;
}
#commonFooter {
    width: 100%;
    height: 100%;
    color: #fff;
}
/* 简单底部样式（由于footer.html可能加载，为确保无内容时有占位） */
.footer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

@media (max-width: 48rem) {
    #page6 {
        height: auto !important;
        min-height: 420px;
    }
    .productCenter-content {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    .product-grid {
        gap: 1.2rem;
    }
}
@media (max-width: 30rem) {
    #page6 {
        min-height: 500px;
    }
}

/* 辅助按钮样式 */
.btn-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #409eff;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}
.btn-more:hover {
    color: #2670b3;
    transform: translateX(4px);
}
