/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    overflow-x: hidden;
}

/* 加载动画样式 */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #E63946 0%, #C8102E 45%, #8B0000 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader-content {
    text-align: center;
    color: #fcde35;
}

#loading-text {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 4px;
    color: #fedf2b;
}

.loading-char {
    display: inline-block;
    color: #ffd829;
    animation: fadeIn 0.8s ease infinite;
}

.loading-char:nth-child(2) { animation-delay: 0.2s; }
.loading-char:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeIn {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.loading-dots {
    display: inline-block;
    margin-left: 10px;
    color: #FFEB3B;
}

.loading-dots span {
    color: #FFEB3B;
    animation: bounce 1s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

#loader-progress {
    width: 200px;
    height: 4px;
    background: #8B0000;
    margin: 20px auto;
    border-radius: 2px;
    overflow: hidden;
}

#loader-bar {
    height: 100%;
    width: 0%;
    background: #FFD700;
    transition: width 0.3s ease;
}

#loader-percentage {
    font-size: 16px;
    color: #FFE4B5;
    margin-top: 10px;
}

.page-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.bg-wrapper {
    position: relative;
    width: 100%;
    font-size: 0;
    line-height: 0;
}

.bg-segment {
    display: block;
    width: 100%;
    height: auto;
}

.elem {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    display: block;
}

@media (max-width: 1920px) {
    .page-container {
        max-width: none;
    }
}

/* 懒加载相关样式（预留） */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}