@font-face {
    font-family: 'HYWenHei-85W'; 
    src: url('../../resource/font/zh-cn_pruned.ttf') format('truetype'); 
}

@font-face {
    font-family: 'Sumeru-Regular'; 
    src: url('../../resource/font/SumeruScribe-Regular.ttf') format('truetype'); 
}

@font-face {
    font-family: 'SC-Regular';
    src: url('../../resource/font/SC-Regular-pruned.otf') format('opentype');
}

@font-face {
    font-family: "筑紫アンティーク";
    src: url("../../resource/font/筑紫-jp-pruned.ttf") format("truetype");
}

/* @font-face {
    font-family: '筑紫';
    src: url('../../resource/font/筑紫-cn-pruned.ttf') format('truetype');
} */

.sc-text {
    font-family: "SC-Regular", "筑紫アンティーク";
    font-size: 12px;
}

.sumeru-text {
    font-family: 'Sumeru-Regular';
    font-size: 15px;
}

body {
    font-family: 'HYWenHei-85W';
    margin: 0;
    padding: 0;
    overflow: hidden; /* 隐藏滚动条 */
    display: flex;
}

#simple_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(7, 87, 7);
    z-index: 7;
    opacity: 1;
    visibility: hidden;
    transition: visibility 0.8s ease; 
}

header {
    cursor: default;
	z-index: 10; 
    background-color: #347834; /*#3498db*/
    color: #fff;
    padding: 10px 0px;
    position: fixed;
    width: 100%;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.button-group {
    align-items: center;
    justify-content: center;
}

button {
    height: 100%;
    font-family: 'HYWenHei-85W';
    border: none;
    background-color: #347834;
    color: #fff;
    padding: 10px 15px;
    position: relative;
    z-index: 100;
    margin: 0px 50px 0px 5px;
    transition: background-color 0.8s ease, opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease; 
}

button:hover {
    background-color: #086608; /*#2980b9 */
}

.music-button {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    outline: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.8s ease, transform 0.2s;
    position: relative;
    display: flex;
}

.button-text {
    z-index: 1;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-ring-circle {
    fill: transparent;
    stroke: #cfedca;
    stroke-width: 2;
    stroke-linecap: round;
    /* stroke-dasharray: 100; */
    /* stroke-dashoffset: 100; */
    transform-origin: 50% 50%;
}

.music-button.longpress .progress-ring {
    opacity: 1;
}

.playing {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-info {
    cursor: default;
    position: fixed;
    z-index: 100;
    right: 0px;
    bottom: 10%;
    width: 250px;
    color: #cfedca;
    padding: 15px;
    font-family: 'HYWenHei-85W';
    transition: transform 1.3s ease, opacity 1.3s ease;
    opacity: 0;
}
.music-info div {
    text-indent: 10px;
    text-align: left;
}

.music-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(52, 120, 52, 1);
    filter: blur(10px);
    z-index: -1;
}

.info-fade-in {
    opacity: 1;
}

.info-fade-out {
    opacity: 0; /* 原地淡出效果 */
}

/* .slide-in {
    transform: translateX(-400px);
} */

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: left;
}

.text-content {
    display: flex;
    flex-direction: column;
}

.button-group {
    display: flex;
    /* gap: 10px; */
}
header h2, header p {
    text-align: left;
    margin: 0px 5px 5px 50px;
}

footer {
	z-index: 9; 
    background-color: #333;
    color: #fff;
    text-align: center;
    cursor: default;
    position: fixed;
    bottom: 0;
    left:0;
    width: 100%;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.content {
    z-index: auto;
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease; 
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -50; 
    opacity: 0; 
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease; 
}

.text-overlay {
    z-index: 200; 
    opacity: 0; 
    visibility: hidden; 
    transition: visibility 0.8s ease, transform 0.8s ease; 
    position: fixed;
    top: 23%;
    left: 18%;
    /* //transform: translate(-50%, -50%); */
    width: 64%;
    text-align: center;
    user-select: none;
    font-family: "SC-Regular", "筑紫アンティーク";
}

.text-overlay p, .text-overlay h2{
    line-height: 2;
    margin-top: 0;
    margin-bottom: 0; 
}

#section1 .text-overlay {
    opacity: 1;
    visibility: visible;
}
#section1 .background-image {
    opacity: 0.9;
    visibility: visible;
}

#section1 .text-overlay p:first-of-type {
    text-align: center;
}


#section2 .text-overlay p:first-of-type {
    text-align: center;
}


github-link {
    pointer-events: auto;
}
github-link:hover {
    text-decoration: underline;
}

.sidebar {
	z-index: -22; 
    position: fixed;
    top: 20%;
    left: 15%;
    height: 65%;
    width: 70%; 
    background-color: rgba(0, 97, 27, 0.7); 
    /* border-radius: 15px; 圆角半径 */
    visibility: "visible";
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.left-align p {
    text-align: left;
    text-indent:0px;
    padding-left: 20px;
    padding-right: 20px;
}

.content h2 {
	text-align: center;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ffcc00;
    border-radius: 50%;
    position: fixed;
    z-index: 9999;
    opacity: 0.5;
    pointer-events: none; 
}

.scrollable-text {
    width: 100%;
    max-height: 50vh; /* 设置适当的高度以实现滚动 */
    overflow-y: scroll; /* 启用垂直滚动 */
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
}

.scrollable-text::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
}

.hover-text {
    position: relative;
    width: 100%;
    height: 4em; /* 根据字体大小和行高调整高度，确保容纳两行文本 */
    overflow: hidden;
}
.hover-text > .text-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hover-text p {
    margin: 0;
    line-height: 2em; /* 根据需要调整行高 */
}
.text1 {
    text-align: center;
    opacity: 1;
    z-index: 2;
}
.text2 {
    text-align: center;
    opacity: 0;
    z-index: 1;
}
.hover-text:hover .text1 {
    opacity: 0;
}
.hover-text:hover .text2 {
    opacity: 1;
    z-index: 2;
}
