body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-text h1 {
    font-size: 22px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
}

.logo-text h2 {
    font-size: 14px;
    margin: 0;
    color: #555;
    font-weight: normal;
}

.footer-content p {
    line-height: 1.8;
    font-size: 15px;
    margin: 10px 0;
}

* {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(248, 249, 250, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
    display: flex;
    align-items: center;
}

header .nav-menu {
    display: flex;
    gap: 20px;
    margin-right: 50px; /* 向左移动导航栏 */
}

header .nav-menu a {
    color: #2c2c2c;
    font-weight: 500;
    padding: 5px 10px;
    font-size: 17px;
    transition: all 0.3s ease;
    position: relative; /* 为下划线定位做准备 */
    letter-spacing: 0.3px;
}

header .nav-menu a:hover {
    color: #1e50a2; /* 更现代的蓝色 */
}

header .nav-menu a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1e50a2; /* 更现代的蓝色 */
    bottom: 0;
    left: 0;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

header .nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1e50a2; /* 更现代的蓝色 */
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header .nav-menu a.active {
    color: #1e50a2; /* 更现代的蓝色 */
}

header .nav-menu a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1e50a2; /* 更现代的蓝色 */
    bottom: 0;
    left: 0;
    transform: scaleX(1);
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-menu .bar1, .hamburger-menu .bar2, .hamburger-menu .bar3 {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

/* 汉堡菜单点击动画 */
.hamburger-menu.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar2 {
    opacity: 0;
}

.hamburger-menu.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 移动端侧边导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: white;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 60px 20px 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav a {
    color: #2c2c2c;
    font-weight: 500;
    padding: 15px 10px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: #1e50a2;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

header .logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.banner {
    width: 100vw;
    height: 600px;  /* 默认高度，会在媒体查询中调整 */
    overflow: hidden;
    position: relative;  /* 确保它处于页面最上方 */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -80px; /* 消除与导航栏之间的空白 */
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;  /* 默认隐藏 */
    transition: opacity 1s ease-in-out;  /* 使用淡入淡出效果 */
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;  /* 激活项显示 */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    padding: 0px;
    max-width: 100vw;
    margin: 0 auto;
}

footer {
    background-color: rgba(33, 38, 38, 1);
    padding: 60px 0 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .footer-container {
        padding: 0 15px;
        max-width: 100%;
        padding-top: 30px;
    }
}

.footer-content p {
    line-height: 1.8;
}

.qrcode-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-item p {
    font-size: 15px;
    margin: 15px 0;
    margin-top: 2px;
    color: rgba(255, 255, 255, 1);
    font-weight: 200;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.qrcode-item img {
    width: 140px;
    height: 140px;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 10px;
    margin: 0px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.qrcode-item img:hover {
    transform: scale(1.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 40px;
}

.footer-column {
    width: 48%;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.footer-column:hover {
    transform: translateY(-5px);
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.5px;
}

.footer-column p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    line-height: 1.5;
    font-weight: 200;
    font-size: 16px;
}

.icon-person, .icon-phone, .icon-email, .icon-address {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer-qrcode {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .footer-qrcode {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .qrcode-item {
        width: 100%;
        max-width: 200px;
    }

    .qrcode-item img {
        width: 120px;
        height: 120px;
    }

    .qrcode-item p {
        font-size: 14px;
        margin: 10px 0;
        white-space: nowrap;
    }
}
.qrcode-item {
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* 图标样式 */
.icon-person, .icon-phone, .icon-email, .icon-address {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.icon-person::before {
    content: '';
    background-image: url('../images/icons/person.svg');
    background-size: contain;
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.icon-phone::before {
    content: '';
    background-image: url('../images/icons/phone.svg');
    background-size: contain;
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.icon-email::before {
    content: '';
    background-image: url('../images/icons/email.svg');
    background-size: contain;
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.icon-address::before {
    content: '';
    background-image: url('../images/icons/address.svg');
    background-size: contain;
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: #1e50a2;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d3b8b;
}

/* 响应式布局 - 媒体查询 */
/* 大屏幕设备 (桌面电脑, 1200px 及以上) */
@media (min-width: 1200px) {
    .banner {
        height: 600px;
    }
    
    header .logo h1 {
        font-size: 18px;
    }
}

/* 中等屏幕设备 (平板电脑, 768px 到 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .banner {
        height: 400px;
    }
    
    header {
        padding: 15px;
    }

    .container {
        padding: 0px;
        max-width: 100vw;
    }

    header .nav-menu {
        display: flex;
        gap: 15px;
        margin-right: 30px; /* 向左移动导航栏 */
    }
    
    /* 调整导航栏文字和公司名称字体大小 */
    header .nav-menu a {
        font-size: 14px !important;
    }
        
    header .logo-text h1 {
        font-size: 14px !important;
    }
        
    header .logo-text h2 {
        font-size: 12px !important;
    }
        
}

/* 小屏幕设备 (手机, 767px 及以下) */
@media (max-width: 767px) {
    .banner {
        height: 250px;
    }
    
    header {
        padding: 10px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    header .logo {
        margin-bottom: 0;
    }
    
    header .logo img {
        width: 40px;
        height: 40px;
    }
    
    header .logo h1 {
        font-size: 18px;
    }
    
    header .nav-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .container {
        padding: 0px;
    }
    
    footer {
        padding: 20px 15px 0;
        font-size: 12px;
    }
    
    .footer-content {
        width: 100%;
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-qrcode {
        width: 100%;
        margin-top: 10px;
        gap: 15px;
    }
    
    /* 移动端侧边导航显示时的样式 */
    .mobile-nav.active {
        transform: translateX(0);
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
footer .logo-text h1 {
    font-size: 22px;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

footer .logo-text h2 {
    font-size: 14px;
    margin: 0;
    color: #e0e0e0;
    font-weight: normal;
}
