/* ===== AI 工具箱 · Apple 风格 ===== */
body.ai-body {
    background:
        radial-gradient(1200px 600px at 15% -5%, rgba(59, 130, 246, .16), transparent 60%),
        radial-gradient(900px 500px at 85% 0%, rgba(168, 85, 247, .14), transparent 60%),
        #070b16;
    color: #e9eefb;
}

.ai-hero {
    text-align: center;
    padding: 104px 20px 8px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #a5b4fc;
    background: rgba(129, 140, 248, .12);
    border: 1px solid rgba(129, 140, 248, .3);
    backdrop-filter: blur(10px);
}

.ai-title {
    margin: 18px 0 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.3; /* 渐变字 background-clip:text 时行高需大于字号，否则字形被裁 */
    letter-spacing: -1px;
    background-image: linear-gradient(120deg, #ffffff 0%, #93c5fd 35%, #c4b5fd 70%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-sub {
    margin: 0 auto;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.75;
    color: #94a3b8;
}

.ai-stats {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.ai-stat b {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    background-image: linear-gradient(120deg, #7dd3fc, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-stat span {
    font-size: 12px;
    color: #64748b;
}

.ai-wrap {
    max-width: 1360px;
    margin: 26px auto 50px;
    padding: 0 18px;
}

/* 搜索 */
.ai-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 20px;
}

.ai-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.ai-search input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 46px;
    font-size: 15px;
    color: #e9eefb;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    outline: none;
    backdrop-filter: blur(14px);
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}

.ai-search input::placeholder { color: #64748b; }

.ai-search input:focus {
    border-color: rgba(34, 211, 238, .55);
    background: rgba(34, 211, 238, .07);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 12px 30px -14px rgba(34, 211, 238, .6);
}

/* 分类胶囊 */
.ai-cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.ai-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #b6c2d9;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform .22s, color .22s, border-color .22s, box-shadow .22s, background-color .22s;
}

.ai-cat:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(34, 211, 238, .5);
    box-shadow: 0 10px 24px -12px rgba(34, 211, 238, .7);
}

.ai-cat.on {
    color: #071021;
    background: linear-gradient(120deg, #7dd3fc, #a78bfa);
    border-color: transparent;
    box-shadow: 0 12px 26px -12px rgba(129, 140, 248, .9);
}

/* 卡片网格 */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
    gap: 16px;
}

.ai-card {
    position: relative;
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    border: 1px solid rgba(255, 255, 255, .085);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    text-decoration: none;
    color: inherit;
}

.ai-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .1), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.ai-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 252, .38);
    box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(125, 211, 252, .15), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.ai-card:hover::after { opacity: 1; }

.ai-card:active { transform: translateY(-2px) scale(.99); }

.ai-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ai-icon {
    width: 42px;
    height: 42px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    background: var(--c, #60a5fa);
    box-shadow: 0 8px 20px -8px var(--c, #60a5fa), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.ai-icon.has-logo {
    background: #ffffff;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.ai-icon .ai-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.ai-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-hot {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    color: #7c2d12;
    background: linear-gradient(120deg, #fdba74, #fb923c);
}

.ai-desc {
    font-size: 12.5px;
    line-height: 1.65;
    color: #94a3b8;
    min-height: 42px;
}

.ai-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 11.5px;
    color: #64748b;
}

.ai-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #7dd3fc;
    font-weight: 600;
    transition: gap .2s;
}

.ai-card:hover .ai-go { gap: 8px; }

.ai-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #64748b;
}

.ai-note {
    text-align: center;
    font-size: 12px;
    color: #4b5563;
    padding: 10px 0 40px;
}

.ai-note a { color: #7dd3fc; }

@media (max-width: 768px) {
    .ai-hero { padding: 88px 16px 4px; }
    .ai-title { font-size: 30px; }
    .ai-sub { font-size: 13.5px; }
    .ai-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .ai-card { padding: 14px; }
    .ai-icon { width: 36px; height: 36px; font-size: 16px; }
    .ai-stats { gap: 22px; }
}
