@font-face {
    font-family: 'BarlowMedium';
    src: url('../Barlow-Medium.ttf') format('truetype');
}
.BarlowMedium {
    font-family: 'BarlowMedium';
}
.hide-scrollbar {
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
/* 针对不同屏幕宽度的 .plan-wrap 顶部内边距适配 */
@media (min-width: 1700px) {
    .plan-wrap {
        padding-top: 582px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1699px) {
    .plan-wrap {
        padding-top: 462px !important;
    }
}
.line-height-1em {
    line-height: 1em;
}
.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;
}
.entrytypes {
    display: flex;
    align-items: flex-end;
}
.entrytypes-wrap .entrytypes-top {
    background: linear-gradient( 180deg,     #72E6FF 0%, #EBFFFF 100%);
    padding-top: 52px;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.5s ease, height 0.5s ease;
    height: 408px;
    box-sizing: border-box;
}

/* 使用伪元素负责悬停渐变，以实现透明度的丝滑过渡 */
.entrytypes-wrap .entrytypes-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( 0deg, #FFFFFF 0%, #51DDFF 37.97%, #2F2FFF 78.49%, #152EFF 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.entrytypes-wrap:hover .entrytypes-top,
.entrytypes-wrap.active .entrytypes-top {
    box-shadow: 0px 8px 16px 0px rgba(181,184,211,0.23);
    height: 470px;
}

.entrytypes-wrap:hover .entrytypes-top::before,
.entrytypes-wrap.active .entrytypes-top::before {
    opacity: 1;
}

.entrytypes-wrap {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    /* 核心补丁：强制锁定 WebKit 内核的高度动画圆角层叠掩码，防止在 transition 的瞬间变成直角 */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
}

.entrytypes-wrap:hover,
.entrytypes-wrap.active {
    box-shadow: 0 20px 40px rgba(23, 48, 248, 0.2);
    z-index: 10;
}

.entrytypes-wrap .entrytypes-top {
    transition: height 0.5s ease, box-shadow 0.5s ease;
}

.entrytypes-ul {
    transition: gap 0.5s ease, padding-top 0.5s ease;
}

.entrytypes-wrap:hover .entrytypes-ul,
.entrytypes-wrap.active .entrytypes-ul {
    gap: 12px;
    padding-top: 92px;
}

.entrytypes-li {
    position: relative;
    border: 1px solid transparent;
    transition: all 0.5s ease;
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* 使用伪元素负责背景渐变的显示隐藏 */
.entrytypes-li::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 17px;
    background: linear-gradient( 93deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.51) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.entrytypes-wrap:hover .entrytypes-li,
.entrytypes-wrap.active .entrytypes-li {
    border-color: rgba(255,255,255,0.42);
}

.entrytypes-wrap:hover .entrytypes-li::before,
.entrytypes-wrap.active .entrytypes-li::before {
    opacity: 1;
}

/* 激活状态下的文字颜色切换 */
.entrytypes-wrap:hover .entrytypes-top .top-title,
.entrytypes-wrap.active .entrytypes-top .top-title {
    color: #FFFFFF !important;
}
.entrytypes-wrap:hover .entrytypes-top .top-desc,
.entrytypes-wrap.active .entrytypes-top .top-desc {
    color: rgba(255, 255, 255, 0.56) !important;
}

.entrytypes-wrap:hover .entrytypes-top .tag-text,
.entrytypes-wrap.active .entrytypes-top .tag-text {
    background: #FFFFFF;
    color: #000000;
}

/* 服务优势 */
.advantage .advantage-top-left {
    background: url('../../images/enter/dxd/advantage/bg_top_left.png') no-repeat top;
    background-size: 100% 100%;
}

.advantage .advantage-bottom-right {
    background: url('../../images/enter/dxd/advantage/bg_bottom_right.png') no-repeat top;
    background-size: 100% 100%;
}

.advantage .advantage-bottom-left {
    background: url('../../images/enter/dxd/advantage/bg_bottom_left.png') no-repeat top;
    background-size: 100% 100%;
}

/* 成功案例横向无缝滚动 */
.cases-marquee-wrap-dxd {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.cases-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
}
/* 滚动动画由 JS 在容器进场动画结束后通过 .scrolling 类启动 */
.cases-marquee-track.scrolling {
    animation: scroll-x 50s linear infinite;
}
.cases-marquee-track.scrolling:hover {
    animation-play-state: paused;
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 6px)); } /* -50% of the track width minus half the gap to be perfectly seamless */
}

.faq-active .faq-item-toggle {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
}

/* 展开时：加号图淡出，关闭图淡入 */
.faq-active .faq-icon-add {
    opacity: 0;
}
.faq-active .faq-icon-x {
    opacity: 1;
}

.qa_left {
    background: url('../../images/enter/dxd/qa_bg.png') no-repeat top;
    background-size: auto 100%;
    border-radius: 20px;
}

/* 基础设置：给需要动画的元素加上基础类 */
.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);
}

/* 纵向通知淡入淡出切换（支持任意长度真实数据） */
.notify-scroll-track {
    position: relative;
    height: 20px;
    width: 100%;
}
.notify-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* 默认隐藏在下方 */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}
/* 激活动画：淡入并移动到 0 */
.notify-row.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* 退场动画：向上淡出 */
.notify-row.exit {
    opacity: 0;
    transform: translateY(-30px);
}

.server-wrap {
    background: url('../../images/enter/dxd/advantage/server_bg.png') no-repeat top;
    background-size: 100% 100%;
}

/* 自定义底部向上拉伸展示（利用 clip-path 防止内容挤压变形） */
@keyframes maskUp {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}
.maskUp {
    animation-name: maskUp;
}

/* 按钮专属：适配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;
}

/* 按钮专属：适配胶囊形/圆形的向左反向擦除幕布特效（从右向左展现） */
@keyframes wipeLeft_full {
    0% {
        clip-path: inset(0 0 0 100% round 999px);
    }
    100% {
        clip-path: inset(0 0 0 0 round 999px);
    }
}
.wipeLeft_full {
    animation-name: wipeLeft_full;
}

/* 按钮专属：适配次级圆角尺寸（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;
}

/* 三大入驻卡片专属：侧边采用上下垂直拉伸幕布展现 */
@keyframes clipVerticalStretch {
    0% {
        clip-path: inset(50% 0 50% 0 round 20px);
    }
    100% {
        clip-path: inset(0 0 0 0 round 20px);
    }
}
.clipVerticalStretch {
    animation-name: clipVerticalStretch;
}

/* 三大入驻卡片专属：中间卡片采用原点向外的圆形爆炸扩张展现 */
@keyframes clipCircleExpand {
    0% {
        clip-path: circle(0% at 50% 50%);
    }
    /* 使用 150% 去完全覆盖矩形所有极角隐蔽处 */
    100% {
        clip-path: circle(150% at 50% 50%);
    }
}
.clipCircleExpand {
    animation-name: clipCircleExpand;
}

/* 联动发牌特效：左侧向外扇形打出（利用初始中心坐标系） */
.fanOutLeft {
    animation-name: fanOutLeft;
    animation-timing-function: cubic-bezier(0.25, 0.85, 0.2, 1.15) !important;
}
@keyframes fanOutLeft {
    0% {
        opacity: 0;
        transform: translateX(calc(100% + 13px)) translateY(50px) rotate(15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

/* 联动发牌特效：右侧向外扇形打出 */
.fanOutRight {
    animation-name: fanOutRight;
    animation-timing-function: cubic-bezier(0.25, 0.85, 0.2, 1.15) !important;
}
@keyframes fanOutRight {
    0% {
        opacity: 0;
        transform: translateX(calc(-100% - 13px)) translateY(50px) rotate(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

/* 联动发牌特效：C位卡片定海神针浮现 */
.fanCenterBase {
    animation-name: fanCenterBase;
    animation-timing-function: ease-out !important;
}
@keyframes fanCenterBase {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.faqKeywords {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
}

.faqKeywords::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #00EAFF;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faqKeywords:hover {
    color: #202125 !important;
    border-color: #00EAFF !important;
    backdrop-filter: none !important;
}

.faqKeywords:hover::before {
    opacity: 1;
}

/* 服务优势区联系顾问按钮：初始透明，动画和淡出均通过 JS 内联控制 */
.consult-btn {
    opacity: 0;
    transition: opacity 0.4s ease, background-color 0.5s, color 0.5s;
}
