/* Header Styles */
.header {
    width: 100%;
}

.header-top {
    background-color: #238564; /* 保持深林绿色背景 */
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo-text, .logo-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: #fff !important;
    text-decoration: none;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: inline;
}

.logo-text:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* 搜索区域优化 */
.header-search-section {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 20px 25px; /* 减少上下内边距 */
    text-align: center;
    box-sizing: border-box;
}

.search-titles {
    margin-bottom: 20px; /* 减少标题下方间距 */
}

.search-titles h1 {
    font-size: 28px; /* 稍微缩小字号 */
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.search-titles p {
    font-size: 15px; /* 稍微缩小字号 */
    color: #666;
    margin: 0;
}

.search-form-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    padding: 6px 6px 6px 20px; /* 减少内边距 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    max-width: 650px; /* 稍微缩小最大宽度 */
    margin: 0 auto;
    border: 2px solid #238564;
}

.search-form-container:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-width: 2px; /* 保持 2px，避免抖动，通过颜色和投影区分 */
}

.search-input-new {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px; /* 稍微缩小字号 */
    padding: 10px 0;
    color: #333;
    background: transparent;
}

.search-submit-btn {
    background: #238564;
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-submit-btn:hover {
    background: #1a6d51;
}

.search-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* 热门搜索 */
.hot-searches {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 减少间距 */
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hot-searches span {
    color: #888;
    font-size: 13px;
    line-height: 26px;
}

.hot-tag {
    color: #238564;
    font-size: 12px; /* 缩小字号 */
    text-decoration: none;
    padding: 2px 12px; /* 减少内边距 */
    background: #f0f7f4;
    border-radius: 15px;
    transition: all 0.2s;
    line-height: 22px;
    border: 1px solid transparent;
}

.hot-tag:hover {
    background: #238564;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }

    .logo-text, .logo-text h1 {
        font-size: 20px;
    }
    
    .subtitle {
        display: none;
    }

    .header-search-section {
        padding: 5px 15px 15px; /* 移动端更加紧凑 */
        margin-bottom: 5px;
    }

    .search-titles h1 {
        font-size: 22px; /* 移动端缩小字号 */
        margin-bottom: 5px;
    }

    .search-titles p {
        font-size: 13px;
    }

    .search-titles {
        margin-bottom: 15px;
    }
    
    .search-form-container {
        padding: 4px 4px 4px 15px; /* 减少移动端搜索框内边距 */
    }
    
    .search-input-new {
        font-size: 14px;
    }
    
    .search-submit-btn {
        padding: 8px 15px;
        font-size: 13px;
        gap: 5px;
    }
    
    .search-submit-btn svg {
        width: 14px;
        height: 14px;
    }

    .hot-searches {
        margin-top: 10px;
        gap: 5px; /* 移动端热门搜索更加紧凑 */
    }

    .hot-tag {
        padding: 1px 10px;
        font-size: 11px;
    }
}

/* 分页样式优化 (从原admin.css迁移) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.pagination .current {
    background-color: #238564;
    border-color: #238564;
    color: #ffffff;
}

.pagination .disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background-color: #f9fafb;
}
