.tool-category {
    margin-bottom: 2rem;
}
.tool-item {
    display: block;
    text-decoration: none;
    color: #495057;
    height: 100%;
}
.tool-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.tool-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    color: #0d6efd;
    border-color: #0d6efd;
}
.tool-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #667eea;
    transition: color 0.3s;
}
.tool-card:hover .tool-icon {
    color: #0d6efd;
}
.tool-name {
    font-weight: 600;
    font-size: 1rem;
}
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}
.category-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    margin-right: 0.75rem;
    border-radius: 2px;
}

/* Custom scrollbar for better look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* ========== 移动端优化 ========== */

/* 平板和手机优化 */
@media (max-width: 768px) {
    .tool-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .tool-icon {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .tool-name {
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .container.py-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* 手机优化 */
@media (max-width: 576px) {
    .tool-card {
        padding: 0.875rem;
        min-height: 85px;
        border-radius: 10px;
    }
    
    .tool-icon {
        font-size: 1.1rem;
    }
    
    .tool-name {
        font-size: 0.85rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 1.25rem;
    }
    
    /* 优化按钮点击区域 */
    .btn {
        min-height: 44px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .tool-card:active {
        transform: scale(0.98);
    }
    
    .tool-card:hover {
        transform: none;
    }
}
