/* ===== 日历弹出层样式 (calendar-range-picker.css) ===== */
.crp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
.crp-overlay.active {
    visibility: visible;
    opacity: 1;
}
.crp-popup {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(0, 0, 0, 0.05);
    width: 420px;
    max-width: 92vw;
    padding: 22px 24px 28px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.crp-overlay.active .crp-popup {
    transform: scale(1);
}
/* 关闭按钮 */
.crp-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 40px;
    background: #f2f4f8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
    padding: 0;
}
.crp-close-btn:hover {
    background: #e2e6ec;
}
.crp-close-btn:active {
    background: #d0d7e2;
}
/* 日历卡片内部 (沿用之前样式，微调以适应弹窗) */
.crp-calendar-card {
    width: 100%;
}
.crp-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
    padding-right: 20px; /* 为关闭按钮留出空间 */
}
.crp-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.crp-month-year {
    font-size: 18px;
    font-weight: 500;
    color: #1e1e1e;
}
.crp-nav-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    color: #3a3a3a;
    transition: background 0.2s;
    line-height: 1;
    font-weight: 300;
}
.crp-nav-btn:hover {
    background: #f0f0f0;
}
.crp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}
.crp-weekday {
    font-size: 14px;
    font-weight: 500;
    color: #7a7a7a;
    padding: 8px 0 6px;
}
.crp-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 16px;
}
.crp-day-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: #1e1e1e;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.15s, color 0.1s;
    background: transparent;
    position: relative;
    z-index: 1;
}
.crp-day-cell.empty {
    pointer-events: none;
    background: transparent;
    color: transparent;
}
.crp-day-cell.disabled {
    color: #b0b7c3;
    background: transparent;
    pointer-events: none;
    cursor: not-allowed;
    text-decoration: line-through 1px rgba(176, 183, 195, 0.3);
    opacity: 0.6;
}
.crp-day-cell:not(.empty):not(.disabled):hover {
    background: #f0f4ff;
}
.crp-day-cell.in-range {
    background: #ffeee6;
    color: #1e1e1e;
    border-radius: 0;
}
.crp-day-cell.range-start,
.crp-day-cell.range-end {
    background: #EF6214 !important;
    color: white !important;
    font-weight: 500;
    border-radius: 40px !important;
    z-index: 3;
}
.crp-day-cell.range-start.range-end {
    border-radius: 40px !important;
}
.crp-day-cell.in-range:not(.range-start):not(.range-end) {
    border-radius: 0;
}
.crp-day-cell.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: #EF6214;
    border-radius: 50%;
}
.crp-range-info {
    background: #f8f9fc;
    padding: 12px 14px;
    border-radius: 18px;
    margin: 8px 0 18px;
    font-size: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #edf0f5;
}
.crp-range-text {
    font-weight: 450;
}
.crp-clear-range {
    color: #8a8f99;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    background: transparent;
    transition: all 0.15s;
}
.crp-clear-range:hover {
    background: #eaeef5;
    color: #1e1e1e;
}
.crp-action-buttons {
    display: flex;
    gap: 12px;
}
.crp-btn {
    flex: 1;
    padding: 14px 10px;
    border-radius: 48px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #ffffff;
    color: #1a1e2b;
    border: 1px solid #d0d7e5;
}
.crp-btn-confirm {
    background: #EF6214;
    color: white;
    border: 1px solid #EF6214;
    box-shadow: 0 4px 8px rgba(26, 92, 255, 0.12);
}
.crp-btn-confirm:hover {
    background: #0e4ad0;
    border-color: #0e4ad0;
}
.crp-hint {
    font-size: 13px;
    color: #8e98a3;
    margin-top: 10px;
    text-align: center;
}
.crp-btn:active {
    transform: scale(0.98);
}