/* 桌面版专属动画效果 */

/* 标题和副标题进入动画 */
.content-page h2 {
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.4s forwards;
}

/* 卡片进入动画 */
.plan-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: cardFadeIn 0.8s ease-out forwards;
}

.plan-card:nth-child(1) {
    animation-delay: 0.6s;
}

.plan-card:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 卡片光泽扫过效果 */
.plan-card {
    position: relative;
}

.plan-card .card-shine {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 10;
}

.plan-card:hover .card-shine {
    left: 150%;
}

/* 价格数字跳动效果 - 修复后不影响显示 */
@keyframes priceJump {

    0%,
    100% {
        transform: scale(1.05) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-5px);
    }
}

/* 特色标签闪烁效果 */
@keyframes tagShine {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.3);
    }
}

.plan-card.featured .plan-badge {
    animation: tagShine 2s ease-in-out infinite;
}

/* 按钮悬停时的渐变动画 */
.plan-button {
    background-size: 200% 200%;
    transition: all 0.4s ease, background-position 0.8s ease;
}

.plan-button:hover {
    background-position: right center;
}

/* 菜单项激活时的脉冲效果 */
@keyframes menuPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.menu-item.active {
    animation: menuPulse 2s infinite;
}

/* Logo悬停效果 */
.logo {
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 移除卡片内容淡入效果，避免价格不显示的问题 */

/* 侧边栏渐变边框动画 */
@keyframes borderFlow {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

.sidebar::after {
    animation: borderFlow 4s ease-in-out infinite;
}

/* 主内容区域背景动画 */
@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.main-content::before {
    animation: backgroundPulse 8s ease-in-out infinite;
}

/* 按钮文字闪光效果 */
.plan-button {
    position: relative;
    overflow: hidden;
}

.plan-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.plan-button:hover::before {
    left: 100%;
}

/* 特色卡片边框动画 */
.plan-card.featured {
    position: relative;
}

.plan-card.featured::before {
    background: linear-gradient(90deg,
            #667eea 0%,
            #764ba2 25%,
            #667eea 50%,
            #764ba2 75%,
            #667eea 100%);
    background-size: 200% 100%;
    animation: borderSlide 3s linear infinite;
}

@keyframes borderSlide {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* 鼠标悬停时的阴影扩散效果 */
@keyframes shadowExpand {
    0% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    }

    100% {
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    }
}

/* 价格标签呼吸效果 */
.plan-tag {
    animation: tagBreathe 3s ease-in-out infinite;
}

@keyframes tagBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* 功能列表项悬停效果 */
.plan-features li {
    transition: all 0.3s ease;
}

.plan-features li:hover {
    padding-left: 32px;
    color: #667eea;
}

.plan-features li:hover::before {
    color: #667eea;
    transform: scale(1.2) rotate(360deg);
    transition: all 0.5s ease;
}

/* 渐变滚动条样式 */
.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(245, 247, 250, 0.5);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 100% 200%;
    border-radius: 10px;
    border: 2px solid rgba(245, 247, 250, 0.5);
    animation: scrollbarGradient 3s ease infinite;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(245, 247, 250, 0.3);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes scrollbarGradient {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

/* Firefox 滚动条样式 */
.main-content {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(245, 247, 250, 0.5);
}