/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

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

/* 导航栏 */
header {
    background-color: #0b2447;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo span {
    color: #2f80ed;
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4f9bff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(7, 22, 48, 0.78), rgba(11, 36, 71, 0.82)), url('../images/hero.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #2f80ed;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

/* 服务部分 */
.services {
    padding: 80px 0;
    background-color: white;
}

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

.section-title h2 {
    font-size: 36px;
    color: #0b2447;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    font-size: 50px;
    color: #2f80ed;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0b2447;
}

.about-text p {
    margin-bottom: 15px;
}

/* 客户评价 */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: rgba(47, 128, 237, 0.15);
    position: absolute;
    top: 10px;
    left: 10px;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-name h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-icon {
    font-size: 20px;
    color: #2f80ed;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* 页脚 */
footer {
    background-color: #0b2447;
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4f9bff;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #2f80ed;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #0b2447;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-card,
    .testimonial-card {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links li {
        margin: 5px 0;
    }
}
