@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

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;
    user-select: none;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
}

a:hover {
    color: rgb(57, 159, 255);
    text-decoration: underline;
}

#app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cards {
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transform: scale(1);
    transition: backdrop-filter 0.3s, transform 0.3s;
}

.cards:hover {
    transform: scale(1.01);
}

.cards:active {
    transform: scale(0.98);
}

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

#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-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;
}

.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-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-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    z-index: 2;
    margin-top: 40px;
    font-size: 24px;
}

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

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

.loader-section.section-left {
    left: 0;
}

.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);
}

#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;
}

#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;
}

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

#cover .down:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.38);
}

#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;
    margin: 0 auto;
    padding: 0 0.5vw;
}

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

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

.left {
    width: 50%;
    margin-right: 10px;
    transform: translateY(20px);
}

.left.hidden {
    display: none;
}

.right {
    width: 50%;
    margin-left: 0.75rem;
}

.right.hidden {
    display: none;
}

.message .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: fade 0.5s;
    max-width: 460px;
}

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

.message .name {
    width: 100%;
    padding-left: 22px;
    transform: translateY(-8px);
    font-family: 'Pacifico', cursive;
}

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

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

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

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

.description .text {
    margin: 0.75rem 1rem;
    line-height: 2rem;
    margin-right: auto;
}

.description .text p:first-of-type {
    font-family: 'Pacifico', cursive;
}

.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;
    font-size: 24px;
    margin: 0 12px;
    transition: transform 0.3s;
    color: #fff;
}

.social .link a:hover {
    transform: scale(1.1);
    color: rgb(57, 159, 255);
    text-decoration: none;
}

.social .tip {
    display: none;
    margin-right: 12px;
}

.function {
    height: 165px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.func-left, .func-right {
    width: 100%;
    height: 100%;
}

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

.time {
    font-size: 1.1rem;
    text-align: center;
}

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

.time .text {
    margin-top: 10px;
    font-size: 3.25rem;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

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

.hitokoto {
    width: 100%;
    height: 100%;
    padding: 20px;
    animation: fade 0.5s;
}

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

.hitokoto .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 .from {
    margin-top: 10px;
    font-weight: bold;
    align-self: flex-end;
    font-size: 1.1rem;
}

.links {
    margin-top: 1rem;
}

.links .line {
    margin: 2rem 0.25rem 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    animation: fade 0.5s;
}

.links .title {
    margin-left: 8px;
    font-size: 1.15rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-grid .item {
    height: 100px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    padding: 0 10px;
    animation: fade 0.5s;
}

.link-grid .item i {
    font-size: 26px;
    margin-right: 8px;
}

.link-grid .item:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.3);
}

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

#box-panel {
    flex: 1;
    margin-left: 0.75rem;
    height: 80%;
    max-width: 50%;
    position: relative;
    animation: fade 0.5s;
}

#box-panel .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

#box-panel .content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    width: 100%;
    height: 100%;
}

.time-capsule {
    width: 100%;
}

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

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

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

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

.progress-bar {
    width: 100%;
    height: 20px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    background-color: #efefef;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #564d59;
    line-height: 20px;
    transition: width 0.3s;
}

#more-panel .set {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 40px;
}

#more-panel .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

#more-panel .set-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#more-panel .bg-set {
    margin-top: 20px;
}

#more-panel .bg-set p {
    margin-bottom: 10px;
}

#more-panel .bg-set label {
    margin-right: 20px;
}

.menu {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 84%;
    left: calc(50% - 28px);
    width: 56px;
    height: 34px;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    transition: transform 0.3s;
    animation: fade 0.5s;
}

.menu:active {
    transform: scale(0.95);
}

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

#footer.blur {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.18);
    font-size: 16px;
}

#cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    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);
}

.mobile-logo {
    display: none;
}

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

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

@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); }
}

@media (max-width: 720px) {
    .left {
        margin-right: 0;
        width: 100%;
    }
    .right {
        margin-left: 0;
        width: 100%;
    }
    .mobile-logo {
        width: 100%;
        font-family: 'Pacifico', cursive;
        font-size: 2.25rem;
        position: fixed;
        top: 6%;
        left: 0;
        text-align: center;
        transition: transform 0.3s;
        animation: fade 0.5s;
        display: block;
    }
    .message .name .bg {
        font-size: 4.5rem;
    }
    .description {
        max-width: 100%;
    }
    .func-left {
        display: none;
    }
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .link-grid .item {
        height: 80px;
    }
    #footer {
        font-size: 0.9rem;
    }
    #footer.blur {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .c-hidden {
        display: none;
    }
}

@media (max-width: 480px) {
    .hidden {
        display: none;
    }
    .link-grid .item {
        flex-direction: column;
    }
    .link-grid .item .name {
        font-size: 1rem;
        margin-left: 0;
        margin-top: 8px;
    }
}

.music-panel {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 15px 25px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.music-title {
    font-size: 14px;
    color: #fff;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.music-close {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.music-close:hover {
    color: #fff;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.music-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-btn i {
    font-size: 20px;
    color: #fff;
}

.play-btn {
    width: 60px;
    height: 60px;
}

.play-btn i {
    font-size: 28px;
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.music-volume i {
    font-size: 16px;
    color: #fff;
}

.music-volume input[type="range"] {
    width: 150px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.music-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 390px) {
    #main {
        overflow-x: auto;
    }
    #main .container {
        width: 391px;
    }
    .menu {
        left: 167.5px;
    }
    #footer {
        width: 391px;
    }
}