* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e88e5;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 顶部栏 */
.top-bar {
    background: #1565c0;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left i {
    margin-right: 5px;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-right a {
    margin-left: 15px;
    color: #fff;
}

/* 导航栏 */
.navbar-xixian {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-xixian .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand-xixian {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand-xixian .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1565c0;
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    background: #1565c0;
    color: #fff;
}

/* 轮播图 */
.banner {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.banner-item:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.banner-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #1565c0;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #0d47a1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(21,101,192,0.4);
}

/* 通用区块 */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1565c0;
    border-radius: 2px;
}

.section-title p {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

/* 服务项目 */
.services-section {
    background: #fff;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(21,101,192,0.15);
    border-color: #1565c0;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}

.service-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-more {
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
}

.service-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-card:hover .service-more i {
    transform: translateX(5px);
}

/* 关于我们 */
.about-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid #1565c0;
    border-radius: 12px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

.about-text > p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 25px;
    text-indent: 2em;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 14px;
}

.about-feature-item i {
    color: #1565c0;
    font-size: 18px;
}

.about-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #1565c0;
    color: #fff;
    border-radius: 30px;
    transition: all 0.3s;
}

.about-btn:hover {
    background: #0d47a1;
    color: #fff;
}

/* 新闻动态 */
.news-section {
    background: #fff;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1565c0;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
}

.news-date-badge .day {
    font-size: 20px;
    font-weight: bold;
    display: block;
}

.news-body {
    padding: 20px;
}

.news-body h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-body p {
    color: #888;
    font-size: 13px;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 数据统计 */
.stats-section {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 联系我们 */
.contact-section {
    background: #fff;
}

.contact-info-box {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    height: 100%;
}

.contact-info-box h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 20px;
    margin-top: 3px;
    width: 24px;
    text-align: center;
}

.contact-item-text h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 底部 */
.footer {
    background: #1a2332;
    color: #a0aec0;
    padding: 60px 0 0;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1565c0;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #1565c0;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #1565c0;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: #1565c0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: #a0aec0;
}

/* 页面头部 Banner */
.page-banner {
    height: 280px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb-wrapper {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #1565c0;
}

.breadcrumb .active {
    color: #1565c0;
}

/* 列表页 */
.list-section {
    padding: 50px 0;
}

.list-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.list-item:hover {
    padding-left: 10px;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-image {
    width: 220px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-item-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.list-item-content h3:hover {
    color: #1565c0;
}

.list-item-content p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-item-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
}

.list-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 内容页 */
.content-section {
    padding: 50px 0;
}

.article-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.article-title {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title h1 {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #999;
    font-size: 13px;
}

.article-body {
    font-size: 16px;
    line-height: 2;
    color: #444;
    padding: 20px 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 侧边栏 */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1565c0;
    color: #222;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li i {
    color: #1565c0;
    font-size: 12px;
}

.sidebar-list li a {
    color: #555;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-list li a:hover {
    color: #1565c0;
}

/* 分页 */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.pagination li {
    margin: 0 2px;
}

.pagination li a {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #1565c0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.pagination li:first-child a {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.pagination li:last-child a {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.pagination li a:hover {
    color: #0d47a1;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination li.active a {
    z-index: 1;
    color: #fff;
    background-color: #1565c0;
    border-color: #1565c0;
}

.pagination li.disabled a {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* 响应式 */
@media (max-width: 992px) {
    .banner-item {
        height: 380px;
    }
    .banner-content h1 {
        font-size: 32px;
    }
    .about-content {
        flex-direction: column;
    }
    .section {
        padding: 50px 0;
    }
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .banner-item {
        height: 300px;
    }
    .banner-content h1 {
        font-size: 24px;
    }
    .banner-content p {
        font-size: 14px;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .section {
        padding: 40px 0;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    .list-item {
        flex-direction: column;
    }
    .list-item-image {
        width: 100%;
        height: 200px;
    }
    .article-content {
        padding: 20px;
    }
    .article-title h1 {
        font-size: 22px;
    }
}
