body { 
    font-family: 'Noto Sans SC', sans-serif; 
    overflow-x: hidden;
}

.loading { 
    display: flex; 
    justify-content: center; 
}

/* 轮播图样式 */
.carousel-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-dot.active {
    background: white !important;
    transform: scale(1.2);
}

/* 樱花飘落动画 */
@keyframes sakura-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.sakura {
    position: fixed;
    top: -50px;
    z-index: 1;
    pointer-events: none;
    color: #ffc0cb;
    font-size: 20px;
    animation: sakura-fall linear infinite;
}

/* 仙气飘渺效果 */
@keyframes fairy-mist {
    0%, 100% {
        transform: translateX(-50px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(50px) scale(1.1);
        opacity: 0.6;
    }
}

.fairy-mist {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: fairy-mist 8s ease-in-out infinite;
}

/* 卡片悬停发光效果 */
.anime-card:hover {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
}

/* 文字发光效果 */
.glow-text {
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 脉冲动画 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(236, 72, 153, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 背景星空效果 */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.star {
    position: fixed;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .carousel-slide {
        min-height: 250px;
    }
    
    .anime-card {
        margin-bottom: 1rem;
    }
    
    .sakura {
        font-size: 16px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #db2777, #7c3aed);
}

/* 链接悬停效果 */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* 按钮点击效果 */
button {
    transition: all 0.2s ease;
    transform-origin: center;
}

button:active {
    transform: scale(0.95);
}

/* 卡片进入动画 */
@keyframes card-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-animate {
    animation: card-fade-up 0.6s ease-out forwards;
}

/* 搜索框聚焦效果 */
input[type="search"]:focus {
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
}

/* 标题特效 */
h1, h2, h3 {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    border-radius: 2px;
}

/* 玻璃态效果增强 */
.glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 加载动画 */
@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ec4899;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

/* 选择状态样式 */
::selection {
    background: rgba(236, 72, 153, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(236, 72, 153, 0.3);
    color: white;
}

/* 禁用文本选择（某些装饰元素） */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 响应式字体大小 */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 18px;
    }
}

/* 图片懒加载占位符 */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .image-placeholder {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}