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

/* 搜索区域 */
.search-section {
    text-align: center;
    margin: 2rem 0;
}

.search-section h2 {
    font-size: 2rem;
    color: #1e5631;
    margin-bottom: 1.5rem;
}

.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 input:invalid {
    border-color: red;
}

.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;
}

.advanced-search {
    font-size: 0.9rem;
    color: #666;
}

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

/* 更新区域 */
.updates-section {
    margin-top: 4rem;
}

.updates-section h2 {
    color: #1e5631;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.update-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.update-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.update-card h3 {
    color: #1e5631;
    margin-bottom: 0.5rem;
}

.update-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-section {
        margin: 1.5rem 0;
    }
    .search-section h2 {
        font-size: 1.5rem;
    }
    .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;
    }
    .advanced-search {
        font-size: 0.8rem;
    }
    .updates-section {
        margin-top: 2rem;
    }
    .updates-section h2 {
        font-size: 1.5rem;
    }
    .update-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .update-card {
        padding: 1rem;
    }
}

