
:root {
    --primary-color: rgba(203, 39, 45, 0.85);
    --secondary-color: rgba(211, 17, 24);
    --light-color: #e8f0fe;
    --dark-color: #333;
    --dark-color2: #656565;
    --gray-color: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-out;
}

#header-container .nav{
   background: transparent;
   transition: all 0.2s ease;
}

#header-container .nav:hover {
  background: url("/images/nav-bg.jpg") no-repeat center / cover !important;
}

#header-container .nav .menu .split-line {
    color: transparent;
}

#header-container .nav:hover .menu .split-line{
    color: var(--color-primary-11);
}

.main-new {
    box-sizing: border-box;
    width: 100%;
    height: 44vh;
    min-height: 360px;
    position: relative;
    border-top: 1px solid transparent;
}

.main-new .new-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    width: 100%;
}

.main-new .new-box{
    margin-top: 9rem;
    color: #ffffff;
    text-align: center;
}

.main-new .new-box .title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15rem;
}

.main-new .new-box .new-content {
    font-size: 1rem;
}

/* 搜索区域 */
.search-section {
    width: 40vw;
    box-sizing: border-box;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    width: 40vw;
    box-sizing: border-box;
    position: relative;
}

.search-box input {
    box-sizing: border-box;
    width: 100%;
    padding: .875rem 1.25rem .875rem 3.75rem;
    border-radius: .625rem;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    color: #9b9b9b;
    background: #f1f3f6;
}

.search-box input:focus {
    outline: none;
    color: #333;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
    font-size: 1.5rem;
}

.search-box i:hover {
    cursor: pointer;
}

 /* 新闻列表样式 */
.news-container {
    width: 80vw;
    margin: 4rem auto 5rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.25rem, 1fr));
    gap: 1.875rem;
    margin-bottom: 2.5rem;
}

.news-card {
    background: white;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(1.25rem);
    animation: fadeInUp 0.3s forwards;
}

.news-card:hover {
    cursor: pointer;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(--0.5rem);
    box-shadow: 0 .75rem 1.5625rem rgba(192, 0, 0, 0.15);
}

.news-image {
    height: 9.375rem;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: .4rem;
    right: .4rem;
    background: var(--primary-color);
    color: white;
    padding: .3125rem .75rem;
    border-radius: 1.25rem;
    font-size: .8125rem;
    font-weight: 600;
}

.news-content {
    padding: 1rem 1.2rem;
}

.news-date {
    color: #666;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .5rem;
}

.news-date i {
    margin-right: .5rem;
    font-size: 1rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: .9rem;
}

.read-more {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(0,0,0,0)
}

.news-card:hover .read-more{
    color: var(--secondary-color);
    transform: translateX(.3125rem);
}

.read-more i {
    margin-left: .5rem;
    font-size: .875rem;
    transition: var(--transition);
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 1.875rem 0 3.125rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.pagination-container .prev,
.pagination-container .next{
    display: none;
}

.pagination{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.pagination-container button {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--dark-color2);
    width: 2.625rem;
    height: 2.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    /* font-weight: 600; */
    transition: var(--transition);
    box-shadow: 0 .125rem .3125rem rgba(0, 0, 0, 0.05);
}

.pagination-container button:hover:not(.active) {
    background: var(--light-color);
    transform: translateY(--0.125rem);
}

.pagination-container button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 .25rem .5rem rgba(26, 115, 232, 0.3);
}


 /* 无结果提示 */
.no-results {
    text-align: center;
    padding: 3.75rem 1.25rem;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3.75rem;
    color: #ccc;
    margin-bottom: 1.25rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: .9375rem;
}

.no-results p {
    color: #999;
    max-width: 31.25rem;
    margin: 0 auto;
}
