﻿/* 全局样式 */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #42a5f5;
    --dark-blue: #1565c0;
    --light-blue: #e3f2fd;
    --text-color: #333;
    --light-text: #f8f9fa;
    --gray-bg: #e3ecfd;
    --light: #adadad;
    --gold: #fbb101;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--light) white;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hide {
    display: none;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: var(--secondary-color);
        margin: 15px auto;
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    header.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

    .logo i {
        margin-right: 10px;
    }

.nav-links {
    display: flex;
    list-style: none;
    font-size: 1.2rem;
}

    .nav-links li {
        margin-left: 30px;
    }

    .nav-links a {
        font-weight: 500;
        position: relative;
        padding: 5px 0;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background-color: var(--primary-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: var(--primary-color);
}

/* 搜索框 */
.search-container {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

    .search-container input {
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 20px;
        outline: none;
        transition: all 0.3s;
        width: 170px;
        color: var(--primary-color);
    }

        .search-container input:focus {
            border-color: var(--primary-color);
            width: 200px;
        }

    .search-container button {
        background: none;
        border: none;
        margin-left: -35px;
        color: var(--primary-color);
        cursor: pointer;
    }

/* Banner轮播 */
.banner-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding-top: 80px;
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

    .banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.banner-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

    .banner-content h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }

    .banner-content p {
        font-size: 1.3rem;
        max-width: 700px;
        margin: 0 auto 80px;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }

.banner-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

    .banner-btns .btn {
        background-color: transparent;
        border: 1px solid var(--light-blue);
    }

    .banner-btns .btn-primary {
        background-color: white;
        color: var(--primary-color);
    }

    .banner-btns .btn:hover {
        background-color: white;
        color: var(--primary-color);
    }

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.05;
    z-index: 1;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

    .banner-dot.active {
        background-color: var(--secondary-color);
        transform: scale(1.4);
    }

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    text-align: justify;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
    max-width: 100%;
}

    .about-img img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .about-img:hover img {
        transform: scale(1.05);
    }

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: var(--primary-color);
    }

    .about-text p {
        margin-bottom: 20px;
    }

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: -3px;
    width: 25px;
}

.feature-text {
    flex: 1;
}

/* 特色服务 */
.services {
    padding: 100px 0;
    background-color: var(--gray-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 10px 0;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    }

.service-img {
    height: 300px;
    overflow: hidden;
}

    .service-img img, .news-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.service-card:hover .service-img img, .news-card:hover .news-img img {
    transform: scale(1.1) translateY(-10px);
}

.service-content {
    padding: 25px;
}

    .service-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--primary-color);
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .service-content p {
        margin-bottom: 20px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        min-height: 77px;
    }

    .service-content .purl {
        min-height: 50px;
        margin-bottom: 0;
    }

/* 新闻动态 */
.news {
    padding: 100px 0;
    background-color: white;
}

.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .tab-btn.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    display: none;
    justify-items: center;
}

    .news-grid.on {
        display: grid;
    }

    .news-grid .empty {
        width: 51%;
    }

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .news-card .news-img {
        height: 200px;
    }

.news-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-content {
    padding: 20px;
}

    .news-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        text-align: justify;
        display: -webkit-box;
        box-orient: vertical;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: 66px;
    }

    .news-content p {
        margin-bottom: 15px;
        color: #666;
        text-align: justify;
        display: -webkit-box;
        box-orient: vertical;
        -webkit-box-orient: vertical;
        line-clamp: 4;
        -webkit-line-clamp: 4;
        overflow: hidden;
        min-height: 96px;
    }

.ani_hide {
    opacity: 0;
}

.tabs_more {
    align-items: center;
    display: flex;
    font-size: 16px;
    justify-content: center;
    animation-delay: .8s;
    margin-top: 40px;
}

    .tabs_more a {
        align-items: center;
        color: #666;
        display: inline-flex;
        justify-content: center;
        line-height: 1;
        transition: all .3s ease;
    }
/* 文旅先锋 */
.party {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
}

    .party .section-title {
        color: white;
    }

        .party .section-title::after {
            background: white;
        }

    .party .section-subtitle {
        color: rgba(255, 255, 255, 0.8);
    }

    .party .tabs_more a {
        color: #d1c7c7;
    }

        .party .tabs_more a:hover {
            color: #eee;
        }

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.party-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px 20px;
    transform: translateY(10px);
    margin: 20px 5px;
    min-height: 350px;
}

    .party-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }

    .party-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .party-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .party-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .party-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .party-card a {
        color: black;
    }

        .party-card a:hover {
            color: darkred;
        }

.party-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

    .party-icon div {
        font-size: 1.8rem;
        color: var(--primary-color);
        transition: all 0.3s ease;
        background: url(/image/party_o.png) no-repeat center center / cover;
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

.party-card:hover .party-icon div {
    background: url(/image/party.png) no-repeat center center / cover;
}

.party-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    height: 65px;
    display: -webkit-box;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.party-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.party-desc {
    color: #666;
    line-height: 1.7;
    text-align: justify;
    display: -webkit-box;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: 108px;
    margin: 0 10px 30px;
}

.newhot {
    position: absolute;
    top: -8px;
    right: 20px;
    background: url(/image/new.png) no-repeat center;
    width: 64px;
    height: 64px;
    z-index: 100;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.map-placeholder {
    width: 65%;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1em;
    text-align: center;
    border: 1px solid #e9ecef;
}

.contact-info {
    flex: 1;
}

    .contact-info h3 {
        font-size: 1.8rem;
        margin: 20px 0;
        color: var(--primary-color);
    }

    .contact-info p {
        margin-bottom: 30px;
    }

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: -3px;
}

.contact-form {
    flex: 1;
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
        transition: all 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
        }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
/* 页脚 */
footer {
    background-color: #222;
    color: #ddd;
    padding: 50px 0 20px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 420px 280px;
    gap: 60px;
    margin-bottom: 30px;
    text-align: justify;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-col {
    padding-bottom: 20px;
}

    .footer-col p {
        margin-bottom: 15px;
    }

.menus {
    display: flex;
    justify-content: space-around;
    border-right: solid 1px rgba(255,255,255,.2);
}

    .menus a:hover {
        color: var(--secondary-color);
    }

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(--secondary-color);
    }

menu p {
    margin-bottom: 15px;
}

.nav_sec {
    list-style: none;
}

    .nav_sec li {
        margin-bottom: 5px;
    }

    .nav_sec a {
        display: block;
        transition: all 0.5s;
        -webkit-transition: all 0.5s;
        -o-transition: all 0.5s;
        -moz-transition: all 0.5s;
    }

        .nav_sec a:hover {
            transform: translateX(10px);
        }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 5px;
    }

    .footer-links a {
        transition: all 0.3s;
    }

        .footer-links a:hover {
            color: var(--primary-color);
            padding-left: 5px;
        }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        font-size: 20px;
        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(--primary-color);
            transform: translateY(-3px);
        }

.qrcode {
    width: 200px;
    position: absolute;
    left: 190px;
    bottom: 112px;
    transition: all .3s ease;
    opacity: 0;
    display: none;
}

    .qrcode img {
        width: 100%;
    }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}
    .footer-bottom a {
        color: var(--secondary-color);
    }

/* 返回顶部按钮 */
.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);
    }

/* owl-carousel */
.owl-dots {
    text-align: center;
}

    .owl-dots .owl-dot {
        height: 6px;
        width: 22px;
        transition: 0.5s;
        margin: 0 5px 5px;
        border-radius: 2px;
        background-color: #D4D4D4 !important;
    }

        .owl-dots .owl-dot.active {
            background-color: var(--primary-color) !important;
            width: 42px;
        }

/* about dots*/
#carousel-info .owl-stage-outer {
    /*max-width: 100vw;*/
}
#carousel-info .owl-dots {
    background: transparent;
    width: 100%;
    position: absolute;
    bottom: 10px;
}

    #carousel-info .owl-dots .owl-dot {
        height: 8px;
        width: 8px;
        border-radius: 8px;
    }
/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .banner-content h1 {
        font-size: 2.8rem;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        margin-bottom: 0;
    }

    .map {
        display: none;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 0;
    }

    .map-placeholder {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        color: white;
        background: linear-gradient(135deg,var(--primary-color), var(--dark-blue));
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: all 0.5s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

        .nav-links.active {
            left: 0;
            padding-top: 120px;
        }

        .nav-links li {
            margin: 15px 0;
        }

        .nav-links a::after {
            background-color: var(--light);
            height: 2px;
        }

    .search-container {
        display: none;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

    .banner-btns {
        flex-direction: column;
        gap: 15px;
    }

    .news-grid .empty {
        width: 75%;
    }

    .tab-btn {
        padding: 10px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about, .services {
        padding: 50px 0;
    }

    .menus {
        display: none;
    }

    .qrcode {
        bottom: 340px;
        right: 20px;
        left: auto;
    }

    .footer-col p {
        margin-bottom: 0px;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}
