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;
}