@charset "utf-8";

/* ===== 全局重置 ===== */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #333;
    overflow: hidden;
    font-family: "HarmonyOS_Regular", sans-serif;
}

*, a, p {
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
}

a:hover {
    color: rgb(57, 159, 255);
    transition: 0.3s;
}

/* ===== 字体 ===== */
@font-face {
    font-family: "Pacifico-Regular";
    font-display: swap;
    src: url("/assets/font/Pacifico-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "UnidreamLED";
    font-display: swap;
    src: url("/assets/font/UnidreamLED.ttf") format("truetype");
}

/* ===== 基础容器 ===== */
#app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    max-width: 1200px;
}

/* ===== 卡片样式 ===== */
.cards {
    border-radius: 6px;
    background-color: #00000040;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    will-change: backdrop-filter;
}

.cards:active {
    opacity: 0.9;
}

.text-hidden {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ===== 弹窗提示 ===== */
.el-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.25);
    color: #efefef;
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 99999;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-color: transparent;
    font-size: 14px;
    white-space: nowrap;
    animation: fade 0.3s;
}

/* ===== 进度条 ===== */
.progress-bar {
    height: 20px;
    background-color: #00000020;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar .progress-fill {
    height: 100%;
    background-color: #efefef;
    border-radius: 6px;
    transition: width 0.3s;
}

.progress-bar .progress-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 6px;
    font-family: "UnidreamLED";
    font-size: 0.9rem;
    color: #efefef;
    white-space: nowrap;
}

/* ===== 动画 ===== */
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-blur-in {
    from {
        filter: blur(20px) brightness(0.3);
        transform: scale(1.6);
    }
    to {
        filter: blur(0) brightness(1);
        transform: scale(1);
    }
}

@keyframes fade-blur-main-in {
    from { transform: scale(1.2); }
    to { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes zoom {
    0% {
        opacity: 0;
        transform: scale(0) translateY(-600px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== Loading 加载动画 ===== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    overflow: hidden;
}

#loader-wrapper .loader {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#loader-wrapper .loader-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fff;
    animation: spin 1.8s linear infinite;
    z-index: 2;
    position: relative;
}

#loader-wrapper .loader-circle::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #a4a4a4;
    animation: spin-reverse 0.6s linear infinite;
}

#loader-wrapper .loader-circle::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #d3d3d3;
    animation: spin 1s linear infinite;
}

#loader-wrapper .loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    z-index: 2;
    margin-top: 40px;
    font-size: 24px;
}

#loader-wrapper .loader-text .tip {
    margin-top: 6px;
    font-size: 18px;
    opacity: 0.6;
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: #333;
    z-index: 1;
}

#loader-wrapper .loader-section.section-left { left: 0; }
#loader-wrapper .loader-section.section-right { right: 0; }

#loader-wrapper.loaded {
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.3s 1s ease-out, visibility 0.3s 1s ease-out;
}

#loader-wrapper.loaded .loader-circle,
#loader-wrapper.loaded .loader-text {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#loader-wrapper.loaded .loader-section.section-left {
    transform: translateX(-100%);
    transition: transform 0.5s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#loader-wrapper.loaded .loader-section.section-right {
    transform: translateX(100%);
    transition: transform 0.5s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ===== 壁纸 Background ===== */
.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.25s;
    z-index: -1;
}

.cover.show {
    z-index: 1;
}

.cover .bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    filter: blur(20px) brightness(0.3);
    transition: filter 0.3s, transform 0.3s;
    animation: fade-blur-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.45s;
}

.cover .gray {
    opacity: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.5) 100%),
                      radial-gradient(rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0.3) 166%);
    transition: 1.5s;
}

.cover .gray.hidden {
    opacity: 0;
    transition: 1.5s;
}

.cover .down {
    font-size: 16px;
    color: white;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 26px;
    border-radius: 8px;
    background-color: #00000030;
    width: 120px;
    height: 30px;
    text-decoration: none;
}

.cover .down:hover {
    transform: scale(1.05);
    background-color: #00000060;
}

.cover .down:active {
    transform: scale(1);
}

/* ===== 主界面 Main ===== */
#main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.2);
    transition: transform 0.3s;
    animation: fade-blur-main-in 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s;
}

#main .container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    padding: 0 0.5vw;
}

#main .container .all {
    width: 100%;
    height: 100%;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#main .container .more {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    backdrop-filter: blur(20px);
    z-index: 2;
    animation: fade 0.5s;
}

@media (max-width: 1200px) {
    #main .container {
        padding: 0 2vw;
    }
}

/* ===== 左侧面板 Left ===== */
.left {
    width: 50%;
    margin-right: 10px;
    transform: translateY(20px);
    animation: fade 0.5s;
}

.left.hidden {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    opacity: 0;
    transition: none;
}

.right.hidden {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    opacity: 0;
    transition: none;
}

.right.box-hidden {
    display: none;
}

/* ===== 右侧面板 Right ===== */
.right {
    width: 50%;
    margin-left: 0.75rem;
}

.right .logo {
    width: 100%;
    font-family: "Pacifico-Regular";
    font-size: 2.25rem;
    position: fixed;
    top: 6%;
    left: 0;
    text-align: center;
    transition: opacity 0.15s;
    animation: fade 0.5s;
    cursor: pointer;
}

.right .logo:active {
    opacity: 0.7;
}

/* ===== 移动端菜单按钮 ===== */
#main .menu {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 84%;
    left: calc(50% - 28px);
    width: 56px;
    height: 34px;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    transition: opacity 0.15s;
    animation: fade 0.5s;
    cursor: pointer;
    z-index: 10;
}

#main .menu:active {
    opacity: 0.7;
}

#main .menu .i-icon {
    transform: translateY(2px);
}

#main .menu i {
    font-size: 24px;
}

/* ===== Message 简介区 ===== */
.message .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: fade 0.5s;
    max-width: 460px;
}

.message .logo .logo-img {
    border-radius: 50%;
    width: 120px;
}

.message .logo .name {
    width: 100%;
    padding-left: 22px;
    transform: translateY(-8px);
    font-family: "Pacifico-Regular";
}

.message .logo .name .bg {
    font-size: 5rem;
}

.message .logo .name .sm {
    margin-left: 6px;
    font-size: 2rem;
}

.message .logo .name.long .bg {
    font-size: 4rem;
}

.message .description {
    padding: 1rem;
    margin-top: 3.5rem;
    max-width: 460px;
    animation: fade 0.5s;
    cursor: pointer;
}

.message .description .content {
    display: flex;
    justify-content: space-between;
}

.message .description .content .fa-quote-left,
.message .description .content .fa-quote-right {
    font-size: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.message .description .content .text {
    margin: 0.75rem 1rem;
    line-height: 2rem;
    margin-right: auto;
    transition: opacity 0.2s;
}

.message .description .content .text p:nth-of-type(1) {
    font-family: "Pacifico-Regular";
}

.message .description .content .fa-quote-right {
    align-self: flex-end;
}

/* ===== SocialLinks 社交链接 ===== */
.social {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 460px;
    width: 100%;
    height: 42px;
    background-color: transparent;
    border-radius: 6px;
    backdrop-filter: blur(0);
    animation: fade 0.5s;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.social .link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social .link a {
    display: inherit;
}

.social .link a .icon {
    margin: 0 12px;
    transition: transform 0.3s;
}

.social .link a .icon:hover {
    opacity: 0.8;
}

.social .link a .icon:active {
    opacity: 0.6;
}

.social .tip {
    display: none;
    margin-right: 12px;
    animation: fade 0.5s;
}



/* ===== Function 功能区 ===== */
.function {
    height: 165px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.function.mobile .el-row .left-col {
    display: contents;
}

.function.mobile .el-row .right-col {
    display: none;
}

.function .el-row {
    height: 100%;
    width: 100%;
    margin: 0 !important;
    display: flex;
}

.function .el-row .el-col {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.function .el-row .left-col {
    padding-left: 0 !important;
    padding-right: 10px;
    position: relative;
}

.function .el-row .right-col {
    padding-right: 0 !important;
    padding-left: 10px;
}

.function .el-row .left-col,
.function .el-row .right-col-inner {
    width: 100%;
    height: 100%;
}

.function .right-col-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    animation: fade 0.5s;
}

.function .right-col-inner .time {
    font-size: 1.1rem;
    text-align: center;
}

.function .right-col-inner .time .date {
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
}

.function .right-col-inner .time .text {
    margin-top: 10px;
    font-size: 3.25rem;
    letter-spacing: 2px;
    font-family: "UnidreamLED";
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.function .right-col-inner .weather {
    text-align: center;
    width: 100%;
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
}

/* ===== Hitokoto 一言 ===== */
.hitokoto {
    width: 100%;
    height: 100%;
    padding: 20px;
    animation: fade 0.5s;
    position: relative;
    transition: opacity 0.15s;
}

.hitokoto .open-music {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000026;
    padding: 4px 0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.hitokoto .open-music i {
    font-size: 18px;
    color: #efefef;
    margin-right: 8px;
}

.hitokoto .open-music .i-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin-right: 8px;
}

.hitokoto .open-music span {
    font-size: 0.95rem;
}

.hitokoto .content {
    height: 110%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.hitokoto .content .text {
    font-size: 1.1rem;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hitokoto .content .from {
    margin-top: 10px;
    font-weight: bold;
    align-self: flex-end;
    font-size: 1.1rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Panel Hidden 面板隐藏类（替代display:none保留合成层） ===== */
.panel-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transition: opacity 0.15s !important;
}

/* ===== Music 音乐 ===== */
.music {
    width: 100%;
    height: 100%;
    min-height: 165px;
    background: #00000040;
    color: #efefef;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: fade 0.5s;
    transition: opacity 0.15s;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.music .btns {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.music .btns span {
    color: #efefef;
    font-size: 0.9rem;
    background: #ffffff26;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 0 6px;
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.music .btns span:hover {
    background: #ffffff4d;
}

.music .control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex: 1;
    flex-shrink: 0;
}

.music .control .state {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.1s;
    cursor: pointer;
}

.music .control .state i {
    font-size: 36px;
    color: #efefef;
}

.music .control .state .i-icon {
    width: 50px;
    height: 50px;
    display: block;
}

.music .control i {
    width: 36px;
    height: 36px;
    display: flex;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    cursor: pointer;
    font-size: 24px;
    color: #efefef;
}

.music .control i:hover {
    background: #ffffff33;
}

.music .control i:active {
    transform: scale(0.95);
}

.music .music-menu {
    width: 100%;
    height: 26px;
    line-height: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    margin-top: auto;
}

.music .music-menu .name {
    width: 100%;
    color: #efefef !important;
    font-size: 1rem !important;
    text-align: center;
    line-height: 26px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    animation: fade 0.3s;
}

.music .music-menu .volume {
    width: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    flex-direction: row;
    animation: fade 0.3s;
}

.music .music-menu .volume .icon {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.music .music-menu .volume .icon i {
    font-size: 24px;
    color: #efefef;
}

.music .music-menu .volume .icon span {
    width: 24px;
    height: 24px;
    display: block;
}

.music .music-menu .volume input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #ffffff40;
    border-radius: 2px;
    outline: none;
    margin-right: 12px;
    transition: none;
}

.music .music-menu .volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #efefef;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    margin-top: -6px;
}

.music .music-menu .volume input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #ffffff40;
    border-radius: 2px;
}

.music .music-menu .volume input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #efefef;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.music .music-menu .volume input[type="range"]::-moz-range-track {
    height: 4px;
    background: #ffffff40;
    border-radius: 2px;
    border: none;
}

/* ===== 音乐列表弹窗 ===== */
.music-list {
    position: fixed;
    top: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    will-change: backdrop-filter;
    z-index: 100;
}

.music-list .list {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: calc(50% - 300px);
    left: calc(50% - 320px);
    width: 640px;
    height: 600px;
    background-color: #ffffff66;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    will-change: backdrop-filter;
    border-radius: 6px;
    z-index: 999;
    animation: zoom 0.4s ease-in-out;
}

.music-list .list .close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 28px;
    color: #ffffff60;
    display: block;
    cursor: pointer;
    z-index: 1000;
}

.music-list .list .close:hover {
    transform: scale(1.2);
}

.music-list .list .close:active {
    transform: scale(0.95);
}

.music-list .list #aplayer-container {
    width: 80%;
    max-height: 520px;
}

.music-list .list .aplayer-list {
    overflow-y: auto;
}

/* 音乐列表弹窗移动端适配 */
@media (max-width: 720px) {
    .music-list .list {
        left: calc(50% - 45%);
        width: 90%;
        height: 500px;
        top: calc(50% - 250px);
    }
}

/* ===== APlayer 样式覆盖（音乐列表弹窗内） ===== */
.music-list .aplayer {
    width: 80%;
    margin: 0 auto;
    border-radius: 6px;
    font-family: "HarmonyOS_Regular", sans-serif !important;
    background: transparent !important;
    box-shadow: none !important;
}

.music-list .aplayer .aplayer-body {
    background-color: transparent !important;
}

.music-list .aplayer .aplayer-pic {
    display: none !important;
}

.music-list .aplayer .aplayer-info {
    margin-left: 0 !important;
    background-color: #ffffff40 !important;
    border-color: transparent !important;
}

.music-list .aplayer .aplayer-info .aplayer-music {
    flex-grow: initial !important;
    margin-bottom: 2px !important;
    overflow: initial !important;
}

.music-list .aplayer .aplayer-info .aplayer-music .aplayer-title {
    font-size: 16px !important;
    margin-right: 6px !important;
}

.music-list .aplayer .aplayer-info .aplayer-music .aplayer-author {
    color: #efefef !important;
}

.music-list .aplayer .aplayer-info .aplayer-lrc {
    text-align: left !important;
    margin: 7px 0 6px 6px !important;
    height: 44px !important;
    mask: linear-gradient(#fff 15%, #fff 85%, hsla(0deg, 0%, 100%, 0.6) 90%, hsla(0deg, 0%, 100%, 0)) !important;
    -webkit-mask: linear-gradient(#fff 15%, #fff 85%, hsla(0deg, 0%, 100%, 0.6) 90%, hsla(0deg, 0%, 100%, 0)) !important;
}

.music-list .aplayer .aplayer-info .aplayer-lrc::before,
.music-list .aplayer .aplayer-info .aplayer-lrc::after {
    display: none !important;
}

.music-list .aplayer .aplayer-info .aplayer-lrc p {
    color: #efefef !important;
}

.music-list .aplayer .aplayer-info .aplayer-lrc .aplayer-lrc-current {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
}

.music-list .aplayer .aplayer-info .aplayer-controller {
    display: none !important;
}

.music-list .aplayer .aplayer-list {
    margin-top: 6px !important;
    max-height: 420px !important;
    background-color: transparent !important;
}

.music-list .aplayer .aplayer-list ol::-webkit-scrollbar-track {
    background-color: transparent;
}

.music-list .aplayer .aplayer-list ol li {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.music-list .aplayer .aplayer-list ol li.aplayer-list-light {
    background: #ffffff40;
    border-radius: 6px;
}

.music-list .aplayer .aplayer-list ol li:hover {
    background: #ffffff26 !important;
    border-radius: 6px !important;
}

.music-list .aplayer .aplayer-list ol li .aplayer-list-index,
.music-list .aplayer .aplayer-list ol li .aplayer-list-author {
    color: #efefef;
}

/* ===== Links 网站链接 ===== */
.links .line {
    margin: 2rem 0.25rem 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    animation: fade 0.5s;
}

.links .line i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.links .line .title {
    margin-left: 8px;
    font-size: 1.15rem;
    text-shadow: 0 0 5px #00000050;
}

.links .swiper {
    left: -10px;
    width: calc(100% + 20px);
    padding: 5px 10px 0;
    z-index: 0;
}

.links .swiper .swiper-slide {
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.links .swiper .swiper-pagination {
    position: relative;
    margin-top: 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.links .swiper .swiper-pagination .swiper-pagination-bullet {
    background-color: #fff;
    width: 20px;
    height: 4px;
    margin: 0 4px;
    border-radius: 4px;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.links .swiper .swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.links .swiper .swiper-pagination .swiper-pagination-bullet:hover {
    opacity: 1;
}

.links .link-all {
    height: 220px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-width: 0;
}

.links .link-all .item {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    padding: 0 10px;
    cursor: pointer;
    animation: fade 0.5s;
}

.links .link-all .item i {
    font-size: 26px;
    flex-shrink: 0;
}

.links .link-all .item .name {
    font-size: 1.1rem;
    margin-left: 8px;
}

.links .link-all .item:hover {
    transform: scale(1.02);
    background: rgb(0 0 0 / 40%);
    transition: 0.3s;
}

.links .link-all .item:active {
    transform: scale(1);
}

/* ===== Box 盒子 ===== */
.box {
    flex: 1 0 0%;
    margin-left: 0.75rem;
    height: 80%;
    min-height: 200px;
    max-height: calc(100vh - 120px);
    max-width: 50%;
    position: relative;
    overflow: auto;
    animation: fade 0.5s;
}

.box:hover {
    transform: scale(1);
}

.box .close,
.box .setting {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff60;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    /* iPad/触摸设备支持：确保按钮可点击 */
    z-index: 10;
}

/* 桌面端：hover时显示按钮 */
.box:hover .close,
.box:hover .setting {
    opacity: 1;
}

/* iPad/触摸设备：按钮始终可见（hover在触摸设备上无效） */
@media (hover: none) and (pointer: coarse) {
    .box .close,
    .box .setting {
        opacity: 0.8;
    }
}

/* box-visible类：用于JavaScript控制触摸设备上按钮可见 */
#box-panel.box-visible .close,
#box-panel.box-visible .setting {
    opacity: 1;
}

/* 兜底：对于不支持media query的旧设备，box显示时按钮也显示 */
#box-panel[style*="display: block"] .close,
#box-panel[style*="display:block"] .close,
#box-panel:not([style*="display: none"]) .close,
#box-panel:not([style*="display:none"]) .close {
    opacity: 1;
}
#box-panel[style*="display: block"] .setting,
#box-panel[style*="display:block"] .setting,
#box-panel:not([style*="display: none"]) .setting,
#box-panel:not([style*="display:none"]) .setting {
    opacity: 1;
}

.box .close:hover,
.box .setting:hover {
    transform: scale(1.2);
}

.box .close:active,
.box .setting:active {
    transform: scale(1);
}

.box .setting {
    right: 56px;
}

.box .content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.box .content::-webkit-scrollbar {
    width: 4px;
}

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

.box .content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* ===== TimeCapsule 时光胶囊 ===== */
.time-capsule {
    width: 100%;
    flex-shrink: 0;
}

.time-capsule .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0.2rem 0 1.5rem;
    font-size: 1.1rem;
}

.time-capsule .title i {
    margin-right: 6px;
    font-size: 24px;
}

.time-capsule .all-capsule .capsule-item {
    margin-bottom: 1rem;
}

.time-capsule .all-capsule .capsule-item .item-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
}

.time-capsule .all-capsule .capsule-item .item-title .remaining {
    opacity: 0.6;
    font-size: 0.85rem;
    font-style: oblique;
}

.time-capsule .all-capsule .capsule-item:last-child {
    margin-bottom: 0;
}

.time-capsule .all-capsule .capsule-item.start .item-title {
    justify-content: center;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ===== Footer 页脚 ===== */
#footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 46px;
    line-height: 46px;
    text-align: center;
    z-index: 100;
    font-size: 14px;
    word-break: keep-all;
    white-space: nowrap;
}

#footer .power {
    animation: fade 0.3s;
}

#footer .lrc {
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 46px;
    line-height: 1;
    animation: fade 0.3s;
}

#footer .lrc .lrc-all {
    width: 98%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#footer .lrc .lrc-all .lrc-text {
    margin: 0 8px;
    line-height: 1;
    transition: opacity 0.15s ease-in-out;
}

#footer .lrc .lrc-all .i-icon {
    width: 18px;
    height: 18px;
    display: inherit;
    flex-shrink: 0;
}

#footer .lrc .lrc-all i {
    font-size: 18px;
    color: #efefef;
}

#footer.blur {
    backdrop-filter: blur(10px);
    background: rgb(0 0 0 / 25%);
    font-size: 16px;
}

/* ===== MoreSet 设置面板 ===== */
.set {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    /* 半透明深色背景，与网站整体风格一致，确保白色文字可见 */
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    padding: 40px;
}

.set .close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: 28px;
    color: #ffffff60;
    cursor: pointer;
}

.set .close:hover {
    transform: scale(1.2);
}

.set .close:active {
    transform: scale(1);
}

.set .el-row {
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
}

.set .el-row .left {
    height: 100%;
    padding-left: 40px !important;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
}

.set .el-row .left .logo {
    transform: translateY(-8%);
    font-family: "Pacifico-Regular";
    padding-left: 22px;
    width: 100%;
    height: 260px;
    min-height: 140px;
}

.set .el-row .left .logo .bg {
    font-size: 5rem;
}

.set .el-row .left .logo .sm {
    margin-left: 6px;
    font-size: 2rem;
}

.set .el-row .left .version {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.set .el-row .left .version .num {
    font-size: 2rem;
    font-family: "Pacifico-Regular";
}

.set .el-row .left .version a {
    margin-left: 12px;
    margin-top: 6px;
    font-size: 24px;
    color: #efefef;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s;
    text-decoration: none !important;
}

.set .el-row .left .version a:hover {
    transform: scale(1.2);
    color: #efefef;
    text-decoration: none !important;
}

.set .el-row .right {
    height: 100%;
    padding-right: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.set .el-row .right .title {
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 18px;
    margin-bottom: 16px;
}

.set .el-row .right .title i {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    font-size: 28px;
    color: #ffffff60;
}

/* ===== Setting 设置面板内部 ===== */
.setting .collapse-item {
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.setting .collapse-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 15px;
    transition: background-color 0.3s;
}

.setting .collapse-header:hover {
    background-color: #ffffff10;
}

.setting .collapse-header i {
    font-size: 12px;
    transition: transform 0.3s;
}

.setting .collapse-item.active .collapse-header i {
    transform: rotate(180deg);
}

.setting .collapse-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid transparent;
}

.setting .collapse-content .bg-set {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.setting .collapse-content .bg-set label {
    padding: 8px 16px;
    background: #ffffff26;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
}

.setting .collapse-content .bg-set label:has(input:checked) {
    background: #ffffff06;
    border-color: #fff;
}

.setting .collapse-content .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.setting .collapse-content .item .text {
    font-size: 14px;
}

/* ===== Toggle Switch ===== */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff30;
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid transparent;
}

.toggle .slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #efefef;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.toggle .slider::after {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #efefef;
    transition: all 0.3s;
    z-index: 1;
}

.toggle input:checked + .slider {
    background-color: #efefef;
    border-color: transparent;
}

.toggle input:checked + .slider::before {
    transform: translateX(20px);
    background-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.toggle input:checked + .slider::after {
    content: "\f00c";
    right: auto;
    left: 6px;
    color: #333;
}

/* ===== 自定义鼠标 ===== */
#cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 25px;
    opacity: 0.25;
    z-index: 10086;
    pointer-events: none;
    transition: 0.2s ease-in-out;
    transition-property: background, opacity, transform;
}

#cursor.hidden {
    opacity: 0;
}

#cursor.active {
    opacity: 0.5;
    transform: scale(0.5);
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar,
scrollbar {
    width: 6px;
    height: 6px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb,
scrollbar-thumb {
    border-radius: 10px;
    background-color: #eeeeee;
}

/* ===== 响应式布局 ===== */

/* 910-992px 隐藏 sm-hidden（中等屏幕省空间，iPad横屏1024+正常显示） */
@media (min-width: 910px) and (max-width: 992px) {
    .sm-hidden {
        display: none;
    }
}

/* 小于1380px */
@media (max-width: 1380px) {
    .el-radio-group {
        justify-content: center !important;
    }
}

/* 小于1280px */
@media (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }
    .function .right-col-inner .time {
        font-size: 1rem;
    }
}

/* 1201-1280px */
@media (min-width: 1201px) and (max-width: 1280px) {
    .function .right-col-inner .time {
        font-size: 1rem;
    }
}

/* 小于992px */
@media (max-width: 992px) {
    .container {
        max-width: 900px;
    }
}

/* 911-992px */
@media (min-width: 911px) and (max-width: 992px) {
    .function .right-col-inner .time {
        font-size: 1rem;
    }
    .function .right-col-inner .time .text {
        font-size: 2.75rem;
    }
}

/* 小于910px - 隐藏功能区左列 */
@media (max-width: 910px) {
    .function .el-row .left-col {
        display: none;
    }
    .function .el-row .right-col {
        padding: 0 !important;
        flex: none;
        max-width: none;
        width: 100%;
        height: 100%;
    }
    .function .el-row .right-col .right-col-inner {
        height: 100%;
    }
}

/* 小于840px - 社交链接居中 */
@media (max-width: 840px) {
    .social {
        max-width: 100%;
        justify-content: center;
    }
    .social .link {
        justify-content: space-evenly !important;
        width: 90%;
    }
    .social .tip {
        display: none !important;
    }
}

/* 768px以上 hover显示社交提示 */
@media (min-width: 768px) {
    .social:hover {
        background-color: #00000040;
        backdrop-filter: blur(5px);
    }
    .social:hover .tip {
        display: block;
    }
}

/* 小于768px */
@media (max-width: 768px) {
    .message .logo .logo-img {
        width: 100px;
    }
    .message .logo .name {
        height: 128px;
    }
    .message .logo .name .bg {
        font-size: 3.8rem;
    }
    .message .logo .name .sm {
        font-size: 1.3rem;
    }
}

/* 720-840px iPad竖屏：2列布局确保文字完整显示 */
@media (min-width: 720px) and (max-width: 840px) {
    .links .link-all {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        height: auto;
        min-height: 260px;
    }
    .links .link-all .item {
        height: 80px;
    }
    .links .link-all .item i {
        font-size: 22px;
    }
    .links .link-all .item .name {
        font-size: 0.95rem;
        margin-left: 6px;
    }
}

/* 小于990px - 设置面板字号调整（Vue原版断点） */
@media (max-width: 990px) {
    .set .el-row .left .logo .bg {
        font-size: 4.5rem;
    }
    .set .el-row .left .logo .sm {
        font-size: 1.7rem;
    }
}

/* 小于825px - 设置面板logo隐藏 */
@media (max-width: 825px) {
    .set .el-row .left .logo {
        display: none;
    }
}

/* 小于720px - 移动端 */
@media (max-width: 720px) {
    .cards {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .xs-hidden {
        display: none;
    }

    .left {
        margin-right: 0;
        width: 100%;
    }

    .right {
        margin-left: 0;
        width: 100%;
    }

    .right.hidden {
        display: none;
    }

    .left.hidden {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .message .logo {
        max-width: 100%;
        justify-content: center;
    }

    .message .logo .logo-img {
        width: 100px;
    }

    .message .logo .name .bg {
        font-size: 3.8rem;
    }

    .message .logo .name .sm {
        font-size: 1.3rem;
    }

    .message .description {
        max-width: 100%;
        pointer-events: none;
    }

    .social {
        max-width: 100%;
    }

    .links .link-all .item .name {
        display: none;
    }

    .links .link-all {
        height: 180px;
    }

    .links .link-all .item {
        height: 80px;
        justify-content: center;
    }

    #footer {
        font-size: 0.9rem;
    }

    #footer.blur {
        font-size: 0.9rem;
    }

    .music-list .list {
        left: calc(50% - 45%);
        width: 90%;
    }

    .set .el-row {
        flex-direction: column;
    }

    .set .el-row .left,
    .set .el-row .right {
        width: 100%;
        height: auto;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .set .el-row .left .logo {
        height: auto;
        min-height: auto;
        transform: none;
    }

    .set .el-row .left .version {
        margin-bottom: 1rem;
    }

    .set {
        width: 90%;
        height: 90%;
        padding: 20px;
    }
}

/* 721px - 789px 缩小域名后缀字号（Vue源码中始终可见） */
@media (min-width: 721px) and (max-width: 789px) {
    .message .logo .name .bg {
        font-size: 3.8rem;
    }
    .message .logo .name .sm {
        font-size: 1.3rem;
    }
}

/* 小于560px */
@media (max-width: 560px) {
    #footer .c-hidden {
        display: none;
    }
}

/* 小于480px */
@media (max-width: 480px) {
    #footer .hidden {
        display: none;
    }
}

/* 小于460px */
@media (max-width: 460px) {
    .links .link-all .item {
        flex-direction: column;
        height: 80px;
        justify-content: center;
    }
    .links .link-all .item .name {
        font-size: 1rem;
        margin-left: 0;
        margin-top: 8px;
        display: block;
    }
    #footer .hidden {
        display: none;
    }
}

/* 小于390px - Vue原版：固定391px宽度，横向滚动避免内容变形 */
@media (max-width: 390px) {
    #main {
        overflow-x: auto;
    }
    #main .container {
        width: 391px;
    }
    #main .menu {
        left: 167.5px;
    }
    #footer {
        width: 391px;
    }
    @media (min-height: 721px) {
        #main {
            overflow-y: hidden;
        }
    }
}

/* 大于720px 隐藏移动端菜单 */
@media (min-width: 721px) {
    #main .menu {
        display: none;
    }
    .right .logo {
        display: none;
    }
}

/* 低高度屏幕 */
@media (max-height: 720px) {
    #main {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    #main .container {
        height: 721px;
    }
    #main .container .more {
        height: 721px;
        width: calc(100% + 6px);
    }
    .right .logo {
        width: calc(100% + 6px);
        top: 43.26px;
    }
    #main .menu {
        top: 605.64px;
        left: 170.5px;
    }
    #footer {
        /* position:fixed + bottom:0 已保证固定底部，无需top */
    }
    @media (min-width: 391px) {
        #main .menu {
            left: calc(50% - 25px);
        }
        #footer {
            padding-left: 6px;
        }
        #main .container {
            padding-left: 0.7vw;
            padding-right: 0.25vw;
        }
        @media (max-width: 1200px) {
            #main .container {
                padding-left: 2.3vw;
                padding-right: 1.75vw;
            }
        }
        @media (max-width: 1100px) {
            #main .container {
                padding-left: 2vw;
                padding-right: calc(2vw - 6px);
            }
        }
        @media (max-width: 992px) {
            #main .container {
                padding-left: 2.3vw;
                padding-right: 1.7vw;
            }
        }
        @media (max-width: 900px) {
            #main .container {
                padding-left: 2vw;
                padding-right: calc(2vw - 6px);
            }
        }
    }
}

/* ===== MoreContent 更多内容 ===== */
.more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    flex: 1;
    min-height: 60px;
}

/* ===== 更新日志卡片 ===== */
.set .el-row .left .update {
    margin-top: 30px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid transparent;
    background-color: transparent;
    overflow: hidden;
}

.set .el-row .left .update .card-header {
    font-weight: bold;
    padding: 16px 20px;
    flex-shrink: 0;
    background-color: #ffffff30;
    border-bottom: 1px solid transparent;
}

.set .el-row .left .update .upnote {
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background-color: #ffffff10;
}

.set .el-row .left .update .upnote .uptext {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 16px;
}

.set .el-row .left .update .upnote .uptext:nth-last-of-type(1) {
    padding: 0;
}

.set .el-row .left .update .upnote .uptext i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 14px;
}

/* ===== 播放器配置 Radio ===== */
.setting .collapse-content .player-radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.setting .collapse-content .player-radio-group label {
    margin: 2px 10px 2px 0;
    padding: 8px 16px;
    background: #ffffff26;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}

.setting .collapse-content .player-radio-group label:last-child {
    margin-right: 0;
}

.setting .collapse-content .player-radio-group label:has(input:checked) {
    background: #ffffff06;
    border-color: #fff;
}

/* ===== 设置面板低高度适配 ===== */
@media (max-height: 720px) {
    .set {
        overflow-y: auto;
    }
}

/* ===== 设置面板移动端适配 ===== */
@media (max-width: 825px) {
    .set .el-row .left .logo .bg {
        font-size: 3.8rem;
    }
    .set .el-row .left .logo .sm {
        font-size: 1.3rem;
    }
}

@media (max-width: 720px) {
    .set {
        width: 90%;
        height: 90%;
        padding: 20px;
    }
    .set .el-row .left .logo .bg {
        font-size: 3.8rem;
    }
    .set .el-row .left .logo .sm {
        font-size: 1.3rem;
    }
}

/* ===== 全局隐藏滚动条但保留滚动功能 ===== */
/* 所有设备、所有情况下均隐藏滚动条 */
html,
body,
#main,
#main .container,
.set,
.set .el-row .left .update .upnote,
#music-list-modal .list,
#box-panel .box {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#main::-webkit-scrollbar,
#main .container::-webkit-scrollbar,
.set::-webkit-scrollbar,
.set .el-row .left .update .upnote::-webkit-scrollbar,
#music-list-modal .list::-webkit-scrollbar,
#box-panel .box::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome/Safari/Opera */
}
