/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 全局样式 */
body {
    background-color: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: auto;
    min-width: 1200px;
}

/* 兼容性设置 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE10+ 特定样式 */
    body {
        min-width: 1200px;
    }
}

@supports (-ms-ime-align:auto) {
    /* Edge 特定样式 */
    body {
        min-width: 1200px;
    }
}

/* 确保在小屏幕上显示水平滚动条 */
@media (max-width: 1200px) {
    html, body {
        min-width: 1200px;
        overflow-x: auto;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
header {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* position: relative;
    z-index: 100; */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 270px;
    height: 51px;
}

.logo img {
    max-height: 100%;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    font-weight: 500;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    margin-right: 100px;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #333333;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    display: block;
    padding: 5px 0;
}

/* .nav-links a:hover {
    color: #2E74BB;
} */

.nav-links a.active {
    color: #2E74BB;
}

/* 在首页下添加一道短横 */
.home-link.active::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #2E74BB;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.login-btn {
    background-color: transparent;
    border: none;
    padding: 6px 20px;
    font-size: 16px;
    cursor: pointer;
    color: #101010;
    font-weight: 400;
}

.register-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
}

/* 智慧科技 */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: relative;
    width: 100%;
    min-height: 544px;
    background-image: url('img/heard2.jpg'), url('img/知软banner图.svg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 50px 0;
}

.hero-tile1 {
    color: #FFFFFF;
    font-size: 72px;
    margin-bottom: 20px;
}

.hero-tile2 {
    color: #FFFFFF;
    font-size: 28px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #000000;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    width: 160px;
    height: 48px;
}

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.play-icon img {
    max-width: 20px;
    /* margin-top: 6px; */
    margin-left: 2px;
}

/* 数据链+人工智能 */
.data-ai {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 36px;
    margin-bottom: 60px;
    color: #222222;
    letter-spacing: 0.3px;
    text-align: center;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.service-tabs {
    flex: 0 0 282px;
    background-color: #0D1B27;
}

.service-tab {
    height: 186px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

/* .service-tab.active {
    background-color: #045aa7;
} */

.service-tab-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-tab-title {
    font-size: 16px;
    font-weight: normal;
    color: #FFFFFF;
    text-align: center;
}

.service-content {
    flex: 1;
    min-height: 558px;
    color: white;
    padding: 40px;
    text-align: left;
    background-image: url('img/分组\ 1@2x.png'), url('img/产业服务.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-content-inner {
    position: relative;
    z-index: 1;
    color: white;
    margin-left: 10px;
    margin-top: 20px;
    letter-spacing: 0.8px;
}

.service-content-p1 {
    font-size: 26px;
    margin-bottom: 20px;
}

.service-content-p2 {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

/* 行业解决方案 */
.solutions {
    padding: 80px 0;
    text-align: center;
    background-color: #F5F8FA;
}

.solution-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.solution-tab {
    margin: 0 18px;
    font-size: 15px;
    color: #999999;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.solution-tab.active1 {
    color: #2E74BB;
    border-bottom-color: #2E74BB;
}


.solution-divider {
    background-color: #E6E6E6;
    margin: 0 0 40px;
    height: 1px;
    border: none;
}

.solution-cards {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    gap: 24px;
}


.solution-card {
    flex: 0 0 calc(33.333% - 20px);
    /* margin-bottom: 10px; */
    position: relative;
    overflow: hidden;
    /* border-radius: 4px; */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    background-color: white;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}


.solution-card-image {
    width: 100%;
    height: 0;
   /*  padding-bottom: 56.25%;  16:9 比例  */
    position: relative;
    overflow: hidden;
}

.solution-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.solution-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.solution-card-title {
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.solution-card-title p {
    font-size: 18px;
    font-weight: normal;
    color: #333333;
}

.solution-card-title i img {
    width: 20px;
    height: 20px;
}

/* 页脚 */
footer {
    background-image: url('img/底部.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1 0 200px;
}

.contact-column {
    flex: 1.5 0 300px;
}

.footer-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #748ea6;
    text-decoration: none;
    font-size: 14px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.footer-contact-text.phone {
    font-size: 24px;
    color: #FFFFFF;
    font-weight: 400;
}

.footer-contact-text.address {
    font-size: 14px;
    color: #748ea6;
    white-space: normal;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: #748ea6;
}

.footer-bottom a {
    text-decoration: none;
    color: #748ea6;
}

/* 响应式设计 */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-menu {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .hero-tile1 {
        font-size: 36px;
    }
    
    .hero-tile2 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .solution-card {
        flex: 0 0 100%;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .service-tabs {
        flex-direction: column;
    }
    
    .hero-tile1 {
        font-size: 28px;
    }
    
    .hero-tile2 {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .solution-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .solution-tab {
        margin: 5px 0;
    }
}

/* 添加以下代码到现有CSS文件的底部 */

/* Safari特定优化 */
@supports (-webkit-touch-callout: none) {
    /* 仅Safari浏览器适用的样式 */
    
    /* 修复Safari中的字体渲染问题 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 修复Safari中的flex布局问题 */
    .header-content,
    .nav-menu,
    .header-right,
    .about-section,
    .cards-container,
    .stats-container,
    .top-features,
    .feature-item,
    .contact-info,
    .nav-links,
    .sub-links,
    .logo1,
    .copyright {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    
    /* 修复Safari中的flex-direction问题 */
    .card-content,
    .stat-item,
    .footer-box,
    .middle-section {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    
    /* 修复Safari中的position:fixed和absolute问题 */
    .hero-content {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    
    /* 修复Safari中的背景图片问题 */
    .header-bg,
    .card-left,
    .card-middle,
    .card-right {
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-background-position: center;
        background-position: center;
    }
    
    /* 修复Safari中的按钮样式问题 */
    .free-trial-btn,
    .contact-btn,
    .experience-btn {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 2px;
    }
    
    /* 修复Safari中的输入框样式问题 */
    .search-box input {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 0;
    }
    
    /* 修复Safari中的过渡动画问题 */
    .nav-item,
    .free-trial-btn,
    .contact-btn,
    .experience-btn,
    .nav-links a,
    .sub-links a,
    .copyright a {
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    
    /* 修复Safari中的图片显示问题 */
    img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* 修复Safari中的滚动问题 */
    html, body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 修复Safari中的文本溢出问题 */
    .hero-title,
    .hero-description,
    .about-title,
    .about-text,
    .card-title,
    .card-description,
    .card-title1,
    .card-description1 {
        word-break: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    
    /* 修复Safari中的阴影渲染问题 */
    .card {
        -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    /* 修复Safari中的透明度问题 */
    .nav-item,
    .hero-description {
        opacity: 0.9;
        -webkit-opacity: 0.9;
    }
    
    /* 修复Safari中的边框问题 */
    .search-box {
        border: 1px solid rgba(255, 255, 255, 0.3);
        -webkit-border-radius: 2px;
        border-radius: 2px;
    }
}

/* 针对iOS Safari的特定修复 */
@supports (-webkit-touch-callout: none) and (not (translate: none)) {
    /* 仅iOS Safari适用的样式 */
    
    /* 修复iOS Safari中的点击延迟问题 */
    a, button {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 修复iOS Safari中的固定定位问题 */
    .header-bg {
        position: relative;
        z-index: 1;
    }
    
    /* 修复iOS Safari中的视口高度问题 */
    .hero-section {
        min-height: 560px;
        height: auto;
    }
    
    /* 修复iOS Safari中的表单元素样式问题 */
    input, button {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 0;
    }
    
    /* 修复iOS Safari中的滚动问题 */
    .container {
        -webkit-overflow-scrolling: touch;
    }
}

/* 针对macOS Safari的特定修复 */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) and (not (translate: none)) {
        /* 仅macOS Safari适用的样式 */
        
        /* 修复macOS Safari中的字体渲染问题 */
        body {
            letter-spacing: -0.05px;
        }
        
        /* 修复macOS Safari中的图片渲染问题 */
        img {
            image-rendering: -webkit-optimize-contrast;
        }
        
        /* 修复macOS Safari中的滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
        }
        
        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }
        
        /* 修复macOS Safari中的文本选择样式 */
        ::selection {
            background: rgba(70, 95, 160, 0.3);
            color: inherit;
        }
    }
}

/* 修复Safari中的sticky定位问题 */
@supports ((position: -webkit-sticky) or (position: sticky)) {
    /* header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
    } */
}

/* 修复Safari中的图片拖动问题 */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* 修复Safari中的SVG渲染问题 */
svg {
    shape-rendering: geometricPrecision;
}