* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    background-attachment: fixed;
    color: #e0e7f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: rgba(25, 35, 50, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(100, 150, 200, 0.15);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #8f41e9 0%, #578aef 50%, #6bc5f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(143, 65, 233, 0.2);
}

.logo i {
    font-size: 28px;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 8px 20px;
    background: rgba(47, 79, 110, 0.7);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 6px;
    color: #c2d1dd;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(67, 99, 140, 0.9);
    color: #fff;
    border-color: #578aef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 138, 239, 0.2);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
/* 为 search-section 添加容器包装 */
.search-section-wrapper {
    flex: 1; /* 占据所有可用空间 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    width: 100%;
    min-height: 60vh; /* 最小高度，确保有足够空间 */
}
/* 搜索区域 */
.search-section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.search-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #8f41e9 0%, #578aef 50%, #6bc5f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(143, 65, 233, 0.2);
}

.search-subtitle {
    font-size: 18px;
    color: #a8c6e0;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.search-container {
    display: flex;
    width: 100%;
    background: linear-gradient(145deg, rgba(25, 35, 50, 0.9), rgba(20, 30, 45, 0.9));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 150, 200, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

.search-container:focus-within {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    border-color: rgba(143, 65, 233, 0.5);
}

.search-input {
    flex: 1;
    padding: 20px 25px;
    border: none;
    font-size: 17px;
    color: #e0e7f7;
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: #8a9ba8;
}

.search-button {
    padding: 0 35px;
    background: linear-gradient(135deg, #8f41e9 0%, #578aef 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #9a51f9 0%, #679aff 100%);
    box-shadow: 0 4px 15px rgba(143, 65, 233, 0.3);
}

/* 搜索结果区域 */
.results-section {
    width: 100%;
    max-width: 900px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results-section.show {
    opacity: 1;
    transform: translateY(0);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.15);
}

.results-title {
    font-size: 22px;
    font-weight: 600;
    color: #e0e7f7;
}

.results-count {
    font-size: 15px;
    color: #8bb4ff;
    background: rgba(87, 138, 239, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(87, 138, 239, 0.3);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-item {
    background: linear-gradient(145deg, rgba(25, 35, 50, 0.9), rgba(20, 30, 45, 0.9));
    border-radius: 12px;
    padding: 25px 30px;
    border: 1px solid rgba(100, 150, 200, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #8f41e9, #578aef);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(143, 65, 233, 0.5);
}

.article-item:hover::before {
    opacity: 1;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e7f7;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-item:hover .article-title {
    color: #8f41e9;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #8a9ba8;
    font-size: 14px;
    font-weight: 500;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: #578aef;
    font-size: 16px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #8a9ba8;
}

.empty-icon {
    font-size: 70px;
    background: linear-gradient(135deg, #8f41e9, #578aef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #e0e7f7;
    font-weight: 600;
}

.empty-text {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    color: #a8c6e0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 25px;
    color: #8a9ba8;
    font-size: 14px;
    border-top: 1px solid rgba(100, 150, 200, 0.15);
    margin-top: 20px;
    background: rgba(25, 35, 50, 0.8);
    backdrop-filter: blur(10px);
}
