/* 合并优化的CSS包 - 减少HTTP请求提升性能 */

/* 核心性能增强样式 */
.input-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}

.input-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.lazy-loading-indicator {
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.content-loaded {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 核心移动端优化 */
@media screen and (max-width: 414px) {
    .app-card {
        margin: 0;
        margin-bottom: 1px;
        border-radius: 0;
    }
    
    .app-btn {
        min-height: 2.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .input-field {
        min-height: 2.5rem;
        padding: 0.5rem 0.75rem;
    }
}

/* 触摸优化 - 44px最小触摸目标 */
.app-btn,
.list-item,
.menu-btn {
    min-height: 44px;
    min-width: 44px;
}

/* 统一图标样式 */
.icon-award-first::before { content: '🏆'; }
.icon-award-second::before { content: '🥈'; }
.icon-award-third::before { content: '🥉'; }
.icon-award-excellent::before { content: '⭐'; }

/* 按钮对比度修复 */
.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8860b) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 600;
    text-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8860b, #9a7209) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* 响应式导航优化 */
.responsive-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.responsive-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-right: 1px solid #eee;
}

.responsive-nav .nav-item:last-child {
    border-right: none;
}

/* 减少动画以提升性能 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 性能优化 - 关键内容优先显示 */
.critical-content {
    will-change: transform;
    contain: layout style paint;
}

.non-critical {
    contain: layout;
}