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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F5F6F8;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* 头部样式 */
.header {
    height: 57px;
    background: #3964FE;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left-section {
    width: 870px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-avatar {
    width: 40px;
    height: 40px;
    margin-right: 5px;
    border-radius: 8px;
}

.header-title {
    font-weight: bold;
    font-size: 23px;
    color: #FFFFFF;
    line-height: 48px;
}

.header-search-link {
    text-decoration: none;
    display: block;
}

.header-search {
    position: relative;
    width: 243px;
    height: 37px;
    background: #FFFFFF;
    border-radius: 19px;
    display: flex;
    align-items: center;
    padding: 0 50px 0 16px;
}

.search-placeholder {
    font-weight: 500;
    font-size: 16px;
    color: #979797;
    line-height: 33px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.header-right-section {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.header-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon {
    width: 25px;
    height: 25px;
    color: #FFFFFF;
    stroke: #FFFFFF;
    display: block;
    overflow: visible;
}

/* 内容区域 */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 77px 20px;
}

/* 搜索框 */
.search-box-wrapper {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    position: relative;
}

.search-box-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 20px;
    background: transparent;
}

.search-box-btn {
    width: 80px;
    height: 40px;
    background: #226EEC;
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 4px;
}

.search-box-btn:hover {
    background: #1979E8;
}
.search-suggest {
    display: none;
    position: absolute;
    top: 113%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-top: -4px;
    padding: 0;
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
}

    .search-suggest.show {
        display: block;
    }

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s;
}

    .suggest-item:last-child {
        border-bottom: none;
    }

    .suggest-item:hover,
    .suggest-item.active {
        background: #F5F6F8;
    }

.suggest-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #CCCCCC;
}

.suggest-code {
    font-size: 14px;
    color: #999999;
    flex-shrink: 0;
    min-width: 54px;
}

.suggest-text {
    flex: 1;
    font-size: 14px;
    color: #333333;
}
/* 搜索条件区域 */
.search-filters {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-tabs {
    display: flex;
    gap: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 16px;
}

.filter-tab {
    font-size: 16px;
    color: #666666;
    padding-bottom: 12px;
    position: relative;
}

.filter-tab.active {
    color: #226EEC;
    font-weight: 500;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #226EEC;
    border-radius: 2px;
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F7F8FA;
    border-radius: 20px;
    font-size: 14px;
    color: #333333;
}

.filter-option svg {
    width: 14px;
    height: 14px;
    color: #999999;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown .dropdown-menu.active {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 12px;
    min-width: 300px;
    z-index: 100;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
    color: #333333;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-option:hover {
    background: #F5F6F8;
}

.dropdown-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 8px 0;
}

.custom-input-group {
    padding-top: 8px;
}

.custom-input-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.custom-input-row span {
    font-size: 13px;
    color: #333333;
    white-space: nowrap;
    flex-shrink: 0;
}

.custom-input-row input {
    flex: 1;
    min-width: 110px;
    max-width: 150px;
    padding: 6px 6px;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.custom-input-row input:focus {
    border-color: #226EEC;
}

.custom-input-row button {
    padding: 6px 10px;
    background: #226EEC;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

/* WdatePicker 日期选择器样式覆盖 */
body .WdateDiv {
    width: 230px !important;
}

body .WdateDiv #dpTitle {
    width: 230px !important;
}

body .Wdate {
    width: 100px !important;
}

/* 工具选择 */
.tool-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-option {
    padding: 10px 20px;
    background: #F7F8FA;
    border-radius: 6px;
    font-size: 14px;
    color: #333333;
    border: 1px solid transparent;
}

.tool-option.active {
    background: #E8F0FE;
    border-color: #226EEC;
    color: #226EEC;
}

/* 提示语区域 */
.search-tip {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
}

.tip-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #226EEC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.tip-content {
    flex: 1;
}

.tip-name {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    margin-bottom: 8px;
}

.tip-title {
    font-size: 14px;
    color: #226EEC;
    margin-bottom: 4px;
}

.tip-text {
    font-size: 14px;
    color: #666666;
    line-height: 22px;
}

/* 搜索结果区域 */
.search-results {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.results-tabs {
    display: flex;
    gap: 24px;
}

.results-tab {
    font-size: 16px;
    color: #666666;
    padding-bottom: 12px;
    position: relative;
}

.results-tab.active {
    color: #226EEC;
    font-weight: 500;
}

.results-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #226EEC;
    border-radius: 2px;
}

.essence-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.switch-btn {
    width: 44px;
    height: 24px;
    background: #E8E8E8;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.switch-btn.active {
    background: #226EEC;
}

.switch-btn::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: left 0.2s;
}

.switch-btn.active::after {
    left: 24px;
}

/* 结果列表 */
.results-list {
    padding: 12px 0;
}

.result-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 212, 212, 1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item a {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.author-name {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

.result-time {
    font-size: 12px;
    color: #999999;
}

.result-title {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 24px;
    display: flex;
    align-items: flex-start;
}

.essence-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.result-content {
    font-size: 14px;
    color: #666666;
    line-height: 22px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.result-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.result-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 4px 12px;
    background: #F4F4F4;
    border-radius: 4px;
    font-size: 12px;
    color: #226EEC;
}

/* 空状态 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    color: #999999;
}
