/* 新闻页面样式 - 与导航栏和底部兼容 */

/* 基础样式 */
html {
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, q, dl, dt, dd, ol, ul, li, fieldset, form, legend, caption, tbody, tfoot, thead, article, aside, dialog, figure, footer, header, hgroup, nav, section {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline
}

article, aside, details, figcaption, figure, dialog, footer, header, hgroup, menu, nav, section {
    display: block
}

body {
    font-size: 14px;
    color: #333;
    background: #fff;
    font-family: "Microsoft YaHei", "simsun", "Helvetica Neue", Arial, Helvetica, sans-serif
}

img {
    border: 0;
    vertical-align: bottom
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

*:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

textarea {
    overflow: auto
}

input:focus, textarea:focus, button:focus, select:focus {
    outline: 0
}

a {
    color: #333;
    text-decoration: none;
    background: transparent
}

/* 新闻内容样式 */
.user-mian {
    width: 100%;
    text-align: center;
    margin: 0;
    padding-top: 100px; /* 为固定导航栏留出空间 */
}

.user-mian img {
    max-width: 100%;
    height: auto;
}

.company-news {
    width: 1200px;
    margin: 30px auto;
    font-size: 24px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #111111;
    padding-top: 0;
}

.news-list {
    width: 1200px;
    margin: 0 auto 0;
}

.news-list ul {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    list-style-type: none;
}

.news-list ul li{
    width: 386px;
    height: 464px;
    background: #FAFAFA;
    border-radius: 8px;
    margin: 0 21px 30px 0;
    cursor: pointer;
}

.news-list ul li:hover {
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

.news-list ul li:nth-of-type(3n) {
    margin-right: 0;
}

.news-list ul li .news-img {
    height: 200px;
    border-radius: 8px;
}

.news-list ul li .news-img img {
    width: 100%;
    height: 100%;
}

.news-content {
    position: relative;
    padding: 20px;
    height: calc(100% - 200px);
}

.news-content .news-time {
    font-size: 12px;
    color: #666;
}

.news-title {
    font-size: 22px;
    font-weight: bold;
    color: #111;
    padding: 5px 0;
    display: -webkit-box;
    /*! autoprefixer: off */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-introduce {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 26px;
    display: -webkit-box;
    /*! autoprefixer: off */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.read-all {
    color: #3662EC;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    left: 20px;
    bottom: 20px;
}

.read-all a {
    color: #3662EC;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .company-news,
    .news-list {
        width: 100%;
        padding: 0 20px;
    }
    
    .news-list ul li {
        width: calc(50% - 21px);
        margin-right: 21px;
    }
    
    .news-list ul li:nth-of-type(2n) {
        margin-right: 0;
    }
    
    .news-list ul li:nth-of-type(3n) {
        margin-right: 21px;
    }
}

@media (max-width: 768px) {
    .user-mian {
        padding-top: 80px; /* 移动端导航栏高度调整 */
    }
    
    .news-list ul li {
        width: 100%;
        margin-right: 0;
    }
    
    .company-news {
        font-size: 20px;
        margin: 0 auto 0;
    }
    
    .news-list {
        margin: 0 auto 0;
    }
}