﻿:root {
    --page-bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --line: rgba(23, 43, 77, 0.12);
    --text-main: #223047;
    --text-soft: #5f6f86;
    --brand: #409eff;
    --brand-soft: rgba(64, 158, 255, 0.14);
    --shadow-soft: 0 14px 32px rgba(31, 54, 88, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --content-width: min(96vw, 1800px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(64, 158, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(103, 194, 58, 0.12), transparent 24%),
        linear-gradient(180deg, #fbfcfe 0%, var(--page-bg) 52%, #eef2f8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.hero {
    padding: 24px 24px 12px;
}

.hero__content,
.layout {
    width: var(--content-width);
    max-width: 100%;
    margin: 0 auto;
}

.hero__content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

.hero__content::after {
    content: '';
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(64, 158, 255, 0.15), transparent 70%);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__title {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.12;
}

.hero__desc {
    max-width: 900px;
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-soft);
}

.hero__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 13px;
}

.hero__link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.hero__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(95, 111, 134, 0.45);
}

.layout {
    display: grid;
    gap: 14px;
    padding: 6px 24px 28px;
}

.search-panel,
.results-panel {
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
    min-width: 0;
}

.search-panel__head,
.results-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.search-panel__titleline {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.search-panel__head h2,
.results-panel__head h2 {
    margin: 0;
    font-size: 18px;
    white-space: nowrap;
}

.search-panel__head p,
.results-panel__head p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.search-panel__head p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.search-form__input .el-input__wrapper {
    min-height: 40px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(64, 158, 255, 0.1);
}

.search-form__input .el-input__inner {
    font-size: 14px;
}

.search-form__switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text-soft);
    font-size: 13px;
}

.search-form .el-button--large {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 253, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 16px 18px;
}

.summary-card__label {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 8px;
}

.summary-card__value {
    font-size: 18px;
    line-height: 1.4;
}

.results-panel {
    min-height: 280px;
}

.result-table {
    --el-table-border-color: rgba(64, 158, 255, 0.08);
    --el-table-header-bg-color: #f7fbff;
    --el-table-row-hover-bg-color: rgba(64, 158, 255, 0.04);
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(64, 158, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.result-table .el-scrollbar,
.result-table .el-scrollbar__wrap,
.result-table .el-table__body-wrapper,
.result-table .el-table__header-wrapper {
    max-width: 100%;
}

.result-table .el-table__cell {
    padding: 10px 0;
}

.result-table .el-table__expanded-cell {
    padding: 0;
    background: #fbfdff;
}

.result-table .el-table__body td.el-table__cell {
    vertical-align: top;
}

.object-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.object-link:hover {
    color: #2b7de9;
    text-decoration: underline;
}

.doc-chip {
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(31, 54, 88, 0.12);
    border-radius: 3px;
    background: #f3f6fa;
    color: #111111;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.doc-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 54, 88, 0.22);
    box-shadow: 0 10px 18px rgba(31, 54, 88, 0.1);
}

.bool-icon {
    font-size: 18px;
    line-height: 1;
}

.bool-icon--true {
    color: var(--el-color-success);
}

.bool-icon--false {
    color: var(--el-color-danger);
}

.detail-panel {
    padding: 16px 18px 18px;
}

.detail-panel--table {
    border-top: 1px solid rgba(64, 158, 255, 0.08);
}

.detail-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 245, 235, 0.9);
    border: 1px solid rgba(230, 162, 60, 0.2);
    color: #9a6c18;
    font-size: 14px;
    line-height: 1.6;
}

.detail-table {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(64, 158, 255, 0.08);
}

.markdown-dialog {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(17, 33, 58, 0.18);
}

.markdown-dialog .el-dialog__header {
    margin-right: 0;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(64, 158, 255, 0.08);
}

.markdown-dialog .el-dialog__body {
    padding: 0;
}

.markdown-dialog .el-dialog__title {
    color: #243449;
    font-size: 15px;
    font-weight: 700;
}

.markdown-dialog .el-dialog__headerbtn {
    top: 14px;
    right: 14px;
    z-index: 4;
}

.markdown-dialog__shell {
    position: relative;
    height: min(78vh, calc(100vw - 120px));
    min-height: 520px;
    max-height: 78vh;
    padding: 14px;
    background: #ffffff;
}

.markdown-viewer-frame {
    position: relative;
    height: 100%;
    outline: none;
}

.markdown-empty-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 0;
    background: #f7fbff;
    border: 1px solid rgba(64, 158, 255, 0.08);
    color: var(--text-soft);
}

.markdown-viewer-host {
    height: 100%;
    overflow: auto;
    padding: 18px 22px 20px;
    border: 1px solid rgba(64, 158, 255, 0.08);
    border-radius: 0;
    background: #ffffff;
}

.markdown-viewer-host .v-md-editor-preview {
    padding: 0;
    background: transparent;
}

.markdown-viewer-host .github-markdown-body {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #26364b;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 10.5pt;
    line-height: 1.6;
}

.markdown-viewer-host .github-markdown-body > :first-child {
    margin-top: 0;
}

.markdown-viewer-host .github-markdown-body h1,
.markdown-viewer-host .github-markdown-body h2,
.markdown-viewer-host .github-markdown-body h3,
.markdown-viewer-host .github-markdown-body h4 {
    color: #1f2f46;
    line-height: 1.35;
}

.markdown-viewer-host .github-markdown-body pre {
    position: relative;
    margin: 0.75em 0 1em;
    padding: 0;
    border: 1px solid rgba(31, 54, 88, 0.08);
    border-radius: 0;
    background: linear-gradient(180deg, #f6f8fb, #eef3f9);
    overflow-x: auto;
    overflow-y: hidden;
}

.markdown-viewer-host .github-markdown-body pre code {
    font-family: 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;
    font-size: 12px;
    line-height: 1.42;
}

.markdown-viewer-host .github-markdown-body pre code.hljs {
    display: block;
    padding: 32px 12px 6px 8px;
    background: transparent;
    min-width: 100%;
    box-sizing: border-box;
}

.markdown-code-copy-button {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(31, 54, 88, 0.12);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.96);
    color: #243449;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(31, 54, 88, 0.08);
    z-index: 2;
    opacity: 0;
    transition:
        opacity 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.markdown-viewer-host .github-markdown-body pre:hover .markdown-code-copy-button,
.markdown-viewer-host .github-markdown-body pre:focus-within .markdown-code-copy-button {
    opacity: 1;
}

.markdown-code-copy-button:hover {
    border-color: rgba(64, 158, 255, 0.28);
    color: #1d6fe0;
    box-shadow: 0 10px 18px rgba(64, 158, 255, 0.14);
}

.markdown-viewer-host .github-markdown-body table.hljs-ln {
    display: table;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    border: none;
    border-radius: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.markdown-viewer-host .github-markdown-body .hljs-ln td {
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1.42;
}

.markdown-viewer-host .github-markdown-body .hljs-ln tr {
    background: transparent;
    border-top: none;
}

.markdown-viewer-host .github-markdown-body td.hljs-ln-numbers {
    min-width: 24px;
    width: 24px;
    padding-right: 8px;
    border-right: 1px solid rgba(31, 54, 88, 0.1);
    color: #8a97aa;
    text-align: right;
    vertical-align: top;
    user-select: none;
}

.markdown-viewer-host .github-markdown-body td.hljs-ln-code {
    padding-left: 10px;
    vertical-align: top;
}

.markdown-viewer-host .github-markdown-body code:not(.language-text) {
    font-family: 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;
}

.markdown-viewer-host .github-markdown-body table:not(.hljs-ln) {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(64, 158, 255, 0.08);
}

.markdown-viewer-host .github-markdown-body table:not(.hljs-ln) th,
.markdown-viewer-host .github-markdown-body table:not(.hljs-ln) td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(64, 158, 255, 0.08);
}

.markdown-viewer-host .github-markdown-body table:not(.hljs-ln) th {
    background: #f7fbff;
    color: #405268;
    font-weight: 700;
}

.markdown-viewer-host .github-markdown-body blockquote {
    padding: 12px 16px;
    border-left: 4px solid rgba(64, 158, 255, 0.38);
    border-radius: 0 14px 14px 0;
    background: rgba(64, 158, 255, 0.06);
    color: #4d5e74;
}

.markdown-viewer-fallback {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;
    font-size: 12px;
    line-height: 1.75;
}

@media (max-width: 960px) {
    .search-form,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .search-panel__titleline,
    .search-panel__head,
    .results-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .markdown-dialog__shell {
        height: calc(100vh - 110px);
        min-height: 420px;
        padding: 12px;
    }

    .markdown-viewer-host {
        padding: 14px 16px 16px;
    }
}

@media (max-width: 640px) {
    .hero,
    .layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero__content,
    .search-panel,
    .results-panel {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .result-table {
        font-size: 13px;
    }

    .markdown-code-copy-button {
        opacity: 1;
    }
}

@media (hover: none) {
    .markdown-code-copy-button {
        opacity: 1;
    }
}

