@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body{
    /*font-family: 'Press Start 2P', cursive;*/
    /*backdrop-filter:  url(#distortFilter);*/
    font-family: 'Playfair Display', serif;
    color: #fff0f0;
    overflow-x: hidden;
    height: 100%;
    background-color: rgb(0, 0, 0);
    padding: 0 clamp(2vw,5vw,200px);
    max-width: 2100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    /*animation: fireFlicker 1s infinite;*/
    font-size: clamp(18px, 0.8vw, 200px);
}

.background-layer {
    position: absolute;
    top: -10vh;       /* 顶部向上扩展 10% 视口高度 */
    left: -10vw;      /* 左侧向左扩展 10% 视口宽度 */
    width: 120vw;     /* 宽度比视口多出 20% */
    height: 120vh;    /* 高度比视口多出 20% */
    min-height: 120vh;
    /*background-image: url("imgs/wahit.png");*/
    background-image: url("imgs/Icon-5.jpg");
    background-repeat: space;
    background-size: clamp(30px,1vw,200px) 50px;
    background-position: top left;
    background-color: #f8eaea;
    filter: url(#distortFilter); /* 滤镜只加在背景图上 */
    z-index: -1;
    scale: 1;
    pointer-events: none;
}

.background-layer::before {
    content: '';
    position: fixed; /* 背景层不会滚动 */
    top: 0;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.73); /* 黑色遮罩层，调节透明度 */
    z-index: -1; /* 在背景图和内容之间 */
    pointer-events: none;
    mix-blend-mode: saturation;
}

.page-content {
    position: fixed;
    z-index: 1;
    padding: 20px;
    color: white;
    text-align: center;
}

@keyframes animateTurbulence {
    100%   { filter: url(#distortFilter); }
    0% { filter: url(#distortFilter); }
}

.distorted-bg {
    animation: animateTurbulence 10s infinite ease-in-out;
}



footer {
    position: relative;  /* 固定位置 */
    left: 0;          /* 左对齐 */
    bottom: 0;        /* 底部对齐 */
    width: 100%;      /* 宽度100% */
    text-align: center; /* 文字居中 */
    font-size: 16px;  /* 字体大小 */
    box-shadow: 0 -1px 2px rgba(0,0,0,0.1); /* 阴影效果 */
    top: 30px;
}



.blink {
    cursor: pointer;
    color: #fff;
    animation: blink-animation 4s;
}


nav ul li {
    cursor: pointer;
    color: #fff; /* 字体颜色 */
}

@keyframes blink-animation {
    0%   { opacity: 1; }
    25%  { opacity: 0; }
    50% { opacity: 1; }
    75%  { opacity: 0; }
    100% { opacity: 1; }
}

header .photo-bio {
    font-size: clamp(15px, 1vw, 28px);
    position: relative;
    margin: calc(10px + 3vw) 5vw calc(10px + 1vw);
    top: 40px;
    display: flex;
    align-items: center;
% background: #000;
    padding: 20px;
}
.photo-bio h1 {
    mix-blend-mode: luminosity;
}
.photo-bio p {
    border: 1px solid #fff;
    background: rgba(12, 7, 7, 0.99);
    border-radius: 5px;
    box-sizing: border-box;
    padding: 10px;
}

header img {
    width: 20vw; /* 根据视口宽度动态调整 */
    max-width: 180px; /* 限制最大宽度 */
    height: auto; /* 保持纵横比 */
    margin-right: 30px;
    border-radius: 50%;
    box-shadow: 0px 0px 20px rgba(155, 232, 23, 0.91);
}

@media (max-width: 400px) {
    header img {
        width: 100px;
    }
}



.background {
    z-index: 0;
    border: 1px solid #fff;
    background: #000000;
    margin: 70px 10px 0px;
    box-shadow: none;
    position: fixed;
}


/* Head line Titles */
.box {
    padding: 0 20px;
    position: sticky;
    justify-content: center;
    justify-items: center;
    justify-self: center;
    max-width: 2000px;
}

.titles {
    z-index: 10;
    scale: 70%;
    position: fixed;
    top: -20px;
    left: 1px;
    mix-blend-mode: difference;
    padding: 0px 0px 0px 0px;
    margin: 0px;
}

.titles2 {
    z-index: 10;
    scale: 65%;
    position: fixed;
    top: 3px;
    left: 4.5vw;
    padding: 0px 0px 0px 0px;
    margin: 0px;

}

.explanation{
    position: relative;
    top: -25px;
    color: rgba(0, 255, 115, 0.65);
}

.sub_title {

    align-items: center;
    display: inline-flex;
    position: absolute;
    top: 35px;
    left: 40vw;
    text-decoration: none;
}
@media (max-width: 480px) {
    .sub_title a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}


.sub_title a {
    box-shadow: 5px 5px 10px rgb(146, 220, 36);
    display: flex;
    scale: 1.4;
    margin: 0px 8vw 00px;
    z-index: 0;
    padding: 0px 2vw;
    background: #000;
    color: #00ff29;
    border: 1px solid rgba(241, 233, 160, 0.98);
    cursor: pointer;
    text-decoration: none;
}
.sub_title a:hover {
    scale: 1.6;
    text-decoration: underline;
}


/* Title of section */
/* The box main block */
section {
    justify-content: center;
    scroll-behavior: smooth;
    position: relative;
    border: 1px solid #fff;
    /*background: #000061;*/
    background: rgba(0, 5, 12, 0.89);
    box-shadow: 10px 10px 10px rgba(186, 106, 106, 0.91);
    /*font-family: 'Press Start 2P', cursive;*/
    font-family: 'Playfair Display', serif;
    margin:  calc(20px + 2.8vw) clamp(35px, 5vw, 200px) 35px;
    padding: 10px 10px 10px 10px;
}

section h2 {
    position: relative;
    top: clamp(-1000px,calc(-70px - 1vw),-70px);
    left: -7px;
}
section h3 {
    font-size: clamp(15px, 2vw, 25px);
    position: relative;
    top: calc(-45px - 1vw);
    left: calc(2.5px + 0.51vw);
    color: rgb(255, 247, 207);
    padding: 0;
}
/* Section links type */
section a {
    color: rgb(248, 244, 244); /* GitHub's color, or choose your own */
    text-decoration: none; /* Optional: removes underline */
}
section a:hover {
    scale: 1.9;
    text-decoration: underline;
}


/* News container: remove negative offset so that the list aligns
   consistently across different screen widths. */
.news-container {
    position: relative;
    /*padding-top: 16px;*/
    /*font-size: clamp(15px, 1vw, 20px);*/
    font-family: 'Playfair Display', serif;
    height: auto;
}

/* Reset offsets applied to paragraphs and list items within the news
   container.  Using a simple margin instead of positioning avoids
   alignment issues on very wide screens. */
/* Reset offsets on paragraphs and list items separately so that
   list items retain their own padding while paragraphs can indent
   slightly. */
.news-container p {
    position: relative;
    margin: 4px 0;
    margin-left: 1vw;
}
.news-container li {
    position: relative;
    margin: 4px 0;
}

.news-list {
    list-style: disc inside;
    padding: 0.2vw 20px 0.2vw 20px;
    /*font-family: 'Press Start 2P', cursive;*/
    font-family: 'Playfair Display', serif;
    /*font-size: clamp(15px, 1vw, 200px);*/
}

/* Each news item is a flex container so that the title, dashed fill
   and date align horizontally.  Remove absolute positioning and allow
   wrapping on smaller screens. */
.news-list li {
    display: flex;
    /*align-items: center;*/
    /*flex-wrap: wrap;*/
    /*white-space: normal;*/
    /*overflow: hidden;*/
    margin: 4px 0;
    padding-left: 1.2em; /* Space for the custom bullet */
}

/* On small screens the news items stack vertically.  This prevents
   titles and dates from overlapping and hides the dashed filler. */
@media (max-width: 1600px){
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-list .dash-fill {
        display: none;
    }
    .news-list .news-date {
        margin-left: 0;
        font-size: 0.9em;
        margin-top: 0.2em;
    }
}

.news-list li::before {
    content: "•"; /* Unicode 圆点 */
    position: absolute;
    left: 0;
    color:rgb(255, 247, 207); /* 你想要的颜色 */
    font-size: 1.2em;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

.news-title {
    flex-shrink: 0;
}

.dash-fill {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 8px;
    white-space: nowrap;
    font-family: monospace;
    color: #aaa;
}

.news-date {
    flex-shrink: 1;
    white-space: nowrap;
}

.other-container {
    height: auto;
    top: -16px;
    position: relative;
}

.other-container p,li{
    position: relative;
    top: clamp(-70px,calc(-55px - 1vw),0px);
    left:  calc(-10px + 0.5vw);
    margin: 4px;
}



#music {
    background: none;
    padding: 0;
    /*mix-blend-mode: difference;*/
}
.track-container-wrapper{
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 0px 40px;
    top: -20px;
    margin:  -30px 0 -10px;
    /*backdrop-filter:  grayscale(1);*/
    /*animation: vary_color 20s infinite;*/
}

@keyframes vary_color {
    0%   { backdrop-filter: hue-rotate(0deg)  ; }
    50%   { backdrop-filter: hue-rotate(130deg)  ;}
    100%  { backdrop-filter: hue-rotate(0deg)  ; }
}



.track-container {
    height: auto;
    width: 80vw;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 6vw;
    scroll-snap-align: center;
    margin: 0 0 0 0;
}



.track-container img {
    z-index: 22;
    width: 120%;
    height: auto;
    border: 1px solid rgba(106, 255, 0, 0.34);
    border-radius: 0px;
    box-shadow: -30px 0px 50px -20px rgba(106, 255, 0, 0.34);
}

.track-container img:hover {
    border: 4px solid rgba(239, 255, 228, 0.34);
    box-shadow: 0px 0px 50px -20px rgba(255, 221, 0, 0.51);
}

.track-container img:hover {
%filter: hue-rotate(180deg);
    filter: drop-shadow(5px 5px 3px rgba(255, 255, 255, 0.71));
}

.track {
    scale: 0.8;
    position: relative;
    height: auto;
    flex: 0 0 auto; /* Prevent tracks from stretching */
    width: clamp(100px, 15vw, 200px); /* Width of each track, adjust as needed */
    scroll-snap-align: center;
    top: 10px;
    margin: 0;
    font-size: clamp(5px, 2vw, 20px);
}

.player_bom {
    color: red;
    position: relative;
    top: -12px;
    font-weight: bolder;
    mix-blend-mode: difference;
    cursor: pointer;
}
.player_bom:hover {
    scale: 1.025;
    text-decoration: underline;
}

.track-container::-webkit-scrollbar {
    display: none;
}

.slide-arrow {
    position: absolute;
    top: 40%;
    cursor: pointer;
    background-color: transparent;
    color: white;
    font-size: 24px;
    padding: 0px;
}

.left-arrow {
    z-index: 20;
    transform: scale(2);
    left: 20px;
}
.left-arrow:hover {
    transform: scale(2.1);
}

.right-arrow {
    z-index: 20;
    transform: scale(2);
    right: 20px;
}
.right-arrow:hover {
    transform: scale(2.1);
}

.photo-bio a {
    color: rgba(0, 255, 115, 0.65); /* GitHub's color, or choose your own */
    text-decoration: none; /* Optional: removes underline */
}

.photo-bio a:hover {
    text-decoration: underline; /* Adds underline on hover for emphasis */
}

.see_more {
    z-index: 0;
    position: absolute;
    padding: 5px 20px;
    margin-top: 10px;
    background-color: #000000;
    color: #00ff29;
    border: 1px solid rgba(241, 233, 160, 0.98);
    cursor: pointer;
    right: 6vw;
    box-shadow: 0px 0px 5px rgba(155, 232, 23, 0.91);
}

.see_more:hover {
    scale: 1.1;
}

#datetime {
    z-index: 10;
    mix-blend-mode: difference;
    font-family: 'PixelMplus', cursive;
    scale: 0.8;
    color: white;
    position: fixed;
    top: -15px;
    right: -15px;
    padding: -20px -4px;
    font-weight: bold;
    font-size: 15px;
}
#datetime:hover {
    scale: 0.85;
    right: -10px;
}

@keyframes fireFlicker {
    0%, 100% {
        box-shadow: 0 2px 15px -50px rgba(255, 100, 0, 0.9),
        0 2px 30px -100px rgba(255, 150, 0, 0.7);
    }
    50% {
        box-shadow: 0 2px 15px 10px rgba(255, 150, 0, 0.7),
        0 2px 30px -150px rgba(255, 200, 0, 0.5);
    }
}

.custom-audio-player {
    position: absolute;
    scale: 70%;
    z-index: 30;
    width: 350px;
    height: 50px;
    bottom: 0px;
    right: -43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0px 10px 0px;
    border-radius: 0;

}

#playPauseBtn:hover {
    scale: 1.1;
    text-decoration: underline;
}

#player-cover {
    position: relative;
    width: 50px;
    border: 2px solid rgba(156, 152, 127, 0.62);
    margin-left: 25px;
    top: 1px;
    filter: drop-shadow(0px 0px 10px rgba(156, 152, 127, 0.62));
}

#player-cover:hover {
    scale: 1.1;
}

#playPauseBtn {
    /*font-family: 'Press Start 2P', cursive;*/
    background: black; /* 按钮背景颜色 */
    font-family: 'Playfair Display', serif;
    color: #4cff1a;
    font-size: 27px;
    padding: 0px 10px;
    cursor: pointer;
    font-weight: bolder;
    margin-left: -5px;
    border-radius: 0%;

}

#seekSlider {
    width: 120%;
    -webkit-appearance: none; /* 重置默认样式 */
    appearance: none;
    height: 15px;
    cursor: pointer;
    margin-right: 15px;
    background: rgba(121, 255, 0, 0.29);
    border: 1px solid blueviolet;
    mix-blend-mode: difference;

}

#seekSlider::-webkit-slider-thumb {
    scale: 1.2;
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 20px;
    border-radius: 0%;
    background: #1919bc;
    border: 1px solid #52f439;
    cursor: pointer;

}

#seekSlider:focus {
    outline: none; /* 移除焦点轮廓 */
}
.text-magic {
    position: relative;
    top:  -0px;
}
.white {
    position: absolute;
    left: -10px;
    width: 100%;
    height: 3px;
    background: #000;
    z-index: 4;
    animation: whiteMove 10s ease-out infinite;
}

.text-magic::before {
    content: attr(data-word);
    position: absolute;
    top: 0;
    left: 0.5px;
    height: 0px;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    z-index: 2;
    animation: redShadow 10s ease-in infinite;
    filter: contrast(200%);
    text-shadow: 1px 0 0 red;
}

.text-magic::after {
    content: attr(data-word);
    position: absolute;
    top: 0;
    left: -3px;
    height: 36px;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    z-index: 3;
    background: rgba(0, 0, 0, 0.9);
    animation: redHeight 15s ease-out infinite;
    filter: contrast(200%);
    text-shadow: -1px 0 0 cyan;
    mix-blend-mode: darken;
}


@keyframes redShadow {
    20% {
        height: 32px;
    }
    60% {
        height: 6px;
    }
    100% {
        height: 42px;
    }
}

@keyframes redHeight {
    20% {
        height: 42px;
    }
    35% {
        height: 12px;
    }
    50% {
        height: 40px;
    }
    60% {
        height: 20px;
    }
    70% {
        height: 34px;
    }
    80% {
        height: 22px;
    }
    100% {
        height: 0px;
    }
}

@keyframes whiteMove {
    8% {
        top: 38px;
    }
    14% {
        top: 8px;
    }
    20% {
        top: 42px;
    }
    32% {
        top: 2px;
    }
    99% {
        top: 30px;
    }
}
