/* 个人博客（AI工具库）自定义样式，配合 Tailwind CDN 使用 */

/* 工具卡片悬浮效果 */
.tool-card {
    transition: all 0.25s ease;
}
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08);
}

/* 分类筛选激活态 */
.cat-active {
    background-color: #165DFF !important;
    color: #fff !important;
    border-color: #165DFF !important;
}

/* 详情页卡片阴影 */
.card-shadow {
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}

/* 轻量全局提示 */
.blog-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    z-index: 9999;
    font-size: 15px;
}

/* 关于页正文保留换行 */
.about-content {
    white-space: pre-line;
}

/* 详情页截图走马灯 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #f1f5f9;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide img {
    width: 100%;
    max-height: 24rem;
    object-fit: contain;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: #fff;
}
.carousel-btn.prev {
    left: 0.75rem;
}
.carousel-btn.next {
    right: 0.75rem;
}
.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}
.carousel-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}
.carousel-dots .dot.active {
    width: 1.25rem;
    background: #165DFF;
}
