/* 响应式设计媒体查询 */

/* Navigation Styles */
.nav-container {
    padding: 1rem 2rem;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Header responsive improvements */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* 移动设备 (320px - 767px) */
@media (max-width: 767px) {
    /* 导航栏优化 */
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
        border-top: 1px solid #e5e7eb;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Header buttons responsive */
    .nav-container .flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-container button,
    .nav-container a {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }
    
    .nav-container button,
    .nav-container a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: auto;
    }
    
    /* Logo responsive */
    .nav-container img {
        height: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    /* Hero区域优化 */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        text-align: center;
    }
    
    /* Hero image responsive */
    .hero-image {
        max-width: 100%;
        height: auto;
        margin-top: 2rem;
    }
    
    /* 卡片网格优化 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Features区域优化 */
    .features-grid {
        padding: 1rem;
        gap: 1rem;
    }
    
    .feature-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 1rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
        line-height: 1.3;
    }
    
    /* 图片优化 */
    .hero-image,
    .feature-image {
        max-width: 100%;
        height: auto;
    }
    
    /* 文字大小调整 */
    .section-title {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    /* 内容区域优化 */
    .responsive-container {
        padding: 1rem;
        margin: 0 auto;
    }
    
    /* 按钮和交互元素优化 */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hover-effect:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease;
    }
}

/* 平板设备 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .responsive-container {
        padding: 2rem;
        max-width: 768px;
    }
    
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .responsive-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    
    .cta-button {
        width: auto;
        min-width: 160px;
        padding: 0.75rem 1.5rem;
    }
    
    .features-grid {
        padding: 2rem;
        gap: 1.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card {
        min-height: 220px;
        padding: 1.5rem;
    }
    
    .feature-card p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 桌面设备 (1024px+) */
@media (min-width: 1024px) {
    .responsive-container {
        padding: 3rem;
        max-width: 1200px;
    }
    
    .nav-container {
        padding: 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.5;
    }
    
    .responsive-text {
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .cta-button {
        width: auto;
        min-width: 180px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .features-grid {
        padding: 3rem;
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-card {
        min-height: 240px;
        padding: 2rem;
    }
    
    .feature-card p {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .hover-effect:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    }
}

/* 超大屏幕 (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .nav-container {
        padding: 1rem 6rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* 通用响应式样式 */
.responsive-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.responsive-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 交互优化 */
@media (hover: hover) {
    .hover-effect:hover {
        transform: translateY(-2px);
        transition: transform 0.3s ease;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000;
    }
    
    .text-gray-500 {
        color: #333333;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}