/* SummerEcho 官网样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
    background-color: #0B1026;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 星空背景 */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 导航栏滚动效果 */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(11, 16, 38, 0.95);
    backdrop-filter: blur(10px);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #F5A623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 发光效果 */
.glow {
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* 按钮悬停效果 */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* 卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #070A1A;
}

::-webkit-scrollbar-thumb {
    background: #2a3147;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4159;
}

/* 选择文本颜色 */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #ffffff;
}

/* 输入框焦点效果 */
input:focus {
    outline: none;
}

/* 动画延迟类 */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 闪烁动画 */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

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

/* 移动端触摸优化 */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }
    
    .btn-primary:hover::before {
        display: none;
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    #starfield,
    nav,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
