:root {
    --primary-color: #8257E6;
    --secondary-color: #6F48C9;
    --background-color: #F8F9FA;
    --text-color: #333;
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    padding-top: 108px; /* 桌面端导航栏高度 */
}
li{
    list-style: none;
}



/* 通用标题样式 */
.section-title {
    color: #20184E;
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

/* 通用图标样式 */
.contact-icon {
    width: 32px;
    height: 32px;
}

/* 通用文本样式 */
.contact-text {
    color: #20184E;
    font-size: 1.5rem;
}

.contact-section {
    padding: 125px 0;
    background: white;
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    background: url(../images/bg-img2.png) no-repeat bottom;
    width: 136px;
    height: 531px;
    z-index: 0;
}
.contact-section::after {
    content: '';
    position: absolute;
    top: 50px;
    background: url(../images/bg-img1.png) no-repeat top;
    width: 168px;
    height: 531px;
    z-index: 0;
    right: 0;
}
.btn-list{
    display: flex;
    width: 100%;
    padding: 0 230px;
    justify-content: space-between
}
.newsBtn{
    padding: 1rem 2rem;
    color: var(--primary-color);
    width: auto;
    height: auto;
    flex: none;
    font-size: 1rem;
    border-radius: 33px;
    border-color: var(--primary-color);
}
.newsBtn:hover,.newsBtn:focus,.newsBtn:focus-visible,.newsBtn:active{
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
:not(.btn-check)+.btn:active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.newsBtn.active{
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border-color: var(--primary-color);
}
/* 新闻列表样式 */
.news-content{
    margin-top: 6.5rem;
}
.news-content ul{
    display: flex;
    flex-flow: row wrap;
    gap: 60px;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}
.news-list {
    border-radius: 20px;
    box-shadow: -1px 8px 8px 0px rgb(121 45 213 / 10%);
}
.news-list a{
    text-decoration: none;
}
.newsImage {
    width: 100%;
    aspect-ratio: 2 / 1;
}
.newsImage img {
    width: 100%;
    height: 100%;
}
.news-text{
    padding: 2rem 1.5rem;
}
.news-name{
    color: #20184E;
    font-size: 1.5rem;
    font-weight: 600;
}
.news-other{
    font-size: 1rem;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
}
/* 分页样式 */
.page{
    margin-top: 6rem;
    text-align: center;
}
ul.pagination {
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 0.75rem;
}

ul.pagination li {display: inline;}

ul.pagination li a {
    float: left;
    text-decoration: none;
    border-radius: 10px;
    padding: 7px 15px;
    text-align: center;
    font-size: 1rem;
    color:  var(--primary-color);
    border: solid 1px  var(--primary-color);
}

ul.pagination li a.active {
    background-color:  var(--primary-color);
    color: white;
}
ul.pagination li a.disable{
    background: #D6BCF5; 
    color: white;
    border-color: #D6BCF5;
}
ul.pagination li a:hover:not(.active) {
    background-color: var(--primary-color);
    color: white;
}
/* 移动端适配 */
@media (max-width: 991px) {
    body {
        padding-top: 48px; /* 移动端导航栏高度 */
    }

    /* 联系部分适配 */
    .contact-section {
        padding: 40px 0 48px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .company-address {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .two-icon{
        text-align: center;
    }
    .contact-icon {
        width: 28px;
        height: 28px;
    }

    .contact-text {
        font-size: 0.9rem;
    }
    .address-text,.address-title {
        font-size: 0.9rem;
        margin-left: 0.1rem;
    }

    /* 调整联系部分的布局 */
    .contact-section .row {
        text-align: center;
    }

    .contact-section .d-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .contact-section .row > div {
        margin-bottom: 2rem;
    }
    
    .contact-section .row > div:last-child {
        margin-bottom: 0;
    }
    
    .contact-section .d-flex {
        gap: 1.5rem;
    }

    .company-address {
        margin-top: 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    .contact-section::before,.contact-section::after {
        content: none;
    }
    .btn-list {
        padding: 0 60px;
    }
    /* 新闻列表样式 */
    .news-content {
        margin-top: 3rem;
    }
    .news-content ul {
        gap: 32px;
    }
    .news-list {
        width: 47%;
    }
    .news-text {
        padding: 1.5rem;
    }
    .news-name {
        color: #20184E;
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }
    .news-other {
        font-size: 1rem;
    }
    /* 分页样式 */
    .page{
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 30px;
    }
    .contact-content {
        position: relative;
        padding: 3rem 1rem;
    }
    .btn-list {
        padding: 0;
    }
    .newsBtn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    /* 新闻列表样式 */
    .news-content {
        margin-top: 2rem;
    }
    .news-content ul {
        gap: 32px;
    }
    .news-list {
        width: 100%;
    }
    .news-text {
        padding: 1rem 1rem;
    }
    .news-name {
        color: #20184E;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    .news-other {
        font-size: 0.75rem;
    }
    /* 分页样式 */
    .page{
        margin-top: 2rem;
    }
    ul.pagination li a {
        border-radius: 4px;
        padding: 2px 10px;
        font-size: 0.75rem;
    }
}