/* 时间显示样式 */
.time-display {
    position: absolute;
    top: 20px;
    font-weight: 700;
    line-height: 1.2;
    z-index: 100;
}

.time-left {
    left: 20px;
    text-align: left;
}

.time-right {
    right: 20px;
    text-align: right;
}

.date {
    font-size: 2.8rem;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text-color);
    /* 亮模式外发光 */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

.weekday {
    font-size: 2.2rem;
    opacity: 0.9;
    color: var(--text-color);
    /* 亮模式外发光 */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

.current-time {
    font-size: 2.8rem;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text-color);
    /* 亮模式外发光 */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

.time-period {
    font-size: 2.2rem;
    opacity: 0.9;
    color: var(--text-color);
    /* 亮模式外发光 */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

/* 暗模式下的外发光效果 */
[data-theme="dark"] .date,
[data-theme="dark"] .weekday,
[data-theme="dark"] .current-time,
[data-theme="dark"] .time-period {
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 0, 0, 0.4);
}

/* 搜索框区域调整 */
.search-container {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-search {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1.3rem;
}

.theme-toggle-search:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .time-display {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .time-left, .time-right {
        position: static;
        display: inline-block;
        margin: 0 15px;
    }
    
    .date {
        font-size: 2.4rem;
        margin-bottom: 6px;
    }
    
    .weekday {
        font-size: 2.0rem;
    }
    
    .current-time {
        font-size: 2.4rem;
        margin-bottom: 6px;
    }
    
    .time-period {
        font-size: 2.0rem;
    }
    
    .search-box {
        gap: 10px;
    }
    
    .theme-toggle-search {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .time-left, .time-right {
        margin: 0 10px;
    }
    
    .date {
        font-size: 2.0rem;
        margin-bottom: 4px;
    }
    
    .weekday {
        font-size: 1.8rem;
    }
    
    .current-time {
        font-size: 2.0rem;
        margin-bottom: 4px;
    }
    
    .time-period {
        font-size: 1.8rem;
    }
    
    .search-box {
        gap: 8px;
    }
    
    .theme-toggle-search {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}