/* 搜索组件样式 */
.search {
        margin: 15px 0 15px 0;

    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-tip {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.search-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.search-box {
    display: flex;
    height: 36px;
    margin: 0 0 15px 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-right: none;
    padding: 0 15px;
    font-size: 16px; /* 增加到16px或更大，防止iOS自动缩放 */
    outline: none;
    background-color: #fff;
    -webkit-appearance: none; /* 防止iOS默认样式 */
    -moz-appearance: none;
    appearance: none;
    border-radius: 0; /* 防止iOS圆角 */
    /* 禁止缩放 */
    touch-action: manipulation;
}

.search-box button {
    width: 80px;
    height: 100%;
    background-color: #e30613; /* 丹佛斯红色 */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.search-box button:hover {
    background-color: #c20511; /* 红色按钮悬停效果 */
}

.search-hint {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.search-hint a {
    color: #e30613;
    text-decoration: none;
}

/* 搜索结果区域样式 */
.search-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.search-results-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.search-results-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.clear-button-container {
    position: absolute;
    right: 0;
    top: 0;
}

.clear-search-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.clear-search-btn:hover {
    background-color: #e0e0e0;
}

.search-results-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.search-result-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-result-item h4 {
    font-size: 16px;
    font-weight: bold;
    color: #e30613;
    margin: 0 0 10px 0;
}

.search-result-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    display: flex;
}

.search-result-item p span {
    color: #333;
    min-width: 60px;
}

.search-result-item a {
    color: #e30613;
    text-decoration: none;
}

.search-result-source {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-align: right;
}

.no-results {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
    color: #888;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 防止iOS中输入框获取焦点时页面缩放 */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    select,
    textarea,
    input {
        font-size: 16px;
    }
}
