@font-face {
    font-family: 'PingFang SC Medium';
    src: url('https://fonts.cdnfonts.com/css/sf-pro-display') format('truetype');
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC Medium','San Francisco', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0 20px;  /* body 保持左右内边距 */
    box-sizing: border-box;  /* 确保 padding 不会影响布局 */
}

.wrapper {
    width: 100%;
    max-width: 1200px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(252, 252, 253, 0.9);  /* 半透明背景 */
    padding: 20px 0;  /* 只设置上下 padding */
    width: 100%;  /* 确保导航栏宽度是100% */
    margin: 0;  /* 去除任何外边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;  /* 背景色和磨砂效果的过渡 */
    border-radius: 0 0 20px 20px;
}

.navbar.scrolled {
    background-color: rgba(252, 252, 253, 0.8);  /* 滚动后的半透明背景 */
    backdrop-filter: blur(10px);  /* 添加磨砂效果 */
}

/* 其他样式不变 */

.navbar .logo img.unhub_logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-left: 20px;
}
.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    gap: 10px; /* 图片与文本间的间隔 */
}
.navbar .logo .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar .nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
    /* margin-right: 20px; */
}

.navbar .nav-links a:hover {
    color: #0073e6;
}

/* Main Content */
.main-content {
    padding: 0 60px;
    margin-top: 40px;
}


/* Section 1: Wide Box */
.news-box {
    display: flex;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
}
.news_title_a{
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 去掉下划线 */
}
.news-box .image{
    width: 25%;  /* 调整图片宽度为70% */
    height: 100%;  /* 保持图片比例 */
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}
.news-box .image img {
    width: 100%;  /* 调整图片宽度为70% */
    height: 100%;  /* 保持图片比例 */
    object-fit: cover;
}

.news-box .content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-box .content .topic{
    font-size: 18px;
    font-weight: 600;
}
.news-box .content .title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px; /* 增加间距 */
}

.news-box .content .topic {
    color: #0073e6;
}

.news-box .content .title {
    font-size: 28px;
    font-weight: 600;
}

.news-box .content .time {
    color: #999;
    font-size: 14px;
    margin-top: 20px; /* 使时间行离上面更远 */
}

#news_top {
    padding: 0 200px;
    font-weight: bold;
}
.huati .time{
    font-size: 0.8em;
    font-weight: bold;
}
.title{
    margin-top: 20px;
    font-size: 2.8em;
    font-weight: bold;
    letter-spacing: 2px;
}
.yy{
    font-size: 0.8em;
    font-weight: bold;
    color: #999;
}

/* #news_top 中心对齐 */
#news_top #zhengwen {
    position: relative;
    margin-bottom: 50px;
    padding: 0 200px; /* 保留原始内边距 */
    margin-inline-start:auto;
    margin-inline-end: auto;
}
.bt{
    margin-top: 15px;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 0 200px;
    margin-bottom: 1.4211026316em;
    line-height:1.4211026316;
    letter-spacing:.012em
}
.zw{
    margin-top: 20px;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0 200px;
    margin-bottom: 1.4211026316em;
    line-height:1.4211026316;
    letter-spacing:.012em
}

.news-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    margin: 20px 0;
    object-fit: cover; /* 图片自适应容器 */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}


/* Read More Button */
.read-more {
    
    text-align: center;
    margin-bottom: 40px;
}

.read-more .read-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e8e8ed;
    border-radius: 50px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more .read-more-btn:hover {
    background-color: #d2d2d7;
}


/* Footer */
.footer {
    padding: 0 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 50px;
    border-top: 1px solid #eaeaea;
}

.footer-logo {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 20px;
}

.footer-info {
    font-size: 15px;
}

/* 响应式调整：小屏幕下调整布局 */
@media (max-width: 768px) {
    .navbar .logo img.unhub_logo {
        width: 25px;
        height: 25px;
        object-fit: contain;
        margin-left: 10px;
    }
    .navbar .logo {
        display: flex;
        align-items: center;
        font-size: 8px;
        font-weight: 600;
        color: #333;
        gap: 5px; /* 图片与文本间的间隔 */
    }
    .navbar .logo .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .navbar .nav-links a {
        margin-left: 5px;
        text-decoration: none;
        color: #666;
        font-size: 10px;
        font-weight: bold;
        transition: color 0.3s ease;
        /* margin-right: 20px; */
    }
    .main-content {
        padding: 0;
        margin-top: 40px;
    }
    
    .news-box {
        display: flex;
        margin-bottom: 20px;
        border-radius: 20px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin-top: 25px;
    }
    .news_title_a{
        color: inherit; /* 继承父元素的颜色 */
        text-decoration: none; /* 去掉下划线 */
    }
    .news-box .image{
        width: 25%;  /* 调整图片宽度为70% */
        height: 100%;  /* 保持图片比例 */
        object-fit: cover;
        border-radius: 20px 0 0 20px;
    }
    .news-box .image img {
        width: 100%;  /* 调整图片宽度为70% */
        height: 100%;  /* 保持图片比例 */
        object-fit: cover;
    }
    
    .news-box .content {
        padding: 30px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .news-box .content .topic{
        font-size: 18px;
        font-weight: 600;
    }
    .news-box .content .title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px; /* 增加间距 */
    }
    
    .news-box .content .topic {
        color: #0073e6;
    }
    
    .news-box .content .title {
        font-size: 25px;
        font-weight: 600;
    }
    
    .news-box .content .time {
        color: #999;
        font-size: 14px;
        margin-top: 20px; /* 使时间行离上面更远 */
    }
    
    #news_top {
        padding: 0 20px;
        font-weight: bold;
        width: 100%;
    }
    .huati .time{
        font-size: 0.8em;
        font-weight: bold;
    }
    .title{
        margin-top: 20px;
        font-size: 2.5em;
        font-weight: bold;
        letter-spacing: 2px;
    }
    .yy{
        font-size: 0.8em;
        font-weight: bold;
        color: #999;
    }
    
    /* #news_top 中心对齐 */
    #news_top #zhengwen {
        position: relative;
        margin-bottom: 50px;
        margin-inline-start:auto;
        margin-inline-end: auto;
    }
    .bt{
        margin-top: 15px;
        font-size: 25px;
        font-weight: bold;
        letter-spacing: 0.5px;
        padding: 0 20px;
        margin-bottom: 1.4211026316em;
        line-height:1.4211026316;
        letter-spacing:.012em
    }
    .zw{
        margin-top: 20px;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 0.5px;
        padding: 0 20px;
        margin-bottom: 1.4211026316em;
        line-height:1.4211026316;
        letter-spacing:.012em
    }
    
    .news-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 10px;
        /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
        margin: 20px 0;
        object-fit: cover; /* 图片自适应容器 */
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    /* Footer */
    .footer {
        padding: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 50px;
        border-top: 1px solid #eaeaea;
    }

    .footer-logo {
        margin-top: 10px;
        margin-bottom: 20px;
        width: 50px;
        height: 50px;
        object-fit: contain;
        margin-right: 20px; 
    }

    .footer-info {
        font-size: 15px;
    }
}
