/* 派通达国际物流 - 移动端适配样式 */

/* 基础移动端优化 */
@media screen and (max-width: 768px) {
    /* 防止文字缩放 */
    body {
        -webkit-text-size-adjust: 100%;
        font-size: 14px;
    }
    
    /* 导航栏优化 */
    .header {
        position: fixed;
        top: 0;
        width: 100%;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .logo-text h1 {
        font-size: 14px;
    }
    
    .logo-text span {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    /* 汉堡菜单 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* 汉堡菜单按钮 */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        padding: 5px;
    }
    
    .menu-toggle span {
        display: block;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .nav-hotline {
        display: none;
    }
    
    /* Hero区域 */
    .hero {
        min-height: auto;
        padding-top: 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        padding: 30px 15px;
        gap: 20px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item h3 {
        font-size: 24px;
    }
    
    .stat-item p {
        font-size: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
    }
    
    /* 快速查询框 */
    .quick-track {
        padding: 20px;
        margin: 0;
    }
    
    .quick-track h3 {
        font-size: 16px;
    }
    
    .track-form {
        flex-direction: column;
    }
    
    .track-form input,
    .track-form button {
        width: 100%;
        padding: 12px;
    }
    
    /* 服务特色 */
    .services {
        padding: 40px 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-desc {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    /* 全球覆盖 */
    .global {
        padding: 40px 15px;
    }
    
    .world-map {
        padding: 20px;
        margin: 20px 0;
    }
    
    .world-map div:first-child {
        font-size: 3rem !important;
    }
    
    .country-tags {
        gap: 8px;
    }
    
    .country-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 优势 */
    .advantages {
        padding: 40px 15px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .advantage-item {
        padding: 15px 10px;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .advantage-item h3 {
        font-size: 14px;
    }
    
    .advantage-item p {
        font-size: 12px;
    }
    
    /* 页脚 */
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-brand h3 {
        font-size: 18px;
    }
    
    .footer-brand p {
        font-size: 13px;
    }
    
    .footer-links h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-links li {
        margin-bottom: 5px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 375px) {
    .hero-title {
        font-size: 20px;
    }
    
    .stat-item h3 {
        font-size: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* iPhone 特定优化 */
@supports (-webkit-touch-callout: none) {
    /* 修复 iOS 上的点击延迟 */
    a, button {
        touch-action: manipulation;
    }
    
    /* 防止 iOS 缩放 */
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* 微信内置浏览器优化 */
.wechat-browser .header {
    position: fixed;
}

/* 修复微信分享时的缩略图 */
body::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    background: url('../images/logo.png');
}
