body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #fff; /* 设置背景颜色为白色 */
    color: #212529; /* 设置文字颜色为深灰色 */
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1em 0;
}

/* main {
    padding: 2em;
} */

main {
    max-width: 90%;
    margin: 20px auto;
    /* padding: 30px; */
    /* border: 2px dashed orange; */
    border-radius: 20px;
}

a {
    text-decoration: none;
}

.actor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    padding: 0;        /* 去掉默认 ul 的 padding（必要） */
    margin: 0;         /* 去掉默认 ul 的 margin（必要） */
}

.actor-list li {
    list-style: none;
    text-align: center;
}

.actor-list li a {
    display: block;
    /* border: 1px solid #ccc; */
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: black;
    background-color: white;
    transition: box-shadow 0.3s ease;
}

.actor-list li a:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.03); /* 缩放效果 */
}

.actor-list li img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.actor-list li .title {
    font-size: 0.875rem !important; /* 调整字体大小 */
    text-decoration: none;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0; /* 移除默认的 margin */
}

.actor-list li .description {
    font-size: 0.7rem !important; /* 调整字体大小 */
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0; /* 移除默认的 margin */
}

#pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

#pagination button {
    width: auto;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}

#pagination button:hover {
    background-color: #f1f1f1;
}

.column-maxlens {
    max-width: 250px;  /* 或你想要的宽度 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}

/* 2026 refresh: directory cards */
body {
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-align: initial;
    background-color: var(--page-bg, #f6f3ee);
    color: var(--ink, #201b18);
}

main {
    max-width: none;
    margin: 0 auto;
    border-radius: 0;
}

.actor-list {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    align-items: stretch;
    padding: 4px 0 0;
}

.actor-list li {
    min-width: 0;
    text-align: initial;
}

.person-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.actor-list li a.person-link,
a.person-link {
    display: block;
    height: 100%;
    padding: 0;
    border-radius: 28px;
    color: inherit;
    background: transparent;
    text-decoration: none;
    transition: transform 220ms ease, filter 220ms ease;
}

.actor-list li a.person-link:hover,
a.person-link:hover {
    color: inherit;
    transform: translateY(-8px) rotate(-1.2deg);
    filter: saturate(1.08);
}

.person-link--disabled {
    cursor: default;
}

.person-card {
    position: relative;
    display: block;
    min-height: 318px;
    height: 100%;
    padding: 12px;
    border: 2px solid rgba(44, 36, 39, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 244, 0.9));
    box-shadow:
        0 20px 46px rgba(183, 91, 91, 0.16),
        0 8px 0 rgba(44, 36, 39, 0.05);
    overflow: hidden;
}

.person-card::before {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    right: -24px;
    top: -26px;
    pointer-events: none;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 38%),
        linear-gradient(135deg, rgba(255, 216, 109, 0.76), rgba(124, 220, 196, 0.62));
    transform: rotate(16deg);
}

.person-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 18px;
    height: 10px;
    pointer-events: none;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--accent, #ff6f8d) 0 18%, transparent 18% 25%, var(--mint, #7cdcc4) 25% 46%, transparent 46% 54%, var(--lemon, #ffd86d) 54% 76%, transparent 76% 82%, var(--sky, #8ec8ff) 82%);
    opacity: 0.9;
}

.person-card__badge {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 16px;
    min-width: 52px;
    padding: 6px 9px;
    border: 2px solid rgba(44, 36, 39, 0.08);
    border-radius: 999px;
    background: #fff;
    color: var(--accent-strong, #de3f67);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 0 rgba(44, 36, 39, 0.05);
}

.person-card__media {
    position: relative;
    margin-bottom: 12px;
}

.person-card__image {
    display: block;
    width: 100%;
    height: 196px;
    border: 4px solid #fff;
    border-radius: 23px;
    object-fit: cover;
    background: #ffe8ef;
    box-shadow:
        inset 0 0 0 1px rgba(32, 27, 24, 0.06),
        0 14px 28px rgba(183, 91, 91, 0.14);
}

.person-card__image--empty {
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.75), transparent 32%),
        linear-gradient(135deg, rgba(255, 111, 141, 0.2), rgba(124, 220, 196, 0.28)),
        #ffe8ef;
}

.person-card__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 2px 2px;
}

.person-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.person-card__meta span {
    min-width: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted, #796e72);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card__name {
    margin: 0 0 6px;
    color: var(--ink, #201b18);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card__description {
    min-height: 40px;
    margin: 0 0 12px;
    color: var(--muted, #756c64);
    font-size: 12px;
    line-height: 1.65;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.person-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.person-card__stats--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card__stats div {
    min-width: 0;
    padding: 8px 9px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid rgba(44, 36, 39, 0.06);
}

.person-card__stats dt {
    margin: 0;
    color: var(--muted, #756c64);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
}

.person-card__stats dd {
    margin: 2px 0 0;
    color: var(--accent-strong, #de3f67);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#pagination {
    margin: 34px 0 8px;
    gap: 8px;
    flex-wrap: wrap;
}

#pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border: 2px solid rgba(44, 36, 39, 0.08);
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #756c64);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(44, 36, 39, 0.05);
}

#pagination button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-strong, #de3f67), var(--accent, #ff6f8d));
    transform: translateY(-2px);
}

#pagination button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

@media (max-width: 800px) {
    .actor-list {
        grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
        gap: 12px;
    }

    .person-card {
        min-height: 286px;
        padding: 9px;
        border-radius: 22px;
    }

    .person-card__image {
        width: 100%;
        height: 142px;
        border-radius: 18px;
    }

    .person-card__name {
        font-size: 16px;
    }

    .person-card__description {
        min-height: 36px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .person-card__stats,
    .person-card__stats--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .person-card__badge {
        top: 14px;
        left: 13px;
    }
}
