:root {
    --res-ink: #17334f;
    --res-ink-strong: #0f2943;
    --res-muted: #627992;
    --res-line: rgba(88, 128, 165, .22);
    --res-line-strong: rgba(61, 110, 151, .34);
    --res-accent: #2f6f9f;
    --res-accent-dark: #1f527b;
    --res-accent-soft: #dcebf5;
    --res-paper: #f8fbfd;
    --res-surface: rgba(255, 255, 255, .88);
    --res-shadow: 0 24px 56px rgba(34, 79, 111, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body.resonance-hub-page {
    min-width: 0;
    margin: 0;
    overflow-x: clip;
    color: var(--res-ink);
    background:
        radial-gradient(circle at 8% 22%, rgba(128, 188, 218, .16), transparent 28rem),
        radial-gradient(circle at 94% 58%, rgba(130, 165, 207, .13), transparent 30rem),
        #edf4f8;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(47, 111, 159, .34);
    outline-offset: 3px;
}

.res-skip-link {
    position: fixed;
    z-index: 20;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    border-radius: .45rem;
    color: #fff;
    background: var(--res-accent-dark);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.res-skip-link:focus {
    transform: translateY(0);
}

.res-hub-topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 clamp(1rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(92, 124, 151, .18);
    background: rgba(246, 251, 253, .88);
    box-shadow: 0 10px 30px rgba(39, 73, 101, .06);
    backdrop-filter: blur(18px) saturate(120%);
}

/* 共鸣档案页面的公告横幅样式（确保在所有设备可见） */
.resonance-hub-page .site-announcement {
    position: relative;
    z-index: 5;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    width: 100%;
}
.resonance-hub-page .site-announcement .announcement-icon {
    font-size: 15px;
    flex-shrink: 0;
}
.resonance-hub-page .site-announcement .announcement-text {
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
}
.resonance-hub-page .site-announcement .announcement-close {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .resonance-hub-page .site-announcement {
        font-size: 12px;
        padding: 8px 12px;
    }
}

.res-hub-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--res-ink-strong);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
}

.res-hub-mark {
    display: grid;
    width: 2.35rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--res-line-strong);
    border-radius: 50%;
    color: var(--res-accent);
    background: #fff;
    box-shadow: 0 8px 18px rgba(41, 89, 123, .1);
}

.res-hub-brand small {
    display: block;
    margin-top: .16rem;
    color: var(--res-muted);
    font-size: .54rem;
    font-weight: 700;
    letter-spacing: .17em;
}

.res-hub-topbar nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}

.res-hub-topbar nav a {
    position: relative;
    padding: .78rem .95rem;
    border-radius: .55rem;
    color: var(--res-muted);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.res-hub-topbar nav a:hover,
.res-hub-topbar nav a.is-current {
    color: var(--res-accent-dark);
    background: rgba(213, 231, 242, .72);
}

.res-hub-topbar nav a:active {
    transform: translateY(1px);
}

.res-hub-hero {
    position: relative;
    display: grid;
    min-height: clamp(31rem, 55vw, 46rem);
    overflow: hidden;
    isolation: isolate;
}

.res-hub-hero picture,
.res-hub-hero picture img,
.res-hub-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.res-hub-hero picture img {
    object-fit: cover;
    object-position: center;
}

.res-hub-hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(237, 246, 251, .98) 0%, rgba(238, 246, 250, .88) 34%, rgba(238, 246, 250, .2) 68%, rgba(238, 246, 250, .12) 100%),
        linear-gradient(0deg, #edf4f8 0%, transparent 25%);
}

.res-hub-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(42rem, 54vw);
    align-self: center;
    flex-direction: column;
    align-items: flex-start;
    margin-left: max(1rem, calc((100vw - 1320px) / 2));
    padding: 5rem 2rem 8rem;
}

.res-hub-hero-copy p,
.res-explorer-heading p,
.res-data-guide p {
    margin: 0 0 .8rem;
    color: var(--res-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.res-hub-hero-copy h1 {
    margin: 0;
    color: var(--res-ink-strong);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: clamp(3.6rem, 7vw, 7rem);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.08em;
    text-wrap: balance;
}

.res-hub-hero-copy strong {
    max-width: 28rem;
    margin-top: 1.5rem;
    color: #214d6d;
    font-size: clamp(1.05rem, 1.8vw, 1.5rem);
    line-height: 1.55;
    text-wrap: balance;
}

.res-hub-hero-copy > span {
    max-width: 37rem;
    margin-top: 1rem;
    color: #58718a;
    font-size: .92rem;
    line-height: 1.9;
    text-wrap: pretty;
}

.res-primary-link {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1.2rem;
    border: 1px solid var(--res-line-strong);
    border-radius: .4rem;
    color: #fff;
    background: var(--res-accent-dark);
    box-shadow: 0 12px 24px rgba(31, 82, 123, .18);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.res-primary-link:hover {
    background: #173f62;
    transform: translateY(-2px);
}

.res-primary-link:active {
    transform: translateY(0);
}

.res-hub-stats {
    position: absolute;
    z-index: 3;
    right: max(1rem, calc((100vw - 1320px) / 2));
    bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: .85rem .85rem .3rem .85rem;
    background: rgba(246, 251, 253, .82);
    box-shadow: var(--res-shadow);
    backdrop-filter: blur(16px);
}

.res-hub-stats div {
    padding: 1rem 1.3rem;
}

.res-hub-stats div + div {
    border-left: 1px solid var(--res-line);
}

.res-hub-stats dt {
    color: var(--res-ink-strong);
    font-family: "Consolas", monospace;
    font-size: 1.3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.res-hub-stats dd {
    margin: .2rem 0 0;
    color: var(--res-muted);
    font-size: .68rem;
}

.res-explorer,
.res-data-guide {
    width: min(1320px, calc(100% - 2rem));
    margin-inline: auto;
}

.res-explorer {
    padding: clamp(4rem, 7vw, 7rem) 0 6rem;
}

.res-explorer-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.res-explorer-heading h2,
.res-data-guide h2 {
    margin: 0;
    color: var(--res-ink-strong);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.res-explorer-heading > div > span,
.res-data-guide > div > span {
    display: block;
    max-width: 42rem;
    margin-top: .75rem;
    color: var(--res-muted);
    font-size: .86rem;
    line-height: 1.75;
}

.res-explorer-heading > strong {
    padding-bottom: .35rem;
    color: var(--res-accent);
    font-family: "Consolas", monospace;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.res-filter-panel {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) minmax(0, 1.4fr) minmax(0, 1.75fr);
    gap: 1rem 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 35px rgba(42, 84, 115, .07);
}

.res-search {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    border: 1px solid var(--res-line);
    border-radius: .55rem;
    background: rgba(245, 250, 253, .9);
}

.res-search > span {
    color: var(--res-accent);
    text-align: center;
}

.res-search input {
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    padding: 0 .75rem 0 0;
    border: 0;
    outline: 0;
    color: var(--res-ink);
    background: transparent;
    font-size: .78rem;
}

.res-search:focus-within {
    border-color: rgba(47, 111, 159, .56);
    box-shadow: 0 0 0 3px rgba(47, 111, 159, .1);
}

.res-filter-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: .65rem;
}

.res-filter-row > span {
    color: var(--res-muted);
    font-size: .69rem;
    font-weight: 700;
}

.res-filter-scroll {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: .38rem;
    overflow: visible;
}

.res-filter-scroll button,
.res-empty-state button {
    min-height: 2.05rem;
    padding: .35rem .72rem;
    border: 1px solid transparent;
    border-radius: .4rem;
    color: var(--res-muted);
    background: transparent;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.res-filter-scroll button:hover,
.res-filter-scroll button.is-active {
    border-color: var(--res-line-strong);
    color: var(--res-accent-dark);
    background: var(--res-accent-soft);
}

.res-filter-scroll button:active,
.res-empty-state button:active {
    transform: translateY(1px);
}

.resonance-roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.resonance-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 14.5rem;
    max-height: 16rem;
    grid-template-columns: minmax(0, 1.08fr) minmax(8rem, .92fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 1rem 1rem .3rem 1rem;
    color: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .98), rgba(245, 250, 253, .88)),
        #fff;
    box-shadow: 0 18px 45px rgba(39, 80, 112, .09);
    text-decoration: none;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.resonance-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--res-accent), rgba(118, 176, 207, .2));
    content: "";
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .24s ease;
}

.resonance-card:hover {
    z-index: 1;
    border-color: rgba(92, 145, 184, .26);
    box-shadow: 0 26px 60px rgba(39, 80, 112, .15);
    transform: translateY(-4px);
}

.resonance-card:hover::after {
    transform: scaleX(1);
}

.res-card-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 0 1.5rem 1.6rem;
}

.res-card-index {
    color: #7591a8;
    font-family: "Consolas", monospace;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.res-card-copy h3 {
    margin: 1rem 0 .2rem;
    color: var(--res-ink-strong);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: clamp(1.75rem, 2.7vw, 2.55rem);
    line-height: 1;
    letter-spacing: -.03em;
}

.res-card-copy > strong {
    color: var(--res-accent);
    font-size: .78rem;
}

.res-card-copy > p {
    max-width: 25rem;
    margin: .8rem 0 0;
    color: var(--res-muted);
    font-size: .75rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.res-card-copy dl {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.1rem;
    margin: auto 0 .9rem;
    padding-top: 1rem;
}

.res-card-copy dl div {
    display: flex;
    align-items: baseline;
    gap: .35rem;
}

.res-card-copy dt {
    color: #8a9db0;
    font-size: .6rem;
}

.res-card-copy dd {
    margin: 0;
    color: var(--res-ink);
    font-size: .7rem;
    font-weight: 800;
}

.res-card-action {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--res-accent-dark);
    font-size: .72rem;
    font-weight: 800;
}

.res-card-action b {
    transition: transform .2s ease;
}

.resonance-card:hover .res-card-action b {
    transform: translateX(.25rem);
}

.res-card-portrait {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    min-height: 100%;
    place-items: center;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 55% 40%, rgba(255, 255, 255, .9), transparent 45%),
        linear-gradient(145deg, rgba(211, 229, 241, .6), rgba(231, 240, 247, .26));
}

.res-card-portrait::before {
    position: absolute;
    inset: 8% 8% auto auto;
    width: 3.5rem;
    aspect-ratio: 1;
    border: 1px solid rgba(65, 118, 157, .17);
    border-radius: 50%;
    content: "";
}

.res-card-portrait img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 14rem;
    object-fit: contain;
    object-position: center;
}

.res-empty-state {
    display: grid;
    min-height: 15rem;
    place-items: center;
    align-content: center;
    gap: .55rem;
    border: 1px dashed var(--res-line-strong);
    border-radius: 1rem;
    color: var(--res-muted);
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

.res-empty-state[hidden] {
    display: none;
}

.res-empty-state strong {
    color: var(--res-ink);
}

.res-empty-state button {
    margin-top: .5rem;
    color: #fff;
    background: var(--res-accent-dark);
}

.res-data-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(24rem, .85fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 1.2rem 1.2rem .4rem 1.2rem;
    background:
        linear-gradient(115deg, rgba(252, 254, 255, .95), rgba(226, 239, 247, .76)),
        #f7fbfd;
    box-shadow: var(--res-shadow);
}

.res-data-guide ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.res-data-guide li {
    display: grid;
    min-height: 5.8rem;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    padding: .9rem;
    border: 1px solid var(--res-line);
    border-radius: .65rem;
    background: rgba(255, 255, 255, .62);
}

.res-data-guide li b {
    color: #7b9ab1;
    font-family: "Consolas", monospace;
    font-size: .72rem;
}

.res-data-guide li span {
    color: var(--res-ink);
    font-size: .75rem;
    line-height: 1.55;
}

.res-hub-footer {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem max(1rem, calc((100vw - 1320px) / 2));
    border-top: 1px solid var(--res-line);
    color: var(--res-muted);
    background: rgba(248, 252, 254, .76);
    font-size: .7rem;
}

.res-hub-footer a {
    color: var(--res-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1040px) {
    .res-filter-panel {
        grid-template-columns: 1fr;
    }

    .res-filter-row {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .resonance-card {
        min-height: 17rem;
    }

    .res-data-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 4rem;
    }

    .res-hub-topbar {
        position: sticky;
        min-height: 3.85rem;
        gap: .6rem;
        padding: 0 .8rem;
    }

    .res-hub-brand {
        flex: 0 0 auto;
    }

    .res-hub-brand > span:last-child {
        display: none;
    }

    .res-hub-mark {
        width: 2.05rem;
    }

    .res-hub-topbar nav {
        min-width: 0;
        flex-wrap: nowrap;
        gap: .12rem;
    }

    .res-hub-topbar nav a {
        padding: .62rem .5rem;
        font-size: .68rem;
        white-space: nowrap;
    }

    .res-hub-topbar nav a.is-current {
        display: none;
    }

    .res-hub-hero {
        min-height: clamp(30rem, 126vw, 35rem);
    }

    .res-hub-hero picture img {
        object-position: center top;
    }

    .res-hub-hero-shade {
        background:
            linear-gradient(0deg, rgba(237, 244, 248, 1) 0%, rgba(237, 244, 248, .93) 30%, rgba(237, 244, 248, .2) 72%, rgba(237, 244, 248, .06) 100%);
    }

    .res-hub-hero-copy {
        width: auto;
        align-self: end;
        margin: 0;
        padding: 10rem 1rem 6.8rem;
    }

    .res-hub-hero-copy h1 {
        font-size: clamp(3.2rem, 16vw, 4.7rem);
    }

    .res-hub-hero-copy strong {
        margin-top: 1rem;
        font-size: 1rem;
    }

    .res-hub-hero-copy > span {
        margin-top: .55rem;
        font-size: .75rem;
        line-height: 1.7;
    }

    .res-primary-link {
        min-height: 2.5rem;
        margin-top: 1rem;
        font-size: .7rem;
    }

    .res-hub-stats {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .res-hub-stats div {
        padding: .72rem .55rem;
        text-align: center;
    }

    .res-hub-stats dt {
        font-size: .95rem;
    }

    .res-hub-stats dd {
        font-size: .57rem;
    }

    .res-explorer,
    .res-data-guide {
        width: min(100% - 1.25rem, 1320px);
    }

    .res-explorer {
        padding: 3.2rem 0 4rem;
    }

    .res-explorer-heading {
        align-items: start;
        margin-bottom: 1.4rem;
    }

    .res-explorer-heading > strong {
        flex: 0 0 auto;
        font-size: .65rem;
    }

    .res-explorer-heading h2,
    .res-data-guide h2 {
        font-size: 2rem;
    }

    .res-explorer-heading > div > span {
        font-size: .7rem;
        line-height: 1.6;
    }

    .res-filter-panel {
        gap: .75rem;
        padding: .75rem;
    }

    .res-filter-row {
        grid-template-columns: 2.4rem minmax(0, 1fr);
        align-items: start;
    }

    .res-filter-row > span {
        padding-top: .55rem;
    }

    .res-filter-scroll {
        gap: .3rem;
    }

    .res-filter-scroll button {
        min-height: 1.95rem;
        padding: .3rem .58rem;
        font-size: .63rem;
    }

    .resonance-roster {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .resonance-card {
        min-height: 11rem;
        max-height: 12rem;
        grid-template-columns: minmax(0, 1.15fr) minmax(6.5rem, .85fr);
        border-radius: .85rem .85rem .25rem .85rem;
    }

    .resonance-card:hover {
        transform: none;
    }

    .res-card-copy {
        padding: 1.05rem 0 1rem 1.05rem;
    }

    .res-card-index {
        font-size: .52rem;
    }

    .res-card-copy h3 {
        margin-top: .65rem;
        font-size: 1.55rem;
    }

    .res-card-copy > strong {
        font-size: .65rem;
    }

    .res-card-copy > p {
        margin-top: .55rem;
        font-size: .65rem;
        line-height: 1.55;
    }

    .res-card-copy dl {
        gap: .45rem .7rem;
        margin-bottom: .65rem;
        padding-top: .7rem;
    }

    .res-card-copy dt {
        font-size: .52rem;
    }

    .res-card-copy dd,
    .res-card-action {
        font-size: .6rem;
    }

    .res-card-portrait {
        align-self: stretch;
    }

    .res-card-portrait img {
        max-height: 10rem;
        object-fit: contain;
    }

    .res-data-guide {
        gap: 1.5rem;
        margin-bottom: 3.5rem;
        padding: 1.35rem;
    }

    .res-data-guide > div > span {
        font-size: .7rem;
    }

    .res-data-guide ol {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .res-data-guide li {
        min-height: 3.7rem;
    }

    .res-hub-footer {
        position: static;
        display: grid;
        min-height: 0;
        padding: 1.2rem 1rem;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .res-hub-topbar nav a {
        padding-inline: .38rem;
        font-size: .62rem;
    }

    .resonance-card {
        min-height: 10rem;
        max-height: 11rem;
        grid-template-columns: minmax(0, 1.2fr) minmax(5.5rem, .8fr);
    }

    .res-card-copy > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
}

/* PC 档案工作台：14 条档案固定在左侧，悬浮预览固定在右侧。 */
.res-archive-workbench {
    display: grid;
    grid-template-columns: minmax(31rem, .92fr) minmax(28rem, 1.08fr);
    gap: 1.25rem;
    align-items: start;
}

.res-archive-workbench .resonance-roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.res-archive-workbench .resonance-preview {
    position: sticky;
    top: 5.5rem;
    min-height: 35rem;
    margin: 0;
    padding: 1.1rem;
    overflow: hidden;
}

.res-archive-workbench .resonance-preview:not(:empty) {
    grid-template-columns: minmax(15rem, .92fr) minmax(0, 1.08fr);
    gap: 1.15rem;
    align-items: stretch;
}

.res-archive-workbench .res-preview-visual {
    min-height: 32.8rem;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: .8rem;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .94), transparent 12rem),
        linear-gradient(155deg, #d9e9f4, #eef5f9 65%, #d4e4ef);
}

.res-archive-workbench .res-preview-visual img {
    width: 100%;
    max-width: none;
    height: 31.5rem;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
    background: transparent;
}

.res-archive-workbench .res-preview-copy {
    align-self: center;
    padding: .4rem .25rem;
}

.res-archive-workbench .res-preview-copy h3 {
    font-size: clamp(2.1rem, 3.1vw, 3.35rem);
    letter-spacing: -.06em;
}

.res-archive-workbench .res-preview-copy > strong {
    font-size: 1rem;
}

.res-archive-workbench .res-preview-copy dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.res-archive-workbench .res-preview-actions a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: .65rem .9rem;
}

.res-archive-workbench .resonance-index-item {
    min-height: 4.75rem;
    grid-template-columns: 4.15rem minmax(0, 1fr);
    gap: .65rem;
    padding: .38rem .55rem .38rem .38rem;
}

.res-archive-workbench .resonance-index-item > img {
    width: 4.15rem;
    height: 4rem;
}

.res-archive-workbench .resonance-index-item > small {
    position: absolute;
    right: .55rem;
    bottom: .42rem;
}

@media (max-width: 1100px) {
    .res-archive-workbench {
        grid-template-columns: minmax(24rem, .9fr) minmax(24rem, 1.1fr);
    }

    .res-archive-workbench .resonance-roster {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .res-archive-workbench {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .res-archive-workbench .resonance-roster,
    .res-archive-workbench .resonance-preview {
        width: 100%;
    }

    .res-archive-workbench .resonance-roster {
        grid-template-columns: 1fr;
        order: 1;
    }

    .res-archive-workbench .resonance-preview {
        position: static;
        min-height: 0;
        order: 2;
    }

    .res-archive-workbench .resonance-preview:not(:empty) {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: .8rem;
    }

    .res-archive-workbench .res-preview-visual {
        width: 6.5rem;
        min-height: 9rem;
    }

    .res-archive-workbench .res-preview-visual img {
        width: 6.5rem;
        height: 9rem;
    }

    .res-archive-workbench .res-preview-copy h3 {
        font-size: 1.35rem;
    }

    .res-archive-workbench .res-preview-copy dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* 共鸣档案预览区域 */
.resonance-preview {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--res-line);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(220, 235, 245, .6));
    box-shadow: var(--res-shadow);
}

.resonance-preview:not(:empty) {
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
}

.res-preview-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.res-preview-visual img {
    width: 100%;
    max-width: 14rem;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    background: var(--res-surface);
}

.res-preview-visual span {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    background: var(--res-accent);
    color: #fff;
    font-size: 0.65rem;
}

.res-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.res-preview-copy p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--res-muted);
    letter-spacing: 0.05em;
}

.res-preview-copy h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--res-ink-strong);
}

.res-preview-copy > strong {
    font-size: 0.9rem;
    color: var(--res-accent-dark);
}

.res-preview-copy dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--res-line);
    border-bottom: 1px solid var(--res-line);
}

.res-preview-copy dl div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.res-preview-copy dt {
    font-size: 0.65rem;
    color: var(--res-muted);
}

.res-preview-copy dd {
    margin: 0;
    font-size: 0.85rem;
    color: var(--res-ink-strong);
}

.res-preview-copy > span {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--res-muted);
}

.res-preview-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.res-preview-actions a {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.res-preview-actions a:first-child {
    background: var(--res-accent);
    color: #fff;
}

.res-preview-actions a:first-child:hover {
    background: var(--res-accent-dark);
}

.res-preview-actions a:last-child {
    background: var(--res-soft);
    color: var(--res-accent-dark);
}

.res-preview-actions a:last-child:hover {
    background: var(--res-accent-soft);
}

.res-preview-placeholder {
    text-align: center;
    color: var(--res-muted);
    padding: 2rem;
}

/* 响应式：移动端预览区域 */
@media (max-width: 760px) {
    .resonance-preview:not(:empty) {
        grid-template-columns: 1fr;
    }

    .res-preview-visual {
        max-width: 10rem;
        margin: 0 auto;
    }

    .res-preview-copy dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .resonance-preview {
        padding: 1rem;
    }

    .res-preview-copy dl {
        grid-template-columns: 1fr;
    }

    .res-preview-actions {
        flex-direction: column;
    }

    .res-preview-actions a {
        text-align: center;
    }
}

/* 共鸣索引采用紧凑资料行。JS 使用 index-item 结构，必须限制原图尺寸，
   避免角色竖图按原始像素撑开列表。 */
.resonance-index-item {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 6.2rem;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: .65rem .85rem .65rem .65rem;
    border: 1px solid rgba(75, 118, 153, .16);
    border-radius: .85rem .85rem .25rem .85rem;
    color: inherit;
    background: rgba(252, 254, 255, .9);
    box-shadow: 0 12px 30px rgba(39, 80, 112, .07);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.resonance-index-item::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--res-accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.resonance-index-item:hover,
.resonance-index-item:focus-visible,
.resonance-index-item.is-selected {
    border-color: rgba(46, 112, 159, .34);
    box-shadow: 0 17px 36px rgba(39, 80, 112, .12);
    transform: translateY(-2px);
}

.resonance-index-item:hover::after,
.resonance-index-item:focus-visible::after,
.resonance-index-item.is-selected::after {
    transform: scaleX(1);
}

.resonance-index-item > img {
    display: block;
    width: 5.5rem;
    height: 5rem;
    border-radius: .62rem;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(145deg, rgba(211, 229, 241, .72), rgba(243, 248, 251, .9));
}

.resonance-index-copy {
    min-width: 0;
}

.resonance-index-copy > span {
    color: var(--res-accent);
    font-size: .6rem;
    font-weight: 800;
}

.resonance-index-copy h3 {
    margin: .28rem 0 0;
    overflow: hidden;
    color: var(--res-ink-strong);
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resonance-index-copy p {
    margin: .24rem 0 0;
    overflow: hidden;
    color: var(--res-muted);
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resonance-index-item > small {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--res-accent-dark);
    font-size: .62rem;
    font-weight: 800;
    white-space: nowrap;
}

.resonance-index-item > small b {
    font-size: .82rem;
    transition: transform .2s ease;
}

.resonance-index-item:hover > small b {
    transform: translateX(.2rem);
}

@media (max-width: 760px) {
    .resonance-roster {
        gap: .55rem;
    }

    .resonance-index-item {
        min-height: 5.25rem;
        grid-template-columns: 4.6rem minmax(0, 1fr) auto;
        gap: .7rem;
        padding: .42rem .65rem .42rem .42rem;
        border-radius: .72rem .72rem .2rem .72rem;
        box-shadow: 0 9px 22px rgba(39, 80, 112, .065);
    }

    .resonance-index-item:hover,
    .resonance-index-item:focus-visible,
    .resonance-index-item.is-selected {
        transform: none;
    }

    .resonance-index-item > img {
        width: 4.6rem;
        height: 4.35rem;
        border-radius: .52rem;
    }

    .resonance-index-copy h3 {
        font-size: .94rem;
    }

    .resonance-index-item > small {
        font-size: .56rem;
    }

    .resonance-preview:not(:empty) {
        grid-template-columns: 5.8rem minmax(0, 1fr);
        gap: .85rem;
        align-items: center;
        padding: .8rem;
    }

    .res-preview-visual {
        width: 5.8rem;
        max-width: 5.8rem;
        margin: 0;
    }

    .res-preview-visual img {
        width: 5.8rem;
        max-width: none;
        max-height: 7.2rem;
        border-radius: .55rem;
    }

    .res-preview-visual span {
        top: .3rem;
        right: .3rem;
        padding: .18rem .35rem;
        font-size: .5rem;
    }

    .res-preview-copy {
        gap: .28rem;
    }

    .res-preview-copy h3 {
        font-size: 1.15rem;
    }

    .res-preview-copy > strong {
        font-size: .72rem;
    }

    .res-preview-copy dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .35rem;
        margin: .3rem 0;
        padding: .45rem 0;
    }

    .res-preview-copy dt {
        font-size: .5rem;
    }

    .res-preview-copy dd {
        font-size: .65rem;
    }

    .res-preview-copy > span {
        display: -webkit-box;
        overflow: hidden;
        font-size: .62rem;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .res-preview-actions {
        flex-direction: row;
        gap: .4rem;
        margin-top: .35rem;
    }

    .res-preview-actions a {
        min-width: 0;
        padding: .42rem .5rem;
        font-size: .62rem;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .resonance-index-item {
        grid-template-columns: 4.35rem minmax(0, 1fr);
    }

    .resonance-index-item > img {
        width: 4.35rem;
        height: 4.15rem;
    }

    .resonance-index-item > small {
        grid-column: 2;
        justify-self: start;
        margin-top: -.1rem;
    }

    .resonance-preview:not(:empty) {
        grid-template-columns: 5.25rem minmax(0, 1fr);
        padding: .7rem;
    }

    .res-preview-visual,
    .res-preview-visual img {
        width: 5.25rem;
        max-width: 5.25rem;
    }

    .res-preview-copy dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .res-preview-actions {
        flex-direction: row;
    }
}
