/* 中文源码说明：统一全球展会日期筛选器的年份切换、月份网格和响应式外观。 */

.date-filter-group {
    min-width: 0;
}

.date-filter-title {
    gap: 12px;
}

.date-filter-title > span {
    white-space: nowrap;
}

.date-filter-title .reset-date-btn {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    margin: 0 !important;
    padding: 3px 9px !important;
    border: 1px solid rgba(203, 161, 116, 0.55);
    border-radius: 999px;
    background: rgba(203, 161, 116, 0.08);
    color: #a97848;
    font: inherit;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    transform: none !important;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.date-filter-title .reset-date-btn:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold) !important;
    color: #fff !important;
}

.date-filter-title .reset-date-btn:focus-visible {
    outline: 3px solid rgba(203, 161, 116, 0.25);
    outline-offset: 2px;
}

.date-filter-group .inline-calendar-container,
.date-filter-group .flatpickr-wrapper {
    display: block;
    width: 100%;
}

.date-filter-group .events-month-picker.flatpickr-calendar {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: var(--text-primary) !important;
}

.date-filter-group .events-month-picker .flatpickr-months {
    display: none !important;
}

.date-filter-group .events-month-picker .flatpickr-innerContainer,
.date-filter-group .events-month-picker .flatpickr-rContainer {
    display: block !important;
    width: 100% !important;
}

.event-year-switcher {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    box-sizing: border-box;
}

.event-year-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.event-year-button svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
}

.event-year-button:hover {
    border-color: #e2e8f0;
    background: #fff;
    color: #a97848;
}

.event-year-button:active {
    transform: scale(0.94);
}

.event-year-button:focus-visible {
    outline: 3px solid rgba(203, 161, 116, 0.25);
    outline-offset: 1px;
}

.event-year-value {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    white-space: nowrap;
}

.date-filter-group .events-month-picker .flatpickr-monthSelect-months {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.date-filter-group .events-month-picker .flatpickr-monthSelect-month {
    display: flex !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #64748b !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.date-filter-group .events-month-picker .flatpickr-monthSelect-month:hover,
.date-filter-group .events-month-picker .flatpickr-monthSelect-month:focus {
    border-color: rgba(203, 161, 116, 0.75) !important;
    background: #fffcf8 !important;
    color: #8c6b4a !important;
    outline: 0;
    transform: translateY(-1px);
}

.date-filter-group .events-month-picker .flatpickr-monthSelect-month.today {
    border-color: #cbd5e1 !important;
}

.date-filter-group .events-month-picker .flatpickr-monthSelect-month.selected {
    border-color: var(--accent-gold) !important;
    background: var(--accent-gold) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 12px rgba(203, 161, 116, 0.22) !important;
    transform: none;
}

@media (max-width: 767px) {
    .event-year-switcher {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .event-year-button {
        width: 42px;
        height: 40px;
    }

    .event-year-value {
        line-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-year-button,
    .date-filter-group .events-month-picker .flatpickr-monthSelect-month {
        transition: none !important;
    }
}
