/* 自定义CSS样式 */

/* 修复z-index问题 */
.z-1 {
    z-index: 1;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 背景渐变效果 */
.bg-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

/* 图标悬停效果 */
.icon-hover-effect:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

/* 自定义按钮样式 */
.custom-button {
    transition: all 0.3s ease;
}

.custom-button:hover {
    transform: scale(1.1);
    border-color: white;
    background-color: rgba(30, 30, 30, 0.7);
}

/* 响应式字体调整 */
@media (max-width: 640px) {
    .responsive-text {
        font-size: 1.25rem;
    }
    
    .custom-button {
        width: 40px;
        height: 40px;
    }
    
    #quote {
        font-size: 1.5rem;
    }
    
    #author {
        font-size: 1.25rem;
    }
    
    #quote::before,
    #quote::after {
        font-size: 1.2em;
    }
}

/* 自定义动画延迟 */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* 动画过渡 */
#quote, #author {
    transition: opacity 0.5s ease;
}

/* 淡入淡出动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 移动菜单样式 */
.mobile-menu {
    transition: transform 0.3s ease;
}

/* 图片预加载动画 */
@keyframes imageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#hero-image {
    animation: imageFadeIn 0.5s ease;
    transition: all 0.5s ease;
}

#hero-image.loaded {
    opacity: 1;
}

#hero-image.fade-out {
    opacity: 0;
}

/* 增强引用文字效果 */
#quote {
    position: relative;
    padding: 0 20px;
}

#quote::before,
#quote::after {
    content: '"';
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
}

#quote::before {
    left: 0;
    top: -10px;
}

#quote::after {
    right: 0;
    bottom: -10px;
} 