/* 花名册容器 */
.roster-container {
    height: calc(100vh - 80px);
    padding: 1rem 0;
}

.roster-list {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    padding: 0 1.5rem;
}

/* 滚动条样式 */
.roster-list::-webkit-scrollbar {
    width: 4px;
}

.roster-list::-webkit-scrollbar-track {
    background: var(--bg-old);
}

.roster-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* 角色卡片样式 */
.character-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    position: relative;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-card:active {
    transform: scale(0.98);
    background: var(--bg-old);
}

/* 头像区域 */
.avatar-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--avatar-radius);
    border: 2px solid var(--border-color);
    object-fit: cover;
    background: var(--secondary-color);
}

/* 角色信息区域 */
.character-info {
    flex: 1;
    min-width: 0;
}

.name-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.character-name {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.gender-symbol {
    font-size: var(--font-size-md);
    color: var(--primary-color);
}

.detail-line {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 状态印章 */
.status-seal {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: bold;
    border: 2px solid;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-investigating {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.status-completed {
    color: #2e8b57;
    border-color: #2e8b57;
}

.status-deceased {
    color: #666;
    border-color: #666;
}

.status-missing {
    color: #ff8c00;
    border-color: #ff8c00;
}

/* 活跃年份 */
.active-era {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-style: italic;
}

/* 新增调查员卡片 */
.add-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-old), var(--secondary-color));
    border: 2px dashed var(--border-color);
}

.add-card:active {
    background: linear-gradient(135deg, var(--secondary-color), var(--border-color));
}

.add-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.add-text {
    font-size: var(--font-size-md);
    color: var(--primary-color);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .roster-list {
        padding: 0 1rem;
    }
    
    .character-card {
        padding: 0.75rem;
    }
    
    .avatar-container {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }
    
    .status-seal {
        right: 70px;
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* 角色卡片点击效果增强 */
.character-card {
    /* 已有样式保持不变 */
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-card:active {
    transform: scale(0.98);
    background: var(--bg-old);
    box-shadow: 0 1px 4px rgba(139, 69, 19, 0.2);
}

/* 添加点击涟漪效果 */
.character-card {
    position: relative;
    overflow: hidden;
}

.character-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.character-card:active::after {
    width: 100px;
    height: 100px;
}

/* 花名册中的名字保持左对齐 */
.roster-container .character-info {
    flex: 1;
    min-width: 0;
    text-align: left; /* 确保左对齐 */
}

.roster-container .name-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    justify-content: flex-start; /* 左对齐 */
}

.roster-container .character-name {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-dark);
    margin-right: 0.5rem;
    text-align: left; /* 左对齐 */
}