/* 北京时间挂钟
   机身边框与「ANGELS」铭牌来自开源项目 ZZZ-Idol-Desktop-Pet 的番茄钟窗口，
   这里只保留机身 + 屏幕，屏幕里换成北京时间。 */

.clock-card {
    display: flex;
    justify-content: center;
    padding: 26px 0 30px;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.clock-card.glass {
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.hero__clock .clock-card {
    padding: 0;
    width: 100%;
}

.clock-card::before {
    display: none;
}

/* 1:1 的占位盒子，设备在里面按需缩放（JS 写 --clock-k） */
.clock-wrap {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.clock-device {
    --pink-100: #ffd0e5;
    --pink-300: #f58abc;
    --mint: #6fe0cb;
    --mint-ink: #2f4a44;
    --text: #ffe7f2;
    --muted: #bcafd4;
    position: absolute;
    top: 0;
    left: 0;
    width: 440px;
    height: 440px;
    transform: scale(var(--clock-k, 1));
    transform-origin: top left;
    color: var(--text);
    font-family: Inter, "SF Pro Display", "PingFang SC", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 26px 50px rgba(4, 6, 14, 0.55));
}

.pomodoro-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* 屏幕光效：和机身图里的深蓝屏幕严格对齐 */
.pomodoro-screen-glow {
    position: absolute;
    left: 9.7%;
    top: 10.05%;
    width: 66.9%;
    height: 59.4%;
    z-index: 1;
    border-radius: 4px;
    pointer-events: none;
    background:
        linear-gradient(104deg, rgba(255, 255, 255, 0.07) 0 16%, transparent 42%),
        radial-gradient(128% 98% at 104% -12%, rgba(214, 106, 156, 0.34), transparent 56%),
        radial-gradient(118% 88% at -12% 106%, rgba(89, 220, 197, 0.18), transparent 58%),
        linear-gradient(168deg, rgba(35, 38, 69, 0.35), rgba(20, 22, 40, 0.4));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        inset 0 10px 26px rgba(4, 6, 20, 0.5),
        inset 0 -8px 20px rgba(4, 6, 20, 0.42);
}

.pomodoro-screen {
    position: absolute;
    left: 10.6%;
    top: 11.5%;
    width: 65.2%;
    height: 57.1%;
    z-index: 2;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.clock-brand {
    margin: 0 0 2px;
    color: rgba(255, 231, 242, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.clock-time {
    margin: 0;
    background: linear-gradient(180deg, #ffffff 6%, var(--pink-100) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 62px;
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: 0.005em;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 5px 16px rgba(245, 138, 188, 0.35));
}

.clock-date {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.clock-zone {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 7px 0 0;
    color: rgba(255, 231, 242, 0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.clock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(111, 224, 203, 0.55);
    animation: clock-pulse 2.4s ease-in-out infinite;
}

@keyframes clock-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(111, 224, 203, 0.55);
        opacity: 0.85;
    }
    50% {
        box-shadow: 0 0 0 5px rgba(111, 224, 203, 0);
        opacity: 1;
    }
}

/* 底部薄荷条：三段静态文字，替换原来那排按钮 */
.pomodoro-footer {
    position: absolute;
    left: 10.2%;
    top: 80.6%;
    width: 65.8%;
    height: 8%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pomodoro-footer span {
    color: var(--mint-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.pomodoro-footer span:nth-child(2) {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(47, 74, 68, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .clock-dot {
        animation: none;
    }
}

@media print {
    .clock-card {
        display: none;
    }
}
