/* 工具与网站集合 */
.tools-section {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #0d1c33 0%, #0a1525 50%, #070d17 100%);
    position: relative;
    overflow: hidden;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 70% 40% at 30% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 70% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.tools-section .section-title {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 10;
}

.tools-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.tools-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.filter-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: none;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.tool-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white !important;
    text-decoration: none;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
    will-change: transform;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: 1;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-card:active {
    transform: translateY(-3px) scale(0.99);
    transition: transform 0.1s ease;
}

a.tool-card,
a.tool-card:visited,
a.tool-card:hover,
a.tool-card:active,
a.tool-card:focus,
.tool-card,
.tool-card *,
.tool-card h3,
.tool-card p,
.tool-card span,
.tool-card .tool-tag,
.tool-card .tool-icon,
.tool-card [class*="tool-"] {
    color: white !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(4deg);
    background: rgba(255, 255, 255, 0.1);
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: white !important;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.tool-card:hover h3 {
    transform: translateY(-1px);
}

.tool-card p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7) !important;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.tool-card:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.tool-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.3px;
}

.tool-card:hover .tool-tag {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

/* 筛选按钮 */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
}
