/* 全局样式 */
:root {
    --primary-color: #c7000b;
    --secondary-color: #ff8100e6;
    --dark-red: #870505;
    --light-red: #ffebee;
    --gold-color: #ffd700;
    --text-color: #333;
    --light-text: #f8f9fa;
    --gray-bg: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

    .btn:hover {
        background-color: var(--dark-red);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    display: none;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: var(--primary-color);
        margin: 15px auto 0;
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    display: none;
}

/* 导航?*/
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, #8b0000, var(--primary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

    .logo i {
        margin-right: 10px;
        color: var(--gold-color);
        width: 40px;
        height: 40px;
        background-image: url("party200.png");
        background-size: cover;
    }


.nav-links {
    display: flex;
    list-style: none;
}

    .nav-links li {
        margin-left: 25px;
    }

    .nav-links a {
        font-weight: 500;
        position: relative;
        padding: 5px 0;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s;
        font-size: 1.2rem;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: white;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--gold-color);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* 顶部横幅 */
.banner {
    background: url('./bk.jpg') no-repeat center center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.banner-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url(../image/party_slogon.jpg) no-repeat center center / cover;
        opacity: 0.4;
    }

    .hero h1 {
        font-size: 3.2rem;
        margin-bottom: 20px;
        position: relative;
        animation: fadeInDown 1s ease;
    }

    .hero p {
        font-size: 1.3rem;
        max-width: 700px;
        margin: 0 auto;
        position: relative;
        animation: fadeInUp 1s ease;
    }
/* 新闻列表 */
.news-container {
    padding: 40px 0 60px;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
    justify-items: center;
}
    .news-list .empty {
        width: 60%;
        padding-bottom: 40px;
    }

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    padding: 20px;
    align-items: center;
    position: relative;
    width: 100%;
}

    .news-item::before {
        content: '';
        position: absolute;
        top: 50%; /* 初始位置在垂直居?*/
        left: 0;
        width: 4px;
        height: 0; /* 初始高度? */
        background: var(--primary-color);
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 平滑的动画效?*/
        transform: translateY(-50%);
    }

    .news-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

        .news-item:hover::before {
            height: 100%; /* 悬停时高度变?00% */
            top: 0; /* 位置调整到顶?*/
            transform: translateY(0); /* 移除垂直偏移 */
        }

.news-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.news-item:hover .news-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.news-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    background: url(/image/party.png) no-repeat center center/cover;
    width: 40px;
    height: 40px;
}

.news-item:hover .news-icon i {
    background: url(/image/party_w.png) no-repeat center center/cover;
}

.news-content {
    flex-grow: 1;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--light-red);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-red);
    transition: all 0.3s ease;
}

.news-item:hover h3 {
    color: var(--primary-color);
}

.news-content p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .read-more i {
        margin-top: 1px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

.news-item:hover .read-more {
    color: var(--dark-red);
}

    .news-item:hover .read-more i {
        transform: translateX(5px);
    }

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}

.pagination {
    display: flex;
    list-style: none;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: white;
}

    .pagination li {
        border-right: 1px solid #eee;
    }

        .pagination li:last-child {
            border-right: none;
        }

    .pagination a {
        display: block;
        background: white;
        color: #555;
        transition: all 0.3s;
    }

    .pagination li {
        padding: 10px 16px;
        transition: all 0.3s;
    }

        .pagination li:hover, .pagination li:hover a,
        .pagination li.active {
            background: var(--primary-color);
            color: white;
        }

    .pagination a i {
        font-size: 0.9rem;
    }

/* 页脚 */
footer {
    background: linear-gradient(to right, var(--dark-red), var(--secondary-color));
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0 10px;
}

    footer .inner {
        display: flex;
        justify-content: space-evenly;
        margin: 0 auto;
        width: 1400px;
    }

    footer .copyright {
        border-top: 1px solid rgba(200,200,200,.2);
        padding-top: 10px;
    }

    footer a:hover {
        color: var(--gold-color);
    }

.footer_top {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 200px;
    padding: 30px 0 27px;
}

    .footer_top .left {
        padding-right: 20px;
        display: flex;
        flex: 0 1 700px;
        justify-content: flex-start;
        align-items: center;
        position: relative;
    }

        .footer_top .left::after {
            position: absolute;
            top: 0;
            bottom: 0;
            margin: auto;
            right: 0;
            content: '';
            height: 260px;
            width: 1px;
            background-color: #CCC;
            opacity: 0.2;
        }

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #EEE;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 0 0;
    display: flex;
    justify-content: center;
}

    .footer .copyright > .inner .right {
        display: flex;
        line-height: 20px;
        align-items: center;
        justify-content: space-between;
    }

.footer_top .contact {
    padding-left: 20px;
    flex: 1 1 670px;
    font-size: 14px;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    height: fit-content;
    flex-wrap: wrap;
}

    .footer_top .contact a {
        text-align: center;
        margin-right: 32px;
    }

    .footer_top .contact .qrcode {
        width: 100px;
    }

.footer .footer_top .contact .contact_p {
    line-height: 18px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 0;
}

.left .menus {
    align-items: stretch;
    display: flex;
    justify-content: space-between;
    margin: 0 30px;
    width: 100%;
}

menu h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

    menu h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--gold-color);
    }

menu p {
    margin-bottom: 15px;
}

.nav_sec {
    list-style: none;
}

    .nav_sec li {
        margin-bottom: 5px;
    }

    .nav_sec a {
        transition: all 0.5s;
        display: block;
    }

        .nav_sec a:hover {
            transform: translateX(10px);
        }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s;
    }

        .social-links a:hover {
            background-color: var(--gold-color);
            color: var(--primary-color);
            transform: translateY(-3px);
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ضť */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .back-to-top.visible {
        opacity: 1;
    }

    .back-to-top:hover {
        background: var(--secondary-color);
        transform: translateY(-5px);
    }
/*  */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

    .news-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .news-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .news-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .news-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .news-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .news-item:nth-child(6) {
        animation-delay: 0.6s;
    }

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tab {
    padding: 10px 20px;
    background: rgb(255 147 9 / 73%);
    color: white;
    border: 1px solid rgb(209 107 16 / 35%);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

    .tab:hover, .tab.active {
        background: rgb(255 28 28 / 65%);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgb(219 59 20 / 80%);
        font-weight: bold;
    }
/* Detail */
.article {
    background: #f1f7fd;
    box-sizing: border-box;
    padding: 70px 0;
}
    .article em {
        color: var(--secondary-color);
        padding: 0 5px;
        background: #f9c34636;
        font-style: normal;
        border-radius: 7px;
    }
    .article img {
        max-width: 90vw;
    }

    .article .article-top > div .share {
        background: #fff;
        bottom: -32px;
        cursor: pointer;
        left: calc(50% - 45px);
        position: absolute;
        width: 90px
    }

    .article .article-top > div .qrcode {
        background: #fff;
        bottom: 30px;
        left: calc(50% - 90px);
        position: absolute;
        transition: all .4s ease;
        opacity: 0;
        display: block;
        box-shadow: rgba(0,0,0,.4) 0 0 15px;
        height: 180px;
        padding: 10px;
        border-radius: 5px;
        z-index: -100;
    }

        .article .article-top > div .qrcode img {
            width: 160px;
        }

    .article .article-top > div {
        background: #fff;
        border-bottom: 1px solid #e8e8e8;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 60px 0;
        position: relative;
        text-align: center;
    }

        .article .article-top > div h2 {
            color: var(--dark-red);
            font-family: Medium;
            font-size: 28px;
            font-weight: 600;
            line-height: 40px;
            margin: 0 auto;
            width: 80%
        }

        .article .article-top > div .link {
            display: flex;
            justify-content: space-around;
            margin: 35px auto 0;
            width: 500px;
            font-size: 14px;
        }

            .article .article-top > div .link > div {
                align-items: center;
                display: flex
            }

                .article .article-top > div .link > div > i {
                    margin-right: 10px
                }

            .article .article-top > div .link .icon {
                font-size: 22px
            }

        .article .article-top > div .wed {
            background: #fff;
            bottom: -32px;
            cursor: pointer;
            left: calc(50% - 45px);
            position: absolute;
            width: 90px
        }

    .article .article-content {
        background-color: #fff;
        padding: 50px 5%;
        margin: 0 auto;
    }
        .article .article-content li {
            list-style: unset;
        }

        .article .article-content ul[data-type=taskList] li {
            display: flex;
            align-items: baseline;
        }

        .article .article-content div.container-wrapper {
            margin: 1rem 0;
            padding: 0 1rem;
            border: 1px solid var(--aie-border-color);
            border-radius: 3px;
        }

        .article .article-content div.info {
            background: #eff1f3
        }

        .article .article-content div.warning {
            background: #fcf5e4
        }

        .article .article-content div.danger {
            background: #ffe7ea
        }

    .article .article-bottom {
        background: #fff;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 50px 5%;
        text-align: center;
    }

        .article .article-bottom button {
            padding: 8px 10px;
            transition: all .3s;
            -webkit-transition: all .3s;
            border-radius: 5px;
            border: #d4d6d7 solid 1px;
            cursor: pointer;
            margin-right: 15px;
        }
            .article .article-bottom button:hover {
                background-color: white;
            }

        .article .article-bottom img {
            -o-object-fit: cover;
            object-fit: cover;
            width: 100%
        }

        .article .article-bottom .back {
            align-items: center;
            border: 2px solid #b7b7b7;
            cursor: pointer;
            display: flex;
            height: 68px;
            justify-content: center;
            margin: 42px auto;
            width: 188px
        }

/* iconfont */
@font-face {
    font-family: iconfont;
    src: url(../font/iconfont.woff2) format("woff2"), url(../font/iconfont.woff) format("woff"), url(../font/iconfont.ttf) format("truetype")
}

.iconfont {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: iconfont !important;
    font-size: 24px;
    font-style: normal;
    color: var(--dark-red);
}

button.danger {
    background-color: #ff8100e6;
    border-color: #e36344 !important;
    color: #651704;
}

    button.danger:hover {
        color: white;
        background-color: #c7000b !important;
        border-color: #8b0000 !important;
    }

@media (min-width: 1200px) {
    .article .article-top > div, .article .article-content, .article .article-bottom {
        width: 1200px;
    }
}

@media (max-width: 576px) {
    .article {
        padding: 0;
    }

        .article .article-top > div .link {
            width: auto;
        }
}

@media print {
    .noPrint {
        display: none !important;
    }
}

/* Ӧʽ */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 70px);
        background: linear-gradient(-45deg, #8b0000, var(--primary-color));
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: all 0.5s ease;
    }

        .nav-links.active {
            left: 0;
        }

        .nav-links li {
            margin: 15px 0;
        }

    .banner {
        height: 200px;
        margin-bottom: 0;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .news-item {
        flex-direction: column;
        padding: 20px;
    }

    .news-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .pagination li {
        padding: 0;
    }

        .pagination a, .pagination li.active {
            padding: 8px 12px;
        }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-col {
        display: none;
    }

        .footer-col:first-child, .footer-col:last-child {
            display: block;
        }

    .hero {
        padding: 80px 0;
    }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.6rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 8px;
    }

    .footer .inner {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .footer .footer_top {
        padding: 0;
    }

        .footer .footer_top .left {
            display: none;
        }

        .footer .footer_top .contact {
            padding-left: 0;
            margin-top: 30px;
            flex: 0 1 100vw;
            justify-content: center;
        }

    .footer .copyright {
        flex-wrap: wrap;
    }

        .footer .copyright > .inner {
            flex-wrap: wrap;
        }

            .footer .copyright > .inner .left {
                flex: 0 1 100vw;
                justify-content: center;
                text-align: center;
            }

            .footer .copyright > .inner .right {
                margin-top: 10px;
                flex: 0 1 100vw;
                justify-content: center;
            }
}