/* home —— 首页专属：Hero、统计条、分类入口
   仅对应页面加载（见 Infrastructure/PageCss.cs），不是全站样式。
   改样式请直接改本文件。 */

/* 5) 首页 Hero */
.jt-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 40px 32px;
    margin-bottom: 28px;
    background: radial-gradient(120% 160% at 0% 0%, #e8f0ff 0%, #f4f7ff 45%, #ffffff 100%);
    border: 1px solid #e4ecff;
}

.jt-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 110, 246, .14), rgba(59, 110, 246, 0) 70%);
    pointer-events: none;
}

.jt-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--jt-ink);
}

.jt-hero p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--jt-ink-2);
    line-height: 1.7;
}

.jt-hero__search {
    position: relative;
    max-width: 520px;
    display: flex;
}

.jt-hero__search input {
    width: 100%;
    height: 48px;
    padding: 0 120px 0 18px;
    border: 1px solid #dbe5ff;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    color: var(--jt-ink);
    outline: none;
    box-shadow: 0 10px 24px -18px rgba(21, 43, 96, .5);
    transition: border-color .2s, box-shadow .2s;
}

.jt-hero__search input:focus {
    border-color: #a9c3ff;
    box-shadow: 0 0 0 4px rgba(59, 110, 246, .1);
}

.jt-hero__search button {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 36px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--jt-primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.jt-hero__search button:hover {
    background: var(--jt-primary-dark);
}

.jt-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--jt-ink-3);
}

.jt-hero__stats b {
    color: var(--jt-ink);
    font-size: 16px;
    font-weight: 700;
    margin-right: 4px;
}

/* 9) 响应式 */
@media (max-width: 900px) {
    .jt-hero {
        padding: 30px 22px;
    }

    .jt-hero h1 {
        font-size: 22px;
    }

}
@media (max-width: 720px) {
    .jt-hero {
        border-radius: 16px;
        padding: 26px 18px;
    }

    .jt-hero__search input {
        height: 44px;
        padding-right: 96px;
    }

    .jt-hero__search button {
        height: 32px;
        padding: 0 16px;
        top: 6px;
    }

}
/* 17) 首页分类入口 */
.jt-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.jt-cat__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.jt-cat__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--jt-ink);
    text-decoration: none;
}

a.jt-cat__title:hover { color: var(--jt-primary); }

.jt-cat__count {
    font-size: 12px;
    color: var(--jt-ink-3);
    white-space: nowrap;
}

.jt-cat__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jt-cat__list a {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--jt-ink-2);
    text-decoration: none;
}

.jt-cat__list a:hover { color: var(--jt-primary); }

.jt-cat__more {
    display: inline-block;
    margin-top: 11px;
    font-size: 12.5px;
    color: var(--jt-ink-3);
    text-decoration: none;
}

.jt-cat__more:hover { color: var(--jt-primary); }
