.search-form-container {
    border-radius: var(--radius-10, 10px);
    background: linear-gradient(0deg, #FFF 92.09%, #E2F0FF 102.14%), #FFF;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    align-items: center;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group label {
    flex-shrink: 0;
    width: 70px;
    text-align: right;
    margin-right: 12px;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select,
.date-range-picker {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #DCDFE6;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #606266;
    box-sizing: border-box;
  
}

.form-group input::placeholder,
.date-range-picker::placeholder {
    color: #C0C4CC;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.form-group.date-range {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}

.date-range-inputs {
    width: 100%;
    position: relative;
}

/* 新增：用于模拟输入框的容器 */
.date-range-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /* height: 38px; */
    padding: 9px 12px;
    border: 1px solid #DCDFE6;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    color: #C0C4CC;
}

/* 当选择了日期后，通过JS添加此类来切换z-index */
.date-range-picker-container.has-value .placeholder-text {
    z-index: -1; /* 将占位符置于底层 */
}

/* 为占位符文本设置 z-index */
.placeholder-text {
    font-size: 14px;

    color: #606266;
    z-index: 2;
    position: relative;
}

/* 实际的flatpickr输入框，透明覆盖在容器上 */
.date-range-picker {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: #606266; /* 显示选中的日期文字 */
    padding-right: 36px; /* 为日历图标留出空间 */
    font-size: 14px;
    z-index: -1; /* 确保输入框在占位符下面 */
}

.date-range-inputs .date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #C0C4CC;
    pointer-events: none;
    font-size: 16px;
    z-index: 2; /* 确保图标在透明输入框之上 */
}

/* flatpickr 样式适配 */
.date-range-picker {
    padding-right: 36px; /* 为日历图标留出空间 */
}

/* flatpickr 弹出层在 z-index 上置于弹窗之上 */
.flatpickr-calendar {
    z-index: 99999;
}

.form-row-combined {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-row-combined .form-group {
    display: flex;
    align-items: center;
}

.form-row-combined .form-group .input-wrapper {
    flex-grow: 1;
}

.year-issue-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.search-button-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.search-submit-btn {
    background-color: #3A84E0;
    color: white;
    border: none;
    padding: 10px 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-submit-btn:hover {
    background-color: #3375c6;
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group label {
        margin-bottom: 8px;
        width: auto;
    }

    .form-group.date-range .date-range-inputs {
        grid-template-columns: 1fr;
    }

    /* .date-range-inputs .separator {
        display: none;
    } */

    .form-row-combined {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row-combined .form-group {
        flex-direction: column;
        align-items: stretch;
    }
}
