:root {
    --zt-purple: #694269;
    --zt-purple-dark: #553454;
    --zt-pink: #ff5b73;
    --zt-orange: #ff8a4c;
    --zt-text: #333;
    --zt-muted: #888;
    --zt-line: #e7e7e7;
    --zt-bg: #f2f2f2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--zt-text);
    background: #fcfcfc;
    font: 14px/1.6 Arial, "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.zt-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.zt-topbar {
    height: 54px;
    color: #fff;
    background: var(--zt-purple);
}

.zt-topbar-inner {
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: space-between;
}

.zt-logo {
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 700;
}

.zt-nav {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.zt-nav a {
    display: flex;
    min-width: 82px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: rgba(255, 255, 255, .88);
}

.zt-nav a:hover,
.zt-nav a.active {
    color: #fff;
    background: var(--zt-purple-dark);
}

.zt-footer {
    margin-top: 36px;
    padding: 28px 0;
    color: #999;
    text-align: center;
    border-top: 1px solid var(--zt-line);
    background: #fff;
}

.zt-footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.zt-footer p {
    margin: 10px 0 0;
}

/* Topic navigation */
.zt-index-page {
    background: var(--zt-bg);
}

.zt-topic-index {
    margin-top: 20px;
    padding: 28px 40px 40px;
    background: #fff;
}

.zt-index-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--zt-line);
}

.zt-index-heading h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.zt-index-heading p {
    margin: 3px 0 0;
    color: var(--zt-muted);
}

.zt-index-heading > span {
    color: var(--zt-pink);
}

.zt-letter-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.zt-letter-jump a {
    width: 34px;
    height: 32px;
    color: #666;
    line-height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
}

.zt-letter-jump a:hover {
    color: #fff;
    border-color: var(--zt-pink);
    background: var(--zt-pink);
}

.zt-topic-groups {
    margin: 0;
}

.zt-topic-group {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: 52px;
    border-top: 1px dotted #ddd;
}

.zt-topic-group:first-child {
    border-top: 0;
}

.zt-topic-group dt {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding-top: 14px;
    color: var(--zt-pink);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.zt-topic-group dd {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 18px;
    margin: 0;
    padding: 12px 0;
}

.zt-topic-group dd a {
    min-width: 0;
    padding: 4px 0;
    overflow: hidden;
    color: #555;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zt-topic-group dd a:hover {
    color: var(--zt-pink);
}

/* Topic member list */
.zt-list-container {
    padding-top: 18px;
}

.zt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: #777;
    font-size: 13px;
}

.zt-breadcrumb a:hover {
    color: var(--zt-pink);
}

.zt-breadcrumb b {
    color: #bbb;
    font-weight: 400;
}

.zt-filter {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 72px;
    padding: 15px 22px;
    border: 1px solid var(--zt-line);
    background: #fff;
}

.zt-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.zt-filter select {
    width: 92px;
    height: 36px;
    padding: 0 28px 0 10px;
    color: #555;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
}

.zt-filter input {
    width: 190px;
    height: 36px;
    padding: 0 10px;
    color: #555;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
}

.zt-filter button {
    height: 36px;
    padding: 0 24px;
    color: #fff;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    background: var(--zt-pink);
}

.zt-filter button:hover {
    background: #ee455f;
}

.zt-page-title {
    margin: 22px 0 14px;
    font-size: 22px;
    font-weight: 500;
}

.zt-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 850px) 300px;
    gap: 30px;
    align-items: start;
}

.zt-content-column,
.zt-sidebar section {
    border: 1px solid var(--zt-line);
    background: #fff;
}

.zt-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--zt-line);
}

.zt-featured-card {
    min-width: 0;
}

.zt-featured-card img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    object-fit: cover;
    background: #f5f5f5;
}

.zt-featured-name {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.zt-featured-name strong {
    min-width: 0;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zt-featured-name span {
    flex: 0 0 auto;
    color: var(--zt-muted);
    font-size: 12px;
}

.zt-featured-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--zt-muted);
    font-size: 12px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zt-featured-card:hover strong,
.zt-member-detail h2 a:hover {
    color: var(--zt-pink);
}

.zt-member-list {
    padding: 0 22px;
}

.zt-member-item {
    position: relative;
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 22px;
    min-height: 216px;
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.zt-member-item:first-child {
    border-top: 0;
}

.zt-member-photo {
    min-width: 0;
}

.zt-member-photo img {
    width: 152px;
    height: 152px;
    object-fit: cover;
    background: #f5f5f5;
}

.zt-member-photo span {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: #888;
    font-size: 12px;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zt-member-detail {
    min-width: 0;
    padding-right: 96px;
}

.zt-member-detail h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
}

.zt-member-detail p {
    margin: 5px 0;
    color: #666;
}

.zt-member-detail .zt-intro {
    display: -webkit-box;
    max-width: 530px;
    overflow: hidden;
    color: #888;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zt-looking {
    padding-top: 5px;
    color: #999 !important;
}

.zt-chat {
    position: absolute;
    right: 0;
    bottom: 26px;
    width: 80px;
    height: 34px;
    color: #fff;
    line-height: 34px;
    text-align: center;
    border-radius: 2px;
    background: var(--zt-orange);
}

.zt-chat:hover {
    background: #f27636;
}

.zt-empty {
    padding: 70px 20px;
    color: var(--zt-muted);
    text-align: center;
}

.zt-more-members {
    padding: 16px 22px 30px;
    text-align: center;
}

.zt-more-members a {
    display: inline-block;
    padding: 10px 34px;
    color: var(--zt-pink);
    font-size: 16px;
    border: 2px solid var(--zt-pink);
    border-radius: 30px;
    background: #fff;
    transition: color .2s, background-color .2s;
}

.zt-more-members a:hover {
    color: #fff;
    background: var(--zt-pink);
}

.zt-more-members span {
    font-size: 18px;
}

.zt-sidebar {
    display: grid;
    gap: 18px;
}

.zt-sidebar h2 {
    margin: 0;
    padding: 12px 16px;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--zt-line);
}

.zt-side-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    padding: 10px 16px 14px;
}

.zt-side-links a {
    min-width: 0;
    padding: 5px 0;
    overflow: hidden;
    color: #666;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zt-side-links a:hover {
    color: var(--zt-pink);
}

.zt-bottom-breadcrumb {
    margin-top: 18px;
    padding: 10px 14px;
    border: 1px solid var(--zt-line);
    background: #fff;
}

@media (max-width: 900px) {
    .zt-wrap {
        width: min(100% - 24px, 720px);
    }

    .zt-topbar,
    .zt-topbar-inner {
        height: 50px;
    }

    .zt-logo {
        font-size: 20px;
    }

    .zt-nav a {
        min-width: 0;
        padding: 0 11px;
        font-size: 13px;
    }

    .zt-topic-index {
        margin-top: 12px;
        padding: 20px;
    }

    .zt-topic-group dd {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zt-filter {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .zt-main-layout {
        grid-template-columns: 1fr;
    }

    .zt-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body {
        font-size: 13px;
    }

    .zt-wrap {
        width: 100%;
    }

    .zt-topbar-inner {
        padding-left: 14px;
    }

    .zt-nav a {
        padding: 0 9px;
    }

    .zt-nav a:nth-child(2) {
        display: none;
    }

    .zt-topic-index {
        margin-top: 0;
        padding: 16px 14px 24px;
    }

    .zt-index-heading {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .zt-index-heading h1 {
        font-size: 20px;
    }

    .zt-letter-jump {
        flex-wrap: nowrap;
        margin-right: -14px;
        margin-left: -14px;
        padding: 0 14px 8px;
        overflow-x: auto;
    }

    .zt-letter-jump a {
        flex: 0 0 34px;
    }

    .zt-topic-group {
        grid-template-columns: 38px 1fr;
    }

    .zt-topic-group dd {
        gap: 0 12px;
    }

    .zt-topic-group dd a {
        padding: 6px 0;
    }

    .zt-list-container {
        padding: 0 12px;
    }

    .zt-breadcrumb {
        overflow: hidden;
        white-space: nowrap;
    }

    .zt-breadcrumb span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .zt-filter {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .zt-filter label {
        justify-content: space-between;
    }

    .zt-filter label select {
        flex: 1 1 auto;
        max-width: 108px;
    }

    .zt-filter label input {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .zt-filter button {
        width: 100%;
    }

    .zt-page-title {
        margin: 16px 0 10px;
        font-size: 19px;
    }

    .zt-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
        padding: 12px;
    }

    .zt-member-list {
        padding: 0 12px;
    }

    .zt-more-members {
        padding: 14px 12px 24px;
    }

    .zt-more-members a {
        padding: 9px 30px;
        font-size: 15px;
    }

    .zt-member-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        min-height: 194px;
        padding: 16px 0;
    }

    .zt-member-photo img {
        width: 112px;
        height: 126px;
    }

    .zt-member-detail {
        padding-right: 0;
    }

    .zt-member-detail h2 {
        font-size: 16px;
    }

    .zt-member-detail .zt-intro {
        -webkit-line-clamp: 3;
    }

    .zt-member-detail p:not(.zt-intro) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .zt-chat {
        position: static;
        display: block;
        width: 74px;
        height: 30px;
        margin-top: 8px;
        line-height: 30px;
    }

    .zt-sidebar {
        grid-template-columns: 1fr;
    }

    .zt-bottom-breadcrumb {
        margin-bottom: 10px;
    }

    .zt-footer {
        margin-top: 16px;
        padding: 20px 12px;
    }

    .zt-footer-links {
        gap: 16px;
    }
}
