/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    padding-top: 60px; /* 为了给固定的头部留出空间 */
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    align-items: center;
    padding: 10px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    background-color: rgba(255, 255, 255, 0.8); /* 设置淡透明背景，白色，透明度0.8 */
    position: fixed; /* 设置为固定定位 */
    top: 0; /* 固定在顶部 */
    left: 0;
    width: 100%; /* 宽度占满整个页面 */
    z-index: 1000; /* 确保头部在其他元素之上 */
}

.logo {
    /*font-size: 24px;*/
    color: #333333;
    text-decoration: none;
    font-weight: bold;
    margin-right: 50px; /* 在 logo 和导航之间添加一些间距 */
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px !important;
    }
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a.active { 
    background-color: #e0e0e0;
    color: #666666;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: auto; 
    margin: -7px -16px; 
    display: inline-block; 
}

.nav a:hover {
    /*color: #0075ff;*/
    color: #333333;
}

.login-btn {
    background-color: #0075ff;
    color: white;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: auto; 
    display: inline-flex;
    align-items: center;
}

.login-btn img {
    margin-right: 5px; 
}

.login-btn:hover {
    background-color: #308fff;
}

.login-btn-home {
    background-color: #e0e0e0;
    color: #666666;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: auto; 
    display: inline-flex;
    align-items: center;
}

.login-btn-home img {
    margin-right: 5px; 
}

.login-btn-home:hover {
    background-color: #d4d4d4;
}

/* 移动端菜单按钮 */
.mobile-only-menu-btn {
    display: none;
    cursor: pointer;
    margin-left: 16%;
}

/* 移动端导航菜单样式 */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 500px;
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background-color: #f5f5f5;
}

/* 主内容样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 左右布局样式 */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.text-content {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 36px;
    color: #0075ff;
    margin-bottom: 10px;
    /*font-weight: bold;*/
    /*line-height: 1.2;*/
}

.subtitle {
    color: #666666;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.he-subtitle {
    color: #333333;
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 44px;
    text-align: center;
}

.hero-subtitle {
    color: #333333;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 44px;
    text-align: center;
}

.img-lb{
    width: 100%;
    height: 360px;
    border-radius: 8px; 
    display: flex;  
    justify-content: center;
}

/* 服务卡片样式 */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 30px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    background-color: #4a90e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333333;
    font-weight: bold;
}

.service-description {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

.width-footer{
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0px 16px;*/
}

/* 底部样式 */
.footer {
    padding: 20px 40px;
    background-color: #f7f8fa;
    border-top: 1px solid #e0e0e0;
    /*text-align: center;*/
}

.footer img {
    height: 12px;
    vertical-align: middle;
    margin-right: 5px;
}

.powered-by-box {
    font-weight: 600;
    font-size: 10px;
    display: inline-flex;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    padding: 5px 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-only-menu-btn {
        display: inline-block;
    }
    .mobile-nav {
        display: block;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .width-footer{
        display: inline-flex;
    }
    
    .img-lb{
        width: 300px; 
        height: 210px; 
    }
    
    .subtitle {
        color: #666666;
        margin-bottom: -40px;
        font-size: 12px;
        line-height: 1.5;
    }
}