/* 页面样式 - 从HTML中提取的内联样式 */

:root {
    --bg-color: #050505;
    /* 接近纯黑的深灰，更有质感 */
    --text-color: #f0f0f0;
    --accent-color: #fff;
    /* 高亮色 */
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    overflow: hidden;
    cursor: default;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 响应式字体，保证在手机和电脑上都有冲击力 */
    font-size: clamp(2.5rem, 9vw, 8rem);
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: 0.05em;
    position: relative;
}

.char {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 依次出场的时间差 */
.char:nth-child(1) {
    animation-delay: 0.2s;
}

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

.char:nth-child(3) {
    animation-delay: 0.6s;
}

/* "的" 字特殊处理 */
.de-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 0.1em;
    opacity: 0;
    animation: revealDe 1s ease 1s forwards;
    cursor: pointer;
    /* 暗示可点击/交互 */
}

/* 模拟光标闪烁的背景块，增加科技感 */
.de-wrapper::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10px;
    width: 4px;
    height: 80%;
    background-color: var(--accent-color);
    animation: blink 1.2s infinite;
}

/* 鼠标悬停时的变换 */
.de-wrapper:hover .text-cn {
    opacity: 0;
    transform: translateY(-20px);
}

.de-wrapper:hover .text-en {
    opacity: 1;
    transform: translateY(0);
}

/* 中文"的" */
.text-cn {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 英文".de" - 绝对定位重叠 */
.text-en {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
    /* 英文用无衬线体形成对比 */
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.5em;
    /* 英文稍微小一点，更有设计排版感 */
    line-height: 2;
    /* 垂直居中调整 */
}

/* 底部版权 */
.footer {
    position: absolute;
    bottom: 40px;
    color: #333;
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2s ease 2s forwards;
}

/* ============ 动画关键帧 ============ */

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

@keyframes revealDe {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}