/* 网站改进样式 - 2024年更新 */

/* 1. 导航栏动画效果改进 */
nav ul li a {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    padding: 8px 15px;
    border-radius: 4px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: height 0.3s ease;
    z-index: -1;
}

nav ul li a:hover:before, nav ul li a.active:before {
    height: 100%;
}

nav ul li a:hover, nav ul li a.active {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 2. 移除导航栏右侧三条杠符号 */
.mobile-menu-toggle {
    display: none !important;
}

/* 3. 移除所有页面中标题下面的横线 */
.page-title-decoration {
    display: none !important;
}

/* 4. 调整service.html主图尺寸 */
.page-title-section.service-title-bg {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
}

/* 5. 为company.html, technology.html和contact.html添加全宽背景图 */
.page-title-section.company-title-bg {
    background-image: url('../images/company-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

.page-title-section.technology-title-bg {
    background-image: url('../images/technology-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

.page-title-section.contact-title-bg {
    background-image: url('../images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

/* 6. 修改technology.html中的字体颜色和间距 */
.technology-intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.technology-intro-section {
    padding: 30px 0 20px;
}

/* 7. 重新排版contact.html中的表单和地图部分 */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper,
.contact-info-map-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.map-container-inline {
    margin-top: 20px;
    height: 100%;
    min-height: 300px;
}

.map-container-inline iframe {
    height: 100%;
    min-height: 300px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
}