/* ===== 工具页面样式 ===== */

.tools-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.tools-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tools-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== 工具部分 ===== */
.tools-section {
    padding: 3rem 20px;
}

/* ===== 过滤按钮 ===== */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* ===== 工具网格 ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    animation: fadeIn 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

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

.tool-card.show {
    display: block;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.tool-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 50px;
}

.tool-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ===== 工具使用指南 ===== */
.tools-guide {
    background-color: var(--light-color);
    padding: 3rem 20px;
    margin-top: 3rem;
}

.tools-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    padding-top: 4rem;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.guide-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.guide-card p {
    color: var(--text-color);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .tools-header h1 {
        font-size: 2rem;
    }

    .tools-section {
        padding: 2rem 16px;
    }

    .tools-guide {
        padding: 2rem 16px;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

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

@media (max-width: 480px) {
    .tools-header h1 {
        font-size: 1.75rem;
    }

    .tools-header p {
        font-size: 1rem;
    }

    .tools-section {
        padding: 1.5rem 12px;
    }

    .tools-guide {
        padding: 1.5rem 12px;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-icon {
        font-size: 2.5rem;
    }

    .filter-buttons {
        gap: 0.25rem;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
