/* 节假日模块样式 - 深色/白色双模式支持 */

/* ========== 基础容器样式 ========== */
.calendar-holidays {
    background: rgba(30, 30, 40, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* 白色模式 */
.light-skin .calendar-holidays {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== 标题区域 ========== */
.holidays-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.light-skin .holidays-header {
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.holidays-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(238, 187, 85, 0.5);
    letter-spacing: 1px;
}

.light-skin .holidays-title {
    color: #333;
    text-shadow: none;
}

/* ========== 切换按钮组 ========== */
.holidays-mode-switch {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
}

.light-skin .holidays-mode-switch {
    background: rgba(0, 0, 0, 0.05);
}

.holidays-mode-btn {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.holidays-mode-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.holidays-mode-btn.active {
    background: linear-gradient(135deg, var(--gold), #d4a574);
    border-color: var(--gold);
    color: #000;
    box-shadow: 0 2px 8px rgba(238, 187, 85, 0.4);
    font-weight: 700;
}

/* 白色模式按钮 - 使用金色渐变 */
.light-skin .holidays-mode-btn {
    background: linear-gradient(135deg, rgba(238,223,204,0.9) 0%, rgba(212,186,155,0.85) 100%);
    border: 2px solid rgba(154,124,84,0.5);
    color: #5a4a35;
    box-shadow: 0 1px 3px rgba(154,124,84,0.2), inset 0 1px 1px rgba(255,255,255,0.7);
    font-weight: 700;
}

.light-skin .holidays-mode-btn:active {
    background: linear-gradient(135deg, rgba(212,186,155,0.95) 0%, rgba(201,169,110,0.9) 100%);
    box-shadow: 0 1px 3px rgba(154,124,84,0.3), inset 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(1px);
}

.light-skin .holidays-mode-btn.active {
    background: linear-gradient(135deg, #c9a96e, #9a7c54);
    border: 2.5px solid #9a7c54;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(154,124,84,0.5), inset 0 1px 2px rgba(255,255,255,0.3);
    font-weight: 800;
}

/* ========== 节假日列表 ========== */
.holidays-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* PC端显示滚动条 */
@media (min-width: 769px) {
    .holidays-list {
        max-height: 450px;
        overflow-y: auto;
        padding-right: 8px;
    }

    /* 滚动条样式 */
    .holidays-list::-webkit-scrollbar {
        width: 6px;
    }

    .holidays-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .holidays-list::-webkit-scrollbar-thumb {
        background: rgba(238, 187, 85, 0.4);
        border-radius: 3px;
    }

    .holidays-list::-webkit-scrollbar-thumb:hover {
        background: rgba(238, 187, 85, 0.6);
    }

    .light-skin .holidays-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .light-skin .holidays-list::-webkit-scrollbar-thumb {
        background: rgba(154, 124, 84, 0.3);
    }

    .light-skin .holidays-list::-webkit-scrollbar-thumb:hover {
        background: rgba(154, 124, 84, 0.5);
    }
}

/* 手机端不显示滚动条，直接铺开所有内容 */
@media (max-width: 768px) {
    .holidays-list {
        max-height: none;
        overflow-y: visible;
    }
}

/* ========== 节假日项目 ========== */
.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.holiday-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: translateX(4px);
    box-shadow: -4px 0 12px rgba(238, 187, 85, 0.3);
}

.light-skin .holiday-item {
    background: linear-gradient(135deg, rgba(238,223,204,0.5), rgba(230,215,195,0.4));
    border: 2px solid rgba(154,124,84,0.3);
}

.light-skin .holiday-item:hover {
    background: linear-gradient(135deg, rgba(230,215,195,0.7), rgba(220,200,175,0.6));
    border-color: rgba(154,124,84,0.6);
    box-shadow: -4px 0 8px rgba(154,124,84,0.25);
}

/* 法定节假日特殊样式 - 深色模式使用金色 */
.holiday-item.legal {
    background: linear-gradient(135deg, rgba(238,223,204,0.15), rgba(230,215,195,0.1));
    border: 2px solid rgba(238,187,85,0.4);
}

.holiday-item.legal:hover {
    background: linear-gradient(135deg, rgba(230,215,195,0.25), rgba(220,200,175,0.18));
    border-color: rgba(238,187,85,0.6);
    box-shadow: -4px 0 12px rgba(238,187,85,0.35);
}

.light-skin .holiday-item.legal {
    background: linear-gradient(135deg, rgba(255, 200, 200, 0.6), rgba(255, 180, 180, 0.4));
    border-color: rgba(255, 100, 100, 0.4);
}

.light-skin .holiday-item.legal:hover {
    background: linear-gradient(135deg, rgba(255, 180, 180, 0.8), rgba(255, 150, 150, 0.6));
    border-color: rgba(255, 77, 79, 0.6);
    box-shadow: -4px 0 8px rgba(255, 77, 79, 0.3);
}

/* ========== 左侧信息 ========== */
.holiday-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.holiday-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(238, 187, 85, 0.4);
}

.holiday-item.legal .holiday-name {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(238, 187, 85, 0.5);
    font-weight: 800;
}

.light-skin .holiday-name {
    color: #9a7c54;
    text-shadow: none;
    font-weight: 800;
}

.light-skin .holiday-item.legal .holiday-name {
    color: #d63031;
    text-shadow: none;
}

.holiday-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.light-skin .holiday-date {
    color: rgba(90, 74, 53, 0.7);
}

/* ========== 右侧倒计时 ========== */
.holiday-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.holiday-countdown {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(238, 187, 85, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(238, 187, 85, 0.4);
}

.holiday-item.legal .holiday-countdown {
    color: var(--gold);
    background: rgba(238, 187, 85, 0.2);
    text-shadow: 0 0 6px rgba(238, 187, 85, 0.5);
    font-weight: 800;
}

.light-skin .holiday-countdown {
    color: #9a7c54;
    background: rgba(201, 169, 110, 0.3);
    text-shadow: none;
    font-weight: 800;
}

.light-skin .holiday-item.legal .holiday-countdown {
    color: #d63031;
    background: rgba(214, 48, 49, 0.2);
}

.holiday-vacation {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.light-skin .holiday-vacation {
    color: rgba(90, 74, 53, 0.6);
}

/* ========== 空状态 ========== */
.holidays-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.light-skin .holidays-empty {
    color: rgba(0, 0, 0, 0.35);
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .calendar-holidays {
        padding: 16px;
    }

    .holidays-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .holidays-title {
        font-size: 16px;
        text-align: center;
    }

    .holidays-mode-switch {
        width: 100%;
        justify-content: center;
    }

    .holidays-mode-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
    }

    .holidays-list {
        gap: 10px;
    }

    .holiday-item {
        padding: 12px 14px;
    }

    .holiday-item:hover {
        transform: none;
    }

    .holiday-item:active {
        transform: scale(0.98);
    }

    .holiday-name {
        font-size: 15px;
    }

    .holiday-date {
        font-size: 12px;
    }

    .holiday-countdown {
        font-size: 14px;
        padding: 5px 10px;
    }

    .holiday-vacation {
        font-size: 11px;
    }
}

/* ========== PC端优化 ========== */
@media (min-width: 769px) {
    .holiday-item {
        padding: 16px 18px;
    }

    .holiday-name {
        font-size: 17px;
    }
}
