* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
}
.main {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}
#bgImage{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}
#bgSnow{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(1px);
}
.Arrow {
    width: 80px;
    height: 80px;
    position: absolute;
    left: 27%;
    font: 900 80px '';
    color: #6a8dff;
    z-index: 1;
    text-shadow: 1px  1px 6px rgb(43, 43, 43);
}

#up-btn {
    top: 5%;
}

#down-btn {
    bottom: 5%;
    
}

#content {
    width: 30%;
    height: 100%;
    position: absolute;
    left: 15%;
    overflow: hidden;
}

.card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: rgb(222, 222, 222);
    transition: transform .8s ease-in-out;
    text-shadow: 1px  1px 50px rgb(255, 190, 190);
    -webkit-text-stroke: 0.2px #202020;
}

.card-time {
    font-size: 40px;
    font-weight: 700;
    color: rgb(45, 125, 255);
}

.card-title {
    font-size: 50px;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 2px solid  rgb(50, 50, 50);
    margin-bottom: 10px;
    text-shadow: 1px  1px 50px rgb(101, 85, 85);
    color: rgb(113, 166, 252);
}

.card-passage {
    font-size: 24px;
    font-weight: 500;
}
#clock {
    width: 38vw;
    height: 38vw;
    max-width: 90vh;
    max-height: 90vh;
    min-width: 200px;
    min-height: 200px;
    aspect-ratio: 1 / 1;
    position: absolute;
    right: 2vw;
    top: 2vw;
    border-radius: 50%;
    background: url(https://blog-image-1316340567.cos.ap-shanghai.myqcloud.com/blog/images/bg2.webp);
    background-size: cover;
    opacity: 0.8;
    border: rgb(65, 65, 65) 2.5vw solid;
    box-sizing: border-box;
    z-index: 2;
}

@media (max-width: 1000px) {
    #clock {
        width: 70vw;
        height: 70vw;
        min-width: 120px;
        min-height: 120px;
        right: 2vw;
        top: 2vw;
        border-width: 4vw;
    }
}

#clock-table {
    width: 92%;
    height: 92%;
    border-radius: 50%;
    position: absolute;
    top: 4%;
    left: 4%;
    transition: transform .8s ease-in-out;
}

.invisible-table {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: 50% 50%;
    position: absolute;
    box-sizing: border-box;
}

.clock-thick {
    width: 6%;
    height: 0.7vw;
    min-height: 3px;
    max-height: 10px;
    background-color: #3d3d3d;
    position: absolute;
    top: calc(50% - 0.35vw);
    left: 0px;
    border-radius: 2px;
}

.clock-thick span {
    font-size: 3vw;
    min-font-size: 16px;
    max-font-size: 50px;
    position: absolute;
    left: 140%;
    top: calc(50% - 1.5vw);
    color: #3d3d3d;
    white-space: nowrap;
}

.clock-scale {
    width: 4%;
    height: 0.3vw;
    min-height: 1.5px;
    max-height: 5px;
    background-color: #727272;
    position: absolute;
    top: calc(50% - 0.15vw);
    left: 0px;
    border-radius: 1px;
}


/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    body {
        background-color: #0d0d1a;
    }

    /* 全屏不滚动 */
    .main {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    /* 内容区域 */
    #content {
        position: absolute;
        width: 92%;
        height: calc(100vh - 88px);
        left: 4%;
        top: 88px;
        overflow: hidden;
    }

    .card {
        width: 100%;
        height: 100%;
        padding: 15px 20px;
    }
    .card-time { font-size: 42px; }
    .card-title {
        font-size: 36px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    .card-passage {
        font-size: 22px;
        line-height: 1.8;
    }

    /* 箭头上下放置（与桌面端逻辑一致：上下滑动上下箭头） */
    .Arrow {
        width: 44px;
        height: 44px;
        font-size: 38px;
        z-index: 5;
        cursor: pointer;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
    }
    #up-btn {
        top: 96px;
    }
    #down-btn {
        bottom: 16px;
        top: auto;
        right: auto;
    }

    /* 时钟缩小为背景装饰 */
    #clock {
        width: 30vw;
        height: 30vw;
        min-width: 60px;
        min-height: 60px;
        right: 3vw;
        bottom: 5vh;
        top: auto;
        border-width: 2vw;
        opacity: 0.15;
        pointer-events: none;
        z-index: 0;
    }
}

@media (max-width: 480px) {
    #content {
        width: 94%;
        left: 3%;
        top: 78px;
        height: calc(100vh - 78px);
    }
    .card-title { font-size: 30px; }
    .card-passage { font-size: 20px; line-height: 1.7; }
    .Arrow { width: 36px; height: 36px; font-size: 32px; }
    #up-btn { top: 84px; }
    #clock { width: 25vw; height: 25vw; opacity: 0.1; }
}
