/* 移动端优化样式 */

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 增加触摸目标大小 */
    button, a, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 优化移动端按钮间距 */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 移动端表格优化 */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移动端图片优化 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 移动端表单优化 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px; /* 防止 iOS 自动缩放 */
        -webkit-appearance: none;
        border-radius: 4px;
    }
    
    /* 移动端滚动优化 */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* 移动端菜单优化 */
    #mobile-menu {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* 移动端卡片优化 */
    .bg-dark-card {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 移动端文字大小优化 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* 移动端间距优化 */
    .container {
        max-width: 100%;
    }
}

/* 小屏幕优化 */
@media (max-width: 640px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* 移动端隐藏不必要的元素 */
    .hidden-mobile {
        display: none !important;
    }
}

/* 横屏优化 */
@media (max-width: 1024px) and (orientation: landscape) {
    #mobile-menu {
        max-height: 100vh;
        overflow-y: auto;
    }
}

