/* ═══════ PC 时钟落地页 (skin1) ═══════ */
.pc-main {
    position: relative;
    width: 100vw;
    min-width: 120vh;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    background: #000 url('../images/pc/bg.jpg') no-repeat left/cover;
}

.pc-main .fixed-logo {
    position: fixed;
    left: 3.7vh;
    top: 3.7vh;
    z-index: 9;
    pointer-events: none;
}

.pc-main .fixed-logo img {
    width: 25vh;
}

.pc-main .fixed-links {
    position: fixed;
    right: 3.7vh;
    top: 3.7vh;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 1vh;
    pointer-events: none;
}

.pc-main .fixed-links a,
.pc-main .fixed-links img {
    pointer-events: auto;
}

.pc-main .fixed-links picture,
.pc-main .fixed-links img {
    display: block;
    height: 4.5vh;
    width: auto;
    max-width: none;
}

.pc-main .fixed-right-bottom {
    position: fixed;
    right: 2.77vh;
    bottom: 1.5vh;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.pc-main .qrcode-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 27vh;
    padding: 2vh 0;
    text-align: center;
    pointer-events: auto;
}

.pc-main .qrcode-wrap #pcQrcode {
    width: 14vh;
    height: 14vh;
    background: #fff;
    padding: 0.3vh;
    box-sizing: border-box;
}

.pc-main .qrcode-wrap #pcQrcode img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.pc-main .qrcode-wrap #pcQrcode canvas,
.pc-main .qrcode-wrap #pcQrcode table {
    display: none !important;
}

.pc-main .qrcode-text {
    font-size: 1.86vh;
    color: #fff;
    margin-top: 1.85vh;
    background-color: #ff5353;
    padding: 0.74vh 1.5vh;
    border-radius: 2vh;
}

.pc-main .tips {
    color: #fff;
    font-size: 1.48vh;
    margin-top: 1vh;
    text-align: center;
    max-width: 40vh;
    line-height: 1.5;
}

.pc-main .fixed-slogan {
    position: fixed;
    left: 50%;
    bottom: 20vh;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    z-index: 8;
    pointer-events: none;
}

.pc-main .fixed-slogan img {
    max-width: 100%;
    width: 70vh;
}

.pc-main .clock-main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 8vh;
    user-select: none;
    pointer-events: none;
}

.pc-main .clock-main .title-main img {
    height: 13.7vh;
}

.pc-main .clock-main .title-sub img {
    height: 4.44vh;
}

.pc-main .time {
    font-size: 13.9vh;
    color: #fff;
    margin: 2vh 0;
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif;
    letter-spacing: 0.2vh;
    line-height: 1;
}

/* ═══════ H5 移动端 (skin1) ═══════ */
.mobile-main {
    --nav-offset: 0.8rem;
    --footer-stack: 3.6rem;
    position: relative;
    width: 7.5rem;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}

/* 顶部导航占位：黑底把人物背景往下顶，避免挡住头 */
.mobile-main::before {
    content: '';
    display: block;
    height: var(--nav-offset);
    background: #000;
}

.mobile-main .fixed-links {
    position: absolute;
    left: 0.87rem;
    top: 0.19rem;
    z-index: 9;
    display: flex;
    align-items: flex-start;
    gap: 0.44rem;
    pointer-events: none;
}

.mobile-main .fixed-links a,
.mobile-main .fixed-links img,
.mobile-main .fixed-footer a,
.mobile-main .fixed-footer img {
    pointer-events: auto;
}

.mobile-main .fixed-links a {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 0.80rem;
}

.mobile-main .fixed-links picture,
.mobile-main .fixed-links img {
    display: block;
    width: 0.80rem !important;
    height: 0.80rem !important;
    max-width: none !important;
    object-fit: contain;
}

.mobile-main .fixed-links span {
    margin-top: 0.08rem;
    color: #fff;
    font-size: 0.18rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.mobile-main .clock-main {
    width: 100%;
    min-height: calc(100vh - var(--nav-offset));
    min-height: calc(100dvh - var(--nav-offset));
    min-height: calc(100svh - var(--nav-offset));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 3rem;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.mobile-main .clock-fixed {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

@media (max-width: 960px) {
    .mobile-main .clock-fixed {
        position: fixed;
        left: 50%;
        top: 40%;
        z-index: 7;
        width: auto;
        max-width: 90%;
        transform: translate3d(-50%, -50%, 0);
    }
}

.mobile-main .clock-main .title-main,
.mobile-main .clock-main .title-main img {
    display: block;
    height: 1.42rem;
    width: auto;
}

.mobile-main .clock-main .title-sub,
.mobile-main .clock-main .title-sub img {
    display: block;
    height: 0.36rem;
    width: auto;
    object-fit: contain;
}

.mobile-main .time {
    font-size: 0.85rem;
    color: #fff;
    margin: 0.2rem 0 0.14rem;
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif;
    letter-spacing: 0.12rem;
    line-height: 1;
}

.mobile-main .fixed-footer {
    z-index: 9;
    position: absolute;
    left: 0;
    top: 64%;
    bottom: 0.3rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.mobile-main .fixed-footer > picture:first-of-type {
    margin-top: auto;
}

.mobile-main .fixed-footer .logo {
    width: 1rem;
    height: 1rem;
    margin-bottom: 0.2rem;
}

.mobile-main .fixed-footer .slogan {
    height: 0.36rem;
    margin-top: 0;
    margin-bottom: 0;
}

.mobile-main .fixed-footer .download-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    width: 100%;
    padding: 0 0.32rem;
    box-sizing: border-box;
    pointer-events: none;
}

.mobile-main .fixed-footer .download-box.ios-count-1 .download-btn {
    width: 4.4rem;
}

.mobile-main .fixed-footer .download-box.ios-count-2 .download-btn {
    width: 2.8rem;
}

.mobile-main .fixed-footer .download-box.ios-count-3 {
    gap: 0.14rem;
}

.mobile-main .fixed-footer .download-box.ios-count-3 .download-btn {
    width: 2rem;
}

.mobile-main .fixed-footer .download-box.ios-count-3 .download-btn a {
    font-size: 0.24rem;
}

.mobile-main .fixed-footer .download-btn {
    pointer-events: auto;
    width: 3rem;
    height: 0.7rem;
    max-height: 7vh;
    margin-bottom: 0.2rem;
}

.mobile-main .fixed-footer .download-btn a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.45rem;
    background: #ff5353;
    font-size: 0.28rem;
    color: #ffdfb4;
    text-decoration: none;
}

.mobile-main .fixed-footer .download-btn a .fa {
    margin-right: 0.1rem;
    position: relative;
    top: -0.02rem;
    color: #fff;
    font-size: 0.32rem;
}

.mobile-main .bot-text {
    font-size: 0.28rem;
    margin-bottom: auto;
    color: #ff5353;
    text-align: center;
    pointer-events: none;
}

.mobile-main .doc-btn {
    display: block;
    font-size: 0.28rem;
    margin-bottom: auto;
    color: #ff5353;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

/* 矮屏 H5：底栏固定，页面只比视口高出一小段，滚到底看被挡住的背景。
   不再锁 16.24rem，避免 SE 一类机型滚到底中间空一大块。 */
@media (max-width: 960px) and (min-aspect-ratio: 750/1500),
       (max-width: 960px) and (max-height: 800px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .mobile-main {
        height: auto;
        min-height: 100%;
        padding-bottom: 1.2rem;
        overflow: visible;
    }

    .mobile-main .clock-main {
        height: calc(100vh - var(--nav-offset));
        height: calc(100dvh - var(--nav-offset));
        height: calc(100svh - var(--nav-offset));
        min-height: calc(100vh - var(--nav-offset));
        min-height: calc(100dvh - var(--nav-offset));
        min-height: calc(100svh - var(--nav-offset));
        justify-content: center;
        padding-bottom: 3rem;
    }

    .mobile-main::after {
        content: '';
        position: fixed;
        left: 50%;
        bottom: 0;
        z-index: 8;
        width: 7.5rem;
        max-width: 100%;
        height: calc(3.4rem + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, .5) 28%,
            rgba(0, 0, 0, .9) 70%,
            #000 100%
        );
    }

    .mobile-main .fixed-footer {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 0;
        width: 7.5rem;
        max-width: 100%;
        height: auto;
        transform: translateX(-50%);
        padding: 0.16rem 0 calc(0.2rem + env(safe-area-inset-bottom));
        z-index: 9;
    }

    .mobile-main .fixed-footer > picture:first-of-type {
        margin-top: 0;
    }

    .mobile-main .bot-text,
    .mobile-main .doc-btn {
        margin-bottom: 0.1rem;
    }
}

/* ═══════ 安装教程弹层 (skin1 doc) ═══════ */
#install-doc {
    display: none;
    background-color: #fff;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 0.24rem;
    overflow-y: auto;
    color: #333;
}

#install-doc .fix-close {
    position: fixed;
    right: 0.35rem;
    top: 0.32rem;
    width: 0.66rem;
    height: 0.66rem;
    z-index: 10000;
    cursor: pointer;
    pointer-events: auto;
}

#install-doc .download-list {
    height: 100%;
    padding: 25px 10px;
}

#install-doc .download-list-header {
    width: 50vw;
    margin-left: 25vw;
    margin-bottom: 10px;
}

#install-doc .download-item {
    margin-top: 10px;
}

#install-doc .download-item-info {
    background-color: white;
    border-radius: 99px;
    display: flex;
    align-items: center;
    margin-bottom: 3vw;
    height: 60px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

#install-doc .download-item-logo {
    width: 32px;
    height: auto;
    margin-left: 4vw;
    border-radius: 8px;
    object-fit: contain;
}

#install-doc .download-item-title {
    flex: 1;
    font-size: 14px;
    color: #333333;
    text-align: center;
}

#install-doc .download-item-detail-button {
    margin-right: 4vw;
    border-radius: 99px;
    border: 1px solid #ffc12f;
    padding: 3px 12px;
    font-size: 15px;
    color: #ffc12f;
}

#install-doc .download-item-header {
    width: 73px;
}

#install-doc .download-item-big-title {
    font-size: 22px;
    color: #191e25;
    text-align: center;
    margin-bottom: 12px;
}

#install-doc .download-item-detail {
    display: none;
    flex-direction: column;
    align-items: center;
}

#install-doc .download-item-detail.expand {
    display: flex;
}

#install-doc .download-item-des {
    margin: 15px;
    display: flex;
}

#install-doc .download-item-number {
    width: 16px;
    height: 16px;
    background-color: #e13c31;
    border-radius: 50%;
    font-size: 10px;
    color: white;
    line-height: 16px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

#install-doc .download-item-des-title {
    font-size: 14px;
    color: #333333;
    text-align: center;
    line-height: 20px;
    max-width: 298px;
    margin-left: 6px;
}

#install-doc .download-item-des-title span {
    color: #d56559;
}

#install-doc .download-item-image {
    width: 100%;
}

#install-doc .fix_title {
    text-align: center;
    font-size: 18px;
    color: #333;
    padding-top: 8px;
    padding-bottom: 16px;
}

/* 右下角浮动广告 */
.ad-float-box {
    position: fixed;
    bottom: 205px;
    right: 14px;
    width: 88px;
    height: 88px;
    z-index: 999;
}

@media (min-width: 961px) {
    .ad-float-box {
        display: none !important;
    }
}

.ad-float-box.swiper {
    overflow: hidden;
}

.ad-float-box .swiper-slide a,
.ad-float-box .swiper-slide img {
    width: 100%;
    height: 88px;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: auto;
}

.pc-main .qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pc-main .qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-close {
    position: absolute;
    top: -4px;
    right: 4px;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 2px 4px;
    pointer-events: auto;
}

.toast {
    position: fixed;
    left: 50%;
    top: 46%;
    z-index: 10001;
    transform: translate(-50%, -50%) scale(.96);
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.toast.is-visible {
    animation: toast-in .16s ease-out forwards, toast-hold 1.2s linear .16s forwards, toast-out .22s ease-in 1.36s forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toast-hold { from { opacity: 1; } to { opacity: 1; } }

@keyframes toast-out {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(.98); }
}
