/* ============================================================
   无限显示 InfiDisplay — 全站共享样式
   风格：简洁文档式（靛蓝导航 + 左侧面包屑 + 右侧目录）
   ============================================================ */

:root {
    --brand: #3f51b5;
    --brand-dark: #303f9f;
    --brand-soft: #f3f4fb;
    --text: #212121;
    --text-2: #4a4f57;
    --text-3: #9aa0ab;
    --border: #e0e0e0;
    --bg: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ 顶部导航栏 ============ */

.site-header {
    width: 100%;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.site-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}
.site-name .site-name-en { font-weight: 400; opacity: 0.9; margin-left: 6px; font-size: 0.95rem; }

.header-search {
    margin-left: auto;
    position: relative;
}
.header-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    font-size: 0.9rem;
    pointer-events: none;
}
.header-search input {
    border: none;
    border-radius: 4px;
    padding: 7px 12px 7px 32px;
    width: 210px;
    max-width: 42vw;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 0.9rem;
    outline: none;
}
.header-search input:focus { background: #fff; }

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    max-width: 84vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: none;
}
.search-results.open { display: block; }
.search-results a {
    display: block;
    padding: 10px 14px;
    color: var(--text-2);
    font-size: 0.88rem;
    border-bottom: 1px solid #f0f0f0;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--brand-soft); text-decoration: none; color: var(--brand); }
.search-results .search-empty {
    padding: 12px 14px;
    color: var(--text-3);
    font-size: 0.85rem;
}

.nav-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 26px;
    overflow-x: auto;
}
.nav-row a {
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 0 12px;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-row a:hover { color: #fff; text-decoration: none; }
.nav-row a.active { color: #fff; font-weight: 600; border-bottom-color: #fff; }

.menu-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ============ 正文三栏布局 ============ */

.page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 150px;
    gap: 40px;
}

.crumb-col { font-size: 0.92rem; }
.crumb { color: var(--brand); }

.toc-col { font-size: 0.88rem; }
.toc h4 {
    margin: 4px 0 8px;
    font-size: 0.9rem;
    color: var(--text-2);
    font-weight: 600;
}
.toc a {
    display: block;
    color: var(--text-2);
    padding: 3px 0;
}
.toc a:hover { color: var(--brand); text-decoration: none; }

/* ============ 内容排版 ============ */

.content h1.page-title {
    font-size: 2.3rem;
    font-weight: 300;
    color: var(--text-3);
    margin: 0 0 26px;
    letter-spacing: 1px;
}

.tagline {
    border-left: 4px solid #cfd4de;
    padding: 4px 0 4px 14px;
    color: var(--text-3);
    font-size: 1.05rem;
    margin: 0 0 26px;
}

.content h2 {
    font-size: 1.4rem;
    color: #3c4149;
    margin: 46px 0 14px;
    font-weight: 600;
}
.content h2:first-of-type { margin-top: 8px; }

.content h3 {
    font-size: 1.08rem;
    color: #3c4149;
    margin: 28px 0 10px;
    font-weight: 600;
}

.content p, .content li { color: var(--text-2); }
.content p { margin: 10px 0; }
.content ul, .content ol { padding-left: 22px; margin: 10px 0; }
.content li { margin: 6px 0; }
.content li strong { color: var(--text); }

.content .demo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.notice {
    background: var(--brand-soft);
    border: 1px dashed #b9c0e0;
    color: #5a63a8;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    margin: 18px 0;
}

.feature-list { list-style: none; padding-left: 0; }
.feature-list li { padding-left: 18px; position: relative; }
.feature-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.85em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

/* ============ 工具卡片（显示面板评测页） ============ */

.tool-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover {
    box-shadow: 0 6px 18px rgba(63, 81, 181, 0.12);
    transform: translateY(-2px);
}
.tool-card h3 { margin: 0 0 6px; }
.tool-card p { margin: 6px 0; font-size: 0.94rem; }
.tool-card .tool-meta { font-size: 0.82rem; color: var(--text-3); margin-bottom: 10px; }

.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline {
    display: inline-block;
    border: 1px solid var(--brand);
    color: var(--brand);
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.btn-outline:hover { background: var(--brand-soft); text-decoration: none; }

/* ============ 意见反馈表单 ============ */

.feedback-form {
    max-width: 560px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    background: #fff;
}
.feedback-form label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-2);
    margin: 14px 0 6px;
}
.feedback-form label:first-child { margin-top: 0; }
.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
}
.feedback-form input:focus,
.feedback-form textarea:focus { border-color: var(--brand); }
.feedback-form .form-actions { margin-top: 16px; }

/* ============ 页脚 ============ */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 26px 24px 30px;
    text-align: center;
    color: var(--text-3);
    font-size: 0.85rem;
}
.site-footer p { margin: 4px 0; }

/* ============ 响应式 ============ */

@media (max-width: 920px) {
    .page { grid-template-columns: 1fr; gap: 10px; padding-top: 28px; }
    .crumb-col, .toc-col { display: none; }
    .content h1.page-title { font-size: 1.8rem; }

    .menu-btn { display: block; }
    .nav-row {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0 24px 8px;
    }
    .nav-row.open { display: flex; }
    .nav-row a { border-bottom: none; padding: 9px 0; }
    .nav-row a.active { border-bottom: none; color: #fff; }
    .header-search input { width: 150px; }
}
