/* 全局设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-image: url('background.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.7); /* 使用略深的灰色作为背景色 */
    background-blend-mode: lighten;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto; /* 允许页面内容滚动 */
}

@media (max-width: 768px) {
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: #333;
        background-image: url('background.png');
        background-size: cover;
        background-position: calc(100% + 40vw) center; /* 向左移动35vw */
        background-repeat: no-repeat;
        background-color: rgba(255, 255, 255, 0.7);
        background-blend-mode: lighten;
        margin: 0;
        min-height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        overflow: auto;
    }
    
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vh; /* 去除顶部和底部的 padding */
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    color: white;
    height: 8vh; /* 确保 header 的高度固定 */
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    background-color: #cae4ff77; /* 白色背景 */
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%); /* 固定的斜率 */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1); /* 添加一个基本阴影 */
    height: 100%; /* 使高度与 header 一致 */
    width: 40vh; /* 调整宽度 */
    margin-left: -10vw; /* 向左移动20px */
}
@media (max-width: 768px) {
    .logo-container {
        display: none;
        width: 25vh;
        margin-left: -20vw; /* 在较小的屏幕上减少 margin-left */
    }
    .logo-container img {
        width: auto;
        height: 80%; /* 调整为容器高度的 80% */
        margin-left: 30vw; /* 自动居中对齐 */
    }
}

.logo-container img {
    width: auto;
    height: 80%; /* 调整为容器高度的 80% */
    margin-left: 10vw; /* 自动居中对齐 */
}

.additional-shapes {
    justify-content: flex-start; /* 左对齐 */
    gap: 10px; /* 调整间距 */
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0); /* 透明背景 */
    height: 100%; /* 使高度与 header 一致 */
    width: 10vw; /* 让宽度根据内容自适应 */
    margin-left: -120vh; /* 确保容器在其父元素中左对齐 */
}


.shape {
    width: 10vw;
    height: 100%;
    background-color: #78b9ffc7; /* 设置颜色 */
    clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%); /* 固定的斜率 */
}

.shape:nth-child(2) {
    width: 10vw;
    height: 100px;
    background-color: #5dabff5b; /* 第二个平行四边形颜色略深 */
    clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%); /* 固定的斜率 */
}

.shape:nth-child(3) {
    width: 10vw;
    height: 100px;
    background-color: #2039552c; /* 第三个平行四边形颜色更深 */
    clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%); /* 固定的斜率 */
}



nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007aff;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* 背景颜色 */
    text-align: center; /* 确保文本在小屏幕上居中 */
    margin: 0; /* 确保没有外边距干扰 */
    transform: translateY(50%); /* 向下移动容器 */
    padding: 20vh;
}

.hero h1 {
    font-size: 8vh;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    color: white;
}

.hero .highlight {
    color: #36bcff; /* 蓝色高亮的颜色 */
}

/* 让文字对齐方式类似图片的效果 */
.hero-text {
    max-width: 30vw;
    margin: 0 auto;
    text-align: left;
    line-height: 1.1;
}

.hero p {
    font-size: 72px;
    margin-top: 20px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero {
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: 100vh;
        background-color: rgba(0, 0, 0, 0.7); /* 背景颜色 */
        text-align: center; /* 确保文本在小屏幕上居中 */
        margin: 20px; /* 确保没有外边距干扰 */
        transform: translateY(50%); /* 向下移动容器 */
        padding: 5vh;
        
    }
    
    .hero h1 {
        font-size: 7vh;
        font-weight: 900;
        line-height: 1.1;
        margin: 0;
        text-transform: uppercase;
        color: white;
        margin-left: -10vw;
    }
    
    .hero .highlight {
        color: #36bcff; /* 蓝色高亮的颜色 */
    }
    
    /* 让文字对齐方式类似图片的效果 */
    .hero-text {
        max-width: 30vw;
        margin: 0 auto;
        text-align: left;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 72px;
        margin-top: 20px;
        color: #ffffff;
    }
    
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-out {
    opacity: 0;
    transform: translateX(-100%);
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    max-width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: auto;
}

.language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.language-selector button {
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.language-selector button:hover {
    color: #5dabff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.custom-play-button {
    display: inline-block;
    width: 200px;
    height: 60px;
    border: 2px solid #ffffff; /* 蓝色边框 */
    position: relative;
    text-align: center;
    line-height: 60px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.432);
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 50px; /* 向下移动20px */
    opacity: 0;
    animation: buttonFadeIn 1.5s ease forwards;
    animation-delay: 1.4s; /* 按钮动画延迟，使其在文本之后出现 */
}

.custom-play-button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 悬停时背景色 */
}

.play-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 60px;
    display: inline-block;
    color: white; /* 白色图标 */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 应用文字动画 */
.hero-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-text span:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-text span:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-text span:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-text span:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-text span:nth-child(5) {
    animation-delay: 1s;
}

.hero-text span:nth-child(6) {
    animation-delay: 1.2s;
}



.page {
    opacity: 0;
    height: 100%;
    background-color: #171a2194;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page h2, .page p {
    text-align: center; /* 文字居中 */
    font-size: 48px; /* 标题字体大小 */
    margin-bottom: 20px; /* 下方间距 */
    animation: fadeInDown 1s ease; /* 动画效果 */
}

.page p {
    font-size: 24px; /* 段落字体大小 */
    margin-bottom: 40px; /* 下方间距 */
    animation: fadeInUp 1.5s ease; /* 动画效果 */
}


.page.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}


/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.page.contact {
    padding: 0;
    background: url('background.png') no-repeat center center;
    background-size: cover;
    background-blend-mode: darken;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 100%; /* 页面全屏高度 */
}

.contact-container {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    padding: 20px 10vh; /* 调整内边距 */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    width: 80%; /* 控制背景框的宽度 */
    max-width: 80%;
    margin: auto;
    height: 100%; /* 页面全屏高度 */
    display: flex;
    flex-direction: column; /* 内容垂直排列 */
    justify-content: center; /* 内容垂直居中 */
    align-items: center; /* 水平居中 */
    overflow-y: auto; /* 允许内容滚动 */
}



.contact-container h2 {
    color: #333;
    align-items: center; /* 垂直居中 */
    margin-bottom: 20px; /* 标题和按钮之间的间距 */
    font-size: 5vh;
    
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 5px;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.493);
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 160px;
    height: 60px;
}

.contact-link img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.contact-link.qq {
    background-color: #12b7f5;
}

.contact-link.wechat {
    background-color: #07c160;
}

.contact-link.discord {
    background-color: #7289da;
}

.contact-link.steam {
    background-color: #171a21;
}

.contact-link.bilibili {
    background-color: #00a1d6;
}

.contact-link.twitter {
    background-color: #0e0e0e;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}



/* 分割线样式 */
hr {
    border: none;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    width: 80%;
}

/* 友情链接部分 */
.friend-links {
    margin-top: 30px; /* 增加与上方按钮的间距 */
    margin-bottom: 20px; /* 增加与下方 footer 的间距 */
    text-align: center;
}

.friend-links h3 {
    font-family: "Playwrite CU", cursive; /* 设置 Playwrite CU 字体 */
    margin-bottom: 20px;
    font-size: 2vh;
    color: #333;
}

.friend-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.friend-links ul li {
    display: inline-block;
    margin-right: 15px;
}

.friend-links ul li a {
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links ul li a:hover {
    color: #0056b3;
}


/* 隐藏加载屏幕的过渡 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* 添加透明度过渡 */
}

.hidden {
    opacity: 0; /* 当隐藏时，将透明度设为 0 */
    pointer-events: none; /* 避免隐藏时影响页面交互 */
    transition: opacity 0.5s ease-in-out; /* 透明度过渡时间和缓动函数 */
}

/* 主内容的平滑显示 */
#main-content {
    opacity: 0; /* 初始隐藏 */
    display: block;
    transition: opacity 0.5s ease-in-out; /* 平滑显示过渡 */
}

.loading-screen.hidden + #main-content {
    opacity: 1; /* 当加载屏幕隐藏后，主内容淡入显示 */
}

.handwritten-text {
    font-family: "Great Vibes", cursive;
    font-size: 20vh;
    font-weight: 700;
    color: #333;
    border-right: 2px solid;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(10, end), blink-caret 0.5s step-end infinite;
    animation-timing-function: ease-in-out; /* 添加平滑过渡效果 */
}


/* 手写效果的关键帧动画 */
@keyframes typing {
    from { width: 0; }
    to { width: 6ch; } /* 根据 "Hello" 的字符长度调整 */
}

/* 光标闪烁动画 */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}


@media (max-width: 600px) {
    .contact-container {
        position: relative;
        z-index: 2;
        background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
        padding: 20px 10vh; /* 调整内边距 */
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影 */
        width: 80%; /* 控制背景框的宽度 */
        max-width: 80%;
        margin: auto;
        height: 100%; /* 页面全屏高度 */
        display: flex;
        flex-direction: column; /* 内容垂直排列 */
        justify-content: center; /* 内容垂直居中 */
        align-items: center; /* 水平居中 */
        overflow-y: auto; /* 允许内容滚动 */
        margin-left: -10vw;
    }
    .contact-links {
        display: flex;
        flex-wrap: wrap; /* 按钮竖着排列 */
        justify-content: center; /* 水平居中对齐 */
        gap: 10px; /* 调整按钮之间的间距 */
    }
    
    .contact-link {
        flex-basis: 45%; /* 每个按钮占用45%的宽度，确保最多两个按钮在一行 */
        margin-bottom: 10px;
        padding: 10px 0;
        font-size: 16px;
        max-height: 5vh;
        max-width: 80%; /* 最大宽度，防止按钮在大屏幕上过大 */
    }

    /* hr 分割线 */
    hr {
        width: 90%; /* 在小屏幕上让分割线更宽 */
        margin: 20px auto; /* 调整上下间距，避免过大间距 */
    }

    /* 友情链接部分 */
    .friend-links h3 {
        font-size: 4vh; /* 调整 h3 字体大小 */
        margin-bottom: 15px; /* 调整标题与链接的间距 */
    }

    .friend-links ul li {
        display: block; /* 在小屏幕上，友情链接垂直排列 */
        margin-bottom: 10px; /* 增加每个链接之间的间距 */
    }

    .friend-links ul li a {
        font-size: 16px; /* 调整链接字体大小 */
    }

}

