/* 重置浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
    background-color: #f5f5f5;
    opacity: 0;
    transition: opacity 0.5s;
}

body.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #2d71e5;
}

ul, ol {
    list-style: none;
}

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

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2d71e5;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1e5fc8;
    color: #fff;
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 3px;
    background-color: #2d71e5;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
    color: #2d71e5;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 移动端导航按钮 */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    background: #fff;
    border: none;
    color: #2d71e5;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.mobile-nav-toggle:hover {
    background: #f0f8ff;
    color: #1e5fc8;
}

.mobile-nav-toggle .bi {
    margin: 0;
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

/* 导航栏优化样式 */
.main-nav {
    background: linear-gradient(to right, #2d71e5, #1e5fc8);
    border-radius: 4px;
    margin-bottom: 5px;
}

.main-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    animation: fadeInDown 0.5s;
    border-radius: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav ul {
    display: flex;
    padding: 0 10px;
}

.main-nav li {
    position: relative;
    flex: 1;
    text-align: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.main-nav li.active a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid #fff;
}

.main-nav a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: -60px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #2d71e5;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    z-index: 99;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top.visible {
    bottom: 20px;
    opacity: 1;
}

.back-to-top:hover {
    background: #1e5fc8;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top .bi {
    margin: 0;
    font-size: 18px;
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
}

.banner-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    display: none;
    position: relative;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
}

.banner-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

.banner-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-indicators span.active {
    background-color: #fff;
}

.banner-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-controls button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-controls .prev {
    left: 20px;
}

.banner-controls .next {
    right: 20px;
}

/* 服务专区样式 */
.services {
    padding: 40px 0;
    background-color: #fff;
}

.service-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-item {
    width: 23%;
    padding: 20px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 15px;
}

.icon-circle {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background-color: #f0f8ff;
    color: #2d71e5;
    border-radius: 50%;
    font-size: 24px;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.service-item p {
    color: #666;
    margin-bottom: 15px;
    height: 42px;
    overflow: hidden;
}

/* 更多按钮样式 */
.more-btn {
    text-align: center;
    margin-top: 20px;
}

/* 新闻动态样式 */
.news {
    padding: 40px 0;
    background-color: #fff;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-featured {
    width: 50%;
    padding-right: 20px;
}

.news-img {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.news-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-img:hover img {
    transform: scale(1.05);
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-info p {
    color: #666;
    margin-bottom: 10px;
    height: 63px;
    overflow: hidden;
}

.news-meta {
    color: #999;
    font-size: 12px;
}

.news-meta span {
    margin-right: 15px;
}

.news-list {
    width: 50%;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.news-date {
    min-width: 60px;
    color: #999;
    font-size: 14px;
}

.news-item h4 {
    font-size: 16px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #999;
    padding-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
}

.footer-nav dl {
    margin-right: 60px;
}

.footer-nav dt {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-nav dd {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #999;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
}

.qrcode {
    margin-right: 30px;
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    padding: 5px;
    background-color: #fff;
}

.qrcode p {
    margin-top: 10px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

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

.footer-bottom a:hover {
    color: #fff;
} 