/* search.css (search.html 专属样式) */

.search-container {
    text-align: center;
}
.search-container h1 {
    margin-bottom: 1.5rem;
    color: #1e5631;
}

.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 3rem 0;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.search-box input {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}

.search-box button {
    padding: 12px 20px;
    background-color: #2c7a3e;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box button:hover {
    background-color: #1e5631;
}

/* search页面的搜索框特定样式 */
.search-container .search-box input {
    min-width: unset;
}

.search-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.search-options input[type="radio"] {
    display: none;
}

.search-options label {
    padding: 0.5rem 1.2rem;
    background-color: #dcdcdc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #000;
}

.search-options input[type="radio"]:checked + label {
    background-color: #2c7a3e;
    color: white;
}

.search-options label:hover {
    background-color: #e0e0e0;
}

.search-options input[type="radio"]:checked + label:hover {
    background-color: #1e5631;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    .search-box input {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 0.8rem;
    }
    .search-box button {
        width: 100%;
        border-radius: 30px;
    }
    .search-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

