/* 首页动效 - 浅蓝主题 */

/* BlurText */
.blur-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25em;
}

.blur-text-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-12px);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.blur-text.is-visible .blur-text-word {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Shuffle 标题 */
.shuffle-title {
    display: inline-block;
    cursor: default;
}

.shuffle-title .sh-char {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.shuffle-title:hover .sh-char {
    animation: shufflePop 0.35s ease forwards;
}

.shuffle-title:hover .sh-char:nth-child(odd) { animation-delay: 0.02s; }
.shuffle-title:hover .sh-char:nth-child(even) { animation-delay: 0.05s; }

@keyframes shufflePop {
    0% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(-4px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Spotlight 活动卡片 */
.card-spotlight {
    position: relative;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-color: rgba(126, 200, 227, 0.35);
}

.card-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.card-spotlight:hover::before,
.card-spotlight:focus-within::before {
    opacity: 1;
}

.card-spotlight .card-body,
.card-spotlight .card-cover {
    position: relative;
    z-index: 0;
}

/* Target Cursor */
.target-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.target-cursor-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-primary-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.target-cursor-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease, opacity 0.2s ease;
}

body.custom-cursor { cursor: none; }
body.custom-cursor a,
body.custom-cursor button,
body.custom-cursor .cursor-target { cursor: none; }

body.custom-cursor .target-cursor.is-hover .target-cursor-ring {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    opacity: 0.9;
}

body.custom-cursor .target-cursor.is-hover .target-cursor-dot {
    transform: translate(-50%, -50%) scale(1.4);
}

@media (max-width: 768px), (pointer: coarse) {
    .target-cursor { display: none !important; }
    body.custom-cursor { cursor: auto; }
}
