@charset "utf-8";

/* ==========================================================================
   Modern Search Page Styles
   ========================================================================== */

:root {
    --primary-color: #0052d9;
    --primary-hover: #003cab;
    --secondary-color: #2ba471;
    --text-main: #1d2129;
    --text-regular: #4e5969;
    --text-light: #86909c;
    --bg-body: #f7f9fc;
    --white: #ffffff;
    --border-color: #f0f2f5;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 82, 217, 0.08);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.search-hero {
    position: relative;
    background: #fff;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.search-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 82, 217, 0.05) 0%, rgba(0, 82, 217, 0.01) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-regular);
    margin-bottom: 40px;
}

/* Search Box */
.big-search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto 24px;
}

.big-search-box input {
    width: 100%;
    height: 64px;
    padding: 0 80px 0 32px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.big-search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.1);
    outline: none;
}

.big-search-box button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.big-search-box button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.hot-keywords {
    font-size: 14px;
    color: var(--text-light);
}

.hot-keywords a {
    color: var(--text-regular);
    margin: 0 6px;
    text-decoration: none;
    transition: var(--transition);
}

.hot-keywords a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: flex;
    gap: 40px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar-area {
    width: 360px;
    flex-shrink: 0;
}

/* Search Header */
.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.result-count {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
}

.result-count span {
    color: var(--primary-color);
    margin: 0 4px;
}

.search-tabs {
    display: flex;
    gap: 8px;
    background: #eef2f7;
    padding: 4px;
    border-radius: 8px;
}

.tab-item {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-regular);
    text-decoration: none;
    transition: var(--transition);
}

.tab-item.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-item:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

/* Search Results */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.result-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.result-icon.news {
    background: rgba(0, 82, 217, 0.1);
    color: var(--primary-color);
}

.result-icon.help {
    background: rgba(43, 164, 113, 0.1);
    color: var(--secondary-color);
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.result-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.result-badge.news {
    background: #e6f0ff;
    color: var(--primary-color);
}

.result-badge.help {
    background: #e3f9e9;
    color: var(--secondary-color);
}

.result-date {
    font-size: 12px;
    color: var(--text-light);
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.result-item:hover .result-title {
    color: var(--primary-color);
}

.result-desc {
    font-size: 14px;
    color: var(--text-regular);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight {
    color: #d93025;
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: #e5e6eb;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-regular);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover, .pagination .active span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .disabled span {
    background: #f7f9fc;
    color: #ccc;
    cursor: not-allowed;
}

/* Sidebar */
.widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.widget-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    .sidebar-area {
        width: 100%;
    }
}
