/*PC端日期选择器 k*/ 
  

 /* 日期选择器容器 */
.date-picker {
    width: 300px;
    /*border-radius: 12px;*/
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    float: none;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* 头部容器 */
.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 选择器基础样式 */
.year-selector,
.month-selector {
    position: relative;
    user-select: none;
}

/* 触发器样式优化 */
.select-trigger {
    height: 1.85185rem;
    line-height: 1.85185rem;
    padding: 0 32px 0 16px;
    border: 1.5px solid #ebedf0;
    border-radius: 8px;
    font-size: 16px;
    color: #1f2329;
    background: #fff;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.select-trigger:hover {
    border-color: #165DFF;
    color: #165DFF;
}



/* 下拉箭头优化 */
.select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #86909c;
    border-bottom: 2px solid #86909c;
    transform: translateY(-70%) rotate(45deg);
    transition: all 0.2s ease;
}

.select-trigger:hover::after {
    border-color: #165DFF;
}

/* 下拉列表样式优化 */
.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 380px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    overflow-y: auto;
}

.select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: #e5e6eb;
    border-radius: 3px;
}

.select-dropdown.active {
    display: block;
    animation: dropdown-in 0.2s ease;
}

/* 下拉选项样式 */
.select-dropdown li {
    padding: 10px 12px;
    font-size: 16px;
    color: #4e5969;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-dropdown li:hover {
    background-color: #f2f3f5;
    color: #165DFF;
}

.select-dropdown li.active {
    background-color: #007bff;
    color: #fff;
}

.select-dropdown li.selected {
    color: #165DFF;
    font-weight: 500;
    background-color: #e8f3ff;
}

/* 月份切换按钮优化 */
.month-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f3f5;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-btn:hover {
    background: #e8f3ff;
}

.month-btn.prev::before,
.month-btn.next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-width: 2px;
    border-style: solid;
    transition: border-color 0.2s ease;
}

.month-btn.prev::before {
    border-color: transparent transparent #4e5969 #4e5969;
    transform: translate(-25%, -50%) rotate(45deg);
}

.month-btn.next::before {
    border-color: #4e5969 #4e5969 transparent transparent;
    transform: translate(-75%, -50%) rotate(45deg);
}

.month-btn:hover::before {
    border-color: #165DFF #165DFF transparent transparent;
}

.month-btn.prev:hover::before {
    border-color: transparent transparent #165DFF #165DFF;
}

/* 选择器宽度调整 */
.year-selector .select-trigger {
    width: 120px;
}

.month-selector .select-trigger {
    width: 95px;
}

/* 动画效果 */
@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 月份选择器组样式 */
.month-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    /* 移除 left: 0; */
    /* 移除 width: 100%; */
    max-height: 380px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    overflow-y: auto;
}
.month-selector2 {
    position: relative;
    user-select: none;
}
/* 为月份选择器的下拉框添加特定样式 */
.month-selector .select-dropdown {
    /*left: 40px; 调整左侧位置，跳过左箭头按钮 */
    width: 100%; /* 与月份选择框同宽 */
}

/* 为年份选择器的下拉框添加特定样式 */
.year-selector .select-dropdown {
    left: 0;
    /*width: 100px;  与年份选择框同宽 */
    padding-left: 0px;
}

/* 添加蒙层样式 */
.date-overlay {
    display: none; /* 默认情况下隐藏蒙层 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    display: none;
    z-index: 800;
}

/* 修改 date-picker 样式确保在蒙层之上 */
.date-picker {
    position: relative;
}

/* 修改下拉框样式 */
.select-dropdown {
    z-index: 1001;
    /* 添加滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #a2a4af transparent;
}

/* 添加展开状态的触发器样式 */
.select-trigger.active {
    border-color: #165DFF;
    color: #165DFF;
}

.select-trigger.active::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: #165DFF;
}

.select-dropdown.active{z-index: 805;}
.select-trigger.active{z-index: 805;}


/*PC端日期选择器 J*/