@font-face {
    font-family: 'Khaenriah';
    src: url('fonts/Khaenriah.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Genshin';
    src: url('fonts/genshin.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    background-color: #000;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    opacity: 0;
    transition: opacity 1s ease;
}

#bg-video.loaded {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(77, 79, 83, 0.2);
    z-index: 2;
    pointer-events: none;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.content-wrapper {
    position: fixed;
    top: 38.2%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    pointer-events: none;
}

.title-text {
    font-family: 'Khaenriah', serif;
    font-size: 72px;
    color: #D3BC8E;
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(211, 188, 142, 0.5);
}

@media (max-width: 1199px) {
    .title-text {
        font-size: calc(100vw / 16);
    }
    
    .enter-btn {
        font-size: 16px;
        padding: 12px 35px;
        letter-spacing: 2px;
    }
}

.enter-btn {
    font-family: 'Genshin', sans-serif;
    font-size: 20px;
    color: #D3BC8E;
    background-color: transparent;
    border: 2px solid #D3BC8E;
    padding: 15px 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    letter-spacing: 3px;
    pointer-events: auto;
    border-radius: 8px;
    position: fixed;
    bottom: 38.2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.enter-btn.visible {
    opacity: 1;
}

.enter-btn:hover {
    background-color: #D3BC8E;
    color: #4d4f53;
    box-shadow: 0 0 20px rgba(211, 188, 142, 0.6);
}

.enter-btn.fade-out {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* Quote overlay styles */
.quote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.quote-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.quote-content {
    max-width: 800px;
    padding: 40px;
    text-align: center;
}

.quote-content p {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    line-height: 2;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.quote-author {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    font-size: 18px!important;
    color: #333333!important;
    margin-top: 20px!important;
}

.quote-hint {
    font-family: 'Common', 'Microsoft YaHei', sans-serif;
    font-size: 14px!important;
    color: #838383!important;
    margin-top: 40px!important;
    letter-spacing: 0.5px!important;
}

/* 小屏幕适配：当屏幕面积小于301840px²时缩小字体 */
.quote-content.small-screen p {
    font-size: calc(100vw / 50)!important;
    line-height: 1.8!important;
}

.quote-content.small-screen .quote-author {
    font-size: calc(100vw / 60)!important;
}

.quote-content.small-screen .quote-hint {
    font-size: calc(100vw / 70)!important;
    margin-top: 30px!important;
}
