/* 添加到现有的CSS中 */

/* 移动端优化 */
@media (max-width: 768px) {
    /* 改进移动端字体大小 */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    /* 改进按钮触摸体验 */
    .btn {
        padding: 14px 32px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 改进导航触摸目标 */
    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }
    
    /* 改进团队成员卡片 */
    .team-member {
        margin-bottom: 20px;
    }
    
    .member-info {
        padding: 25px 20px;
    }
    
    /* 改进联系表单 */
    .form-control {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 16px 15px;
    }
    
    /* 改进页脚链接 */
    .footer-column ul li a {
        padding: 5px 0;
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    /* 改进容器内边距 */
    .container {
        padding: 0 20px;
    }
    
    /* 改进关于我们区域 */
    .about-content {
        gap: 30px;
    }
    
    /* 改进团队成员网格 */
    .team-grid {
        gap: 20px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除hover效果，改为active状态 */
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .team-member:hover {
        transform: none;
        box-shadow: none;
    }
    
    .nav-links a:hover::after {
        width: 0;
    }
    
    /* 添加触摸反馈 */
    .btn:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .team-member:active {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 防止移动端横屏时字体过大 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 50px;
    }
}

/* 改进移动端滚动性能 */
@media (max-width: 768px) {
    .hero {
        -webkit-overflow-scrolling: touch;
    }
}

/* 移动端菜单改进 */
.mobile-menu {
    padding: 10px;
    z-index: 1001;
}

/* 防止iOS Safari的点击延迟 */
* {
    touch-action: manipulation;
}

/* 改进图片加载 */
img {
    max-width: 100%;
    height: auto;
}

/* 为移动端优化行高和字间距 */
@media (max-width: 768px) {
    body {
        line-height: 1.5;
        letter-spacing: 0.2px;
    }
    
    h1, h2, h3 {
        letter-spacing: 0.5px;
    }
}

/* 改进移动端表单体验 */
@media (max-width: 768px) {
    textarea.form-control {
        min-height: 120px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
}

/* 页脚移动端优化 */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 150px;
        margin-bottom: 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero .container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content p {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* 修复移动端导航菜单 */
.mobile-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;
}

.mobile-menu::before,
.mobile-menu::after {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动端菜单激活状态 */
.mobile-menu.active::before {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu.active::after {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu.active span {
    opacity: 0;
    transform: scale(0);
}

/* 移动端菜单样式 */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: left 0.4s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* 确保导航栏在移动端有合适的z-index */
    header {
        z-index: 1000;
    }
}