html {
    scroll-behavior: smooth;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center
}

/* 导航栏样式 */
.main-nav {
    position: fixed;
    background: rgb(255, 255, 255);
    /* padding: 1rem 0; */
    top: 0px;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    color: #fff;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #464646;
    transform: translateZ(0);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: none !important;
    /* // 去掉下划线 */
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    /* // 去掉下划线 */

}

.nav-menu a.active {
    color: #ff0000 !important;
    border-bottom: 2px solid #ff0000;
}

.nav-menu a:hover {
    color: #ff0000;
    border-bottom-color: #ff0000;
}

.content {
    display: flex;
    top: 127px;
    width: 100%;
    text-align: center;

}

@media (max-width: 768px) {
    .nav-menu a:active {
        background: rgba(37, 99, 235, 0.1);
    }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

/* 二级菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgb(44, 62, 80);
    /* 与导航栏主色一致 */
    min-width: 120%;
    left: 0;
    top: 100%;
    box-shadow: 0 4px 6px -1px rgba(15, 35, 77, 0.1);
    border-radius: 0 0 8px 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    padding: 14px 32px;
    white-space: nowrap;
    color: #fff !important;
    /* 强制白色文字 */
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
}

.dropdown-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: rgb(44, 62, 80);
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-item:hover {
    background: rgba(191, 219, 254, 0.3) !important;
    color: #bfdbfe !important;
    padding-left: 28px;
}

.dropdown-item:hover:before {
    opacity: 1;
}

/* 三级菜单 */
.dropdown-content ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #f8f9fa;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-content li:hover>ul {
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 16px;
    display: block;
}

/* 内容区域 */
.content-container {
    margin-top: 90px !important;
    /* 导航栏高度60px + 间隔30px */
    padding-top: 30px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.company-section {
    /* background: #f9fbfe; */
    padding: 4rem 0;
    /* border-top: 1px solid #e2e8f0; */
}

.profile-card {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.1);
}

.info-item {
    margin-bottom: 1rem;
    /* background-color: #7fc9d4; */
    text-align: left;
    margin: 1rem auto;
    max-width: 100ch;
    line-height: 1.6;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;

}

.contact-item {
    text-align: center;
    min-width: unset;
    flex: 1;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.contact-item:hover {
    transform: translateY(-3px);
}

.qrcode {
    width: 120px;
    height: auto;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        margin: 1rem;
        padding: 1rem;
    }
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 0.1;
}

@media (max-width: 768px) {
    .service-image {
        margin: 1rem auto;
        max-width: 95vw;
    }
}

/* 响应式设计 */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
        padding: 0.5rem;
    }

    .menu-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #34495e;
    }
}

:target {
    scroll-margin-top: 80px;
}

.ripple-effect {
    position: absolute;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        transform: scale(4);
        opacity: 0;
    }
}

.carousel-section {
    /* position: relative;
    top: 127px;
    left: 50%; */
    width: 100%;
    margin-left: -960px;
    text-align: center;
    margin: 127px 0 0 0;
}

.carousel-section img {
    width: 100%;
    max-height: 500px;
}

@media (max-width: 768px) {
    .main-carousel {
        min-height: 300px;
    }
}

.card-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.service-section {
    padding: 2rem;
    margin: 0 100px;
    /* max-width: 1920px; */
    width: 100%;
}

.service-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 3rem;
}

.section-title2 {
    text-align: left;
    font-size: 2.5rem;
    color: #1a365d;
    margin-left: 0px;
}


.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
}

.service-card h3 {
    color: #2b6cb0;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4299e1;
}

.standard-section {
    padding: 2rem;
    margin: 0 100px;
    /* max-width: 1920px; */
    width: 100%;
}

.section-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;

    display: flex;
    gap: 2rem;
    justify-content: space-around;
    align-items: center;
}

.section-left {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 650px;
}

.standard-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .standard-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
}

.section-right {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 650px;

}

.side-image {
    width: 900px;
    height: 650px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
    }

    .section-right {
        order: -1;
    }
}

.standard-grid {
    display: grid;
    margin-top: 2rem;
}

.standard-card {
    /* background-color: #5b9bd5; */
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.standard-card h3 {
    margin-bottom: 0.5rem;
}

.standard-card p {
    color: #464646;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 200px;
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
    /* 未添加移动端响应 */
}

.logo img {
    aspect-ratio: 3/1;
    /* 确保原图比例3:1 */
}

@media (max-width: 768px) {
    .logo img {
        width: 90px;
    }
}

.main-carousel {
    max-width: none;
}

.carousel-item img {
    width: 100%;
    object-fit: cover;
}