/* ===== 全站索引（pm-index） =====
   基础令牌、页头页脚来自 ../style.css，这里只写本栏目排版。 */

.ix-main {
    padding-top: 72px;
}

/* ===== 面包屑 ===== */
.ix-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 40px;
}

.ix-crumb a {
    color: #6b6b6b;
}

.ix-crumb a:hover {
    color: #000;
}

/* ===== 页头 ===== */
.ix-hero {
    padding: 32px 0 44px;
}

.ix-eyebrow {
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #9a9a9a;
    margin: 0 0 16px;
}

.ix-hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #000;
    margin: 0 0 20px;
}

.ix-hero-sub {
    font-size: 17px;
    line-height: 1.85;
    color: #4a4a4a;
    max-width: 720px;
    margin: 0 0 32px;
}

.ix-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #6b6b6b;
}

.ix-hero-meta strong {
    font-family: var(--font-num);
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-right: 4px;
}

/* ===== 区块 ===== */
.ix-block {
    padding: 56px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    scroll-margin-top: 96px;
}

.ix-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ix-num {
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #b0b0b0;
    margin: 0 0 8px;
}

.ix-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #000;
    margin: 0;
}

.ix-note {
    font-size: 13px;
    line-height: 1.8;
    color: #8a8a8a;
    margin: 0;
    max-width: 420px;
}

.ix-note kbd {
    display: inline-block;
    padding: 1px 6px;
    font-family: var(--font-num);
    font-size: 11px;
    color: #444;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 4px;
}

/* ===== 01 栏目入口 ===== */
.ix-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 14px;
}

.ix-sec {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ix-sec:hover {
    border-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.ix-sec-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ix-sec-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.ix-sec-count {
    font-family: var(--font-num);
    font-size: 13px;
    color: #9a9a9a;
    white-space: nowrap;
}

.ix-sec-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: #5f5f5f;
    min-height: 3.5em;
}

.ix-sec-meta {
    font-size: 12px;
    line-height: 1.6;
    color: #a0a0a0;
    overflow-wrap: anywhere;
}

.ix-sec-go {
    margin-top: auto;
    padding-top: 4px;
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #000;
}

/* ===== 02 检索 ===== */
.ix-toolbar {
    position: sticky;
    top: 72px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    margin-bottom: 4px;
    background: rgba(250, 250, 250, 0.94);
    backdrop-filter: blur(10px);
}

.ix-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    height: 46px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    color: #9a9a9a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ix-search:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.ix-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #1a1a1a;
}

.ix-search input::placeholder {
    color: #b0b0b0;
}

.ix-count {
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #9a9a9a;
    white-space: nowrap;
}

.ix-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.ix-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 13px;
    color: #5f5f5f;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.ix-chip b {
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 400;
    color: #b0b0b0;
}

.ix-chip:hover {
    border-color: #000;
    color: #000;
}

.ix-chip.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.ix-chip.is-active b {
    color: rgba(255, 255, 255, 0.6);
}

/* 热门检索 */
.ix-suggest {
    padding: 22px 0 8px;
}

.ix-suggest[hidden] {
    display: none;
}

.ix-suggest-label {
    margin: 0 0 10px;
    font-family: var(--font-num);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: #b0b0b0;
}

.ix-suggest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ix-hot {
    padding: 6px 14px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.ix-hot:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* 结果 */
.ix-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ix-row {
    display: block;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.ix-row:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
}

.ix-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-family: var(--font-num);
    font-size: 11.5px;
    letter-spacing: 0.04em;
}

.ix-row-sec {
    padding: 2px 8px;
    color: #000;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    cursor: pointer;
}

.ix-row-sec:hover {
    background: #000;
    color: #fff;
}

.ix-row-cat {
    color: #a0a0a0;
}

.ix-row-go {
    margin-left: auto;
    color: #c0c0c0;
    white-space: nowrap;
}

.ix-row:hover .ix-row-go {
    color: #000;
}

.ix-row-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    color: #000;
    overflow-wrap: anywhere;
}

.ix-row-intro {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.75;
    color: #6b6b6b;
    overflow-wrap: anywhere;
}

.ix-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ix-tag {
    padding: 1px 8px;
    font-size: 11px;
    line-height: 1.7;
    color: #8a8a8a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.ix-row mark {
    padding: 0 2px;
    background: #ffe680;
    color: inherit;
    border-radius: 2px;
}

.ix-more {
    margin: 18px 0 0;
    font-size: 13px;
    color: #9a9a9a;
    text-align: center;
}

.ix-empty {
    padding: 40px 0;
    font-size: 14px;
    color: #9a9a9a;
    text-align: center;
}

.ix-empty a {
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

/* ===== 03 图谱 ===== */
.ix-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.ix-tab {
    padding: 8px 18px;
    font-family: inherit;
    font-size: 13.5px;
    color: #6b6b6b;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.ix-tab:hover {
    border-color: #000;
    color: #000;
}

.ix-tab.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.ix-graph {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.ix-graph[hidden],
.ix-links[hidden] {
    display: none;
}

.ix-canvas {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ix-canvas svg {
    display: block;
    width: 100%;
    height: auto;
}

.ix-node {
    cursor: pointer;
    transition: opacity 0.18s ease;
}

.ix-node .ix-ring {
    transition: stroke 0.16s ease;
}

.ix-node:hover .ix-ring {
    stroke: rgba(0, 0, 0, 0.35);
}

.ix-node.is-active .ix-ring {
    stroke: #000;
}

.ix-node.is-dim {
    opacity: 0.2;
}

.ix-node text {
    pointer-events: none;
    user-select: none;
}

.ix-node.is-active text {
    font-weight: 700;
}

/* 侧栏 */
.ix-panel {
    position: sticky;
    top: 96px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    min-height: 200px;
}

.ix-panel-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #a0a0a0;
}

.ix-panel-tag {
    margin: 0 0 8px;
    font-family: var(--font-num);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #9a9a9a;
}

.ix-panel-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.ix-panel-desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #5f5f5f;
}

.ix-panel-sub {
    margin: 0 0 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    font-size: 12px;
    color: #9a9a9a;
}

.ix-panel-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.ix-panel-list li a,
.ix-panel-list li > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    transition: background 0.14s ease;
}

.ix-panel-list li a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.ix-panel-list b {
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 400;
    color: #b0b0b0;
}

.ix-panel-go {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-num);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.ix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.8;
    color: #9a9a9a;
}

.ix-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ix-legend[hidden] {
    display: none;
}

.ix-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ix-dot-sec {
    background: #000;
}

.ix-dot-dom {
    background: #f0f0f0;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 主题串联 */
.ix-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ix-thread {
    padding: 24px 26px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

.ix-thread-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.ix-thread-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.ix-thread-count {
    font-family: var(--font-num);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: #b0b0b0;
    white-space: nowrap;
}

.ix-thread-desc {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.8;
    color: #6b6b6b;
}

.ix-chain {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.ix-chain-sec {
    font-size: 12px;
    line-height: 1.9;
    color: #a0a0a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ix-chain-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ix-chain-node {
    max-width: 100%;
    padding: 4px 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #333;
    background: #f6f6f6;
    border-radius: 6px;
    transition: background 0.14s ease, color 0.14s ease;
    overflow-wrap: anywhere;
}

.ix-chain-node:hover {
    background: #000;
    color: #fff;
}

.ix-chain-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c8c8c8;
    flex: 0 0 auto;
}

/* ===== 04 学习闭环 ===== */
.ix-loop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.ix-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

.ix-step-num {
    font-family: var(--font-num);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: #b0b0b0;
}

.ix-step-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.ix-step-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: #6b6b6b;
}

.ix-step-go {
    margin-top: auto;
    align-self: flex-start;
    padding: 0;
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #000;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.ix-step-go:hover {
    border-color: #000;
}

.ix-step-back {
    background: #000;
    border-color: #000;
}

.ix-step-back .ix-step-num,
.ix-step-back .ix-step-go {
    color: rgba(255, 255, 255, 0.6);
}

.ix-step-back .ix-step-title {
    color: #fff;
}

.ix-step-back .ix-step-desc {
    color: rgba(255, 255, 255, 0.72);
}

.ix-step-back .ix-step-go {
    border-color: rgba(255, 255, 255, 0.35);
}

.ix-step-back .ix-step-go:hover {
    color: #fff;
    border-color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 1160px) {
    .ix-graph {
        grid-template-columns: minmax(0, 1fr);
    }

    .ix-panel {
        position: static;
    }
}

@media (max-width: 968px) {
    .ix-hero {
        padding: 24px 0 36px;
    }

    .ix-block {
        padding: 40px 0;
    }

    .ix-toolbar {
        position: static;
        background: transparent;
        backdrop-filter: none;
    }

    .ix-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ix-note {
        max-width: none;
    }

    .ix-chain {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .ix-hero-title {
        font-size: 34px;
    }

    .ix-sec {
        padding: 18px 18px;
    }

    .ix-thread {
        padding: 18px 16px;
    }

    .ix-chain {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .ix-chain-sec {
        font-size: 11.5px;
    }

    .ix-row {
        padding: 14px 12px;
    }

    .ix-row-title {
        font-size: 15px;
    }
}
