/* Android设备专用优化样式 */

/* Android Chrome 特殊处理 */
@supports (-webkit-appearance: none) {
    /* 修复Android渲染问题 */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Android设备检测和优化 */
@media screen and (max-width: 768px) {
    /* 导航栏 - Android需要更多空间 */
    .navbar {
        padding: 1rem 0;
        min-height: 60px;
    }
    
    .navbar .container {
        padding: 0 16px;
        min-height: 56px;
        flex-wrap: nowrap; /* 防止换行 */
    }
    
    .nav-brand {
        gap: 10px;
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .brand-name {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        white-space: nowrap; /* 防止"T-Protector"换行 */
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .nav-actions .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 8px;
        letter-spacing: 0.3px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .btn-outline {
        min-width: 68px;
    }
    
    .btn-primary {
        min-width: 80px;
    }
}

/* Android手机 (360px - 480px) */
@media screen and (max-width: 480px) and (min-width: 360px) {
    /* 容器更宽松 */
    .container {
        padding: 0 16px !important;
    }
    
    /* Hero区域 */
    .hero {
        padding: 120px 0 80px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.35 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 1.05rem !important;
        line-height: 1.75 !important;
        margin-bottom: 2rem !important;
    }
    
    /* 按钮组 */
    .hero-buttons {
        gap: 1.25rem !important;
    }
    
    .hero-buttons .btn {
        padding: 1rem 2rem !important;
        font-size: 1.05rem !important;
        min-height: 52px !important;
    }
    
    /* 统计数据 */
    .hero-stats {
        margin-top: 2.5rem !important;
        gap: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
    
    /* 区块 */
    .features,
    .technology,
    .pricing,
    .workflow,
    .contact {
        padding: 80px 0 !important;
    }
    
    .section-header {
        margin-bottom: 3rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .section-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }
    
    /* 特性卡片 - Android也缩小 */
    .feature-card {
        padding: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .feature-icon {
        width: 48px !important;  /* 缩小 */
        height: 48px !important;
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-title {
        font-size: 1.1rem !important;  /* 缩小 */
        margin-bottom: 0.85rem !important;
    }
    
    .feature-description {
        font-size: 0.92rem !important;  /* 缩小 */
        line-height: 1.65 !important;
    }
    
    .feature-image {
        max-width: 240px !important;
        max-height: 130px !important;
    }
    
    /* 价格卡片 */
    .pricing-card {
        padding: 2.25rem 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .pricing-title {
        font-size: 1.6rem !important;
    }
    
    .price-amount {
        font-size: 2.75rem !important;
    }
    
    .pricing-features li {
        padding: 1rem 0 !important;
        font-size: 0.95rem !important;
    }
    
    /* 工作流程 */
    .workflow-step {
        padding: 2.5rem 2rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .step-icon {
        font-size: 3.5rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    .step-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .step-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* 表单 */
    .contact-form-wrapper,
    .auth-container {
        padding: 2.5rem 2rem !important;
    }
    
    .form-group {
        margin-bottom: 1.5rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }
    
    /* 按钮 */
    .btn-block,
    .btn-large {
        padding: 1rem 2rem !important;
        font-size: 1.05rem !important;
        min-height: 52px !important;
        border-radius: 10px !important;
    }
}

/* Android小屏手机特殊优化 */
@media screen and (max-width: 375px) {
    .navbar .container {
        padding: 0 12px;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    .brand-name {
        font-size: 1rem;
        white-space: nowrap; /* 防止换行 */
    }
    
    .nav-actions .btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }
}
