.legacy-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* People: preserve the legacy sidebar and horizontal profile rows. */
.template-people-index .legacy-people {
    width: min(calc(100% - 40px), 1120px);
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 72px;
}

.template-people-index .legacy-people__sidebar {
    min-width: 0;
    padding-top: 11px;
    border-top: 4px solid #8996a1;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.template-people-index .legacy-people__sidebar h2 {
    margin: 0;
    color: #1f1f1f;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0;
}

.template-people-index .legacy-people__tabs {
    display: grid;
    justify-items: start;
}

.template-people-index .legacy-people__tab {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 0;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #346ba6;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    text-align: left;
}

.template-people-index .legacy-people__tab:hover,
.template-people-index .legacy-people__tab:focus-visible {
    color: #b1040e;
    text-decoration: underline;
}

.template-people-index .legacy-people__tab[aria-selected="true"] {
    color: #346ba6;
    font-weight: 700;
}

.template-people-index .legacy-people__tab:focus-visible,
.template-people-index .legacy-people__former a:focus-visible {
    outline: 2px solid #f2a900;
    outline-offset: 3px;
}

.template-people-index .legacy-people__count {
    white-space: nowrap;
}

.template-people-index .legacy-people__former {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 4px solid #8996a1;
}

.template-people-index .legacy-people__former a {
    color: #346ba6;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
}

.template-people-index .legacy-people__former a:hover {
    color: #b1040e;
    text-decoration: underline;
}

.template-people-index .legacy-people__directory,
.template-people-index .legacy-people__panel {
    min-width: 0;
}

.template-people-index .legacy-people__panel[hidden] {
    display: none;
}

.template-people-index .legacy-person-row {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    padding: 15px 0 30px;
    border-bottom: 1px solid #e7e7e7;
}

.template-people-index .legacy-person-row:first-of-type {
    padding-top: 15px;
}

.template-people-index .legacy-person-row__portrait {
    display: grid;
    width: 75px;
    height: 75px;
    margin-top: 5px;
    place-items: center;
    overflow: hidden;
    background: #f0f0f0;
    color: #b1040e;
    font-size: 28px;
    font-weight: 700;
}

.template-people-index .legacy-person-row__portrait img {
    display: block;
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.template-people-index .legacy-person-row__content {
    min-width: 0;
    color: #111111;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.template-people-index .legacy-person-row__content header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.template-people-index .legacy-person-row__content h3 {
    margin: 0 0 2px;
    color: #346ba6;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.template-people-index .legacy-person-row__english,
.template-people-index .legacy-person-row__bio,
.template-people-index .legacy-person-row__meta,
.template-people-index .legacy-person-row__research {
    margin: 0 0 8px;
    color: #111111;
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}

.template-people-index .legacy-person-row__english {
    color: #555555;
    font-size: 13px;
}

.template-people-index .legacy-person-row__contacts {
    display: grid;
    justify-items: start;
    gap: 0;
}

.template-people-index .legacy-person-row__contacts a {
    max-width: 100%;
    color: #346ba6;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.template-people-index .legacy-person-row__contacts a:hover {
    color: #b1040e;
    text-decoration: underline;
}

.template-people-index .legacy-person-row__contacts a span {
    color: #111111;
}

/* Research index: the original red introduction and two-column image menu. */
.template-research-index .legacy-research-index {
    width: min(calc(100% - 26px), 1400px);
    min-height: 520px;
    margin: 0 auto;
    padding: 28px 0 72px;
}

.template-research-index .legacy-research-index__intro {
    display: flex;
    min-height: 150px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px 15%;
    background: #b1040e;
    color: #ffffff;
}

.template-research-index .legacy-research-index__intro p {
    margin: 0;
    color: #ffffff;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
}

.template-research-index .legacy-research-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 14px 50px;
    padding: 0 15px;
}

.template-research-index .legacy-research-grid__divider {
    position: absolute;
    top: 4px;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background: #6f6f6f;
    pointer-events: none;
}

.template-research-index .legacy-research-grid__divider::before,
.template-research-index .legacy-research-grid__divider::after {
    position: absolute;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b1040e;
    content: "";
}

.template-research-index .legacy-research-grid__divider::before {
    top: 0;
}

.template-research-index .legacy-research-grid__divider::after {
    bottom: 0;
}

.template-research-index .legacy-research-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 5px;
    background: #eeeeee;
    box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.template-research-index .legacy-research-card--smart-photothermal {
    grid-column: 1;
    grid-row: 1;
}

.template-research-index .legacy-research-card--flexible-multifunctional {
    grid-column: 1;
    grid-row: 2;
}

.template-research-index .legacy-research-card--bio-inspired-spectral {
    grid-column: 2;
    grid-row: 1;
}

.template-research-index .legacy-research-card--photothermal-ai {
    grid-column: 2;
    grid-row: 2;
}

.template-research-index .legacy-research-card:hover,
.template-research-index .legacy-research-card:focus-within {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
}

.template-research-index .legacy-research-card a {
    position: relative;
    display: block;
    aspect-ratio: 772 / 382;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
}

.template-research-index .legacy-research-card a:focus-visible {
    outline: 3px solid #f2a900;
    outline-offset: -3px;
}

.template-research-index .legacy-research-card img,
.template-research-index .legacy-research-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #eeeeee;
    object-fit: cover;
    transition: filter 300ms ease;
}

.template-research-index .legacy-research-card:hover img {
    filter: brightness(1.06);
}

.template-research-index .legacy-research-card h2 {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    background: rgb(177 4 14 / 82%);
    color: #ffffff;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
}

/* Research detail: legacy topic menu plus a bordered cascade of content. */
.template-research-topic .legacy-research-topic {
    width: min(calc(100% - 40px), 1400px);
    margin: 0 auto;
    padding: 28px 0 80px;
}

.template-research-topic .legacy-research-topic__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.4fr) minmax(0, 0.6fr);
    gap: 34px;
    align-items: start;
}

.template-research-topic .legacy-research-topic__nav {
    width: min(100%, 440px);
    min-height: 400px;
    justify-self: center;
    padding: 20px;
    border-radius: 8px;
    background: #b1040e;
    box-shadow: 0 5px 15px rgb(0 0 0 / 25%);
}

.template-research-topic .legacy-research-topic__nav ul {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.template-research-topic .legacy-research-topic__nav li {
    min-width: 0;
}

.template-research-topic .legacy-research-topic__nav a {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 10px 36px 10px 14px;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
    box-shadow: 0 2px 5px rgb(0 0 0 / 12%);
    color: #800000;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.template-research-topic .legacy-research-topic__nav a::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: #b1040e;
    content: "";
}

.template-research-topic .legacy-research-topic__nav a::after {
    position: absolute;
    right: 16px;
    content: "\2192";
    font-size: 20px;
}

.template-research-topic .legacy-research-topic__nav a:hover,
.template-research-topic .legacy-research-topic__nav a:focus-visible {
    transform: translateY(-2px);
    background: #ffffff;
    color: #800000;
}

.template-research-topic .legacy-research-topic__nav a:focus-visible {
    outline: 3px solid #f2a900;
    outline-offset: 2px;
}

.template-research-topic .legacy-research-topic__nav .is-active a {
    background: #b1040e;
    color: #ffffff;
    font-weight: 700;
}

.template-research-topic .legacy-research-topic__nav .is-active a::before {
    background: #ffffff;
}

.template-research-topic .legacy-research-topic__content {
    min-width: 0;
}

.template-research-topic .legacy-research-topic__header {
    position: relative;
    min-height: 28px;
    margin-bottom: 10px;
}

.template-research-topic .legacy-research-topic__header::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 28px;
    background: #b1040e;
    content: "";
}

.template-research-topic .legacy-research-topic__header h1 {
    margin: 0;
    padding-left: 15px;
    color: #222222;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0;
}

.template-research-topic .legacy-research-topic__track {
    position: relative;
    min-width: 0;
    padding: 0 22px 10px 18px;
    border-right: 2px solid #b1040e;
}

.template-research-topic .legacy-research-topic__track::before,
.template-research-topic .legacy-research-topic__track::after {
    position: absolute;
    right: -8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #b1040e;
    content: "";
}

.template-research-topic .legacy-research-topic__track::before {
    top: 0;
}

.template-research-topic .legacy-research-topic__track::after {
    bottom: 0;
}

.template-research-topic .legacy-research-topic__hero {
    margin: 0 0 24px;
    text-align: center;
}

.template-research-topic .legacy-research-topic__hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.template-research-topic .legacy-research-topic__body {
    min-width: 0;
    color: #222222;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.template-research-topic .legacy-research-topic__body > * + * {
    margin-top: 30px;
}

/* The legacy import keeps its inner cascade heading; the page header already renders it. */
.template-research-topic .legacy-research-topic__body > .rich-text:first-child > div:first-child > div:first-child > div:first-child > div:first-child > div:first-child {
    display: none;
}

.template-research-topic .legacy-research-topic__body .rich-text,
.template-research-topic .legacy-research-topic__body .rich-text p,
.template-research-topic .legacy-research-topic__summary {
    color: #222222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0;
}

.template-research-topic .legacy-research-topic__body .rich-text p,
.template-research-topic .legacy-research-topic__summary {
    margin: 0 0 20px;
}

.template-research-topic .legacy-research-topic__body .rich-text h2,
.template-research-topic .legacy-research-topic__body .rich-text h3,
.template-research-topic .legacy-research-topic__body .content-heading {
    margin: 28px 0 15px;
    color: #0d7ab8;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
}

.template-research-topic .legacy-research-topic__body table {
    width: 100%;
    border-collapse: collapse;
}

.template-research-topic .legacy-research-topic__body td {
    padding: 0 8px;
    vertical-align: top;
}

.template-research-topic .legacy-research-topic__body .content-figure,
.template-research-topic .legacy-research-topic__body .content-video,
.template-research-topic .legacy-research-topic__body .content-gallery {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.template-research-topic .legacy-research-topic__body .content-figure img,
.template-research-topic .legacy-research-topic__body .content-video video {
    display: block;
    width: auto;
    max-width: 85%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
}

.template-research-topic .legacy-research-topic__body .content-gallery__grid {
    gap: 16px;
}

.template-research-topic .legacy-research-topic__body .content-gallery img {
    border-radius: 0;
}

.template-research-topic .legacy-research-topic__people {
    width: min(100%, 960px);
    margin: 64px 0 0 auto;
    padding-top: 18px;
    border-top: 2px solid #8996a1;
}

.template-research-topic .legacy-research-topic__people h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.template-research-topic .legacy-research-topic__people-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.template-research-topic .legacy-research-topic__person {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.template-research-topic .legacy-research-topic__person > img,
.template-research-topic .legacy-research-topic__person > span {
    display: grid;
    width: 75px;
    height: 75px;
    place-items: center;
    background: #f0f0f0;
    object-fit: cover;
}

.template-research-topic .legacy-research-topic__person h3,
.template-research-topic .legacy-research-topic__person p {
    margin: 0;
}

.template-research-topic .legacy-research-topic__person h3 {
    color: #346ba6;
    font-size: 17px;
}

.template-research-topic .legacy-research-topic__person p {
    color: #555555;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .template-people-index .legacy-people {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 24px;
    }

    .template-research-topic .legacy-research-topic__layout {
        grid-template-columns: minmax(250px, 0.36fr) minmax(0, 0.64fr);
        gap: 24px;
    }

    .template-research-topic .legacy-research-topic__nav {
        min-height: 0;
    }
}

@media (max-width: 800px) {
    .template-people-index .legacy-people {
        width: min(calc(100% - 30px), 1120px);
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
        padding-bottom: 52px;
    }

    .template-people-index .legacy-people__tabs {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        gap: 5px 18px;
        justify-content: start;
    }

    .template-people-index .legacy-people__former {
        margin-top: 12px;
        padding-top: 8px;
        border-top-width: 1px;
    }

    .template-research-index .legacy-research-index {
        width: 100%;
        padding-top: 20px;
        padding-bottom: 52px;
    }

    .template-research-index .legacy-research-index__intro {
        min-height: 0;
        margin-bottom: 24px;
        padding: 10px 15%;
    }

    .template-research-index .legacy-research-index__intro p {
        line-height: 1.5;
    }

    .template-research-index .legacy-research-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0;
    }

    .template-research-index .legacy-research-grid__divider {
        display: none;
    }

    .template-research-index .legacy-research-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 10;
    }

    .template-research-index .legacy-research-card--smart-photothermal {
        order: 1;
    }

    .template-research-index .legacy-research-card--flexible-multifunctional {
        order: 2;
    }

    .template-research-index .legacy-research-card--bio-inspired-spectral {
        order: 3;
    }

    .template-research-index .legacy-research-card--photothermal-ai {
        order: 4;
    }

    .template-research-topic .legacy-research-topic {
        width: min(calc(100% - 30px), 1400px);
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .template-research-topic .legacy-research-topic__layout {
        grid-template-columns: 1fr;
    }

    .template-research-topic .legacy-research-topic__nav {
        width: 100%;
        justify-self: stretch;
        padding: 12px;
    }

    .template-research-topic .legacy-research-topic__nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .template-research-topic .legacy-research-topic__nav a {
        min-height: 48px;
        padding: 8px 28px 8px 10px;
        font-size: 15px;
    }

    .template-research-topic .legacy-research-topic__body .rich-text,
    .template-research-topic .legacy-research-topic__body .rich-text p,
    .template-research-topic .legacy-research-topic__summary {
        font-size: 16px;
    }

    .template-research-topic .legacy-research-topic__body .content-figure img,
    .template-research-topic .legacy-research-topic__body .content-video video {
        max-width: 95%;
    }

    .template-research-topic .legacy-research-topic__people {
        margin-top: 46px;
    }
}

@media (max-width: 520px) {
    .template-people-index .legacy-person-row {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 24px;
    }

    .template-people-index .legacy-person-row__content {
        font-size: 14px;
    }

    .template-people-index .legacy-person-row__content h3 {
        font-size: 17px;
    }

    .template-research-index .legacy-research-card h2 {
        font-size: 15px;
    }

    .template-research-topic .legacy-research-topic__nav ul,
    .template-research-topic .legacy-research-topic__people-list {
        grid-template-columns: 1fr;
    }

    .template-research-topic .legacy-research-topic__track {
        padding-right: 18px;
        padding-left: 4px;
    }

    .template-research-topic .legacy-research-topic__body td {
        display: block;
        width: 100%;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .template-research-index .legacy-research-card,
    .template-research-index .legacy-research-card img,
    .template-research-topic .legacy-research-topic__nav a {
        transition: none;
    }
}
