/* 移动端专用样式 - 最大宽度768px */

/* 基础设置 */
html {
    font-size: 14px;
}

body {
    font-size: 14px;
    line-height: 1.5;
}

.container {
    padding: 0 15px;
}

/* 导航栏移动端 */
.navbar {
    height: 60px;
    background: rgba(21, 28, 41, 0.98) !important;
}

.nav-container {
    height: 60px;
    padding: 0 15px;
}

.logo {
    font-size: 18px;
    width: auto;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.nav-menu {
    display: none;
}

.nav-actions {
    display: none;
}

.mobile-menu-toggle {
    display: flex;
}

/* 移动端菜单 */
/* 移动端菜单 */
.nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(21, 28, 41, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.nav-menu.active {
    display: flex;
    transform: translateY(0);
}

.nav-link {
    height: auto !important;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #358BFF;
}

.mobile-menu-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Banner移动端 */
.banner {
    height: 400px;
    margin-top: 60px;
}

.banner-content {
    padding: 0 15px;
}

.banner-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.banner-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.btn-large {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
}

.banner-controls {
    padding: 0 15px;
}

.banner-prev,
.banner-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.bannerhd {
    bottom: 40px;
}

/* Banner提示信息移动端 */
.bannertip {
    height: auto;
    margin: -30px 15px 0;
    border-radius: 8px;
}

.bannertip-container {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.tip-item {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item img {
    width: 40px;
    height: 40px;
}

.tip-title {
    font-size: 14px;
    height: auto;
    line-height: 1.4;
}

.tip-desc {
    font-size: 12px;
}

/* 区块标题移动端 */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 14px;
    line-height: 1.5;
}

/* 产品中心移动端 */
.contentbox {
    padding: 60px 0;
}

.product-tabs {
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    font-size: 14px;
    padding: 10px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    padding: 15px;
}

.product-header {
    height: auto;
    margin-left: 15px;
    margin-bottom: 10px;
}

.product-items {
    padding: 10px 15px 15px 15px;
}

.product-item {
    width: 50%;
    padding-bottom: 15px;
}

.product-item img {
    width: 36px;
    height: 36px;
}

.product-item span {
    font-size: 12px;
}

/* 解决方案移动端 */
.contentbox2 {
    padding: 60px 0;
}

.solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.solution-card {
    padding: 25px 20px;
}

.solution-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
}

.solution-icon img {
    width: 25px;
    height: 25px;
}

.solution-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 13px;
}

/* 核心优势移动端 */
.contentbox3 {
    padding: 60px 0;
}

.advantage-content {
    flex-direction: column;
    margin-bottom: 30px;
}

.advantage-left,
.advantage-right {
    width: 100%;
    padding: 0;
}

.advantage-right {
    margin-top: 30px;
}

.advantage-item {
    margin-bottom: 25px;
}

.advantage-item img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.advantage-text h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.advantage-text p {
    font-size: 14px;
}

.advantage-actions {
    flex-direction: column;
    gap: 12px;
}

/* CTA移动端 */
.bottomtip {
    min-height: auto;
    padding: 50px 20px;
}

.cta-content {
    padding: 0 10px;
}

.cta-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta-content .btn-large {
    padding: 14px 30px;
    font-size: 16px;
    width: 100%;
    max-width: 280px;
}

/* 关于我们移动端 */
.about-stats {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 28px;
}

/* 联系我们移动端 */
.contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info {
    gap: 20px;
}

.contact-item {
    padding: 15px;
}

.contact-form {
    padding: 20px;
}

/* 页脚移动端 */
.bottombox {
    padding: 20px 0;
}

.footer-links {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-links a {
    border-right: 0;
    padding: 8px 0;
    font-size: 13px;
}

.footer-copyright {
    font-size: 11px;
}

/* 特殊移动端适配 */

/* 触摸优化 */
.btn,
.tab-btn,
.banner-prev,
.banner-next,
.bannerhd li {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 横屏适配 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .bannertip-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tip-item {
        width: 50%;
    }
}

/* 小屏手机适配 */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .product-card,
    .solution-card {
        padding: 15px;
    }
    
    .tip-item img {
        width: 36px;
        height: 36px;
    }
}

/* 超小屏适配 */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .banner-content {
        padding: 0 10px;
    }
    
    .product-card,
    .solution-card {
        padding: 12px;
    }
    
    .bannertip {
        margin: -30px 10px 0;
    }
    
    .bannertip-container {
        padding: 15px;
    }
}

/* Retina屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .solution-icon img,
    .advantage-item img,
    .tip-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .bannertip {
        background: #2a2a3e;
        color: white;
    }
    
    .tip-title {
        color: white;
    }
    
    .tip-desc {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .product-card,
    .solution-card {
        background: #2a2a3e;
        color: white;
    }
    
    .product-header h3,
    .solution-card h3 {
        color: white;
    }
    
    .product-item span,
    .solution-card p {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* 安全区域适配 - iPhone X及以上 */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .mobile-menu {
        padding-top: env(safe-area-inset-top);
    }
}

/* Focus状态优化 - 键盘导航 */
.btn:focus,
.tab-btn:focus,
.nav-link:focus,
.mobile-menu-nav a:focus {
    outline: 2px solid #358BFF;
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .btn-outline {
        background: white;
        color: #2468F2;
    }
    
    .solution-card,
    .product-card {
        border: 1px solid #ccc;
    }
}