.markdown-containier {
    padding: 0 12px;

    ol, ul {
        margin-left: 40px;
    }

    ol>li {
        list-style: decimal !important;
    }

    ul>li {
        list-style: disc !important;
    }
}

/* 顶部搜索框 */
.search-header {
    position: relative;
}

.search-container {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    height: 80px;
    padding: 28px 37px 28px 44px;
    background-color: #F3F5F7;
    border: none;
    border-radius: 40px;
    font-size: 24px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    border: 1px solid #008ED3 !important;
    background-color: #fff;
}

.search-btn {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    cursor: pointer;
}

/* 主内容区域 */
.main-content {
    max-width: 950px;
    margin: 0 auto;
    padding-top: 56px;
}

/* 搜索结果头部 */
.results-header {
    margin-bottom: 20px;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

    h2 {
        font-size: 24px;
        color: #222;
    }
}

.results-count {
    color: #999;
    font-size: 16px;
}

.results-count-mob {
    display: none;
}

.search-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #dddddd;
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    border: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
    padding-bottom: 10px;
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    text-align: center;
    z-index: 10;
    display: none;
}

.sort-menu.show {
    display: block;
}

.sort-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

.sort-option:hover {
    background: #f8f9fa;
}

.sort-option.active {
    background: #e8f0fe;
    color: #008ED3;
}

/* Tab导航 */
.tab-navigation {
    display: flex;
    gap: 28px;
}

.tab-item {
    padding-bottom: 12px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #999;
}

.tab-item:hover {
    color: #008ED3;
}

.tab-item.active {
    color: #008ED3;
    border-bottom-color: #008ED3;
}

/* AI思考区域 */
.ai-thinking {
    padding: 22px 16px 33px;
    background: #f3f5f7;
    border-radius: 16px;
    margin-bottom: 34px;
    overflow: visible;
}

.ai-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-size: 16px;
}

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

.ai-title {
    display: flex;
    align-items: center;
    color: #008ED3;
    font-weight: 500;
    margin-right: 10px;
}

.ai-icon {
    width: 40px;
    height: 40px;
}

.ai-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toggle-btn {
    color: #008ED3;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform: rotate(-180deg);
}

.toggle-btn.collapsed {
    transform: rotate(0deg);
}

.sort-toggle-btn {
    margin-left: 4px;
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
}

.sort-toggle-btn.sort-collapsed {
    padding-bottom: 6px;
    transform: rotate(180deg);
}

.ai-content {
    padding: 10px 0 0 7px;
    transition: all 0.3s ease;
}

/* .ai-content.collapsed {
    display: none;
  } */

.ai-content .ai-tips {
    display: none;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 10px;
    align-items: center;
    border: 1px solid #ffddcc;
    background-color: #ffeee6;
}

.ai-tips.show {
    display: flex !important;
}

.ai-tips .svg-icon {
    margin-right: 10px;
}

.ai-tips .text {
    font-size: 16px;
    color: #D9001B;
}

.ai-footer {
    display: none;
    padding: 10px 0 0 7px;
    align-items: center;
    justify-content: flex-start;
    border-top: 1px solid #e4e4e4;
    margin-top: 20px;
}

.ai-footer.show {
    display: flex !important;
}

.ai-footer .svg-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 16px;
    cursor: pointer;
    position: relative;
}

.ai-footer .svg-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

.ai-footer .svg-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    margin-bottom: -5px;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media only screen and (max-width: 768px) {

    .ai-footer .svg-icon[data-tooltip]:hover::after,
    .ai-footer .svg-icon[data-tooltip]:hover::before {
        display: none;
    }
}

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

.ai-status {
    color: #999;
    font-size: 14px;
}

.stop-btn {
    background: #ea4335;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    display: none;
}

.stop-btn:hover {
    background: #d33b2c;
}

.stop-btn.show {
    display: block;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

.thinking-source {
    display: none;
}

.dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes pulse {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.toast {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    margin: 0 auto !important;
    box-sizing: border-box;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background: #333;
}

.toast.error {
    background: #333;
}

.toast.warning {
    background: #333;
}

/* AI板块样式 */
.ai-section {
    margin-bottom: 20px;
    /* border: 1px solid #e0e0e0; */
    overflow: hidden;
}

.ai-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.ai-section-header:hover {
    background: #e9ecef;
}

.section-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.section-toggle-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform: rotate(-180deg);
    color: #666;
}

.section-toggle-btn.collapsed {
    transform: rotate(0deg);
}

.section-content {
    padding: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-content.collapsed {
    max-height: 0;
    padding: 0 16px;
}

.ai-searchPage {
    display: flex;
    flex-direction: column;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    border-radius: 8px;
    background: #fafafa;
}

.search-page-item {
    padding: 10px 0;
    margin: 0 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 500;
}

.search-page-item:last-child {
    margin-bottom: 0;
}

.ai-response {
    font-size: 16px;
    line-height: 2.4;
    color: #666;
}

/* 搜索结果列表 */
.search-results {
    background: #fff;
}

.result-item {
    margin-bottom: 34px;
}

.result-title {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
}

.result-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 4px;
}

.result-description {
    color: #4d5156;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-data {
    display: none;
    text-align: center;
    margin: 0 auto;

    img {
        width: 210px;
        height: 210px;
        margin-bottom: 23px;
    }

    p {
        color: #999;
        font-size: 18px;
    }
}

.ai-answer-container {
    position: relative;
    transition: all 0.3s ease;
}

.ai-answer {
    /* white-space: pre-line; */
    font-size: 16px;
    line-height: 2.4;
    color: #666;
    transition: all 0.3s ease;
}

.ai-answer-mask {
    position: absolute;
    bottom: 0;
    left: 7px;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(243, 245, 247, 0.95));
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.ai-thinking .ai-content.collapsed .ai-answer-container {
    max-height: 120px;
    overflow: hidden;
}

.ai-thinking .ai-content.collapsed .ai-answer-mask {
    opacity: 1;
}

.ai-thinking .ai-content:not(.collapsed) .ai-answer-mask {
    opacity: 0;
}

.ai-thinking .ai-content.collapsed .ai-controls,
.ai-thinking .ai-content.collapsed .ai-section,
.ai-thinking .ai-content.collapsed .ai-tips {
    display: none;
}

.ai-thinking .ai-content:not(.collapsed) .ai-answer-container {
    max-height: none;
    overflow: visible;
}

@media only screen and (max-width: 768px) {

    .search-navigation {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-navigation {
        gap: unset;
        border-bottom: 1px solid #dddddd;
        width: 100%;
        overflow-x: auto;
    }

    .tab-item {
        text-align: center;
        font-size: 24px;
    }

    .tab-item:not(:last-child) {
        margin-right: 23px;
    }

    .sort-dropdown {
        align-self: flex-end;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .results-count-mob {
        display: block;
        padding: 10px 0;
        font-size: 24px;
    }

    .sort-btn {
        padding: 10px 0;
        font-size: 24px;
    }

    .sort-option {
        font-size: 24px;
    }

    .results-count {
        display: none;
    }

    .ai-thinking {}

    .ai-header,
    .ai-status {
        font-size: 24px;
    }

    .toggle-btn,
    .section-toggle-btn {
        font-size: 24px;
    }

    .stop-btn {
        font-size: 24px;
    }

    .ai-icon {
        width: 60px;
        height: 60px;
    }

    .section-title {
        font-size: 24px;
    }

    .search-page-item {
        font-size: 22px;
    }

    .ai-response,
    .ai-answer {
        font-size: 22px;
    }

    .ai-tips {
        .svg-icon {
            width: 20px;
            height: 20px;
        }

        .text {
            font-size: 22px;
        }
    }

    .ai-footer {
        .svg-icon {
            font-size: 32px;
            width: 32px;
            height: 32px;
        }
    }

    .result-item {
        word-break: break-word;
    }

    .result-title {
        margin-bottom: 10px;
        font-size: 32px;
    }

    .result-meta {
        margin-bottom: 10px;
    }

    .result-meta,
    .result-description {
        font-size: 24px;
    }

    .no-data {
        img {
            width: 260px;
            height: 260px;
        }

        p {
            font-size: 24px;
        }
    }

    .toast {
        font-size: 20px;
    }
}
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.tcdPageCode {
    padding: 15px 20px;
    text-align: left;
    color: #ccc;
    text-align: center;
    width: 100%;
}

.tcdPageCode a {
    display: inline-block;
    color: #428bca;
    display: inline-block;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    border: 1px solid #ddd;
    margin: 0 2px;
    border-radius: 4px;
    vertical-align: middle;
    background-color: white;
}

.tcdPageCode a:hover {
    text-decoration: none;
    border: 1px solid #428bca;
}

.tcdPageCode span.current {
    display: inline-block;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    margin: 0 2px;
    color: #fff;
    background-color: #428bca;
    border: 1px solid #428bca;
    border-radius: 4px;
    vertical-align: middle;
}

.tcdPageCode span.disabled {
    display: inline-block;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    margin: 0 2px;
    color: #bfbfbf;
    background: #f2f2f2;
    border: 1px solid #bfbfbf;
    border-radius: 4px;
    vertical-align: middle;
}

.tcdPageCode input {
    width: 40px;
    margin: 0 3px;
    padding: 0 10px;
    border-radius: 4px;
    height: 25px;
    color: #428bca;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    background-color: white;
}

.tcdPageCode input[type=button] {
    cursor: pointer;
}

.isearch-component .sr_foot {
    width: 950px;
}

.tcdPageCode span {
    color: #428bca;
    vertical-align: middle;
    line-height: 30px;
}

@media only screen and (max-width: 768px) {
    .isearch-component .sr_foot {
        width: 100%;
    }

    .tcdPageCode {
        width: auto;
    }

    .tcdPageCode span,
    input[type=button],
    input[type=text] {
        display: inline-block;
    }

    .tcdPageCode input {
        padding: 0;
        font-size: 22px;
        height: 100%;
    }
}
