html:not([data-tylor-lang="zh"]) .tylor-homepage [data-lang="zh"],
html[data-tylor-lang="zh"] .tylor-homepage [data-lang="en"] {
    display: none !important;
}

body.page-id-2,
body.page-id-17,
body.page-id-19,
body.page-id-25 {
    background: #f7f9f6;
}

body.page-id-2 .post-title,
body.page-id-17 .post-title,
body.page-id-19 .post-title,
body.page-id-25 .post-title {
    display: none !important;
}

body.page-id-2 article,
body.page-id-17 article,
body.page-id-19 article,
body.page-id-25 article {
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: 84px auto 56px !important;
}

body.page-id-2 .post-content > .tylor-homepage,
body.page-id-17 .post-content > .tylor-homepage,
body.page-id-19 .post-content > .tylor-homepage,
body.page-id-25 .post-content > .tylor-homepage {
    width: 100% !important;
    max-width: none !important;
}

body.page-id-2.singular .post-content,
body.page-id-17.singular .post-content,
body.page-id-19.singular .post-content,
body.page-id-25.singular .post-content {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.page-id-2 .tylor-homepage article,
body.page-id-17 .tylor-homepage article,
body.page-id-19 .tylor-homepage article,
body.page-id-25 .tylor-homepage article {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.tylor-homepage,
.tylor-homepage * {
    box-sizing: border-box;
}

.tylor-homepage {
    color: #1d2522;
    font-family: inherit;
}

.tylor-shell {
    position: relative;
}

.tylor-language {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(43, 67, 60, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(33, 45, 40, 0.08);
}

.tylor-language button {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.66);
    color: #42504b;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.tylor-language button.is-active {
    border-color: rgba(47, 111, 98, 0.62);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(47, 111, 98, 0.14);
    color: inherit;
}

.tylor-flag {
    display: block;
    line-height: 1;
}

.tylor-sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tylor-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.64fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    min-height: 520px;
    padding: 76px clamp(24px, 4vw, 54px) 54px;
    border: 1px solid rgba(43, 67, 60, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 14%, rgba(174, 95, 78, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fbfcf9 56%, #eef5f1 100%);
    box-shadow: 0 24px 80px rgba(33, 45, 40, 0.08);
}

.tylor-page-hero {
    position: relative;
    min-height: 340px;
    padding: 78px clamp(24px, 5vw, 64px) 54px;
    border: 1px solid rgba(43, 67, 60, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 90% 12%, rgba(174, 95, 78, 0.10), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fbfcf9 58%, #eef5f1 100%);
    box-shadow: 0 24px 80px rgba(33, 45, 40, 0.08);
}

.tylor-page-hero .tylor-subtitle {
    max-width: 760px;
    margin-top: 20px;
}

.tylor-kicker {
    max-width: 720px;
    margin: 0 0 18px;
    color: #596a64;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.tylor-hero h1 {
    margin: 0;
    color: #18221f;
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 0.98;
}

.tylor-hero h1 .tylor-title-line {
    display: block;
    color: #18221f;
}

.tylor-hero h1 .tylor-title-line[data-lang="zh"] {
    max-width: 8em;
    line-height: 1.08;
}

.tylor-subtitle {
    margin-top: 10px;
    color: #2f6f62;
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 500;
    line-height: 1.45;
}

.tylor-lede {
    max-width: 720px;
    margin: 24px 0 0;
    color: #2b3733;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.62;
}

.tylor-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tylor-keywords span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(47, 111, 98, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #27433c;
    font-size: 14px;
    line-height: 1.25;
}

.tylor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.tylor-actions a,
.tylor-link-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(43, 67, 60, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #1f312c;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tylor-actions a:first-child {
    background: #2f6f62;
    border-color: #2f6f62;
    color: #fff;
}

.tylor-actions a:hover,
.tylor-link-list a:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 111, 98, 0.52);
}

.tylor-portrait-card {
    align-self: center;
    justify-self: end;
    display: grid;
    grid-template-rows: auto auto;
    overflow: hidden;
    width: min(100%, 300px);
    border: 1px solid rgba(43, 67, 60, 0.12);
    border-radius: 8px;
    background: #fff;
}

.tylor-portrait-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.tylor-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(43, 67, 60, 0.12);
}

.tylor-facts div {
    padding: 16px 14px;
    border-right: 1px solid rgba(43, 67, 60, 0.12);
}

.tylor-facts div:last-child {
    border-right: 0;
}

.tylor-facts span {
    display: block;
    color: #6a7772;
    font-size: 12px;
    line-height: 1.35;
}

.tylor-facts strong {
    display: block;
    margin-top: 4px;
    color: #1f312c;
    font-size: 13px;
    line-height: 1.35;
}

.tylor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
    margin-top: 18px;
}

.tylor-home-flow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.tylor-home-flow .tylor-overview-card,
.tylor-home-flow .tylor-timeline-panel {
    grid-column: span 7;
}

.tylor-home-flow .tylor-focus-panel,
.tylor-home-flow .tylor-links-panel {
    grid-column: span 5;
}

.tylor-inner-grid {
    align-items: stretch;
}

.tylor-wide-panel {
    grid-column: 1 / -1;
}

.tylor-section-block {
    margin-top: 18px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(43, 67, 60, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.tylor-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 24px;
}

.tylor-section-heading p:not(.tylor-section-label) {
    margin: 0;
    color: #51605b;
    font-size: 17px;
    line-height: 1.68;
}

.tylor-cv-timeline {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(43, 67, 60, 0.14);
}

.tylor-cv-timeline article {
    display: grid !important;
    grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
    gap: 22px;
    width: 100% !important;
    margin: 0 !important;
    padding: 22px 0 !important;
    border-bottom: 1px solid rgba(43, 67, 60, 0.14);
}

.tylor-cv-timeline time,
.tylor-card-meta {
    color: #687770;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.tylor-cv-timeline h2,
.tylor-info-card h2,
.tylor-output-card h2,
.tylor-award-card h2 {
    margin: 0 0 10px;
    color: #1f312c;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.28;
}

.tylor-cv-timeline p,
.tylor-info-card p,
.tylor-output-card p,
.tylor-award-card p {
    margin: 0 0 12px;
    color: #43514c;
    font-size: 16px;
    line-height: 1.68;
}

.tylor-cv-timeline p:last-child,
.tylor-info-card p:last-child,
.tylor-output-card p:last-child,
.tylor-award-card p:last-child {
    margin-bottom: 0;
}

.tylor-card-grid,
.tylor-output-feature-grid,
.tylor-award-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tylor-info-card,
.tylor-output-card,
.tylor-award-card {
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(43, 67, 60, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.90);
}

.tylor-output-feature {
    min-height: 240px;
}

.tylor-publication-list {
    display: grid;
    gap: 16px;
}

.tylor-publication-list .tylor-output-card {
    padding: 0;
}

.tylor-publication-list .tylor-output-card:not(.has-media) {
    padding: 24px;
}

.tylor-output-card.has-media {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    align-items: stretch;
}

.tylor-output-card.has-media img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    background: #eef2ef;
}

.tylor-output-card.has-media > div {
    padding: 24px;
}

.tylor-private-line {
    color: #687770 !important;
    font-size: 14px !important;
}

.tylor-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tylor-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(47, 111, 98, 0.22);
    border-radius: 999px;
    background: #fff;
    color: #203c35;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}

.tylor-award-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.tylor-award-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    gap: 0;
    padding: 0;
}

.tylor-award-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    background: #eef2ef;
}

.tylor-award-card > div {
    padding: 26px;
}

.tylor-clean-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tylor-clean-list li {
    padding-left: 18px;
    position: relative;
    color: #43514c;
    font-size: 16px;
    line-height: 1.58;
}

.tylor-clean-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2f6f62;
}

.tylor-panel {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(43, 67, 60, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.tylor-bio {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 249, 0.90)),
        radial-gradient(circle at 96% 0%, rgba(47, 111, 98, 0.10), transparent 34%);
}

.tylor-section-label {
    margin: 0 0 18px;
    color: #2f6f62;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.tylor-panel p {
    margin: 0 0 16px;
    color: #33413d;
    font-size: 17px;
    line-height: 1.78;
}

.tylor-panel p:last-child {
    margin-bottom: 0;
}

.tylor-panel a {
    color: #203c35;
    text-decoration-color: rgba(47, 111, 98, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.tylor-overview-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.tylor-overview-list li {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(47, 111, 98, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.tylor-overview-list span {
    display: block;
    margin-bottom: 8px;
    color: #687770;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-transform: uppercase;
}

.tylor-overview-list strong {
    display: block;
    color: #203c35;
    font-size: 15px;
    line-height: 1.42;
}

.tylor-focus-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tylor-focus-list li {
    padding-top: 16px;
    border-top: 1px solid rgba(43, 67, 60, 0.12);
}

.tylor-focus-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.tylor-focus-list strong,
.tylor-focus-list span {
    display: block;
}

.tylor-focus-list strong {
    margin-bottom: 6px;
    color: #1f312c;
    font-size: 16px;
}

.tylor-focus-list span {
    color: #51605b;
    font-size: 15px;
    line-height: 1.6;
}

.tylor-timeline {
    display: grid;
    gap: 14px;
}

.tylor-timeline div {
    position: relative;
    padding-left: 22px;
}

.tylor-timeline div::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #a85e4e;
    box-shadow: 0 0 0 5px rgba(168, 94, 78, 0.12);
}

.tylor-timeline span {
    display: block;
    color: #1f312c;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tylor-timeline p {
    margin: 5px 0 0;
    color: #51605b;
    font-size: 15px;
    line-height: 1.6;
}

.tylor-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tylor-links-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(168, 94, 78, 0.10), transparent 36%),
        rgba(255, 255, 255, 0.88);
}

.tylor-note {
    margin-top: 20px !important;
    color: #5a6762 !important;
    font-size: 15px !important;
}

@media (max-width: 860px) {
    body.page-id-2 article,
    body.page-id-17 article,
    body.page-id-19 article,
    body.page-id-25 article {
        width: min(100% - 32px, 720px) !important;
        margin-top: 42px !important;
    }

    .tylor-language {
        top: 12px;
        right: 12px;
    }

    .tylor-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 72px 20px 24px;
    }

    .tylor-portrait-card {
        justify-self: center;
        max-width: 360px;
        margin: 0 auto;
    }

    .tylor-portrait-card img {
        min-height: 320px;
    }

    .tylor-grid {
        grid-template-columns: 1fr;
    }

    .tylor-home-flow {
        grid-template-columns: 1fr;
    }

    .tylor-home-flow .tylor-overview-card,
    .tylor-home-flow .tylor-focus-panel,
    .tylor-home-flow .tylor-timeline-panel,
    .tylor-home-flow .tylor-links-panel {
        grid-column: auto;
    }

    .tylor-overview-list {
        grid-template-columns: 1fr;
    }

    .tylor-page-hero {
        min-height: 0;
        padding: 72px 20px 24px;
    }

    .tylor-section-heading,
    .tylor-cv-timeline article,
    .tylor-card-grid,
    .tylor-output-feature-grid,
    .tylor-output-card.has-media,
    .tylor-award-card {
        grid-template-columns: 1fr;
    }

    .tylor-output-card.has-media img,
    .tylor-award-card img {
        min-height: 180px;
        max-height: 260px;
    }
}

@media (max-width: 520px) {
    body.page-id-2 article,
    body.page-id-17 article,
    body.page-id-19 article,
    body.page-id-25 article {
        width: calc(100% - 28px) !important;
    }

    .tylor-kicker {
        font-size: 12px;
    }

    .tylor-hero h1 {
        font-size: 42px;
    }

    .tylor-lede {
        font-size: 17px;
    }

    .tylor-actions a,
    .tylor-link-list a {
        width: 100%;
    }

    .tylor-facts {
        grid-template-columns: 1fr;
    }

    .tylor-facts div {
        border-right: 0;
        border-bottom: 1px solid rgba(43, 67, 60, 0.12);
    }

    .tylor-facts div:last-child {
        border-bottom: 0;
    }

    .tylor-panel p {
        font-size: 16px;
    }

    .tylor-section-block,
    .tylor-info-card,
    .tylor-output-card,
    .tylor-award-card > div,
    .tylor-publication-list .tylor-output-card:not(.has-media),
    .tylor-output-card.has-media > div {
        padding: 20px;
    }
}
