/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
}

/* 动态海洋科技风背景 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a192f, #112940, #0f3460);
    overflow: hidden;
    z-index: -1;
}
.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 45%;
    background: rgba(30, 136, 229, 0.1);
    animation: wave 20s linear infinite;
}
.wave:nth-child(1) {
    top: -150%;
    left: -50%;
    animation-duration: 15s;
}
.wave:nth-child(2) {
    top: -140%;
    left: -50%;
    animation-duration: 25s;
    animation-delay: 2s;
}
.wave:nth-child(3) {
    top: -130%;
    left: -50%;
    animation-duration: 20s;
    animation-delay: 5s;
}
.glow-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(100, 181, 246, 0.8);
    border-radius: 50%;
    animation: glow 3s infinite alternate;
}
@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(100, 181, 246, 0.5); }
    100% { box-shadow: 0 0 15px rgba(100, 181, 246, 0.9); }
}

/* 头部导航 */
header {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(66, 165, 245, 0.3);
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-text {
    color: #e3f2fd;
    font-size: 24px;
    font-weight: 700;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-item {
    color: #bbdefb;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-item:hover {
    color: #e3f2fd;
    background: rgba(66, 165, 245, 0.2);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #42a5f5;
    transition: width 0.3s ease;
}
.nav-item:hover::after {
    width: 100%;
}
.nav-item.active {
    color: #e3f2fd;
    background: rgba(66, 165, 245, 0.2);
}
.nav-item.active::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #e3f2fd;
    background: none;
    border: none;
    cursor: pointer;
}

/* 页面主体样式 */
.search-main {
    width: 90%;
    margin: 40px auto;
    padding-bottom: 80px;
}

/* 页面标题区 */
.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}
.search-title {
    color: #e3f2fd;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(30, 136, 229, 0.4);
}
.search-subtitle {
    color: #bbdefb;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 核心检索区 */
.search-core {
    width: 100%;
    margin-bottom: 60px;
}
.search-box {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(66, 165, 245, 0.3);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.1);
    margin-bottom: 30px;
}
.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    padding: 0 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(66, 165, 245, 0.2);
}
.search-icon {
    color: #90caf9;
    font-size: 18px;
    margin-right: 15px;
}
.search-input {
    flex: 1;
    height: 60px;
    background: transparent;
    border: none;
    color: #e3f2fd;
    font-size: 18px;
    outline: none;
}
.search-input::placeholder {
    color: #90caf9;
    opacity: 0.7;
}
.voice-search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(66, 165, 245, 0.2);
    border: 1px solid transparent;
    color: #42a5f5;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.voice-search-btn:hover {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
}
.search-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.search-btn {
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.primary-btn {
    background: #2196f3;
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}
.primary-btn:hover {
    background: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}
.secondary-btn {
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5;
    border: 1px solid rgba(66, 165, 245, 0.3);
}
.secondary-btn:hover {
    background: rgba(66, 165, 245, 0.2);
    color: #e3f2fd;
    border-color: #42a5f5;
}

/* 问题直达推荐 */
.quick-questions {
    background: rgba(10, 25, 47, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(66, 165, 245, 0.2);
}
.quick-title {
    color: #e3f2fd;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #2196f3;
    border-radius: 2px;
}
.questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.question-item {
    color: #bbdefb;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(66, 165, 245, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.question-item:hover {
    background: rgba(66, 165, 245, 0.2);
    color: #e3f2fd;
    border-color: rgba(66, 165, 245, 0.3);
}

/* 高级筛选弹窗 */
.advanced-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content {
    width: 600px;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(66, 165, 245, 0.5);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3);
}
.modal-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(66, 165, 245, 0.2), rgba(66, 165, 245, 0.05));
    border-bottom: 1px solid rgba(66, 165, 245, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    color: #e3f2fd;
    font-size: 20px;
}
.close-modal {
    background: none;
    border: none;
    color: #bbdefb;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.close-modal:hover {
    color: #e3f2fd;
    transform: scale(1.1);
}
.modal-body {
    padding: 25px;
}
.filter-group {
    margin-bottom: 20px;
}
.filter-group:last-child {
    margin-bottom: 0;
}
.filter-label {
    color: #e3f2fd;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.filter-option {
    color: #bbdefb;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.filter-option input {
    accent-color: #2196f3;
    cursor: pointer;
}
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(66, 165, 245, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.modal-btn {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.reset-btn {
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5;
    border: 1px solid rgba(66, 165, 245, 0.3);
}
.reset-btn:hover {
    background: rgba(66, 165, 245, 0.2);
    color: #e3f2fd;
}
.confirm-btn {
    background: #2196f3;
    color: #fff;
}
.confirm-btn:hover {
    background: #1976d2;
}

/* 检索结果区 */
.search-result {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(66, 165, 245, 0.3);
    padding: 30px;
    margin-bottom: 60px;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(66, 165, 245, 0.2);
}
.result-title {
    color: #e3f2fd;
    font-size: 24px;
}
.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-label {
    color: #bbdefb;
    font-size: 14px;
}
.sort-select {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(66, 165, 245, 0.3);
    color: #e3f2fd;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}
.sort-select option {
    background: #0a192f;
}

/* 热门检索标签 */
.hot-tags {
    margin-bottom: 30px;
}
.tag-title {
    color: #bbdefb;
    font-size: 16px;
    margin-right: 15px;
}
.tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hot-tag {
    color: #bbdefb;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    background: rgba(66, 165, 245, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.hot-tag:hover {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* 结果列表 */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.result-item {
    background: rgba(10, 25, 47, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(66, 165, 245, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}
.result-item:hover {
    transform: translateY(-5px);
    background: rgba(10, 25, 47, 0.5);
    border-color: #42a5f5;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.15);
}
.result-icon {
    width: 48px;
    height: 48px;
    background: rgba(66, 165, 245, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #42a5f5;
    font-size: 20px;
}
.result-info {
    flex: 1;
}
.result-item-title {
    font-size: 18px;
    margin-bottom: 8px;
}
.result-item-title a {
    color: #e3f2fd;
    text-decoration: none;
    transition: all 0.3s ease;
}
.result-item-title a:hover {
    color: #90caf9;
    text-decoration: underline;
}
.result-desc {
    color: #bbdefb;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.meta-item {
    font-size: 12px;
    color: #90caf9;
    display: flex;
    align-items: center;
    gap: 4px;
}
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.collect-btn, .download-btn {
    background: transparent;
    border: none;
    color: #90caf9;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.collect-btn:hover, .download-btn:hover {
    color: #e3f2fd;
    background: rgba(66, 165, 245, 0.15);
}
.collect-btn.active i {
    color: #ffc107;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(66, 165, 245, 0.1);
    border: 1px solid rgba(66, 165, 245, 0.3);
    color: #42a5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.page-btn:hover {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}
.page-num {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(66, 165, 245, 0.2);
    color: #bbdefb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.page-num:hover {
    background: rgba(66, 165, 245, 0.2);
    color: #e3f2fd;
}
.page-num.active {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* 关联推荐区 */
.related-recommend {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(66, 165, 245, 0.3);
    padding: 30px;
}
.recommend-title {
    color: #e3f2fd;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(66, 165, 245, 0.2);
}
.recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.recommend-item {
    background: rgba(10, 25, 47, 0.4);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(66, 165, 245, 0.2);
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.recommend-item:hover {
    transform: translateY(-5px);
    background: rgba(10, 25, 47, 0.5);
    border-color: #42a5f5;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.15);
}
.recommend-icon {
    width: 40px;
    height: 40px;
    background: rgba(66, 165, 245, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #42a5f5;
    font-size: 18px;
}
.recommend-info {
    flex: 1;
}
.recommend-item-title {
    color: #e3f2fd;
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-meta {
    color: #90caf9;
    font-size: 12px;
}

/* 底部样式 */
footer {
    width: 100%;
    padding: 40px 5%;
    background: rgba(10, 25, 47, 0.8);
    border-top: 1px solid rgba(66, 165, 245, 0.3);
    margin-top: 80px;
}
.footer-content {
    color: #bbdefb;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .recommend-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 5%;
        background: rgba(10, 25, 47, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 20px;
        border: 1px solid rgba(66, 165, 245, 0.3);
        z-index: 999;
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .search-header {
        margin-bottom: 30px;
    }
    .search-title {
        font-size: 28px;
    }
    .search-input {
        font-size: 16px;
    }
    .search-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .modal-content {
        width: 90%;
    }
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .result-item {
        flex-direction: column;
        gap: 15px;
    }
    .result-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .recommend-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
@media (max-width: 480px) {
    .search-subtitle {
        font-size: 16px;
    }
    .search-input-group {
        padding: 0 15px;
    }
    .search-input {
        height: 50px;
    }
    .voice-search-btn {
        width: 40px;
        height: 40px;
    }
    .search-btn-group {
        gap: 10px;
    }
    .questions-list {
        gap: 10px;
    }
    .question-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    .result-item {
        padding: 15px;
    }
    .result-item-title {
        font-size: 16px;
    }
    .recommend-item {
        flex-direction: column;
        gap: 10px;
    }
    .recommend-icon {
        align-self: flex-start;
    }
}