/* ========== 人设列表弹窗样式（persona-modal- 命名空间） ========== */
.persona-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /*transition: opacity 0.2s ease;*/
}
.persona-modal-container {
    width: 90%;
    max-width: 450px;
    height: 700px;
    max-height: 90%;
    background: var(--bg-color);
    border-radius: 28px;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}


@media (max-width: 550px) {
    .persona-modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
}
.persona-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px 24px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.persona-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}
.persona-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.persona-modal-close i {
    font-size: 14px;
    color: var(--text-color-8);
}
.persona-modal-close:hover {
    background: var(--text-color-1);
}


.persona-intro-card {
    background: var(--theme-color-0_1);
    border: 0.5px solid var(--theme-color-0_5);
    border-radius: 24px;
    margin: 20px 24px 16px 24px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.persona-intro-icon {
    font-size: 24px;
    color: var(--theme-color);
    flex-shrink: 0;
    margin-top: 2px;
}
.persona-intro-text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}
.persona-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 12px 0;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.persona-list-container:hover {
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.persona-list-container::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}
.persona-list-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 6px;
}
.persona-list-container:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}
.persona-list {
    display: flex;
    flex-direction: column;
}
.persona-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    transition: background 0.2s;
    cursor: pointer;
    width: 100%;
}
.persona-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.persona-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.persona-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    background-color: var(--text-color-1);
}
.persona-details {
    flex: 1;
    min-width: 0;
}
.persona-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.persona-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.persona-select-btn {
    padding: 6px 16px;
    border-radius: 30px;
    background: transparent;
    border: 0.8px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.persona-select-btn * {
    color: inherit;
    font-size: inherit;
}

.persona-select-btn .default-text {
    display: inline-block;
}
.persona-select-btn .active-text {
    display: none;
}
.persona-select-btn.active {
    background: var(--sub-btn-bg);
    color: var(--sub-btn-text-color);
}


.persona-select-btn.active .default-text {
    display: none;
}
.persona-select-btn.active .active-text {
    display: flex;
    align-items: center;
    gap: 4px;
}
.persona-select-btn.active .active-text i {
    font-size: 12px;
}
.persona-modal-footer {
    padding: 16px 24px 24px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    background: var(--bg-color);
}
.persona-create-btn {
    width: 100%;
    background: #7a41db;
    border: none;
    border-radius: 60px;
    padding: 14px 0;
    font-weight: 600;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(122, 65, 219, 0.3);
}
.persona-create-btn:hover {
    background: #936df5;
    transform: scale(0.98);
}
.persona-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 15px;
}
.persona-skeleton-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.persona-skeleton-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    margin-right: 14px;
}
.persona-skeleton-info {
    flex: 1;
}
.persona-skeleton-name {
    width: 60%;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
}
.persona-skeleton-desc {
    width: 40%;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}
.persona-skeleton-btn {
    width: 60px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
}
.fade-animation {
    animation: fadeInOut 1.5s ease-in-out infinite;
}
@keyframes fadeInOut {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}