/* 车机应用页面样式 */

.apps-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    padding: 160px 0 60px;
    text-align: center;
    color: #fff;
}

.apps-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.apps-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.apps-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.apps-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.apps-category-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.apps-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.apps-category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
}

.apps-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.apps-search input {
    padding: 12px 45px 12px 20px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
}

.apps-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.apps-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.app-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.app-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-card-info {
    flex: 1;
    min-width: 0;
}

.app-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.app-card-meta span {
    display: inline-flex;
    align-items: center;
}

.app-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 8px;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: #ffc107;
}

.rating-stars i {
    font-size: 14px;
}

.rating-text {
    font-weight: 600;
    color: #333;
}

.rating-count {
    color: #999;
    font-size: 12px;
}

.app-card-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.apps-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .apps-hero {
        padding: 100px 0 40px;
    }

    .apps-hero h1 {
        font-size: 2rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .apps-categories {
        justify-content: flex-start;
    }
}
