/* 移动端导航和页脚优化样式 */
/* mobile-nav.css - 为湖南缤果软件网站提供统一的移动端体验 */

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--gray-800, #374151);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white, #FFFFFF);
    box-shadow: var(--shadow-lg, 0 20px 50px -12px rgba(0, 0, 0, 0.25));
    z-index: 1000;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 500px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--gray-800, #374151);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--gray-100, #F3F4F6);
    color: var(--primary-green, #4CAF50);
}

.mobile-nav-link.active {
    background: var(--primary-green, #4CAF50);
    color: var(--white, #FFFFFF);
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200, #E5E7EB);
}

/* 移动端页脚优化 */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .nav-buttons {
        display: none;
    }
    
    /* 移动端通用优化 */
    body {
        font-size: 16px;
    }
    
    h1, h2, h3 {
        line-height: 1.3;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    input, select, textarea, button {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 移除不必要的边距和填充 */
    .container {
        padding: 0 15px;
    }
    
    /* 移动端表格优化 */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移动端卡片优化 */
    .product-card, .feature-card, .product-detail-card {
        padding: 20px;
    }
    
    /* 移动端页脚优化 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-contact p {
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .footer-contact p br {
        display: none;
    }
    
    .copyright {
        font-size: 12px;
        padding-top: 20px;
    }
    
    .copyright p {
        line-height: 1.5;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .hero-title,
    .page-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* 超小屏幕页脚优化 */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-contact p {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 11px;
    }
}

/* 防止移动端横向滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* iOS最小触摸目标 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 移动端表单元素优化 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea,
    select {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* 移动端图片懒加载优化 */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 移动端触摸反馈优化 */
a, button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    .mobile-nav {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}