/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary-color: #0f4c81;
    --secondary-color: #1660a7;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f8f9fa;
    --card-background: #fff;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文本颜色 */
.text-primary {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.3);
}

.btn-transparent {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-transparent:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.3);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(15, 76, 129, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.scrolled .logo h1,
.header.scrolled .nav-links a {
    color: #fff;
}

.header.scrolled .btn {
    background-color: #fff;
    color: var(--primary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.header.scrolled .nav-links a::after {
    background-color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
    color: #fff;
}

.contact-btn .btn {
    background-color: var(--primary-color);
    color: #fff;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.header.scrolled .mobile-menu {
    color: #fff;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0f4c81 0%, #1660a7 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmZmZmMjAiPjwvcmVjdD4KPHBhdGggZD0iTTAgNUw1IDBaTTYgNEw0IDZaTS0xIDFMMiAtMVoiIHN0cm9rZT0iI2ZmZmZmZjQwIiBzdHJva2Utd2lkdGg9IjEiPjwvcGF0aD4KPC9zdmc+');
    opacity: 0.5;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 区域标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.section-header p {
    font-size: 16px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* 优势区域 */
.advantages {
    padding: 80px 0;
    background-color: #fff;
}

.advantage-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.advantage-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-item .icon {
    width: 80px;
    height: 80px;
    background-color: rgba(15, 76, 129, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-color);
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.advantage-item p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
}

/* 服务内容 */
.services {
    padding: 100px 0;
    background-color: var(--background-color);
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.service-card {
    flex: 1;
    min-width: 280px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* 专业领域 */
.expertise {
    padding: 100px 0;
    background-color: #fff;
}

.expertise-areas {
    max-width: 800px;
    margin: 0 auto;
}

.expertise-area {
    margin-bottom: 30px;
}

.expertise-area h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: var(--background-color);
}

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

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.about-text p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.about-stats .stat {
    text-align: center;
    min-width: 100px;
}

.about-stats .stat span {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-stats .stat p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

/* 成功案例 */
.cases {
    padding: 100px 0;
    background-color: #fff;
}

.case-studies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.case-study {
    flex: 1;
    min-width: 280px;
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-study:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study:hover .case-image img {
    transform: scale(1.05);
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.case-info p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.view-case {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-case:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 客户评价 */
.testimonials {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.testimonials .section-header h2 {
    color: #fff;
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
}

.quote-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.testimonial-item p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.client-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.client-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.contact-info p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

.info-items {
    margin-bottom: 30px;
}

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

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.info-item span {
    font-size: 15px;
    color: var(--light-text);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 70px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo,
.footer-links,
.footer-services,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

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

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

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-header h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 30px;
    }
    
    .service-cards,
    .case-studies {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 15px 20px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        opacity: 0;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-header h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 24px;
    }
    
    .advantages,
    .services,
    .expertise,
    .about,
    .cases,
    .testimonials,
    .contact {
        padding: 80px 0;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 20px;
    }
    
    .advantage-item,
    .service-card,
    .case-study {
        min-width: 100%;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}