/* 首页专用样式 - 简洁低内存设计 */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --gray-light: #e8eaed;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* 首页特定样式 */
.home-container {
    max-width: 100%;
    padding: 0 15px;
}

/* 轮播图 - 简化版 */
.carousel-simple {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 20px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-light);
}

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
}

.carousel-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-control.active {
    background: var(--primary-color);
}

/* 核心功能区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 免费体验区域 */
.free-experience {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    color: white;
    text-align: center;
}

.free-experience h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.free-experience p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-home {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 快速导航 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.nav-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.nav-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-simple {
        height: 180px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .free-experience {
        padding: 25px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-home {
        width: 100%;
        max-width: 300px;
    }
    
    .quick-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .carousel-simple {
        height: 160px;
    }
    
    .carousel-caption {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .free-experience h2 {
        font-size: 20px;
    }
    
    .free-experience p {
        font-size: 14px;
    }
}

/* 简单动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 加载优化 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}