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

body,
html {
    height: 100%;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    overflow: hidden;
}

/* 全屏背景视频 */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: grayscale(100%) brightness(0.7);
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

/* 主要内容容器 */
.content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    z-index: 1;
}

/* 英雄区域 */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* 网站标题 */
.site-title {
    font-size: 4rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* 打字机效果文本 */
.typing-text {
    font-weight: bolder;
    color: #ef92b5;
    position: relative;
}

/* 打字机效果的字符 */
.typing-char {
    display: inline-block;
    opacity: 0;
    animation: typeIn 0.3s ease-in-out forwards;
    position: relative;
}

/* 光标效果 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 4rem;
    background: #ef92b5;
    animation: blink 1s infinite;
    position: relative;
    margin-left: 2px;
}

/* QQ五笔图标 */
.wb-icon {
    position: absolute;
    bottom: 0;
    right: -30px;
    width: 24px;
    height: 24px;
    opacity: 0;
    animation: iconFadeIn 0.5s ease-in-out forwards;
    animation-delay: 2.5s;
    filter: brightness(0.8) contrast(1.1);
}

/* 动画定义 */
@keyframes typeIn {
    to {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes iconFadeIn {
    to {
        opacity: 0.9;
    }
}

/* 副标题 */
.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

/* 纪念文字区域 */
.memorial-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 600px;
}

/* 姓名 */
.name {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.1em;
}

/* 日期 */
.dates {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
    letter-spacing: 0.2em;
}

/* 引用文字 */
.quote {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.6;
}

/* 音乐播放器 */
.music-player {
    position: fixed;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    max-width: 90%;
}

.music-player-inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.music-player-inner:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.music-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    color: #ef92b5;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.music-icon:hover {
    transform: scale(1.1);
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 150px;
    flex-grow: 1;
}

.music-name {
    font-size: 0.9rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-progress {
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.music-progress-bar {
    height: 100%;
    width: 0%;
    background: #ef92b5;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.hidden {
    display: none;
}

/* 底部信息 */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #999999;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.1em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }

    .typing-cursor {
        height: 2.5rem;
    }

    .wb-icon {
        width: 28px;
        height: 28px;
        right: -35px;
        bottom: -8px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .name {
        font-size: 2rem;
    }

    .memorial-text {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .dates {
        font-size: 1rem;
    }

    .quote {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }

    .typing-cursor {
        height: 2rem;
    }

    .wb-icon {
        width: 24px;
        height: 24px;
        right: -30px;
        bottom: -6px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .memorial-text {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .footer {
        bottom: 1rem;
        font-size: 0.8rem;
    }
}

/* 电影抽屉样式 */
.movie-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.movie-drawer.open {
    left: 0;
}

.drawer-toggle {
    position: fixed;
    top: 50%;
    left: 0;
    width: 40px;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 146, 181, 0.3);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.drawer-toggle:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(239, 146, 181, 0.5);
    box-shadow: 2px 0 15px rgba(239, 146, 181, 0.3);
}

.drawer-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* 当抽屉打开时，移动切换按钮 */
body.drawer-open .drawer-toggle {
    left: 320px;
}

@media (max-width: 768px) {
    body.drawer-open .drawer-toggle {
        left: 280px;
    }
}

@media (max-width: 480px) {
    body.drawer-open .drawer-toggle {
        left: 250px;
    }
}

.drawer-toggle svg {
    width: 20px;
    height: 20px;
    color: #ef92b5;
    transition: transform 0.3s ease;
}

body.drawer-open .drawer-toggle svg {
    transform: rotate(180deg);
}

.drawer-content {
    height: 100%;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 146, 181, 0.5) transparent;
}

.drawer-content::-webkit-scrollbar {
    width: 6px;
}

.drawer-content::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: rgba(239, 146, 181, 0.5);
    border-radius: 3px;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 146, 181, 0.7);
}

.drawer-header {
    margin-bottom: 2rem;
    text-align: center;
}

.drawer-header h3 {
    color: #ef92b5;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.movie-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.movie-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(239, 146, 181, 0.3);
    transform: translateX(5px);
}

.movie-poster {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.movie-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.movie-rate {
    color: #ef92b5;
    font-size: 0.8rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 响应式设计 - 抽屉 */
@media (max-width: 768px) {
    .movie-drawer {
        width: 280px;
        left: -280px;
    }

    .drawer-toggle {
        width: 35px;
        height: 50px;
    }

    .drawer-toggle svg {
        width: 16px;
        height: 16px;
    }

    .drawer-content {
        padding: 1.5rem 1rem;
    }

    .movie-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }

    .movie-poster {
        width: 40px;
        height: 56px;
    }

    .movie-name {
        font-size: 0.8rem;
    }

    .movie-rate {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .movie-drawer {
        width: 250px;
        left: -250px;
    }

    .drawer-header h3 {
        font-size: 1rem;
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeIn 2s ease-out;
}

.footer {
    animation: fadeIn 3s ease-out;
}