@font-face {
    font-family: 'BarlowMedium';
    src: url('../Barlow-Medium.ttf') format('truetype');
}
.BarlowMedium {
    font-family: 'BarlowMedium';
}

/* 仅保留无法用 Tailwind 简写的动画和复杂滚动条样式 */

.hide-scrollbar {
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.line-height-1em {
    line-height: 1em;
}

/* 针对不同屏幕宽度的 .plan-wrap 顶部内边距适配 */
@media (min-width: 1700px) {
    .search-wrap {
        padding-top: 568px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1699px) {
    .search-wrap {
        padding-top: 452px !important;
    }
}
.cases-marquee-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.cases-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
}
.cases-marquee-track-r {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
    /* 预置到 copy2 第一张位置，与 scroll-x-r from 帧一致，无跳动 */
    transform: translateX(calc(-50% - 56px));
}
/* 滚动动画由 JS 在容器进场动画结束后通过 .scrolling 类启动 */
.cases-marquee-track.scrolling {
    animation: scroll-x 40s linear infinite;
}
/* 第二行向右滚动 */
.cases-marquee-track-r.scrolling {
    animation: scroll-x-r 40s linear infinite;
}
.cases-marquee-track.scrolling:hover,
.cases-marquee-track-r.scrolling:hover {
    animation-play-state: paused;
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 6px)); }
}
/* track-r 专属：从 -50%-6px 向右滚到 0，与 CSS 预置 transform 一致 */
@keyframes scroll-x-r {
    from { transform: translateX(calc(-50% - 56px)); }
    to   { transform: translateX(-50px); }
}
.input-class::placeholder {
    color: #7787AB;
    font-size: 15px;
    font-weight: 400;
}

.font-title {
    color: #0E1D46;
    font-size: 38px;
    line-height: 38px;
    margin-top: 72px;
    text-align: center;
    padding-bottom: 32px;
}
.font-title .small-title {
    font-size: 15px;
    margin-top: 16px;
    line-height: 1em;
}
.condition-wrap {
    background: url('../../images/enter/qtwd/condition/bg.png') no-repeat bottom;
    background-size: 100% auto;
}

/* 基础设置：给需要动画的元素加上基础类 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* 卡片专用：从下方滑入 + 明显缩放 */
.reveal-card {
    opacity: 0;
    transform: translateY(60px) scale(0.88);
    transition: opacity 0.85s cubic-bezier(0.5, 0, 0, 1),
                transform 0.85s cubic-bezier(0.5, 0, 0, 1);
}

/* 状态类：当元素进入可视区域时由 JS 添加 */
.reveal.is-visible,
.reveal-card.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1); /* 统一 reset，兼容 translateX / translateY / scale */
}

/* 只有在 hover 时才把延迟归零，这样不影响进入时的错开效果 */
.reveal-card.is-visible:hover {
    transition-delay: 0s !important;
}

/* 错开延迟工具类（用于卡片逐个出现） */
.reveal-delay-1 { transition-delay: 0s; }
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.45s; }
.reveal-delay-5 { transition-delay: 0.60s; }
.reveal-delay-6 { transition-delay: 0.75s; }

/* --- 下面是几种常见的具体动画方向 --- */

/* 向上浮现 (Fade Up) */
.fade-up {
  transform: translateY(50px);
}

/* 向左滑入 (Fade Left) */
.fade-left {
  transform: translateX(50px);
}

/* 向右滑入 (Fade Right) */
.fade-right {
  transform: translateX(-50px);
}

/* 放大浮现 (Zoom In) */
.zoom-in {
  transform: scale(0.8);
}

.category-wrap {
    background: url('../../images/enter/qtwd/category-bg.png') no-repeat;
    background-size: 100% 100%;
}

.settle_item:hover{
    transition-delay: 0s !important;
}

.cate-point {
    position: relative;
}
.cate-point::after {
    z-index: -1;
    position: absolute;
    content: '';
    width: 1px;
    height: 1200%;
    top: 0;
    right: 2px;
    background: #E3EBFF;
}
.cate-ul .cate-li:last-child .cate-point::after {
    background-color: #F1F5FF;
}

/* 按钮专属：从左至右擦除展示进场（完美适配大圆角 36px，不挤压内容） */
@keyframes wipeRight {
    0% {
        clip-path: inset(0 100% 0 0 round 36px);
    }
    100% {
        clip-path: inset(0 0 0 0 round 36px);
    }
}
.wipeRight {
    animation-name: wipeRight;
}

/* 按钮专属：适配次级圆角尺寸（27px）的擦除出场 */
@keyframes wipeRight27 {
    0% {
        clip-path: inset(0 100% 0 0 round 27px);
    }
    100% {
        clip-path: inset(0 0 0 0 round 27px);
    }
}
.wipeRight27 {
    animation-name: wipeRight27;
}

/* 按钮专属：适配次级圆角尺寸（27px）的反向擦除出场（从右向左呈现） */
@keyframes wipeLeft27 {
    0% {
        clip-path: inset(0 0 0 100% round 27px);
    }
    100% {
        clip-path: inset(0 0 0 0 round 27px);
    }
}
.wipeLeft27 {
    animation-name: wipeLeft27;
}
