body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 4s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100px);
    }
}

.clock-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 40px;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2),
        0 0 10px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.time-section {
    display: flex;
    gap: 2rem;
}

.time-group {
    text-align: center;
}

.label {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #aaa, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {

    0%,
    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }

    50% {
        background-position: 100% 50%;
        transform: scale(1.1);
    }
}

.time-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    color: #fff;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.time-box:hover {
    transform: scale(1.1) translateY(-10px) rotate(2deg);
    box-shadow:
        0 20px 35px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2),
        0 0 50px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
}

.time-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-box:hover::after {
    opacity: 1;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.time-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
    filter: blur(3px);
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

.date-section {
    margin-top: 3rem;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff;
    animation: starTwinkle 1s infinite;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.5);
    }
}

.icp {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    z-index: 100;
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.icp:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
}

.blessing-section {
    margin-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

.blessing {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(120deg, #ffd700, #fff, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* 修改移动端适配样式 */
@media screen and (max-width: 768px) {
    body {
        min-height: 100vh;
        /* 确保在移动端也能充满屏幕 */
    }

    .clock-container {
        padding: 2rem 1.5rem;
        border-radius: 25px;
        width: 85%;
        max-width: none;
        margin: 1rem;
        animation: none;
        /* 移除浮动动画 */
    }

    .time-section {
        flex-direction: row;
        /* 保持水平排列 */
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
        /* 允许在需要时换行 */
    }

    .time-group {
        flex-direction: column;
        align-items: center;
        min-width: 80px;
        /* 确保每组有最小宽度 */
    }

    .label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        width: auto;
    }

    .time-box {
        padding: 0.6rem 0.8rem;
        font-size: 2.8rem;
        border-radius: 15px;
        min-width: 60px;
        /* 确保数字框有固定最小宽度 */
        text-align: center;
    }

    /* 移除悬停效果，改为点击效果 */
    .time-box:hover {
        transform: none;
    }

    .time-box:active {
        transform: scale(0.95);
        transition: transform 0.2s;
    }

    .date-section {
        margin-top: 1.2rem;
        font-size: 1.1rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }

    .blessing-section {
        margin-top: 1.2rem;
        padding: 0 1rem;
    }

    .blessing {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0;
    }

    /* 调整ICP备案显示 */
    .icp {
        /* 移除所有样式，使用上面统一定义的样式 */
    }

    /* 优化星星效果 */
    .stars {
        opacity: 0.3;
        /* 降低星星亮度 */
    }
}

/* 调整超小屏幕的适配 */
@media screen and (max-width: 360px) {
    .clock-container {
        padding: 1.2rem 1rem;
        width: 90%;
    }

    .time-section {
        gap: 0.6rem;
    }

    .time-group {
        min-width: 70px;
    }

    .time-box {
        padding: 0.5rem 0.6rem;
        font-size: 2.4rem;
        min-width: 50px;
    }

    .label {
        font-size: 0.8rem;
    }

    .date-section {
        font-size: 1rem;
    }

    .blessing {
        font-size: 0.85rem;
    }
}

/* 添加横屏模式的特殊处理 */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .clock-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .time-section {
        gap: 1rem;
    }

    .time-box {
        padding: 0.4rem 0.8rem;
        font-size: 2.2rem;
    }

    .date-section {
        margin-top: 0.8rem;
    }

    .blessing-section {
        margin-top: 0.8rem;
    }

    .icp {
        bottom: 5px;
    }
}