/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.logo {
    float: left;
}

.logo img {
    max-height: 60px;
}

.main-nav {
    float: right;
    margin-top: 20px;
}

.main-nav ul {
    list-style: none;
}

.main-nav ul li {
    display: inline-block;
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #007bff;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

/* 页脚样式 */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info, .footer-links, .footer-user {
    flex: 1;
    margin-right: 30px;
}

.footer-info h3, .footer-links h3, .footer-user h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.2rem;
}

.footer-links ul, .footer-user ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li, .footer-user ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-user ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover, .footer-user ul li a:hover {
    color: #fff;
}

.footer-user .welcome-text {
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-user ul li a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* 顶部信息栏 */
.top-bar {
    font-size: 0.9rem;
}

.top-bar i {
    margin-right: 5px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    background: linear-gradient(to right, #ffffff, #e8f4ff) !important;
    border-bottom: 1px solid rgba(0,123,255,0.1);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    max-height: 110px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    color: #2c3e50 !important;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0056b3 !important;
}

/* 只为非下拉菜单的导航链接添加下划线效果 */
.nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0056b3;
    transition: all 0.3s ease;
}

.nav-item:not(.dropdown) .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-item:not(.dropdown) .nav-link.active {
    color: #0056b3 !important;
}

.nav-item:not(.dropdown) .nav-link.active::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    background: linear-gradient(to bottom, #ffffff, #f8fbff);
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #e8f4ff;
    color: #0056b3;
    transform: translateX(5px);
}

.dropdown-item.active {
    background-color: #0056b3;
    color: white;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/banner1.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin-bottom: 50px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb {
    justify-content: center;
    background: transparent;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #007bff;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255,255,255,0.8);
}

/* 轮播图样式 */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 服务特点 */
.feature-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    color: #007bff;
}

/* 服务卡片 */
.service-card {
    border: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #007bff;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    color: #007bff;
    margin-bottom: 10px;
}

/* 联系我们部分 */
.contact {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

/* 页脚样式 */
footer {
    background: #1a1a1a;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    color: #999;
    margin-bottom: 0.5rem;
}

footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* 按钮样式 */
.btn-primary {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 30px;
}

.btn-outline-primary {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
}

/* 新闻动态样式 */
.news-item {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    background-color: #fff;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-meta {
    color: #666;
    font-size: 0.9rem;
}

.news-meta i {
    margin-right: 5px;
    color: #007bff;
}

.card-title {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.news-content {
    color: #444;
    line-height: 1.8;
}

.news-table {
    margin-top: 1rem;
}

.news-table td:first-child {
    width: 200px;
    font-weight: 500;
    background-color: #f8f9fa;
}

.news-table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.news-pagination {
    margin-top: 2rem;
    justify-content: center;
}

.news-pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 4px;
}

.news-pagination .page-link:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.news-pagination .active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .feature-item {
        margin-bottom: 2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        margin-left: 20px;
    }

    .navbar {
        padding: 8px 0;
        background: #ffffff !important;
    }
    
    .navbar-brand img {
        max-height: 70px;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }

    .news-table td:first-child {
        width: 120px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-links, .footer-user {
        margin-right: 0;
        margin-bottom: 30px;
    }
} 