:root {
    --primary-color: #0056b3;       /* 主色调：深蓝色 */
    --secondary-color: #00a0e9;     /* 次要色调：亮蓝色 */
    --accent-color: #ff9800;        /* 强调色：橙色 */
    --light-color: #f8f9fa;         /* 浅色背景 */
    --dark-color: #343a40;          /* 深色文本 */
    --text-color: #333333;          /* 主要文本颜色 */
    --text-light: #6c757d;          /* 次要文本颜色 */
    --border-color: #e9ecef;        /* 边框颜色 */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);  /* 阴影效果 */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
}

/* 通用样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn {
    border-radius: 4px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 导航栏样式 */
.navbar {
    padding: 0.5rem 1rem;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 0.3rem 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

/* 英雄部分样式 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: -80px;
}

.hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    color: white;
    padding: 2rem 0;
    max-width: 700px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    border-radius: 4px;
}

/* 服务概览部分样式 */
.services-overview {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card .btn {
    margin-top: auto;
}

/* 为什么选择我们部分样式 */
.why-choose-us {
    padding: 5rem 0;
    background-color: white;
}

.advantage-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.advantage-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.advantage-card p {
    color: var(--text-light);
}

/* 关键数据部分样式 */
.key-facts {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 160, 233, 0.9)), url('../img/bg-facts.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.key-facts .section-title,
.key-facts .section-subtitle {
    color: white;
}

.key-facts .section-title::after {
    background: white;
}

.fact-item {
    padding: 2rem;
    text-align: center;
}

.fact-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.fact-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.fact-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* 客户评价部分样式 */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.testimonial-content {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: -1rem;
    top: -2rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author p {
    font-style: italic;
    color: var(--text-light);
}

/* CTA部分样式 */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2.5rem;
}

.cta-section p {
    margin-bottom: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer address p {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 25px;
}

.footer address i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer .copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.footer .copyright a:hover {
    color: white;
}

/* 返回顶部按钮 */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 动画效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-in-out;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-in-out;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .fact-item h3 {
        font-size: 2.5rem;
    }
}

/* 页面特定样式 */
.page-header {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 68, 148, 0.9)), url('../img/bg-page-header.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    margin-top: -80px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item, .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.7);
}

/* 全球网络页面样式 */
.network-map {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.office-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.office-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.office-card address {
    margin-bottom: 1.5rem;
}

.office-card .contact-info {
    margin-bottom: 1.5rem;
}

.office-card .contact-info p {
    margin-bottom: 0.5rem;
}

.office-card .contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 服务详情页面样式 */
.service-detail-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.service-detail-img img {
    width: 100%;
    transition: transform 0.3s ease;
}

.service-detail-img:hover img {
    transform: scale(1.05);
}

.service-features {
    background-color: var(--light-color);
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* 联系我们页面样式 */
.contact-info-card {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

/* 新闻页面样式 */
.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.news-img {
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* 修复布局问题的额外样式 */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-left: 15px;
    padding-right: 15px;
}

/* 修复图片响应式问题 */
img {
    max-width: 100%;
    height: auto;
}

/* 修复移动端导航问题 */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 1rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: transparent;
    }
}

/* 修复首页英雄区域在移动端的显示问题 */
@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
}

/* 修复按钮在移动端的显示问题 */
@media (max-width: 575.98px) {
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn {
        margin-right: 0;
    }
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}