/* 侧栏动态时钟 */
.dynamic-clock {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: 'Microsoft YaHei', sans-serif;
    position: relative;
    overflow: hidden;
}

.dynamic-clock::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: zm-clock-rotate 20s linear infinite;
    z-index: 0;
}

@keyframes zm-clock-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clock-container {
    position: relative;
    z-index: 1;
}

.year-display {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 5px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.time-section {
    text-align: center;
    margin-bottom: 12px;
}

.time-display {
    font-size: 3em;
    font-weight: 300;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-display span {
    margin: 0 3px;
}

.time-display .colon {
    animation: zm-clock-pulse 1s infinite;
    position: relative;
    top: -3px;
}

@keyframes zm-clock-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.date-section {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.date-item {
    text-align: center;
    flex: 1;
}

.date-label {
    font-size: 0.75em;
    opacity: 0.8;
    margin-bottom: 4px;
}

.date-value {
    font-weight: 600;
    font-size: 0.95em;
}

.greeting-section {
    text-align: center;
    margin: 15px 0 5px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.greeting-text {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 6px;
}

.greeting-tip {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 10px;
}

.next-festival {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9em;
}

.festival-message {
    font-weight: 600;
}

/* 暗色模式适配 */
[data-theme="dark"] .dynamic-clock,
body.dark-theme .dynamic-clock {
    background: linear-gradient(135deg, #434343, #1a1a2e);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
