/* 搜索选择组件样式 */
.jq-search-select {
    font-family: patpat-Light, sans-serif;
    position: relative;
}

.jq-search-select-input {
    width: 100%;
    padding: 14px 36px 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
    cursor: pointer;

    /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);*/
}

.jq-search-select-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.jq-search-select-arrow.close {
    display: none;
}

.jq-search-select-arrow {
    width: 15px;
    height: 15px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    transition: transform 0.2s ease;
    font-size: 14px;
}

/* iOS风格全屏选择器样式 */
.jq-search-select-modal {
    font-family: patpat-Light, sans-serif;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jq-search-select-modal.active {
    display: block;
    opacity: 1;
}

.jq-search-select-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 20px 20px 0 0;
    max-height: 80%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.jq-search-select-modal.active .jq-search-select-modal-content {
    transform: translateY(0);
}

/* 顶部手柄 */
.jq-search-select-modal-handle {
    height: 5px;
    width: 50px;
    background-color: #e5e7eb;
    border-radius: 3px;
    margin: 10px auto;
}

.jq-search-select-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.jq-search-select-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
}

.jq-search-select-modal-close,
.jq-search-select-modal-done {
    font-size: 16px;
    color: #3b82f6;
    cursor: pointer;
    padding: 8px 12px;
    font-weight: 500;
}

.jq-search-select-modal-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.jq-search-select-modal-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    background-color: #f9fafb;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease;
}

.jq-search-select-modal-search input:focus {
    border-color: #3b82f6;
}

.jq-search-select-modal-options {
    /*max-height: calc(80vh - 120px);*/
    height: calc(80vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.jq-search-select-modal-option {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.jq-search-select-modal-option:last-child {
    border-bottom: none;
}

.jq-search-select-modal-option:hover {
    background-color: #f9fafb;
}

.jq-search-select-modal-option.selected {
    background-color: #e0edff;
    color: #1e40af;
    font-weight: 500;
}

.jq-search-select-modal-option.selected::after {
    content: "✓";
    margin-left: auto;
    font-size: 16px;
}

.jq-search-select-modal-no-results {
    padding: 40px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
}

/* 桌面端样式 */
@media (min-width: 600px) {
    .jq-search-select-modal-content {
        max-width: 420px;
        left: 50%;
        transform: translate(-50%, 100%);
        border-radius: 20px;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, 100%);
    }

    .jq-search-select-modal.active .jq-search-select-modal-content {
        transform: translate(-50%, -50%);
    }

    .jq-search-select-modal-options {
        /*max-height: 400px;*/
        height: 400px;
    }
}
