/* 工具分类 */
.personal-tool-wrapper {
    display: block;
    margin: 0 0 38px;
    padding: 28px 0 0;
    text-align: left;
}

.personal-tool-wrapper .category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    color: #fff;
    font-size: 1.5rem;
    text-align: left;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5), 0 0 5px rgba(255, 255, 255, 0.3);
}

.personal-tool-wrapper .category-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent);
}

:root[data-theme="light"] .personal-tool-wrapper .category-title::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent);
}

.category-icon svg {
    stroke: currentColor;
}

.personal-tool-wrapper .tool-cards-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 20px;
}

/* 工具卡片 */
.tool-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.styled-card .tool-card {
    display: flex;
    align-items: center;
    width: 220px;
    max-width: 220px;
    height: 62px;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    contain: layout paint;
}

.styled-card:hover .tool-card {
    border-color: var(--card-hover-border);
    background-color: var(--card-hover-bg);
}

.styled-card .tool-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    overflow: hidden;
    box-sizing: border-box;
}

.styled-card .tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    font-size: 1.35rem;
    transition: transform 0.3s ease;
}

.styled-card .tool-icon-image {
    background: none;
}

.styled-card .tool-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.styled-card:hover .tool-icon {
    transform: scale(1.1);
}

.styled-card .tool-info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: var(--text-color);
    text-align: left;
}

.styled-card .tool-info h3,
.styled-card .tool-info p {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text-color);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.styled-card .tool-info h3 {
    margin-bottom: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.styled-card .tool-info p {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.8;
}

.styled-card:hover .tool-info h3 {
    color: #0d6efd;
}

.gequbao-icon-size {
    width: 53px !important;
    height: 53px !important;
}

.guanying-icon-size {
    width: 48px !important;
    height: 48px !important;
    font-size: 2rem;
}
