/* 迁移自 assets/index/styles.css 的 .actor-list 相关样式，去重合并 */
.actor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 10px;
    justify-items: center;
    align-items: stretch;
    padding: 0;
    margin: 0 auto 32px auto;
    list-style: none;
    width: 100%;
    max-width: 1800px;
    box-sizing: border-box;
    min-height: 240px;
}

.actor-list li {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* 居中li内部内容 */
    justify-content: center;
}

.actor-list li a,
.actor-list .card,
.actor-list a.card,
.actor-list div.card {
    display: block;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: black;
    background-color: white;
    transition: box-shadow 0.3s ease, transform 0.2s;
    width: 100%;
    max-width: 340px;
    min-width: 220px;
    min-height: 180px;
    font-size: 1rem;
    box-sizing: border-box;
}

.actor-list li a:hover,
.actor-list .card:hover,
.actor-list a.card:hover,
.actor-list div.card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.03);
}

.actor-list li img,
.actor-list .card img,
.actor-list a.card img,
.actor-list div.card img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin: 10px;
}

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

.actor-list li .description {
    font-size: 0.7rem !important;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0;
}

.actor-list .col-data {
    font-size: 120%;
    margin: 30px;
}

a.card {
    background-color: #f8f6f4;
    padding: 10px;
    margin: 10px;
}

a.card:hover {
    background-color: #f8f6f4;
}

div.card {
    width: 270px;
    padding: 5px;
    border: 2px dashed orange;
    border-radius: 15px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* 保证竖直排列 */
    justify-content: center; /* 上下居中 */
    align-items: center;     /* 左右居中 */
    height: 200px;
}

/* 设置卡片在鼠标悬停时的样式 */
.card:hover {
    transform: scale(1.03); /* 缩放效果 */
}

.card img {
    width: 100px;
    height: 100px;
    margin: 10px;
    border: 2px dotted #555;
    border-radius: 8px;
}

.col-data {
    width: 160px;
    font-size: 120%;
    color: rgba(255, 0, 0, 0.8);
    margin: 30px;
}

.column-maxlens {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

/* H5下，保证 .column-maxlens 不超出卡片宽度 */
@media (max-width: 900px) {
    .column-maxlens {
        max-width: 90vw;
        width: 100%;
    }
    .actor-list .card .column-maxlens,
    .actor-list a.card .column-maxlens,
    .actor-list div.card .column-maxlens {
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .column-maxlens {
        max-width: 80vw;
        width: 100%;
    }
    .actor-list .card .column-maxlens,
    .actor-list a.card .column-maxlens,
    .actor-list div.card .column-maxlens {
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 400px) {
    .column-maxlens {
        max-width: 98vw;
        width: 100%;
    }
    .actor-list .card .column-maxlens,
    .actor-list a.card .column-maxlens,
    .actor-list div.card .column-maxlens {
        max-width: 100%;
        width: 100%;
    }
}

/* 分页和其它辅助样式保持不变 */
#pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    padding: 8px 0;
}

/* 基本页码按钮样式 */
#pagination button {
    width: 56px;            /* 正方形稍宽以容纳中文/数字 */
    height: 48px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#pagination .page-number {
    width: 56px;
    height: 48px;
    padding: 0;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 省略号样式（不可点击） */
#pagination .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 48px;
    color: #333;
    font-weight: 700;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    user-select: none;
    pointer-events: none;
}

/* 小屏下缩小按钮 */
@media (max-width: 480px) {
    #pagination button {
        width: 42px;
        height: 40px;
        font-weight: 600;
    }
    #pagination .page-number { width: 44px; height: 40px; }
    #pagination .page-prev, #pagination .page-next { min-width: 56px; height: 40px; padding: 0 8px; }
    #pagination .page-dots { width: 36px; height: 40px; }
}

/* 当前页样式（高亮） */
#pagination .page-number.active {
    background: #3b82f6; /* 高亮色 */
    color: #fff;
    border-color: #3b82f6;
}

/* 上一页/下一页特殊样式（更宽） */
#pagination .page-prev,
#pagination .page-next {
    min-width: 80px;
    height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e6e6e6;
}

/* 禁用状态 */
#pagination button:disabled,
#pagination button[disabled] {
    background: #f4f4f4;
    color: #9a9a9a;
    border-color: #eee;
    cursor: default;
}

/* hover 效果 */
#pagination button:not(:disabled):hover {
    background-color: #f7f8fb;
    border-color: #d6d6d6;
}

/* 保证分页在窄屏不换行破坏布局（横向可滚动） */
@media (max-width: 360px) {
    #pagination {
        overflow-x: auto;
        padding-bottom: 6px;
    }
    #pagination button {
        flex: 0 0 auto;
    }
}

/* 响应式：H5下每行最多3个，卡片整体缩小，内部元素等比缩放 */
@media (max-width: 900px) {
    .actor-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 6px;
        max-width: 100vw;
        padding-left: 4px;
        padding-right: 4px;
        box-sizing: border-box;
    }
    .actor-list li {
        /* 保证li宽度自适应且居中 */
        width: 100%;
        max-width: 180px;
        box-sizing: border-box;
    }
    .actor-list .card,
    .actor-list a.card,
    .actor-list div.card,
    .actor-list li a {
        max-width: 180px;
        min-height: 120px;
        font-size: 0.85rem;
        padding: 6px;
        margin: 0 auto;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .actor-list .card img,
    .actor-list a.card img,
    .actor-list div.card img,
    .actor-list li img {
        width: 60px;
        height: 60px;
        margin: 6px auto;
        display: block;
    }
    .actor-list .col-data {
        font-size: 90%;
        margin: 10px;
    }
}

@media (max-width: 600px) {
    .actor-list {
        grid-template-columns: repeat(2, 0.5fr);
        gap: 15px 2px;
        padding-left: 2px;
        padding-right: 2px;
    }
    .actor-list li {
        min-width: 140px;
        width: 100%;
        box-sizing: border-box;
    }
    .actor-list .card,
    .actor-list a.card,
    .actor-list div.card,
    .actor-list li a {
        min-width: 140px;
        max-height: 150px;
        font-size: 0.7rem;
        padding: 3px;
        margin: 0 auto;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .actor-list .card img,
    .actor-list a.card img,
    .actor-list div.card img,
    .actor-list li img {
        width: 38px;
        height: 38px;
        margin: 3px auto;
        display: block;
    }
    .actor-list .col-data {
        font-size: 80%;
        margin: 4px;
    }
    div.card {
        border: 1px dashed orange;
    }
}

@media (max-width: 400px) {
    .actor-list {
        grid-template-columns: repeat(2, 0.5fr);
        gap: 15px 2px;
        padding-left: 1px;
        padding-right: 1px;
    }
    .actor-list li {
        max-width: 98vw;
        width: 100%;
        box-sizing: border-box;
    }
    .actor-list .card,
    .actor-list a.card,
    .actor-list div.card,
    .actor-list li a {
        max-width: 98vw;
        max-height: 150px;
        font-size: 0.6rem;
        margin: 0 auto;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
}
