/*
 文件名称：tools-home.css
 作者：wangkai（2026-11-26）
 创作时间：2026-11-26 15:40:00（北京时间）
 文件说明：网站首页样式，按分类展示全部小工具卡片，含悬停效果与移动端适配
*/

.th-page {
    margin: 22px auto 40px;
}

/* 顶部介绍 */
.th-hero {
    padding: 18px 8px 6px;
    text-align: center;
}

.th-hero__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
    color: #1f2d3d;
}

.th-hero__sub {
    margin: 0 0 10px;
    font-size: 14px;
    color: #7a869a;
    line-height: 1.7;
}

.th-hero__link {
    margin: 0;
    font-size: 13px;
}

.th-hero__link a {
    color: #2563eb;
    text-decoration: none;
}

.th-hero__link a:hover {
    text-decoration: underline;
}

/* 分组 */
.th-section {
    margin-top: 28px;
}

.th-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #2563eb;
}

.th-section__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2d3d;
}

.th-section__desc {
    font-size: 12.5px;
    color: #9aa5b8;
}

/* 卡片网格 */
.th-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.th-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.th-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.th-card__icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 17px;
}

.th-card__body {
    min-width: 0;
}

.th-card__title {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2d3d;
}

.th-card__desc {
    display: block;
    font-size: 12.5px;
    line-height: 1.6;
    color: #7a869a;
}

/* 分类配色 */
.th-card--image .th-card__icon {
    background: #e8f8ef;
    color: #16a34a;
}

.th-card--doc .th-card__icon {
    background: #fff3e6;
    color: #d97706;
}

.th-card--life .th-card__icon {
    background: #f1ecfe;
    color: #7c3aed;
}

/* 底部说明 */
.th-note {
    margin: 30px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: #9aa5b8;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .th-hero__title {
        font-size: 22px;
    }

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