/* 移动端适配样式 */

/* 通用响应式调整 */
@media (max-width: 768px) {
    /* 基础布局与排版 */
    .container { padding: 0 15px; }
    h1, .h1 { font-size: 1.8rem; }
    h4, .h4 { font-size: 1.3rem; }
    .section-title { margin-bottom: 2rem !important; }
    .para-desc { font-size: 0.9rem; }
    .btn { padding: 8px 16px; font-size: 14px; }
    .mb-2 { margin-bottom: 0.5rem !important; }
    
    /* 菜单打开时禁止页面滚动 */
    body.menu-open { overflow: hidden; }
    
    /* 页头导航适配 */
    #topnav {
        padding: 10px 0;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: #fff;
        transition: all 0.3s ease;
        height: 60px;
        display: flex;
        align-items: center;
    }
    
    #topnav.sticky-active { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
    
    .logo-container {
        display: flex;
        align-items: center;
        height: 40px;
    }
    
    #topnav .logo {
        height: auto;
        line-height: normal;
        padding: 5px 0;
    }
    
    #topnav .logo img { height: 24px; }
    
    #topnav #navigation {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        padding: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 99;
        overflow-y: auto;
        transition: all 0.3s ease;
    }
    
    #topnav #navigation.open {
        display: block;
        animation: fadeInDown 0.3s ease;
    }
    
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    #topnav .login-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }
    
    #topnav .login-menu > li {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    #topnav .login-menu > li > a {
        padding: 15px 20px;
        display: block;
        color: #3c4858;
        border-radius: 0;
        font-weight: 500;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    #topnav .login-menu > li:last-child > a { border-bottom: none; }
    
    #topnav .login-menu > li > a:hover {
        color: #2f55d4;
        background-color: rgba(47, 85, 212, 0.05);
        padding-left: 25px;
    }
    
    .nav-auth-link {
        margin: 5px 0;
        text-align: left;
    }
    
    /* 为固定导航栏添加页面顶部间距 */
    body { padding-top: 60px; }
    
    /* 移动端菜单样式 */
    .mobile-menu { background-color: #fff; }
    
    /* 首页横幅区域适配 */
    .bg-half {
        padding: 60px 0 50px;
        height: auto;
    }
    
    .title-heading {
        text-align: center;
    }
    
    .title-heading .btn { margin-bottom: 10px; }
    
    .cloud-animation {
        margin-top: 30px;
        height: 200px;
    }
    
    .blob { width: 200px; height: 200px; }
    
    .heading small {
        display: block;
        margin-top: 5px;
    }
    
    /* 解决方案部分适配 */
    .van-home-file { padding: 30px 0; }
    
    .van-grid { margin-left: 0; }
    
    .van-grid > * {
        width: 100% !important;
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .van-width-1-3\@s { width: 100%; }
    
    .van-home-file-boxtop { height: 150px; }
    
    .van-home-file-boxmk { padding: 20px 15px; }
    
    .van-home-file-boxmk li a { font-size: 13px; }
    
    .solution-item { margin-bottom: 25px; }
    
    /* 特性部分适配 */
    .features { text-align: center; }
    
    .features .image { margin-bottom: 15px; }
    
    .features .content { padding-left: 0; }
    
    .col-md-4.col-6.mt-5 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 新闻动态部分适配 */
    .news-section { padding: 30px 0; }
    
    .news-card { margin-bottom: 20px; }
    
    .news-card .card-body li .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-card .card-body li a {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .news-card .card-body li small {
        margin-left: 20px;
        font-size: 11px;
    }
    
    .news-card .card-header h5 { font-size: 16px; }
    
    /* 页脚适配 */
    .footer-modern {
        padding: 40px 0 20px;
        background-color: #1a1a1a;
    }
    
    /* 页脚通用样式 */
    .footer-col {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-title {
        margin-bottom: 15px;
        text-align: center;
        font-size: 18px;
        color: #fff;
        position: relative;
        padding-bottom: 10px;
    }
    
    .footer-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* 页脚公司信息 */
    .footer-logo {
        text-align: center;
        margin-bottom: 20px;
        display: block;
    }
    
    .footer-logo img {
        max-height: 30px;
        margin: 0 auto;
    }
    
    .footer-about {
        text-align: center;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 15px;
    }
    
    /* 页脚链接样式 */
    .footer-links {
        text-align: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .footer-links li { margin-bottom: 10px; }
    
    .footer-links li a {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s;
        display: inline-block;
    }
    
    .footer-links li a:hover { color: #fff; }
    
    .footer-links li a i {
        margin-right: 8px;
        font-size: 16px;
        vertical-align: middle;
    }
    
    /* 页脚联系信息 */
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact-item {
        margin-bottom: 15px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-contact-item i {
        margin-right: 10px;
        font-size: 18px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .footer-contact-item p {
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }
    
    /* 页脚社交媒体 */
    .footer-social {
        justify-content: center;
        display: flex;
        margin-top: 20px;
    }
    
    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        margin: 0 5px;
        transition: all 0.3s ease;
    }
    
    .footer-social a:hover {
        background-color: #2f55d4;
        color: #fff;
        transform: translateY(-3px);
    }
    
    .footer-social a i { font-size: 18px; }
    
    /* 页脚底部版权信息 */
    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }
    
    .footer-bottom .text-md-right {
        text-align: center !important;
        margin-top: 10px;
    }
    
    .footer-bottom p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 5px;
    }
    
    .footer-bottom p a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
    }
    
    .footer-bottom p a:hover { color: #fff; }
    
    /* 友情链接部分 */
    .footer-links-row {
        margin-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }
    
    .footer-links-row .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links-row .col-6 {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .links-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .friend-link {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        display: inline-block;
        padding: 5px 10px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        width: 100%;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all 0.3s ease;
        text-align: center;
        text-decoration: none;
    }
    
    .friend-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
        text-decoration: none;
    }
    
    /* 产品服务和帮助支持部分 */
    .footer-services-container { padding: 0 !important; }
    
    .footer-services-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin: 0 -5px !important;
        width: 100% !important;
    }
    
    .footer-services-row .footer-col {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
    }
    
    .footer-services-row .footer-title {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .footer-services-row .footer-links {
        padding-left: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .footer-services-row .footer-links li { margin-bottom: 8px !important; }
    
    .footer-services-row .footer-links li a {
        font-size: 12px !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .footer-services-row .footer-links li a i {
        margin-right: 3px !important;
        font-size: 14px !important;
    }
    
    /* 回到顶部按钮适配 */
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 35px;
        height: 35px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* 超小屏幕设备适配 (小于 576px) */
@media (max-width: 575px) {
    .container { padding: 0 10px; }
    h1, .h1 { font-size: 1.5rem; }
    .title-heading .para-desc { font-size: 0.85rem; }
    
    .van-home-file-boxtop {
        height: 120px;
    }
    
    .van-home-file-boxtop a {
        font-size: 20px;
    }
    
    .van-home-file-boxtop a i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .footer-col { margin-bottom: 25px; }
    .footer-title { font-size: 16px; }
    .footer-links li a, .footer-about { font-size: 13px; }
    
    .col-6.mb-2 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* 超小屏幕页头优化 */
    #topnav { padding: 8px 0; }
    #topnav .logo img { height: 20px; }
    
    /* 超小屏幕页脚优化 */
    .footer-modern { padding: 30px 0 15px; }
    .footer-logo img { max-height: 25px; }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
    
    .footer-social a i { font-size: 16px; }
    
    /* 超小屏幕友情链接优化 */
    .footer-links-row .col-6 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .friend-link {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* 超小屏幕产品服务和帮助支持优化 */
    .footer-services-row .footer-col { padding: 0 5px; }
    .footer-services-row .footer-title { font-size: 15px; }
    .footer-services-row .footer-links li a { font-size: 12px; }
    .footer-services-row .footer-links li a i { font-size: 14px; }
}

/* 针对更小屏幕的额外调整 */
@media (max-width: 375px) {
    .footer-services-row .footer-title { font-size: 13px !important; }
    .footer-services-row .footer-links li a { font-size: 11px !important; }
} 