/* 基本样式重置和通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #4c6ef5;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    border: none;
    background-color: #4c6ef5;
    color: #fff;
    box-shadow: 0 5px 15px rgba(76, 110, 245, 0.3);
}

.btn-primary:hover {
    background-color: #3657d3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 110, 245, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #000000;
    color: #fff;
    transform: translateY(-3px);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3799;
    transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #1e3799;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-switch a.current-lang {
    color: #1e3799;
    font-weight: 600;
}

.lang-switch .lang-separator {
    color: #ddd;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s;
}

.hero-buttons {
    animation: fadeIn 1.5s;
}

/* 服务部分样式 */
.services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 背景调查卡片占据两列 */
.service-card:nth-child(4) {
    grid-column: span 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #eef1ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2rem;
    color: #4c6ef5;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #666;
}

/* 关于我们样式 */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    /* 字体间距 */
    letter-spacing: 0.15em;
    color: #666;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    height: 50px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4c6ef5;
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 5px;
}

.btn-view {
    padding: 8px 20px;
    background-color: #fff;
    color: #4c6ef5;
    font-weight: 600;
    border-radius: 30px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

/* 联系我们样式 */
.contact {
    background-color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background-color: #4c6ef5;
    border-radius: 10px;
    padding: 40px;
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo a {
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo p {
    margin-top: 20px;
    color: #aaa;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #4c6ef5;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-qrcode {
    margin-top: 30px;
}

.footer-qrcode .qrcode-item p {
    color: #aaa;
    margin-top: 10px;
}

.footer-qrcode .qrcode-item img {
    width: 100px;
    /* 页脚的二维码稍微小一点 */
    height: 100px;
    border: 2px solid #4c6ef5;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar .container {
        flex-wrap: nowrap;
    }

    .nav-left {
        flex: none;
    }

    .logo img {
        height: 40px;
    }

    .nav-toggle {
        display: flex;
        margin-left: 15px;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-center.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        font-size: 1.2rem;
        padding: 10px 0;
    }

    /* 首页横幅优化 */
    .hero {
        height: 80vh;
        padding-top: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    /* 核心业务页面优化 */
    .service-card {
        padding: 25px 20px;
    }

    .service-image {
        height: 200px !important;
    }

    .service-content {
        padding: 20px !important;
    }

    .service-features li {
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .services-grid {
        gap: 15px;
    }

    .service-card {
        border-radius: 12px;
    }

    .service-image {
        height: 180px !important;
    }

    .service-content h3 {
        font-size: 1.3rem !important;
    }

    .service-content p {
        font-size: 0.95rem;
    }

    /* 优化按钮样式 */
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .btn-secondary {
        margin-left: auto;
    }

    .service-card {
        margin-bottom: 5px;
    }

    .service-image {
        height: 160px !important;
    }

    .service-content {
        padding: 15px !important;
    }

    /* 背景调查卡片在手机端恢复单列 */
    .service-card:nth-child(4) {
        grid-column: auto;
    }

    /* 优化图标大小 */
    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* 调整文字间距 */
    .service-content h3 {
        margin-bottom: 10px;
    }

    .service-content p {
        margin-bottom: 15px;
    }

    .service-features li {
        margin-bottom: 8px;
    }

    /* 导航栏优化 */
    .logo img {
        height: 35px;
    }

    .nav-center {
        width: 85%;
        padding: 60px 20px;
    }

    .nav-menu li a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        padding: 3px;
    }

    .nav-toggle span {
        width: 22px;
    }
}

.qrcode-container {
    display: flex;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

.qrcode-item p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* 在手机端  */
@media screen and (max-width: 768px) {
    .article-header {
        margin-top: 100px;
    }
}

/* 通用页面标题样式 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/4.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0 100px;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 通用网格布局 */
.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* 通用卡片样式 */
.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* 通用图标样式 */
.icon {
    font-size: 2.5rem;
    color: #1e3799;
    margin-bottom: 20px;
}

/* 通用响应式样式 */
@media screen and (max-width: 992px) {
    .grid-2-columns {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* 业务服务部分样式 */
.business-services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.business-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.business-service-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.business-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.business-service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.business-service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.business-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.business-service-card:hover .business-service-image img {
    transform: scale(1.1);
}

.business-service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.business-service-content h3 {
    font-size: 1.5rem;
    color: #1e3799;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.business-service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #1e3799;
    border-radius: 2px;
}

.business-service-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.business-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.business-service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.business-service-features li:last-child {
    margin-bottom: 0;
}

.business-service-features li i {
    color: #1e3799;
    margin-right: 12px;
    font-size: 0.8rem;
    padding: 6px;
    background-color: #f0f4ff;
    border-radius: 50%;
}

/* 背景调查和特定调查卡片布局 */
.business-service-card:nth-child(4) {
    grid-column: span 2;
}

.business-service-card:nth-child(5) {
    grid-column: 3;
}

/* 响应式布局 */
@media screen and (max-width: 992px) {
    .business-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .business-service-card:nth-child(4),
    .business-service-card:nth-child(5) {
        grid-column: auto;
    }

    .business-service-image {
        height: 200px;
    }

    .business-service-content {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .business-services-section {
        padding: 50px 0;
    }

    .business-service-image {
        height: 180px;
    }

    .business-service-content h3 {
        font-size: 1.3rem;
    }

    .business-service-content p {
        font-size: 0.95rem;
    }

    .business-service-features li {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 576px) {
    .business-services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .business-service-card {
        margin-bottom: 15px;
    }

    .business-service-image {
        height: 160px;
    }

    .business-service-content {
        padding: 15px;
    }

    .business-service-card:nth-child(4),
    .business-service-card:nth-child(5) {
        grid-column: auto;
    }
}